/* Home chrome is scoped so the canvas retains its own layout and theme. */
.studio-shell{--bg:#f6f6f7;--surf:#fff;--hole:#eceef0;--line:#e1e3e5;--fg:#232529;--dim:#73777d;
  --acc:#00b5d2;--on-accent:#062c33;--hm-sidebar:204px;--hm-notice:44px;background:var(--bg)}
html[data-theme="dark"] .studio-shell{color-scheme:dark;--bg:#121313;--surf:#1e1f20;--hole:#292a2b;--line:#2b2d2e;
  --fg:#edeeef;--dim:#919497;--ph:#777c80;--acc:#08c3df;--soft:#18353a}
.studio-shell.hm-notice-hidden{--hm-notice:0px}
.studio-shell #app{padding-top:var(--hm-notice)}
.studio-shell #app>header{height:56px;top:var(--hm-notice);margin-left:var(--hm-sidebar);padding:0 28px;background:var(--bg);border:0;z-index:24}
.studio-shell #app>header>.logo{display:none}
.studio-shell #app>header h1{font-size:12px;font-weight:400;color:var(--dim)}
.studio-shell header .chip{padding:4px 10px;border:1px solid var(--line);border-radius:6px;background:var(--surf);font-size:11px}
.studio-shell header .dot{width:6px;height:6px}
.studio-shell #app>.tabbar{display:none}
.hm-mobile-menu{display:none}
#pane-home button,#pane-home input{font:inherit}
#pane-home button,#pane-home a{-webkit-tap-highlight-color:transparent}
#pane-home button{cursor:pointer}
#pane-home button:disabled{cursor:wait;opacity:.55}
#pane-home a{text-decoration:none;color:inherit}
.hm-notice{position:fixed;z-index:40;inset:6px 8px auto;min-height:32px;display:flex;align-items:center;justify-content:center;gap:12px;padding:5px 44px;
  border-radius:6px;background:#075c70;color:#ecfcff;font-size:11px;line-height:1.5}
.hm-notice>.ui-icon{width:14px;height:14px;color:#69e5f3}
.hm-notice button{border:0;border-radius:4px;background:#effcfe;color:#17454e;font-size:10px;display:flex;align-items:center;gap:3px;padding:3px 8px}
.hm-notice button .ui-icon{width:12px;height:12px}
.hm-notice .hm-notice-close{position:absolute;right:8px;top:3px;bottom:3px;width:26px;padding:0;justify-content:center;background:transparent;color:#b6e1e9}
.hm-notice-hidden .hm-notice{display:none}
.hm-sidebar{position:fixed;inset:var(--hm-notice) auto 0 0;width:var(--hm-sidebar);padding:18px 14px 10px;border-right:1px solid var(--line);background:var(--bg);display:flex;flex-direction:column;z-index:30;overflow:auto;scrollbar-width:thin}
.hm-brand{display:flex;align-items:center;gap:8px;margin:2px 8px 28px;width:max-content}
.hm-brand>.ui-icon{width:25px;height:25px;transform:rotate(-8deg)}
.hm-brand b{font-size:23px;font-style:italic;line-height:1.2}.hm-brand b span{font-size:17px;font-weight:550;margin-left:4px}
.hm-new{display:flex;align-items:center;gap:8px;min-height:36px;border:0;border-radius:6px;background:var(--acc);color:#032b32;padding:7px 12px;font-weight:600!important}
.hm-new:hover{filter:brightness(1.08)}
.hm-nav{display:flex;flex-direction:column;gap:4px;margin-top:15px}
.hm-nav a,.hm-nav>button{display:flex;align-items:center;gap:9px;min-height:35px;border:0;border-radius:5px;background:transparent;color:var(--dim)!important;padding:7px 10px;text-align:left;font-size:12px!important}
.hm-nav a:hover,.hm-nav>button:hover,.hm-nav a[aria-current="page"]{background:var(--hole);color:var(--fg)!important}
.hm-nav .ui-icon{width:16px;height:16px}
.hm-nav-badge{margin-left:auto;font-size:9px;color:var(--acc);background:var(--soft);padding:0 5px;border-radius:3px}
.hm-nav-divider{border-top:1px solid var(--line);margin:14px 0 10px}
.hm-nav-label{font-size:10px;color:var(--dim);padding:0 10px 5px}
.hm-sidebar-bottom{margin-top:auto;padding-top:40px}
.hm-resume{width:100%;display:flex;align-items:center;gap:10px;padding:12px 10px;background:var(--soft);color:var(--fg);border:1px solid color-mix(in srgb,var(--acc) 10%,transparent);border-radius:6px;text-align:left}
.hm-resume>span{flex:1;font-size:11px}.hm-resume small{display:block;font-size:10px;color:var(--dim);margin-top:2px}.hm-resume>.ui-icon{color:var(--acc);width:16px;height:16px}
.hm-help{display:flex;align-items:center;gap:7px;width:100%;padding:18px 6px 3px;border:0;background:transparent;color:var(--dim);font-size:11px!important}.hm-help>.ui-icon{width:14px;height:14px}.hm-help>span{margin-left:auto;font-size:9px;opacity:.65}
.hm-main{margin-left:var(--hm-sidebar);padding:0 40px 28px}
.hm-content{max-width:1120px;margin:0 auto}
.hm-hero{position:relative;height:180px;overflow:hidden;border-radius:8px;background:#78612d;color:#fff;isolation:isolate}
.hm-hero>img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;object-position:center;z-index:-2}
.hm-hero::after{content:"";position:absolute;inset:0;background:#44260028;z-index:-1}
.hm-hero-copy{position:absolute;left:38px;top:23px;text-shadow:0 2px 14px #39240888}
.hm-hero-kicker{font-size:10px;font-weight:600;display:flex;align-items:center;gap:10px}.hm-hero-kicker i{width:1px;height:10px;background:#ffffff88}
.hm-hero h2{font-size:42px;font-weight:750;line-height:1.2;margin:10px 0 6px}
.hm-hero p{font-size:15px;margin:0}
.hm-hero-cta{position:absolute;right:30px;bottom:28px;display:flex;align-items:center;gap:12px;border:1px solid #ffffff70;background:#ffffffec;color:#4c361b;padding:8px 14px;border-radius:5px;font-size:12px!important}
.hm-hero-cta:hover{background:#fff}.hm-hero-note{position:absolute;right:31px;top:23px;font-size:10px;opacity:.85}
.hm-launcher{display:grid;grid-template-columns:2fr 3fr;gap:10px;margin-top:18px}
.hm-canvas{position:relative;min-height:160px;overflow:hidden;display:flex;align-items:center;justify-content:center;flex-direction:column;gap:9px;border:1px solid var(--line);border-radius:8px;background-color:var(--surf);background-image:radial-gradient(var(--line) 1px,transparent 1px);background-size:16px 16px;color:var(--fg);isolation:isolate}
.hm-canvas:hover{border-color:var(--dim)}.hm-canvas b{font-size:13px;font-weight:500}.hm-canvas small{font-size:10px;color:var(--dim)}
.hm-canvas-plus{display:grid;place-items:center;width:64px;height:39px;border:1px solid #dedee1;border-radius:8px;background:#f6f6f7;color:#141515;box-shadow:0 3px 16px #00000018}.hm-canvas-plus .ui-icon{width:25px;height:25px}
.hm-canvas-lines{position:absolute;inset:0;z-index:-1;overflow:hidden}.hm-canvas-lines::before,.hm-canvas-lines::after{content:"";position:absolute;top:28px;width:54%;height:100px;border:1px solid var(--line);border-radius:50%}.hm-canvas-lines::before{left:-20%}.hm-canvas-lines::after{right:-20%}
.hm-tools{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:9px}
.hm-tools>button{border:1px solid transparent;border-radius:7px;background:var(--surf);color:var(--fg);text-align:left;padding:11px 13px;display:flex;flex-direction:column;gap:8px;justify-content:center}
.hm-tools>button:hover{border-color:var(--line);background:var(--hole)}
.hm-tool-icon{display:grid;place-items:center;width:27px;height:27px;background:var(--hole);border-radius:5px}.hm-tool-icon .ui-icon{width:17px;height:17px}
.hm-tool-icon.cyan{color:#69bed1}.hm-tool-icon.pink{color:#d39fb7}.hm-tool-icon.green{color:#90c6a5}.hm-tool-icon.gold{color:#d9b67a}.hm-tool-icon.lilac{color:#b5a8d6}.hm-tool-icon.coral{color:#d3a092}
.hm-tools>button>span:last-child{font-size:11px;display:flex;align-items:center;gap:6px;flex-wrap:wrap}.hm-tools small{font-size:9px;color:var(--dim);white-space:nowrap}
.hm-section-heading{display:flex;align-items:center;gap:14px;margin:22px 0 12px;min-height:26px}
.hm-section-heading h2{font-size:15px;line-height:1.4;margin:0;font-weight:600;flex:1}
.hm-section-heading h2>span{font-size:12px;font-weight:450;color:var(--dim);margin-left:8px}
.hm-section-heading>a{display:flex;align-items:center;gap:4px;font-size:10px;color:var(--dim)!important}.hm-section-heading>a:hover{color:var(--fg)!important}.hm-section-heading>a .ui-icon{width:12px;height:12px}
.hm-project-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px}
.hm-project{display:flex;align-items:center;gap:11px;height:72px;border:1px solid var(--line);border-radius:8px;padding:4px;background:transparent;color:var(--fg);text-align:left;overflow:hidden}
.hm-project:hover{background:var(--surf);border-color:var(--dim)}
.hm-project-cover{width:68px;height:62px;flex:0 0 68px;display:grid;place-items:center;border-radius:5px;background:var(--surf);color:var(--dim);overflow:hidden}.hm-project-cover img{width:100%;height:100%;object-fit:cover}.hm-project-cover>.ui-icon{width:19px;height:19px;opacity:.6}
.hm-project-text{display:flex;flex-direction:column;gap:4px;overflow:hidden}.hm-project-text b{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:11px;font-weight:550}.hm-project-text time{font-size:10px;color:var(--dim)}
.hm-empty{min-height:76px;display:flex;align-items:center;justify-content:center;gap:12px;color:var(--dim);font-size:12px;padding:18px 12px;border:1px dashed var(--line);border-radius:6px}.hm-empty .mini{font-size:11px}.hm-empty>span{overflow-wrap:anywhere}
.hm-idea{margin-top:22px;padding:22px 0 20px;background:var(--surf);border-radius:0}
#hm-idea-form{display:flex;align-items:center;gap:10px;width:min(560px,calc(100% - 40px));margin:auto;min-height:42px;border:1px solid var(--line);border-radius:24px;background:var(--hole);padding:5px 7px 5px 14px;color:var(--dim)}
#hm-idea-form:focus-within{border-color:var(--dim)}
#hm-prompt{flex:1;border:0;border-radius:0;background:transparent;color:var(--fg);outline:none;font-size:11px!important;width:100%;height:28px;padding:0}
#hm-prompt::placeholder{color:var(--dim)}
#hm-idea-form>button{width:30px;height:30px;flex:0 0 30px;border:0;border-radius:50%;display:grid;place-items:center;background:var(--surf);color:var(--dim);padding:0}
#hm-idea-form:has(input:valid)>button{background:var(--acc);color:#06313a}
.hm-idea-presets{display:flex;justify-content:center;gap:8px;margin-top:12px;flex-wrap:wrap;padding:0 14px}
.hm-idea-presets>button{display:flex;align-items:center;gap:5px;min-height:29px;border:1px solid var(--line);border-radius:16px;padding:2px 8px 2px 3px;background:transparent;color:var(--fg);font-size:10px!important}
.hm-idea-presets>button:hover{background:var(--hole)}.hm-idea-presets img{width:24px;height:24px;object-fit:cover;border-radius:50%}.hm-idea-presets small{color:var(--dim);font-size:9px}
.hm-discover{margin-top:28px}.hm-discover .hm-section-heading{margin-top:0}.hm-curated{color:var(--dim);font-size:10px}
.hm-discover-toolbar{display:flex;align-items:center;justify-content:space-between;gap:20px;margin-bottom:17px}
.hm-categories{display:flex;gap:8px;flex-wrap:wrap}
.hm-categories>button{border:0;border-radius:20px;padding:5px 12px;background:transparent;color:var(--dim);font-size:10px!important;min-height:28px}.hm-categories>button:hover{color:var(--fg)}.hm-categories>button[aria-pressed="true"]{background:var(--hole);color:var(--fg)}
.hm-search{display:flex;align-items:center;gap:8px;width:185px;flex-shrink:0;border:1px solid var(--line);border-radius:18px;min-height:30px;padding:4px 12px;color:var(--dim)}
.hm-search input{width:100%;background:transparent;border:0;outline:none;color:var(--fg);font-size:10px!important;padding:0;border-radius:0;box-shadow:none}.hm-search .ui-icon{width:14px;height:14px}.hm-search:focus-within{border-color:var(--dim)}
.hm-show-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:24px 13px}
.hm-show{border:0;background:transparent;color:var(--fg);padding:0;text-align:left;display:block;width:100%}
.hm-show-art{position:relative;display:block;aspect-ratio:16/10;border-radius:7px;overflow:hidden;background:var(--surf)}
.hm-show-art>img{width:100%;height:100%;object-fit:cover;display:block;transition:transform .2s}
.hm-show:hover .hm-show-art>img{transform:scale(1.035)}
.hm-show-tag{position:absolute;top:9px;left:9px;padding:2px 6px;border-radius:3px;background:#151719a8;color:#fff;font-size:9px;backdrop-filter:blur(5px)}
.hm-show-arrow{position:absolute;right:10px;bottom:10px;border-radius:50%;width:26px;height:26px;display:grid;place-items:center;background:#11111190;color:#fff;opacity:0;transition:opacity .15s}.hm-show:hover .hm-show-arrow,.hm-show:focus-visible .hm-show-arrow{opacity:1}
.hm-show-title{display:flex;align-items:center;gap:6px;margin-top:9px;font-size:11px;font-weight:550}.hm-show-title::before{content:"";width:6px;height:6px;flex:0 0 6px;background:#b9a5d8;border-radius:50%}.hm-show:nth-child(4n+2) .hm-show-title::before{background:#e7a76a}.hm-show:nth-child(4n+3) .hm-show-title::before{background:#8ac5a7}.hm-show:nth-child(4n+4) .hm-show-title::before{background:#78b8d2}
.hm-show-caption{display:block;font-size:10px;color:var(--dim);padding-left:12px;margin-top:2px}
.hm-footer{display:flex;align-items:center;justify-content:space-between;gap:12px;color:var(--dim);font-size:10px;border-top:1px solid var(--line);margin-top:34px;padding-top:18px;opacity:.65}
.hm-content[data-view="projects"] .hm-project-grid{grid-template-columns:repeat(3,minmax(0,1fr))}.hm-content[data-view="projects"] .hm-project{height:90px}.hm-content[data-view="projects"] .hm-project-cover{width:90px;height:80px;flex-basis:90px}
.hm-content[data-view="projects"] .hm-section-heading,.hm-content[data-view="explore"] .hm-section-heading{margin-top:20px}
.hm-preview-image{display:block;width:100%;max-height:330px;aspect-ratio:16/9;object-fit:cover;border-radius:5px;margin-bottom:18px}.hm-preview-prompt{font-size:13px;line-height:1.9;color:var(--dim);white-space:pre-wrap;overflow-wrap:anywhere}
.node-canvas-mode .hm-workspace-home{background:var(--surf);border:1px solid var(--line);width:36px;height:36px;flex:0 0 36px}
@media(min-width:1800px){.hm-main{padding-top:2px}.hm-hero{height:180px}}
@media(max-width:1180px){.studio-shell{--hm-sidebar:180px}.hm-main{padding:0 26px 26px}.hm-tools>button{padding:10px}.hm-tools small{display:none}.hm-project-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.hm-show-grid{grid-template-columns:repeat(3,minmax(0,1fr))}.hm-discover-toolbar{gap:10px}.hm-categories{gap:2px}.hm-categories>button{padding:5px 9px}.hm-search{width:160px}}
@media(max-width:860px){.studio-shell{--hm-sidebar:164px}.hm-main{padding:0 20px 24px}.hm-hero-copy{left:24px}.hm-hero h2{font-size:36px}.hm-hero-cta{right:20px;font-size:11px!important;bottom:24px}.hm-hero-note{display:none}.hm-launcher{grid-template-columns:1fr}.hm-canvas{min-height:120px}.hm-tools{grid-template-columns:repeat(3,minmax(0,1fr))}.hm-tools>button{min-height:78px}.hm-show-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.hm-discover-toolbar{flex-wrap:wrap}.hm-search{width:100%}.hm-section-heading .hm-project-search{width:160px}.hm-content[data-view="projects"] .hm-project-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:600px){.studio-shell{--hm-sidebar:0px}.studio-shell #app>header{padding:0 14px;gap:8px;height:52px}.studio-shell #app>header h1{font-size:11px}.studio-shell .hm-mobile-menu{display:grid}.studio-shell header .chip{padding:3px 6px;font-size:10px}.studio-shell header .iconbtn{width:30px}.hm-main{padding:0 16px 24px}.hm-sidebar{width:210px;transform:translateX(-100%);transition:transform .18s}.hm-menu-open .hm-sidebar{transform:none}.hm-scrim{position:fixed;inset:var(--hm-notice) 0 0;z-index:29;background:#00000070;border:0}.hm-notice{gap:7px;inset:5px 6px auto;padding:5px 32px 5px 10px;font-size:9px;min-height:32px}.hm-notice>.ui-icon,.hm-notice-extra{display:none}.hm-notice button{font-size:9px}.hm-hero{height:164px}.hm-hero-copy{left:20px;top:21px}.hm-hero-kicker{font-size:8px}.hm-hero h2{font-size:31px;margin:12px 0 7px}.hm-hero p{font-size:12px}.hm-hero-cta{right:14px;bottom:15px;padding:5px 8px;gap:5px;font-size:10px!important}.hm-hero-cta .ui-icon{width:13px;height:13px}.hm-launcher{margin-top:12px;gap:8px}.hm-canvas{min-height:104px;gap:5px}.hm-canvas small{display:none}.hm-canvas-plus{height:35px;width:56px}.hm-tools{gap:7px}.hm-tools>button{min-height:72px;padding:9px 10px;gap:6px}.hm-tools>button>span:last-child{font-size:10px}.hm-tool-icon{width:25px;height:25px}.hm-section-heading{margin-top:21px;margin-bottom:10px}.hm-section-heading h2{font-size:14px}.hm-project-grid{gap:8px}.hm-project{gap:7px;height:62px;padding:3px}.hm-project-cover{width:45px;height:54px;flex-basis:45px}.hm-project-text b{font-size:10px}.hm-project-text time{font-size:9px}.hm-idea{margin-top:18px;padding:17px 0}#hm-idea-form{width:calc(100% - 24px);gap:6px;padding-left:10px}#hm-idea-form>.ui-icon{width:14px;height:14px}#hm-prompt{font-size:10px!important}.hm-idea-presets{gap:6px}.hm-idea-presets small{display:none}.hm-idea-presets>button{font-size:9px!important}.hm-idea-presets img{width:20px;height:20px}.hm-discover{margin-top:25px}.hm-categories{gap:3px}.hm-categories>button{font-size:9px!important;padding:5px 8px}.hm-show-grid{gap:19px 10px}.hm-show-title{font-size:11px}.hm-show-caption{font-size:9px}.hm-empty{flex-wrap:wrap;font-size:11px}.hm-content[data-view="projects"] .hm-project-grid{grid-template-columns:1fr}.hm-section-heading .hm-project-search{width:150px}.hm-footer{font-size:9px}.hm-workspace-home{width:30px!important;flex-basis:30px!important}}

/* 项目列表在加载 / 点开某个项目时的反馈（以前只挂了 aria-busy，看不出来） */
#hm-projects[aria-busy="true"] .hm-project:not(.hm-opening){opacity:.55;transition:opacity .2s}
.hm-project.hm-opening{position:relative;outline:1px solid var(--acc);outline-offset:-1px}
.hm-project.hm-opening::after{content:"";position:absolute;top:10px;right:10px;width:14px;height:14px;
  border:2px solid var(--line);border-top-color:var(--acc);border-radius:50%;animation:sp 1s linear infinite}
