/* haiyi shared workspace. One palette, spacing scale and surface hierarchy. */
:root,html[data-chat-theme=dark]{color-scheme:dark;--ui-bg:#181818;--ui-side:#1e1e1e;--ui-panel:#262626;--ui-raised:#2c2c2c;--ui-input:#333333;--ui-hover:#383838;--ui-line:#ffffff12;--ui-text:#ededed;--ui-muted:#929292;--ui-accent:#a0a8bd;--ui-bubble:#353741;--ui-shadow:0 16px 60px #0004;--bg:var(--ui-bg);--panel:var(--ui-side);--surface:var(--ui-input);--text:var(--ui-text);--muted:var(--ui-muted);--line:var(--ui-line);--accent:var(--ui-accent);--cyan:var(--ui-accent);--gold:var(--ui-accent);--soft:var(--ui-panel)}
html[data-chat-theme=light]{color-scheme:light;--ui-bg:#fff;--ui-side:#f5f5f5;--ui-panel:#fafafa;--ui-raised:#fff;--ui-input:#f0f0f0;--ui-hover:#e8e8e8;--ui-line:#00000012;--ui-text:#242424;--ui-muted:#737373;--ui-accent:#647086;--ui-bubble:#e8eaf0;--ui-shadow:0 16px 60px #0002;--bg:var(--ui-bg);--panel:var(--ui-side);--surface:var(--ui-input);--text:var(--ui-text);--muted:var(--ui-muted);--line:var(--ui-line);--accent:var(--ui-accent);--cyan:var(--ui-accent);--gold:var(--ui-accent);--soft:var(--ui-panel)}
html,body{background:var(--ui-bg);color:var(--ui-text);font-family:Inter,-apple-system,BlinkMacSystemFont,"Segoe UI","PingFang SC","Microsoft YaHei",sans-serif;font-size:14px;-webkit-font-smoothing:antialiased}
*{scrollbar-width:thin;scrollbar-color:#7775 transparent}button,input,textarea,select{font:inherit}button,a{touch-action:manipulation}button:focus-visible,a:focus-visible,summary:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible{outline:2px solid var(--ui-accent)!important;outline-offset:3px}::selection{background:#8b93ac55;color:var(--ui-text)}
/* Shared navigation rail. This sits outside the applications' React roots. */
.site-rail{position:fixed;inset:0 auto 0 0;width:50px;background:var(--ui-side);border-right:1px solid var(--ui-line);z-index:70;display:flex;align-items:center;flex-direction:column;gap:12px;padding:16px 7px;color:var(--ui-muted)}
.site-rail a,.site-rail button{width:35px;height:35px;display:grid;place-items:center;border:0;background:transparent;color:inherit;border-radius:10px;cursor:pointer;text-decoration:none}
.site-rail a:hover,.site-rail button:hover,.site-rail a[aria-current=page]{background:var(--ui-hover);color:var(--ui-text)}.site-rail .site-logo{font-size:22px;font-weight:700;color:var(--ui-text);margin-bottom:10px}.site-rail svg{width:18px;height:18px}.site-rail .site-rail-spacer{flex:1}.site-rail .site-account{background:#626b7d;color:#fff;border-radius:50%;width:29px;height:29px;font-size:12px}
body.site-workspace>#root,body.site-workspace>#chat-root{margin-left:50px;width:calc(100% - 50px)}
.hy-app,.workspace-hub{grid-template-columns:248px minmax(0,1fr);background:var(--ui-bg)}.hy-app.with-inspector{grid-template-columns:248px minmax(0,1fr) 290px}.workspace-hub.media-open{grid-template-columns:248px minmax(0,1fr) 290px}.workspace-hub.side-closed{grid-template-columns:minmax(0,1fr)}.workspace-hub.side-closed.media-open{grid-template-columns:minmax(0,1fr) 290px}
.hy-sidebar,.workspace-sidebar{background:var(--ui-side);color:var(--ui-text);border:0;padding:0 10px 12px;min-width:0}.hy-brand,.workspace-sidebar .hub-brand{height:66px;min-height:66px;padding:18px 12px;font-size:21px;letter-spacing:-.6px;align-items:center;color:var(--ui-text)}.hy-brand>span{font-size:21px}.hy-brand small,.workspace-sidebar .hub-brand span{display:none}.workspace-sidebar .hub-brand a{font-size:21px;font-weight:650}
.hy-new,.workspace-nav>button:first-child{justify-content:flex-start;gap:11px;border:0;border-radius:8px;background:none;margin:0 0 10px;padding:10px 12px;font-size:13px;color:var(--ui-text)}
.hy-sidebar nav,.workspace-nav{gap:3px;padding:0}.hy-sidebar nav :is(a,button),.workspace-nav :is(a,button){min-height:36px;gap:10px;padding:8px 12px;border:0;border-radius:8px;font-size:13px;font-weight:400;color:var(--ui-text)}.hy-sidebar nav :is(a,button):hover,.workspace-nav :is(a,button):hover,.hy-new:hover{background:var(--ui-hover)}.hy-sidebar nav .active,.workspace-nav .active{background:var(--ui-raised);color:var(--ui-text);font-weight:500}
.hy-history-label,.workspace-history-heading{font-size:12px;color:var(--ui-muted);margin:25px 11px 9px;padding:0}.hy-history-list,.workspace-history-list{padding:0;min-height:0}.hy-history-list button,.workspace-history-list button{padding:8px 11px;min-height:34px;gap:8px;color:var(--ui-text);border-radius:8px;font-size:13px}.hy-history-list button:hover,.hy-history-list .selected,.workspace-history-list button:hover,.workspace-history-list .active{background:var(--ui-raised)}.hy-history-list p,.workspace-history-list p,.workspace-history-note{color:var(--ui-muted);font-size:11px}.hy-history-list button svg,.workspace-history-list button svg{display:none}.hy-history-rail{display:none}
.hy-account,.workspace-sidebar .hub-account{border:0;padding:14px 8px 0;color:var(--ui-muted);font-size:12px}.hy-account .email-entry{gap:5px}.hy-account .email-entry button{background:transparent;border:0;color:var(--ui-text);border-radius:8px;padding:7px}.hy-account .email-entry button:hover{background:var(--ui-hover)}.hy-account>div:last-child button{color:var(--ui-muted)}.workspace-sidebar .account-avatar{background:#626b7d;color:white;width:30px;height:30px;font-size:15px}.workspace-sidebar .hub-account strong{font-weight:500;font-size:12px}
/* Content area and conversation rhythm. */
.hy-main,.hub-main,.workspace-hub .conversation,.workspace-hub .composer-dock{background:var(--ui-bg);color:var(--ui-text)}.hy-topbar,.workspace-hub .chat-toolbar{height:60px;min-height:60px;padding:12px 22px;border:0;background:var(--ui-bg)}.hy-topbar strong{font-size:13px;font-weight:550}.hy-topbar span{color:var(--ui-muted);font-size:11px}.workspace-hub .chat-toolbar>.compact-model-picker .workspace-model-trigger{font-size:14px;font-weight:500}.hy-topbar .icon{color:var(--ui-muted)}
.hy-conversation,.workspace-hub .conversation{padding:30px max(24px,calc((100% - 760px)/2)) 24px;scrollbar-color:#7775 transparent}.hy-conversation>div{max-width:760px;margin:auto}.hy-conversation:has(.hy-welcome){display:flex;align-items:center;justify-content:center}.hy-conversation:has(.hy-welcome)>div{width:100%}.hy-welcome{margin:0 auto 30px;text-align:center;max-width:680px}.hy-symbol,.hy-kicker{display:none}.hy-welcome h1{font-size:30px;line-height:1.45;letter-spacing:-.8px;font-weight:550;margin:0 0 18px;color:var(--ui-text)}.hy-welcome h1 br{display:none}.hy-welcome>p:not(.hy-kicker){color:var(--ui-muted);font-size:13px;line-height:1.9;margin:0}.hy-suggestions,.workspace-suggestions{justify-content:center;gap:8px;margin-top:27px}.hy-suggestions button,.workspace-suggestions button{background:transparent!important;border:1px solid var(--ui-line)!important;border-radius:9px!important;color:var(--ui-muted)!important;font-size:12px!important;padding:9px 12px!important}.hy-suggestions button:hover,.workspace-suggestions button:hover{background:var(--ui-raised)!important;color:var(--ui-text)!important}.workspace-greeting{font-size:30px!important;font-weight:550!important;letter-spacing:-.7px!important}.workspace-hub .model-intro{color:var(--ui-muted);font-size:13px}.workspace-hub .chat-welcome{padding-bottom:35px}
.hy-composer{width:min(760px,calc(100% - 48px));margin:10px auto 0;padding:15px 15px 11px;border:1px solid var(--ui-line);border-radius:22px;background:var(--ui-input);box-shadow:none}.hy-composer>textarea{height:56px;min-height:56px;padding:0 1px 9px;color:var(--ui-text);font-size:14px;line-height:1.7}.hy-composer textarea::placeholder{color:var(--ui-muted)}.hy-composer-tools{gap:10px;flex-wrap:nowrap}.hy-composer-tools>button{color:var(--ui-muted);font-size:11px}.hy-composer-end{gap:7px}.hy-model-select select{background:transparent;color:var(--ui-text);font-size:12px;padding:7px 24px 7px 6px}.hy-submit,.hy-submit:disabled{width:30px;height:30px;border-radius:50%;padding:6px;background:var(--ui-accent);color:white}.hy-submit:disabled{opacity:.35}.hy-submit span{display:none}.hy-submit svg{display:block;transform:rotate(0)}.hy-bottom-note{font-size:10px;max-width:760px;margin:9px auto 12px;padding:0 15px;color:var(--ui-muted);line-height:1.6}
.workspace-hub .composer-dock{max-width:804px;padding:10px 22px 12px}.workspace-hub .composer{background:var(--ui-input)!important;border:1px solid var(--ui-line);border-radius:22px;padding:15px 15px 11px;box-shadow:none}.workspace-hub .composer-input textarea{font-size:14px}.workspace-hub .composer-input>button:not(.attach-card){display:none}.workspace-hub .composer-tools{gap:5px}.workspace-hub .composer-context-note{color:var(--ui-accent);font-size:11px;opacity:1}.workspace-hub .send-message,.workspace-hub .send-message.stop{width:30px;height:30px;background:var(--ui-accent);color:#fff}.workspace-hub .workspace-model-trigger{font-size:12px;padding:5px 8px}.workspace-hub .composer-accessories{padding-top:6px;min-height:17px}.workspace-hub .composer-accessories>.quiet{font-size:10px}.workspace-hub .attach-card{width:28px;height:28px;border-radius:50%;left:12px;bottom:12px}.workspace-hub .attach-card:hover{background:var(--ui-hover)}
.hy-user-request,.workspace-hub .message.user{background:var(--ui-bubble);border:0;border-radius:20px;color:var(--ui-text);padding:12px 17px;max-width:85%;margin-bottom:32px}.hy-user-request>strong{color:#ddd9;font-size:11px}.hy-user-request p{font-size:14px;line-height:1.8}.hy-assistant-label{font-weight:500;color:var(--ui-text)}.hy-monogram{background:var(--ui-raised);color:var(--ui-text);font-size:17px;border-radius:50%}.hy-run,.markdown-reply,.workspace-hub .message-prose,.workspace-hub .markdown-reply{color:var(--ui-text);font-size:14px;line-height:1.9}.markdown-reply :is(h1,h2,h3,h4){color:var(--ui-text);font-weight:600}.hy-chat-turn{border:0;padding:20px 0}.hy-result-actions,.hy-request-actions,.message-actions{color:var(--ui-muted);border:0;font-size:11px}.hy-ai-disclaimer{color:var(--ui-muted)}.hy-result-actions button:hover,.message-actions button:hover{color:var(--ui-text)}
/* Results, evidence, activity, references: neutral surfaces with readable text. */
.hy-prompt-text,.codeblock,.hy-inline-process,.hy-live-output,.hy-quote-preview,.hy-file-chip,.reference-card,.luna-entitlement{background:var(--ui-panel);border:1px solid var(--ui-line);color:var(--ui-text);border-radius:12px}.hy-prompt-text>header,.codeblock>div{background:var(--ui-raised);color:var(--ui-muted);border-color:var(--ui-line)}.hy-prompt-text>pre{font:13px/1.9 ui-monospace,SFMono-Regular,Consolas,"Microsoft YaHei",monospace;color:var(--ui-text)}.hy-prompt-text button,.hy-file-chip>span,.hy-quote-preview p,.hy-quote-preview a,.luna-entitlement strong,.luna-entitlement summary{color:var(--ui-text)}.hy-inline-process,.hy-mini-metrics b,.hy-skill,.hy-trace-toggle,.hy-trace-step,.hy-trace-detail,.hy-trace-observation,.hy-trace-entry,.hy-live-text{color:var(--ui-muted)}.hy-execution-trace,.hy-trace-items,.hy-trace-entry,.hy-trace-detail,.hy-trace-observation,.hy-live-text{background:transparent;border-color:var(--ui-line)}.hy-trace-gallery figure,.hy-trace-gallery img,.hy-reference-mini img,.hy-message-attachment img,.hy-composer-thumbs img{background:var(--ui-panel);border-color:var(--ui-line)}.hy-reference-mini figcaption,.hy-skill-receipt{color:var(--ui-muted)}.markdown-reply blockquote{background:var(--ui-panel);color:var(--ui-muted);border-color:#7777}.markdown-reply th,.markdown-reply td{border-color:var(--ui-line)}.hy-warning{background:#a66c1c18;color:#d9b37c}.hy-error,.hub-error{background:#b5483218;border-color:#b5483244;color:#efad9f}.hy-result-editor{background:var(--ui-panel);color:var(--ui-text);border-color:var(--ui-line)}.hy-jump-latest{background:var(--ui-raised);color:var(--ui-text);border-color:var(--ui-line);box-shadow:0 3px 12px #0002}
.hy-inspector,.workspace-media{background:var(--ui-side);border-color:var(--ui-line);color:var(--ui-text)}.hy-inspector>header{height:60px;border:0;font-size:13px}.hy-inspector-tabs{border-color:var(--ui-line)}.hy-inspector-tabs button[aria-selected=true]{color:var(--ui-text);border-color:var(--ui-accent)}.hy-inspector h3{color:var(--ui-text);font-size:12px}.hy-stage-placeholder,.hy-stat-grid>div{background:var(--ui-panel);border:1px solid var(--ui-line)}.hy-stat-grid b{color:var(--ui-text);font-size:21px}.hy-stat-grid span,.hy-source-meta,.hy-muted,.hy-stage-placeholder,.hy-segment p,.hy-segment small,.hy-source-meta,.hy-audio{color:var(--ui-muted)}.hy-audio,.hy-sample-times button{background:var(--ui-panel);color:var(--ui-muted)}.hy-stage-list li>span{background:var(--ui-raised);color:var(--ui-muted)}.hy-stage-list li:not(:last-child):before{background:var(--ui-line)}.hy-stage-list li.done>span{background:#54997818;color:#94c6ad}.hy-segment summary,.hy-segment p strong{color:var(--ui-text)}.hy-inspector-content{padding:18px}
/* Shared menus and dialogs, including account, payment, assets and history. */
.hy-settings,.hub-dialog,.email-dialog,.asset-dialog,.asset-shell,.hy-material-modal,.media-history,.hy-evidence-dialog,.hy-history-dialog,.cv-dialog,.cv-gallery,.cv-history,.cv-result-record,.cv-param-popover,.cv-advanced-panel,.cv-mention-menu,.cv-context,.cv-wire-menu,.header-account-menu,.account-menu,.compact-model-menu,.history-drawer{background:var(--ui-raised)!important;color:var(--ui-text)!important;border:1px solid var(--ui-line)!important;box-shadow:var(--ui-shadow);border-radius:16px}
.hy-settings,.hub-dialog,.email-dialog,.asset-shell,.hy-material-modal,.cv-dialog{padding:24px}.hy-settings *, .email-dialog *, .asset-dialog *, .hy-material-modal *, .media-history *, .hy-history-dialog *{border-color:var(--ui-line)}
.email-dialog :is(h2,h3,label),.asset-dialog :is(h2,h3,strong),.hy-material-modal :is(h1,h2,h3,strong),.hy-history-dialog h2,.media-history h2{color:var(--ui-text)}.email-dialog h2,.asset-dialog h2,.hub-dialog h2,.hy-history-dialog h2,.cv-gallery h3{font-size:20px;font-weight:550;letter-spacing:-.4px}.email-dialog :is(p,small,label),.asset-policy,.asset-empty,.history-note,.history-expiry,.mp-help,.mp-footer,.mp-eyebrow,.mp-label,.reference-heading,.reference-heading strong,.reference-help,.reference-top{color:var(--ui-muted)}
.email-dialog input,.email-dialog select,.hub-dialog input,.hub-dialog textarea,.hub-dialog select,.hy-fields select,.reference-selects select,.asset-search input,.mp-panel input,.hy-result-editor{background:var(--ui-panel)!important;color:var(--ui-text)!important;border:1px solid var(--ui-line)!important;border-radius:8px}.email-dialog .email-logo{background:var(--ui-panel);border-color:var(--ui-line);box-shadow:none}.email-logo span,.email-gift,.email-dialog .email-tab{color:var(--ui-accent)}.email-dialog .email-tab{border-color:var(--ui-accent)}
.email-dialog .email-submit,.asset-primary,.asset-use,.mp-start,.hub-dialog .primary{background:var(--ui-accent)!important;color:white!important;border:0!important;border-radius:9px}.email-dialog .email-code button,.auth-tabs button,.recharge-tabs button,.recharge-refresh,.asset-toolbar button,.history-use,.history-more,.history-list-actions button{background:var(--ui-panel);color:var(--ui-text);border-color:var(--ui-line);border-radius:8px}.auth-tabs button.active,.recharge-tabs button.active,.hy-history-tabs button[aria-pressed=true]{background:var(--ui-hover);color:var(--ui-text);border-color:var(--ui-line)}.recharge-plan,.invite-stats>div,.billing-info,.billing-receipt,.asset-card,.asset-preview,.history-card,.history-thumb,.mp-panel,.mp-upload,.mp-result,.mp-recent,.mp-recent-list button,.mp-example-note,.hy-history-manager-row{background:var(--ui-panel);color:var(--ui-text);border:1px solid var(--ui-line);border-radius:10px}.recharge-plan strong{color:var(--ui-text)}.asset-card-body,.asset-card-body strong,.history-detail-title,.mp-heading h2,.mp-recent h3{color:var(--ui-text)}.asset-card-body p,.asset-card-body small,.mp-price,.billing-history,.billing-receipt p{color:var(--ui-muted)}.header-account-menu button,.account-menu button{background:transparent!important;border:0!important;color:var(--ui-text)!important;text-align:left}.header-account-menu button:hover,.account-menu button:hover{background:var(--ui-hover)!important}.header-account-menu .header-identity{border-color:var(--ui-line);color:var(--ui-muted)}
.email-overlay,.asset-overlay,.hy-modal-scrim,.cv-modal,.cv-history-shade,.media-preview-backdrop{background:#0007;backdrop-filter:blur(4px)}dialog::backdrop{background:#0007;backdrop-filter:blur(4px)}.hy-history-dialog{inset:12px auto 12px 62px;height:calc(100dvh - 24px);max-height:calc(100dvh - 24px);width:360px}.hy-history-tabs button,.hy-history-more{background:var(--ui-panel);color:var(--ui-muted);border-color:var(--ui-line)}.hy-history-manager-row>button:first-child{color:var(--ui-text)}.hy-history-manager-row small{color:var(--ui-muted)}.compact-model-picker .compact-model-menu{width:254px;padding:6px;border-radius:14px}.compact-picker-list{max-height:min(335px,60dvh);gap:0}.compact-picker-list .compact-picker-option{min-height:30px;padding:5px 8px;font-size:12px;border-radius:7px}.compact-picker-option:hover,.compact-picker-option:focus-visible,.compact-picker-option.selected{background:var(--ui-hover)}.compact-picker-label{font-size:11px;color:var(--ui-muted);padding:4px 8px 8px}
/* Canvas shares the same surfaces without interfering with pan/zoom or media. */
.cv-app,.cv-stage{background-color:var(--ui-bg);color:var(--ui-text);font-family:inherit}.cv-stage{background-image:radial-gradient(#ffffff16 .7px,transparent .7px)}.cv-top{height:60px;background:var(--ui-bg);border:0;padding:0 20px}.cv-stage{height:calc(100% - 60px)}.cv-home{font-size:20px;color:var(--ui-text)}.cv-home svg{color:var(--ui-muted)}.cv-title{color:var(--ui-text)}.cv-account .email-entry button,.cv-app .account-strip button{background:transparent;color:var(--ui-muted);border-color:var(--ui-line)}.cv-save-button{border-color:var(--ui-line)!important}.cv-save{color:var(--ui-muted)}
.cv-rail,.cv-controls,.cv-selection,.cv-node-toolbar,.cv-composer,.cv-projects{background:var(--ui-raised);border:1px solid var(--ui-line);color:var(--ui-text);box-shadow:0 4px 16px #0002;border-radius:12px}.cv-rail{width:54px;left:16px;top:22px;padding:7px 3px}.cv-rail button{width:44px;color:var(--ui-muted);border-radius:8px}.cv-rail button:first-child,.cv-controls button.active,.cv-projects .cv-new,.cv-project.active{background:var(--ui-hover);color:var(--ui-text)}.cv-controls button{color:var(--ui-muted)}.cv-orbit{background:var(--ui-raised);border-color:var(--ui-line);color:var(--ui-text);box-shadow:none;width:52px;height:52px;border-radius:15px}.cv-eyebrow{color:var(--ui-muted);letter-spacing:2px}.cv-welcome h1{font-size:30px;letter-spacing:-.6px}.cv-welcome p{color:var(--ui-muted)}.cv-starters button{background:var(--ui-panel);border:1px solid var(--ui-line);border-radius:12px;min-height:155px;padding:20px;gap:12px;transition:background .15s}.cv-starters button:hover{transform:none;border-color:#ffffff24;background:var(--ui-raised)!important}.cv-starters button>svg,.cv-starters i{color:var(--ui-accent)}.cv-starters span{color:var(--ui-muted)}
.cv-node{background:var(--ui-panel);border-color:#ffffff22;box-shadow:0 5px 20px #0002;border-radius:12px}.cv-node.selected{border-color:#929bb0;box-shadow:0 0 0 1px #8e92ad33}.cv-node.busy{border-color:#8d7caa}.cv-node>header{color:var(--ui-text);border-color:var(--ui-line)}.cv-node>header svg{color:var(--ui-muted)}.cv-media,.cv-node textarea,.cv-prompt-editor,.cv-composer-main,.cv-prompt-preview{background:var(--ui-bg);border-color:var(--ui-line);color:var(--ui-text)}.cv-node textarea:focus{border-color:var(--ui-accent)}.cv-media>button,.cv-media>button>svg{color:var(--ui-muted)}.cv-model,.cv-model-pill,.cv-settings select,.cv-param-bar button,.cv-param-bar select,.cv-reference-mode{background:var(--ui-raised);border-color:var(--ui-line);color:var(--ui-text)}.cv-generate,.cv-run{background:var(--ui-accent)!important;color:white!important;border-radius:9px}.cv-port{border-color:var(--ui-panel)!important;background:#9298a6!important;box-shadow:0 0 0 1px #777}.cv-wires path{stroke:#8991a2}.cv-wires .cv-wire-hit{stroke:transparent}.cv-wires .cv-wire-draft{stroke:var(--ui-accent)}.cv-node-foot,.cv-inputs,.cv-settings,.cv-cost-note,.cv-composer-head,.cv-word-count,.cv-settlement{color:var(--ui-muted)}.cv-progress,.hy-generation,.hy-generation-simple{background:var(--ui-panel);color:var(--ui-text)}.hy-generation-brand span{border-color:var(--ui-line);background:var(--ui-raised);color:var(--ui-muted)}.hy-status-line{color:var(--ui-text)}.cv-project-card,.cv-history-card,.cv-cover-empty{background:var(--ui-panel)!important;border-color:var(--ui-line);color:var(--ui-text)}.cv-project-card.active{border-color:var(--ui-accent);box-shadow:none}.cv-project-caption,.cv-history-card-info{color:var(--ui-text)}.cv-project-caption small,.cv-history-card-info small,.cv-gallery header p,.cv-history-note,.cv-history-empty,.cv-record-loading{color:var(--ui-muted)}.cv-gallery nav button.active{background:var(--ui-hover);color:var(--ui-text)}.cv-gallery nav .cv-gallery-new{background:var(--ui-accent);color:white}.cv-dialog p,.cv-dialog a,.cv-gallery nav button,.cv-mention-menu button,.cv-context button,.cv-history-actions button{color:var(--ui-text)}.cv-toast{background:var(--ui-raised);color:var(--ui-text);border-color:var(--ui-line)}
/* Real processing states only. No invented progress or reasoning. */
.generation-status,.hy-live-output>header strong,.hy-trace-entry:has(.spin)>summary,.hy-status-line:has(.hy-status-spinner){background:linear-gradient(100deg,#949494 0%,#bdadce 28%,#b5b0c5 45%,#b6c3cf 62%,#949494 85%);background-size:250% 100%;background-clip:text;-webkit-background-clip:text;color:transparent;animation:site-shimmer 3s ease-in-out infinite}.reply-orb{background:linear-gradient(120deg,#b7a1cc,#9fb8c7,#b4b4c5);box-shadow:none}.hy-status-spinner{color:#b5a5c5}.hy-composer:has(.spin){border-color:#b8a5cd55}.hy-live-output,.hy-inline-process{box-shadow:none}.hy-trace-entry .notice{background:var(--ui-panel);color:var(--ui-muted)}
@keyframes site-shimmer{0%,100%{background-position:100% 50%}50%{background-position:0% 50%}}
.hub-dialog .more-grid>button,.hub-dialog .more-grid>a,.hub-dialog .template-grid article,.hub-dialog .memory-card,.hub-dialog .channel-card{background:var(--ui-panel);color:var(--ui-text);border:1px solid var(--ui-line);border-radius:10px}.hub-dialog .more-grid>button:hover,.hub-dialog .more-grid>a:hover{background:var(--ui-hover)}.hub-dialog .more-grid svg{color:var(--ui-muted)}
@media(max-width:760px){.workspace-hub .composer-tools{display:flex!important}.workspace-hub .composer-tools>button[aria-label="高级设置"]{display:inline-flex!important;padding:6px}.workspace-hub .composer-tools>button[aria-label="高级设置"] svg{width:16px;height:16px}.workspace-hub .workspace-send-tools{gap:2px}}
body .asset-shell button:not(.asset-primary):not(.asset-use),body .asset-dialog button:not(.asset-primary):not(.asset-use),body .material-prep button:not(.mp-start){background:var(--ui-panel)!important;color:var(--ui-text)!important;border-color:var(--ui-line)!important;border-radius:8px}body .asset-shell button[aria-pressed=true],body .material-prep button[aria-pressed=true]{background:var(--ui-hover)!important;color:var(--ui-text)!important}body .asset-shell>header p:first-child,body .asset-shell>header>div>p:first-child,body .mp-case-badge,body .mp-label{color:var(--ui-muted)!important}.hy-history-dialog::backdrop{background:#0007}.hy-account>div:last-child{display:none}.hy-account{padding-bottom:5px}.cv-app .cv-param-bar .cv-run{background:var(--ui-accent)!important;color:white!important;border-color:transparent!important}.cv-app .cv-director button svg{color:var(--ui-muted)!important;background:var(--ui-hover)!important}.cv-app .cv-composer .cv-prompt-toggle,.cv-app .cv-ref-chip{color:var(--ui-muted)!important}.cv-app .cv-node.cv-compact.selected{border-color:#929bb0!important}.cv-app .cv-node.cv-compact.busy{border-color:#a393b5!important}
.site-settings-nav button{justify-content:flex-start}.hy-skill-receipt{display:none}.cv-prompt-toggle,.cv-ref-chip,.cv-ref-strip button{color:var(--ui-muted);background:var(--ui-panel);border-color:var(--ui-line)}
.workspace-hub .site-attach-menu>button{justify-content:flex-start}.workspace-hub .composer-input textarea{resize:none}.site-settings-dialog[open]{display:grid;grid-template-columns:185px minmax(0,1fr);width:min(880px,calc(100vw - 40px));height:min(620px,calc(100dvh - 60px));padding:0;overflow:hidden}.site-settings-nav{background:var(--ui-raised);padding:24px 12px;border-right:1px solid var(--ui-line)}.site-settings-nav h2{font-size:17px;padding:0 10px;margin:2px 0 25px}.site-settings-nav button{display:flex;align-items:center;gap:10px;width:100%;padding:10px 12px;background:transparent;border:0;border-radius:8px;color:var(--ui-text);font-size:13px;text-align:left}.site-settings-nav button[aria-pressed=true]{background:var(--ui-hover)}.site-settings-content{min-width:0;overflow:hidden;display:flex;flex-direction:column;background:var(--ui-panel);padding:28px 34px}.site-settings-content>header{display:flex;justify-content:space-between;align-items:center;margin-bottom:20px}.site-settings-content>header h2{margin:0;font-size:24px}.site-settings-content>header button{background:none;border:0;color:var(--ui-muted)}.site-settings-scroll{overflow:auto;min-height:0;padding-right:5px}.site-settings-scroll>.quiet{font-size:12px;line-height:1.8;margin:0 0 20px}.site-settings-scroll footer{display:flex;gap:8px;justify-content:flex-end;padding:20px 0 0;position:sticky;bottom:0;background:var(--ui-panel)}.site-settings-scroll footer button{padding:9px 14px;border:1px solid var(--ui-line);border-radius:9px;background:var(--ui-raised);color:var(--ui-text)}.site-settings-scroll input[type=checkbox]{accent-color:var(--ui-accent)}.site-appearance{overflow:auto;font-size:13px}.site-appearance>.quiet{line-height:1.8;color:var(--ui-muted)}.site-appearance-row{display:flex;align-items:center;justify-content:space-between;gap:25px;padding:24px 0;border-bottom:1px solid var(--ui-line)}.site-appearance-row strong{font-weight:550}.site-appearance-row p{margin:8px 0 0;color:var(--ui-muted);font-size:11px}.site-theme-options{display:flex;gap:13px}.site-theme-options button{background:none;border:0;color:var(--ui-muted);font-size:11px;display:grid;gap:7px;text-align:center}.site-theme-preview{display:block;position:relative;width:74px;height:49px;border:2px solid transparent;box-shadow:0 0 0 1px var(--ui-line);border-radius:8px;background:#f5f5f5}.site-theme-preview.dark{background:#181818}.site-theme-preview:before{content:'';position:absolute;left:0;top:0;bottom:0;width:19px;background:#8882}.site-theme-preview i{position:absolute;left:26px;top:12px;width:36px;height:3px;background:#9c9c9c;box-shadow:0 7px #9994,0 14px #9994;border-radius:3px}.site-theme-options button[aria-pressed=true] .site-theme-preview{border-color:var(--ui-text)}.site-color-dot{display:inline-block;width:12px;height:12px;background:var(--ui-accent);border-radius:50%;margin-right:7px;vertical-align:-1px}
@media(max-width:760px){.site-settings-dialog[open]{grid-template-columns:1fr;height:min(680px,calc(100dvh - 24px));max-width:calc(100vw - 24px)}.site-settings-nav{display:flex;gap:6px;align-items:center;padding:12px;border:0;border-bottom:1px solid var(--ui-line)}.site-settings-nav h2{margin:0 10px 0 0;font-size:15px;white-space:nowrap}.site-settings-nav button{width:auto;padding:8px 10px}.site-settings-content{padding:20px;min-height:0}.site-settings-content>header h2{font-size:20px}.site-appearance-row{gap:14px}.site-theme-preview{width:58px;height:43px}.site-theme-preview i{width:24px}.site-attach-menu>button span{font-size:11px}.site-attach-menu>button strong{font-size:11px}}
.site-attach-menu{position:absolute;left:0;right:0;bottom:calc(100% + 9px);padding:7px;background:var(--ui-raised);border:1px solid var(--ui-line);border-radius:16px;box-shadow:var(--ui-shadow);z-index:45;color:var(--ui-text)}.site-attach-menu>button{display:flex;align-items:center;gap:9px;width:100%;text-align:left;border:0;border-radius:8px;background:none;color:inherit;padding:9px;font-size:12px}.site-attach-menu>button strong{font-size:12px;font-weight:500;white-space:nowrap}.site-attach-menu>button span{font-size:12px;color:var(--ui-muted)}.site-attach-menu>button:hover,.site-attach-menu>button:focus-visible{background:var(--ui-hover);outline:none}.site-attach-wrap{position:static}.asset-close,.asset-empty button,.reference-import-actions button,.add-reference,.asset-import-tile{background:var(--ui-panel);border:1px solid var(--ui-line);color:var(--ui-text)}.asset-shell>header p:first-child{color:var(--ui-muted)}.asset-dialog::backdrop{background:#0008}.asset-empty button{background:var(--ui-accent);color:#fff;border:0}.hy-history-list{flex:1}.hy-account{margin-top:auto}
.site-reverse-picker{position:relative}.site-reverse-picker>button{display:flex;align-items:center;gap:7px;color:var(--ui-text);background:transparent;border:0;font-size:12px;white-space:nowrap;padding:6px}.site-reverse-menu{position:absolute;right:0;bottom:calc(100% + 13px);width:248px;max-width:calc(100vw - 24px);padding:6px;border:1px solid var(--ui-line);background:var(--ui-raised);color:var(--ui-text);border-radius:14px;box-shadow:var(--ui-shadow);z-index:45}.site-reverse-menu>button{display:flex;align-items:center;justify-content:space-between;min-height:32px;width:100%;padding:6px 9px;border:0;border-radius:7px;color:inherit;text-align:left;font-size:12px;background:none}.site-reverse-menu>button:hover,.site-reverse-menu>button:focus-visible,.site-reverse-menu>button[aria-checked=true]{background:var(--ui-hover);outline:none}.hy-skill-switch[aria-checked=true]{background:transparent;box-shadow:none;color:var(--ui-accent)}
@media(max-width:1250px){.hy-app.with-inspector,.workspace-hub.media-open{grid-template-columns:220px minmax(0,1fr)}.hy-app,.workspace-hub{grid-template-columns:220px minmax(0,1fr)}.hy-inspector,.workspace-media{position:fixed;right:0;top:0;width:290px;z-index:60;height:100dvh;box-shadow:-15px 0 50px #0004}.hy-composer-tools{gap:7px}.hy-composer-tools>button{font-size:10px}.hy-skill-switch svg{display:none}}
@media(max-width:760px){.site-rail{display:none}body.site-workspace>#root,body.site-workspace>#chat-root{margin-left:0;width:100%}.hy-app,.hy-app.with-inspector,.workspace-hub,.workspace-hub.media-open,.workspace-hub.side-closed,.workspace-hub.side-closed.media-open{display:block}.hy-sidebar{position:fixed;left:0;top:0;bottom:0;width:270px;z-index:90;transform:translateX(-100%)}.hy-sidebar.open{transform:none}.workspace-sidebar{width:270px!important}.hy-nav-scrim,.mobile-shade{background:#0008}.hy-nav-scrim{display:block;position:fixed;inset:0;z-index:80}.hy-mobile-menu{display:flex}.hy-topbar,.workspace-hub .chat-toolbar{height:54px;min-height:54px;padding:8px 12px;gap:8px}.hy-topbar span{display:none}.hy-topbar strong{font-size:12px}.hy-conversation,.workspace-hub .conversation{padding:22px 18px}.hy-welcome{margin:0 auto 20px}.hy-welcome h1,.workspace-greeting{font-size:26px!important}.hy-welcome>p:not(.hy-kicker){font-size:12px}.hy-suggestions,.workspace-suggestions{gap:6px;flex-wrap:wrap}.hy-suggestions button,.workspace-suggestions button{font-size:10px!important;padding:8px!important}.hy-composer{width:calc(100% - 20px);padding:13px 12px 10px;margin:6px auto 0;border-radius:20px}.hy-composer>textarea,.workspace-hub .composer-input textarea{font-size:16px;min-height:55px;height:55px}.hy-composer-tools{gap:7px;flex-wrap:wrap}.hy-composer-tools>button{font-size:10px}.hy-composer-end{width:auto;margin-left:auto;gap:4px}.hy-model-select select{max-width:135px;font-size:11px}.hy-bottom-note{max-height:33px;overflow:auto;font-size:9px;margin:7px 12px max(8px,env(safe-area-inset-bottom));padding:0}.hy-skill-switch{font-size:10px!important}.hy-settings{max-height:65dvh;padding:18px}.hy-inspector{width:min(320px,95vw)}.hy-user-request,.workspace-hub .message.user{max-width:92%;padding:11px 14px}.hy-result-actions{flex-wrap:wrap;gap:10px}.hy-result-actions>span{width:100%;margin:0}.hy-fields{grid-template-columns:1fr}.hy-history-dialog{inset:8px;max-width:calc(100% - 16px);height:calc(100dvh - 16px)}.hy-material-modal,.asset-dialog,.asset-shell,.email-dialog,.hub-dialog{padding:20px;max-width:calc(100vw - 24px)}.asset-grid,.mp-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.reference-card{padding:9px}.reference-selects{flex-wrap:wrap}.reference-selects select{max-width:100%}.workspace-hub .composer-dock{padding:6px 10px max(8px,env(safe-area-inset-bottom))}.workspace-hub .composer{padding:13px 12px 10px;border-radius:20px}.workspace-hub .composer-context-note{display:none}.workspace-hub .message-prose,.workspace-hub .markdown-reply{font-size:14px}.cv-top{height:54px;padding:0 12px}.cv-stage{height:calc(100% - 54px)}.cv-title{width:90px}.cv-account .header-invite,.cv-account .header-history{display:none}.cv-home{gap:8px}.cv-rail{left:9px;top:16px;width:48px}.cv-rail button{width:38px}.cv-starters{grid-template-columns:1fr;gap:8px}.cv-starters button{min-height:68px;padding:13px 15px;gap:5px;position:relative;padding-left:44px}.cv-starters button>svg{position:absolute;left:14px;top:19px;width:18px}.cv-starters i{display:none}.cv-welcome{width:calc(100% - 100px);left:calc(50% + 20px);max-height:85%;overflow:auto}.cv-welcome h1{font-size:23px}.cv-welcome p{font-size:12px;margin-bottom:20px}.cv-orbit{display:none}.cv-gallery{left:64px!important;width:calc(100vw - 76px)!important;padding:16px}.cv-project-grid{grid-template-columns:1fr}.cv-dialog{padding:20px}.cv-node-list{max-width:calc(100vw - 80px)}}
@media(prefers-reduced-motion:reduce){.generation-status,.hy-live-output>header strong,.hy-trace-entry:has(.spin)>summary,.hy-status-line:has(.hy-status-spinner){animation:none;color:var(--ui-muted)}*{scroll-behavior:auto!important}}

/* Matte accents: subdued blue-grey to lavender, without an orange glow. */
:root{--ui-matte:linear-gradient(120deg,#566577 0%,#626a7d 48%,#71647c 100%);--ui-matte-soft:linear-gradient(120deg,#333942,#393640)}
.hy-submit,.hy-submit:disabled,.workspace-hub .send-message,.workspace-hub .send-message.stop,.cv-app .cv-param-bar .cv-run,.cv-generate,.cv-run,.email-dialog .email-submit,.asset-primary,.asset-use,.mp-start,.hub-dialog .primary,.cv-gallery nav .cv-gallery-new{background:var(--ui-matte)!important;color:#fff!important;box-shadow:none!important}
.site-rail .site-account,.workspace-sidebar .account-avatar,.site-color-dot{background:var(--ui-matte)!important;color:#fff;box-shadow:none}
.hy-user-request,.workspace-hub .message.user{background:var(--ui-matte-soft)}
html[data-chat-theme=light] .hy-user-request,html[data-chat-theme=light] .workspace-hub .message.user{background:linear-gradient(120deg,#e6eaf0,#e9e5ee)}
button:focus-visible,a:focus-visible,summary:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible{outline:1px solid #9099ad!important;outline-offset:3px;box-shadow:none!important}
.hy-composer>textarea:focus,.hy-composer>textarea:focus-visible,.workspace-hub .composer-input textarea:focus,.workspace-hub .composer-input textarea:focus-visible{outline:none!important;box-shadow:none!important}
.hy-composer:focus-within,.workspace-hub .composer:focus-within{border-color:#7d8496;box-shadow:none!important}
.hy-skill-switch[aria-checked=true],.workspace-hub .composer-context-note,.cv-starters i,.cv-starters button>svg{color:#a6aec2!important}
.site-color-dot{width:16px;height:16px}.site-theme-options button[aria-pressed=true] .site-theme-preview{border-color:#a6aec2}

/* Clear action hierarchy with matte blue and lavender accents. */
.hy-composer-tools>.hy-upload-button,.hy-composer-tools>button[aria-expanded],.hy-ref-count{color:#d0e1ff!important;font-weight:550}
.hy-composer-tools>.hy-upload-button{background:linear-gradient(115deg,#364453,#484253);border:1px solid #67768d;border-radius:9px;padding:7px 10px}
.hy-composer-tools>button[aria-expanded=true]{background:#3b4050;color:#e0deff!important}
.hy-skill-switch[aria-checked=true]{color:#cbc5ed!important}
.site-reverse-picker>button{color:#e1e9ff!important;background:#3c414c;border:1px solid #697187;border-radius:18px;padding:6px 10px}
.hy-submit:not(:disabled){background:linear-gradient(120deg,#6886a7,#8982aa)!important;color:#fff!important;opacity:1!important}
.hy-submit:disabled{opacity:.35!important;cursor:not-allowed}
.hy-settings>header strong,.references-head,.reference-top{color:#e0e9ff}
.references .drop-zone,.references .reference-add,.references button{color:#cbd9f0}
.hy-composer.is-file-drag{border:2px dashed #b4c9ed!important;background:#343d4c!important}
.hy-drop-hint{pointer-events:none;padding:14px;text-align:center;color:#e0eaff;background:linear-gradient(120deg,#3d4d60,#53465d);border-radius:12px;font-weight:600;margin-bottom:10px}
.hy-upload-status{color:#d0e1ff;padding:8px 12px;font-size:13px}
.hy-document-list{display:flex;gap:8px;flex-wrap:wrap;margin-bottom:10px;max-height:150px;overflow:auto}
.hy-document-list .hy-file-chip{display:flex;align-items:center;gap:10px;max-width:100%;min-width:0;margin:0;background:#303846;border:1px solid #576981;border-radius:12px;padding:10px;color:#e7efff}
.hy-file-chip>span{min-width:0;overflow-wrap:anywhere}.hy-file-chip small{display:block;color:#b7c5dc!important}
.hy-document-icon{font-size:10px;font-weight:700;padding:6px;border-radius:6px;background:#4d536e;color:#eeeaff}
.hy-document-list .hy-file-chip{width:270px}.hy-document-list .hy-document-icon{flex:0 0 auto;width:auto}.hy-document-list .hy-file-chip>span:not(.hy-document-icon){flex:1;max-width:none}
.references input.reference-note{background:#30333b!important;border:1px solid #626a7d!important;color:#e2e8f2!important}.references input.reference-note::placeholder{color:#aab5c8}
.hy-native-model-icon{width:24px;height:24px;object-fit:contain;border-radius:6px;background:#f4f5f7;padding:3px}
html[data-chat-theme=light] .hy-composer-tools>.hy-upload-button,html[data-chat-theme=light] .hy-composer-tools>button[aria-expanded],html[data-chat-theme=light] .hy-ref-count{color:#3d567e!important}
html[data-chat-theme=light] .hy-composer-tools>.hy-upload-button,html[data-chat-theme=light] .site-reverse-picker>button,html[data-chat-theme=light] .hy-document-list .hy-file-chip{background:#e8edf6;color:#304463!important;border-color:#a8b7cd}
html[data-chat-theme=light] .hy-upload-status,html[data-chat-theme=light] .hy-settings>header strong{color:#455d82}
html[data-chat-theme=light] .hy-file-chip small{color:#526887!important}
html[data-chat-theme=light] .references-head,html[data-chat-theme=light] .reference-top,html[data-chat-theme=light] .references button{color:#3d567e!important}
html[data-chat-theme=light] .hy-composer-tools>button[aria-expanded=true]{background:#dce4f2}
html[data-chat-theme=light] .hy-skill-switch[aria-checked=true]{color:#66577f!important}
html[data-chat-theme=light] .references input.reference-note{background:#fff!important;color:#293a52!important;border-color:#b1bbce!important}
@media(max-width:600px){.hy-composer-tools{gap:6px;flex-wrap:wrap}.hy-composer-tools>.hy-upload-button{padding:7px}.hy-document-list .hy-file-chip{width:100%}}

.hy-skills-dialog [hidden]{display:none!important}.hy-skill-controls{display:flex;align-items:center;gap:7px;min-width:0}.hy-skill-controls select{max-width:210px;padding:7px 26px 7px 10px!important;background:#3b4050!important;color:#dddafa!important;border:1px solid #73768e!important;border-radius:9px!important;font-size:12px;cursor:pointer}.hy-skill-controls .hy-skill-library-button{color:#ccdcfa!important;border-bottom:1px solid #7c8ca6;padding:5px!important;font-weight:600}
.hy-skills-dialog{box-sizing:border-box;width:min(820px,calc(100vw - 32px));max-height:88vh;padding:0;border:1px solid #51545d;border-radius:20px;background:#27282d;color:#e8ebf2;box-shadow:0 20px 70px #0005;overflow:hidden}.hy-skills-dialog::backdrop{background:#0008}.hy-skills-dialog>header{display:flex;align-items:flex-start;justify-content:space-between;padding:22px 26px;border-bottom:1px solid #484b55}.hy-skills-dialog h2,.hy-skills-dialog h3{margin:0 0 8px;font-weight:600}.hy-skills-dialog h2{font-size:20px}.hy-skills-dialog h3{font-size:15px}.hy-skills-dialog p{margin:7px 0 14px;font-size:13px;line-height:1.7;color:#b9c0ce}.hy-skills-dialog header p{margin:0}.hy-skills-body{padding:22px 26px;overflow:auto;max-height:calc(88vh - 110px)}
.hy-skills-dialog button{background:#363b48;color:#dce7fb;border:1px solid #606d85;border-radius:8px;padding:8px 12px;font-size:12px;cursor:pointer}.hy-skills-dialog button:hover{background:#465169}.hy-skills-dialog button:disabled,.hy-skill-controls button:disabled,.hy-skill-controls select:disabled{opacity:.4;cursor:not-allowed}.hy-skills-dialog .hy-skills-primary{background:linear-gradient(110deg,#556e8d,#776a8d);color:#fff;border-color:#8c98af}.hy-skill-install{background:#303139;border:1px solid #4c515f;border-radius:14px;padding:18px}.hy-skill-install small{display:block;color:#aab4c7;font-size:11px;line-height:1.6;margin-top:12px}.hy-skills-dialog label{display:block;margin:13px 0;font-size:12px;color:#bdc9de}.hy-skills-dialog input,.hy-skills-dialog select{display:block;box-sizing:border-box;width:100%;margin-top:6px;padding:10px;border:1px solid #646d82;border-radius:8px;background:#22252e;color:#ebeff8;font:inherit}.hy-skill-actions{display:flex;flex-wrap:wrap;gap:8px;margin-top:12px}.hy-skill-file-list{display:flex;flex-wrap:wrap;gap:6px;list-style:none;padding:0}.hy-skill-file-list li{font-size:11px;padding:4px 8px;border-radius:6px;background:#42495a;color:#d5e1f7;overflow-wrap:anywhere}.hy-skill-list-heading{display:flex;align-items:center;justify-content:space-between;margin:24px 0 12px}.hy-skill-card{padding:16px;border:1px solid #4b5260;border-radius:12px;margin-bottom:10px}.hy-skill-card strong{font-size:14px}.hy-skill-version,.hy-skill-active{font-size:11px;margin-left:9px;padding:3px 7px;border-radius:6px;background:#424855;color:#d4d9e5}.hy-skill-active{color:#c2e4dd;background:#344d4a}.hy-skill-detail{margin-top:20px;border:1px solid #596780;border-radius:14px;padding:18px}.hy-skill-detail details{margin-top:10px;border-top:1px solid #484e59;padding-top:10px}.hy-skill-detail summary{font-size:13px;color:#d7e5ff;cursor:pointer}.hy-skill-detail pre{white-space:pre-wrap;overflow-wrap:anywhere;max-height:260px;overflow:auto;font-size:12px;line-height:1.7;background:#1c1e24;padding:12px;border-radius:9px}.hy-skills-dialog .hy-skill-success{color:#b8e2cf;background:#2d413a;padding:10px;border-radius:8px}.hy-skill-error,.hy-skills-dialog .hy-skill-error{color:#ffc9cf;font-size:12px;line-height:1.6}.hy-skill-footnote{font-size:11px!important;color:#9caac1!important;margin-top:20px!important}.hy-mode-receipt{font-size:11px;color:#aebed8;margin-left:10px}
html[data-chat-theme=light] .hy-skills-dialog{background:#fff;color:#25334a;border-color:#c1cada}html[data-chat-theme=light] .hy-skills-dialog p,html[data-chat-theme=light] .hy-skills-dialog label{color:#52627b}html[data-chat-theme=light] .hy-skill-install,html[data-chat-theme=light] .hy-skill-card{background:#f3f5fa;border-color:#c7cfdf}html[data-chat-theme=light] .hy-skills-dialog input,html[data-chat-theme=light] .hy-skills-dialog select,html[data-chat-theme=light] .hy-skill-detail pre{background:#fff;color:#263951}html[data-chat-theme=light] .hy-skill-controls select{background:#e8e9f4!important;color:#495577!important}html[data-chat-theme=light] .hy-skill-controls .hy-skill-library-button{color:#425f8e!important}html[data-chat-theme=light] .hy-skill-error{color:#a83048}html[data-chat-theme=light] .hy-skill-detail summary{color:#3e5f94}
@media(max-width:650px){.hy-skill-controls{width:100%;justify-content:space-between}.hy-skill-controls select{max-width:calc(100% - 65px);flex:1}.hy-skills-dialog{width:calc(100vw - 16px);max-height:94vh;border-radius:15px}.hy-skills-dialog>header,.hy-skills-body{padding:16px}.hy-skills-body{max-height:calc(94vh - 105px)}.hy-mode-receipt{display:block;margin:5px 0}}

.hy-reference-scope{min-width:0}.hy-reference-main{display:block!important}.hy-reference-main strong{display:block;color:#dce5fa;font-size:13px;margin:8px 0}.hy-reference-main textarea{box-sizing:border-box;display:block;width:100%;min-height:85px;resize:vertical;background:#23262e!important;color:#edf0f7!important;border:1px solid #73809a!important;border-radius:10px;padding:10px!important;font:inherit;font-size:12px;line-height:1.7}.hy-reference-main textarea:focus{outline:2px solid #a5b8d3!important;outline-offset:1px}.hy-reference-shortcuts{display:flex;flex-wrap:wrap;gap:7px;margin:10px 0 7px}.hy-reference-shortcuts button{border:1px solid #67738b!important;background:#363d4b!important;color:#d6e6ff!important;border-radius:8px!important;padding:5px 12px!important;font-size:12px!important}.hy-reference-shortcuts button[aria-pressed=true]{background:linear-gradient(110deg,#4b607b,#685b7b)!important;color:#fff!important;border-color:#a1acc4!important}.hy-reference-hint{display:block;color:#a6b5ca;font-size:11px;line-height:1.7}.hy-reference-advanced{margin-top:10px;border-top:1px solid #444952;padding-top:9px}.hy-reference-advanced summary{color:#a6b3c8;font-size:11px;cursor:pointer}.hy-reference-advanced>label{display:block;margin-top:10px}.hy-reference-advanced .generation-check{display:flex!important}.hy-reference-advanced select{width:100%}html[data-chat-theme=light] .hy-reference-main strong{color:#314762}html[data-chat-theme=light] .hy-reference-main textarea{background:#fff!important;color:#25364e!important}html[data-chat-theme=light] .hy-reference-hint,html[data-chat-theme=light] .hy-reference-advanced summary{color:#566b83}

.hy-ref-attachments{margin:8px 0 12px;min-width:0}.hy-ref-strip{display:flex;gap:12px;overflow-x:auto;padding:8px 6px 4px;scrollbar-width:thin;overscroll-behavior-x:contain}.hy-ref-thumb{position:relative;flex:0 0 86px;border:1px solid #676d7c;border-radius:12px;background:#292b31;padding:4px;transition:opacity .15s,border-color .15s}.hy-ref-thumb.is-moving{opacity:.6}.hy-ref-thumb.is-drop-target{border-color:#bfccf4;box-shadow:0 0 0 2px #9caed54d}.hy-ref-drag{display:block!important;position:relative;width:100%;height:72px!important;padding:0!important;overflow:hidden;border:0!important;border-radius:8px!important;cursor:grab!important;touch-action:none;user-select:none}.hy-ref-drag:active{cursor:grabbing!important}.hy-ref-drag img{width:100%;height:100%;object-fit:cover;pointer-events:none}.hy-ref-number{position:absolute;bottom:3px;left:3px;background:#181a22d9;color:#f6f7ff;border-radius:5px;padding:1px 5px;font-size:11px}.hy-ref-remove{position:absolute!important;top:-6px;right:-6px;display:grid!important;place-items:center;width:24px!important;height:24px!important;padding:0!important;border:1px solid #858d9f!important;border-radius:50%!important;background:#343945!important;color:#fff!important;font-size:20px!important;line-height:1!important;z-index:2}.hy-ref-thumb-actions{display:flex;align-items:center;justify-content:space-between;gap:0;margin-top:3px}.hy-ref-thumb-actions button{min-height:26px!important;padding:2px 5px!important;background:transparent!important;border:0!important;color:#d9e4ff!important;font-size:11px!important}.hy-ref-thumb-actions button:first-child,.hy-ref-thumb-actions button:last-child{font-size:20px!important}.hy-ref-attachments button:disabled{opacity:.35;cursor:default!important}.hy-ref-attachments button:focus-visible{outline:2px solid #b4c6f6;outline-offset:2px}.hy-ref-strip-footer{display:flex;align-items:center;flex-wrap:wrap;gap:6px 16px;margin-top:4px;font-size:11px}.hy-ref-strip-footer button{padding:3px 0!important;border:0!important;background:none!important;color:#d7e2ff!important;font-size:12px!important}.hy-ref-strip-footer span{color:#adb3c1}.hy-ref-sr-status{position:absolute;width:1px;height:1px;padding:0;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}html[data-theme=light] .hy-ref-thumb{background:#eef1f8;border-color:#a4afc6}html[data-theme=light] .hy-ref-thumb-actions button,html[data-theme=light] .hy-ref-strip-footer button{color:#344b7a!important}html[data-theme=light] .hy-ref-strip-footer span{color:#566071}

.hy-ref-number{font-size:10px;padding:2px 3px;letter-spacing:-.2px;white-space:nowrap}

/* Compact controls leave the conversation visible. */
.hy-luna-compact{margin:0 0 8px;color:var(--ui-muted);font-size:11px;line-height:1.6}
.hy-luna-compact>summary{display:flex;align-items:center;justify-content:space-between;gap:12px;cursor:pointer;list-style:none;padding:3px 0;color:var(--ui-text)}
.hy-luna-compact>summary::-webkit-details-marker{display:none}
.hy-luna-more{color:#b9cbe6;white-space:nowrap}.hy-luna-more:after{content:'⌄';margin-left:6px}.hy-luna-compact[open] .hy-luna-more:after{content:'⌃'}
.hy-luna-rules{max-height:150px;overflow:auto;padding:8px 12px;margin-top:6px;border:1px solid var(--ui-line);border-radius:10px;background:var(--ui-panel)}.hy-luna-rules p{margin:3px 0 8px}
.hy-settings.hy-reference-drawer{position:fixed;top:0;right:0;bottom:0;left:auto;width:380px;max-width:100vw;height:100dvh;max-height:100dvh;box-sizing:border-box;padding:0 18px 16px;overflow-y:auto;overscroll-behavior:contain;border-radius:0;box-shadow:none;z-index:65}
.hy-reference-drawer .hy-settings-head{position:sticky;top:0;z-index:3;min-height:60px;margin:0 -18px 14px;padding:0 18px;background:var(--ui-raised);border-bottom:1px solid var(--ui-line)}
.hy-reference-drawer .hy-settings-head button{width:36px;height:36px;display:grid;place-items:center}
.hy-reference-drawer .reference-card{padding:10px}.hy-reference-drawer .reference-top{min-width:0}.hy-reference-drawer .reference-top>span{overflow:hidden;text-overflow:ellipsis}
.hy-reference-drawer .hy-fields{grid-template-columns:1fr;gap:12px}.hy-reference-drawer .reference-import-actions{grid-template-columns:1fr}
.hy-reference-done{position:sticky;bottom:-16px;display:flex;align-items:center;justify-content:space-between;gap:12px;margin:12px -18px -16px;padding:12px 18px max(12px,env(safe-area-inset-bottom));background:var(--ui-raised);border-top:1px solid var(--ui-line);z-index:3;font-size:11px;color:var(--ui-muted)}
.hy-reference-done button{border:1px solid #7d8ba6;border-radius:9px;padding:8px 23px;background:linear-gradient(115deg,#46576e,#605570);color:#f5f7ff;font-size:12px}
html[data-chat-theme=light] .hy-luna-more{color:#3e5d8a}
@media(min-width:1000px){.hy-app:has(.hy-reference-drawer){box-sizing:border-box;padding-right:380px;grid-template-columns:220px minmax(0,1fr)}.hy-app:has(.hy-reference-drawer)>.hy-inspector{display:none}.hy-app:has(.hy-reference-drawer) .hy-composer{width:calc(100% - 32px)}.hy-app:has(.hy-reference-drawer) .hy-composer-tools{flex-wrap:wrap;gap:7px}.hy-app:has(.hy-reference-drawer) .hy-composer-end{margin-left:auto}}
@media(max-width:999px){.hy-settings.hy-reference-drawer{top:auto;left:0;right:0;bottom:0;width:100%;height:auto;max-height:58dvh;border-radius:18px 18px 0 0;box-shadow:0 -8px 32px #0003}.hy-reference-drawer .hy-settings-head{min-height:52px}.hy-reference-drawer .hy-fields{grid-template-columns:1fr 1fr}.hy-reference-drawer .reference-import-actions{grid-template-columns:1fr 1fr}}

/* Temporarily hide canvas entry points; retain canvas routes and data. */
a[href="/canvas"],a[href^="/canvas?"],a[href^="/canvas#"],.hw-art-canvas{display:none!important}

/* Mobile reverse composer: isolate from inherited desktop light overrides. */
@media(max-width:760px){
html .hw-workspace.hy-app.kl-transplant{--ht-fg:#e8f1f2;--ht-muted:#a6b6bd;--ht-panel:#192328;--ht-border:#35474d;--ht-bg:#101416;color-scheme:dark}
html .hw-workspace.hy-app.kl-transplant .hy-composer{background:#192023!important;color:#e8f1f2!important;border:1px solid #35444a!important;max-height:60dvh;overflow:auto!important}
html .hw-workspace.hy-app.kl-transplant .hy-composer textarea{background:transparent!important;color:#e8f1f2!important;-webkit-text-fill-color:#e8f1f2!important;font-size:16px!important}
html .hw-workspace.hy-app.kl-transplant .hy-composer textarea::placeholder{color:#a6b6bd!important;-webkit-text-fill-color:#a6b6bd!important}
html .hw-workspace.hy-app.kl-transplant .hy-composer :is(button,select){color:#d4e7eb!important;-webkit-text-fill-color:#d4e7eb!important}
html .hw-workspace.hy-app.kl-transplant .hy-composer .hw-reverse-upload{background:#293438!important;border-color:#3e5158!important;transform:none!important}
html .hw-workspace.hy-app.kl-transplant .hy-composer-tools{display:flex!important;flex-wrap:wrap!important;gap:6px!important;align-items:center!important}
html .hw-workspace.hy-app.kl-transplant .hy-composer-tools>.hy-upload-button,html .hw-workspace.hy-app.kl-transplant .hy-composer-tools>.hw-mode-picker{display:none!important}
html .hw-workspace.hy-app.kl-transplant .hy-composer-end{display:contents!important}
html .hw-workspace.hy-app.kl-transplant .hy-composer-tools>.hw-skill-picker{flex:1 1 95px!important;min-width:0!important;width:auto!important;order:1}
html .hw-workspace.hy-app.kl-transplant .hy-composer-tools>.hm-reference-settings{flex:0 0 34px!important;width:34px!important;order:2;padding:0!important}
html .hw-workspace.hy-app.kl-transplant .hy-composer-tools>.hm-reference-settings span{display:none!important}
html .hw-workspace.hy-app.kl-transplant .hy-composer-end>.site-reverse-picker{flex:0 1 120px!important;max-width:120px!important;order:0}
html .hw-workspace.hy-app.kl-transplant .hy-composer-end>.hy-submit{flex:0 0 38px!important;width:38px!important;height:38px!important;order:3;margin:0!important}
html .hw-workspace.hy-app.kl-transplant .hy-composer :is(.hw-control,.site-reverse-picker>button){background:#223035!important;border-color:#35474d!important;min-height:40px!important;font-size:12px!important}
html .hw-workspace.hy-app.kl-transplant .hw-top-actions button{background:#192328!important;color:#d4e7eb!important;border-color:#35474d!important}
}
