/* Progressive disclosure shared across the research workspace. */
.overflow-actions,.workspace-settings{position:relative;display:inline-block;flex:0 0 auto}
.overflow-actions>summary,.workspace-settings>summary{display:flex;align-items:center;justify-content:center;list-style:none;cursor:pointer;min-width:32px;height:32px;padding:0 9px;border:1px solid transparent;border-radius:8px;color:var(--muted);font-size:20px;line-height:1}
.overflow-actions>summary::-webkit-details-marker,.workspace-settings>summary::-webkit-details-marker{display:none}
.overflow-actions>summary:hover,.overflow-actions[open]>summary,.workspace-settings>summary:hover,.workspace-settings[open]>summary{background:var(--hi);border-color:var(--line);color:var(--text)}
.overflow-items,.workspace-settings>div{position:absolute;right:0;top:calc(100% + 7px);z-index:45;min-width:188px;max-width:280px;padding:7px;background:var(--panel);border:1px solid var(--line);border-radius:12px;box-shadow:0 12px 40px #0002;text-align:left}
#app .overflow-items button{display:block;width:100%;padding:10px 12px;text-align:left;border:0;background:transparent;color:var(--text);border-radius:7px;font-size:12px;white-space:normal;line-height:1.6}
#app .overflow-items button:hover{background:var(--hi);filter:none}
.workspace-settings>summary .ui-icon{width:18px;height:18px}
.workspace-settings>div{padding:16px;min-width:215px}
.workspace-settings .theme-control{display:block}
.workspace-settings .theme-control>span{display:block;margin-bottom:9px;font-size:11px}
.workspace-settings .theme-control select{width:100%;max-width:none;font-size:12px}
.account-settings{width:100%}.account-settings>summary{justify-content:space-between;gap:10px;font-size:12px;padding:8px;height:auto}.account-settings>summary>span{font-size:12px}
.account-settings>div{top:auto;bottom:calc(100% + 10px);right:auto;left:0;min-width:175px}.account-settings>div p{font-size:11px}.account-settings>div button{width:100%;font-size:12px}
.compact-category{display:flex;align-items:center;gap:12px;margin:0;color:var(--muted);font-size:12px}
.compact-category select{width:auto;max-width:100%;min-width:170px;font-size:12px;padding:9px 12px}
#app .toolbar>select{width:auto;min-width:120px;font-size:12px}
#app .reportnav{display:block;margin:22px 0}
#app .reportnav .compact-category select{max-width:calc(100% - 90px)}
#app .document>.overflow-actions{margin-left:0}
#app .actions:empty{display:none}
.overflow-actions>summary:focus-visible,.workspace-settings>summary:focus-visible{outline:2px solid var(--gold-border);outline-offset:3px}
/* A genuinely lit, depth-tested 3D scene with accessible SVG project labels. */
.atlas-real-space{background:radial-gradient(ellipse at 34% 62%,#588aff0c,transparent 48%),radial-gradient(ellipse at 69% 45%,#a879f50b,transparent 46%);border-color:#8ca9df26;box-shadow:inset 0 1px #dbe8ff12;isolation:isolate}
.atlas-real-space .atlas-scene-head{padding:26px 30px 0;align-items:flex-start}
.atlas-real-space .atlas-scene-head h2{font-size:22px;font-weight:500;letter-spacing:-.5px;margin:8px 0 0}
.atlas-universe{position:relative;aspect-ratio:2/1;width:100%;min-height:200px;touch-action:pan-y;cursor:grab}
.atlas-universe:active{cursor:grabbing}
.atlas-universe canvas{display:block;width:100%;height:100%;border-radius:0;background:transparent;outline-offset:-4px}
.atlas-real-space .atlas-labels{position:absolute;inset:0;display:block;width:100%;height:100%;max-height:none;margin:0;pointer-events:none;overflow:visible;cursor:inherit}
.spatial-label{cursor:pointer;pointer-events:auto;outline:none}
.spatial-label-bg{fill:var(--panel);fill-opacity:.28;stroke:var(--node-accent,#8bbaff);stroke-opacity:.24;stroke-width:.8;transition:fill-opacity .2s,stroke-opacity .2s}
.spatial-label:hover .spatial-label-bg,.spatial-label:focus .spatial-label-bg{stroke:var(--node-accent,#8bbaff);stroke-width:1.2;stroke-opacity:.75;fill-opacity:.52}
.spatial-leader{stroke:var(--node-accent,#8bbaff);stroke-opacity:.36;stroke-width:.7}
.spatial-title{fill:var(--text);font:500 12px MiSans,sans-serif}
.spatial-subtitle{fill:var(--muted);font:9px MiSans,sans-serif}
.spatial-hub-title{fill:#9fbce7;font:9px MiSans,sans-serif;letter-spacing:3px;pointer-events:none}
.atlas-real-space .atlas-scene-foot{position:relative;margin-top:-10px;padding-bottom:22px;z-index:1}
.space-fallback.atlas-universe,.space-fallback .atlas-universe{background:radial-gradient(circle at 50% 50%,#749bff22,transparent 18%),radial-gradient(ellipse at 50% 55%,transparent 40%,#b298ff22 40.2%,transparent 40.5%)}
.space-unavailable:after{content:'三维渲染暂不可用，可通过下方列表进入项目';position:absolute;bottom:20px;left:20px;color:var(--muted);font-size:11px}
/* The public entrance contains atmosphere and a single route into sign-in. */
.star-landing{position:relative;min-height:100svh;overflow:hidden;background:#080a0f;color:#f4eee2;isolation:isolate}
.star-landing>canvas{position:absolute;inset:0;width:100%;height:100%;z-index:-3;background:radial-gradient(ellipse at 64% 50%,#5c412329,transparent 48%),radial-gradient(ellipse at 90% 90%,#58412740,transparent 48%),#080a0f}
.landing-shade{position:absolute;inset:0;z-index:-1;pointer-events:none;background:linear-gradient(90deg,#080a0fdd 0%,#080a0f82 38%,transparent 75%),linear-gradient(0deg,#080a0fee,transparent 30%,transparent 80%,#080a0f88)}
.landing-nav{display:flex;align-items:center;justify-content:space-between;gap:20px;margin:0 auto;padding:36px 5.5vw;max-width:1700px}
.landing-brand{font-size:25px;font-weight:500;color:#e3c68f;text-decoration:none;letter-spacing:-1px;display:flex;align-items:center;gap:9px}
.landing-fin{font-size:32px;line-height:1}
.landing-nav>span{font-size:9px;letter-spacing:3px;color:#ae9c7f}
.landing-hero{position:relative;width:min(1280px,100%);min-height:calc(100svh - 210px);padding:65px 6vw 85px;margin:0 auto;display:flex;flex-direction:column;align-items:flex-start;justify-content:center}
.landing-kicker{font-size:12px;color:#bcab8d;letter-spacing:4px;margin-bottom:26px}
.star-landing .landing-hero h1{font-size:clamp(42px,5.5vw,78px);font-weight:400;line-height:1.3;letter-spacing:2px;color:#f4eee2;margin:0 0 24px}
.landing-hero h1>span{color:#c8a66c}
.star-landing .landing-hero p{font-size:14px;line-height:2.1;letter-spacing:1px;color:#b6b0a6;margin:0 0 38px}
#enter-workspace{display:flex;align-items:center;justify-content:space-between;gap:40px;padding:14px 20px;border:1px solid #b99b63;border-radius:6px;background:linear-gradient(135deg,#dbc28e,#bfa06a);color:#201b12;box-shadow:0 0 35px #bfa06a16;font-size:13px;transition:box-shadow .2s}
#enter-workspace:hover{filter:none;box-shadow:0 0 35px #bfa06a3b}#enter-workspace>span{font-size:19px;line-height:1}
.landing-footer{position:relative;display:flex;justify-content:space-between;gap:15px;padding:25px 5.5vw;max-width:1700px;margin:0 auto;font-size:9px;letter-spacing:2px;color:#8f877a}
#login-gate{width:min(420px,calc(100vw - 36px));max-height:calc(100dvh - 40px);overflow:auto;padding:38px;background:#13151a;color:#f3ebdd;border:1px solid #4a402f;border-radius:16px;box-shadow:0 30px 120px #0008}
#login-gate::backdrop{background:#05060ba6;backdrop-filter:blur(9px)}
#login-gate #gate-close{position:absolute;right:16px;top:14px;background:transparent;border:0;font-size:23px;color:#a99e8b;padding:0;width:28px;height:28px;line-height:1}
#login-gate h2{font-size:26px;color:#f3ebdd;font-weight:500;margin:8px 0 10px}
#login-gate .eyebrow{font-size:9px;letter-spacing:2px;color:#b7a079}
#login-gate p.muted{color:#9f998f;margin-bottom:26px}
#login-gate form>div{margin-bottom:19px}#login-gate label{font-size:12px;color:#b1a99a;margin:0 0 8px}
#login-gate input{background:#1b1d23;border:1px solid #37342d;color:#f4eee2;font-size:14px;padding:12px}
#login-gate input:focus{outline:1px solid #bfa06a}
#login-gate form>button{width:100%;font-size:13px;background:#cfb17c;color:#211c13;margin-top:5px}
#login-gate .landing-access-note{color:#827c70;text-align:center;font-size:10px;margin:23px 0 0}
#login-gate .error{font-size:12px;color:#e1a296}
@media(max-width:760px){
 .landing-nav{padding:26px 25px}.landing-brand{font-size:22px}.landing-nav>span{display:none}
 .landing-hero{padding:70px 30px 100px;min-height:calc(100svh - 160px)}.landing-kicker{font-size:10px;letter-spacing:3px;margin-bottom:22px}
 .star-landing .landing-hero h1{font-size:47px;letter-spacing:0;line-height:1.3}.star-landing .landing-hero p{font-size:12px}
 .landing-shade{background:linear-gradient(90deg,#080a0fb3,#080a0f22),linear-gradient(0deg,#080a0f,transparent 60%)}
 .landing-footer{padding:20px 25px;font-size:8px;letter-spacing:1px}.landing-footer>span:last-child{display:none}
 .atlas-real-space .atlas-scene-head{padding:20px 18px 0}.atlas-real-space .atlas-scene-head h2{font-size:19px}.atlas-real-space .atlas-scene-head .eyebrow{font-size:8px;letter-spacing:2px}
 .atlas-universe{min-height:0;aspect-ratio:1.25;overflow:hidden}.atlas-universe canvas,.atlas-real-space .atlas-labels{width:160%;height:100%;max-width:none;margin-left:-30%}.atlas-real-space .atlas-labels{inset:0}
 .atlas-real-space .atlas-scene-foot{flex-direction:row;padding:0 18px 18px;margin:0;font-size:9px;gap:6px}.atlas-scene-foot .orbit-legend{margin-left:5px}
 #app .toolbar>select{min-width:110px;flex:1}.compact-category{flex-wrap:wrap;gap:8px}.compact-category select{min-width:0;max-width:100%}
 .workspace-settings>div{min-width:195px}.overflow-items{min-width:175px}.account-settings>div{bottom:calc(100% + 8px)}
}
@media(prefers-reduced-motion:reduce){#enter-workspace{transition:none}}
@media(hover:hover){#agent-root .message-actions{opacity:0;transition:opacity .15s}#agent-root .assistant:hover .message-actions,#agent-root .assistant:focus-within .message-actions{opacity:1}}
/* Star ocean entrance: the universe is already in motion. */
.star-landing{background:#030914;color:#edf3f5;min-height:100svh}
.star-landing>canvas{z-index:-2;background:#030914}
.landing-shade{z-index:-1;background:linear-gradient(90deg,#03091488,transparent 65%),linear-gradient(0deg,#030914aa,transparent 22%,transparent 85%,#03091455)}
.landing-nav{max-width:1800px;padding:30px 5vw;gap:35px;position:relative;z-index:2}
.landing-brand{color:#ebd5a6;font-size:25px;white-space:nowrap}.landing-fin{color:#d6b77a}
.landing-links{display:flex;gap:clamp(20px,3vw,55px);margin-left:auto;align-items:center}
.star-landing .landing-links button{background:none;border:0;color:#b8c6d4;font-size:13px;padding:10px 0;border-radius:0;font-weight:400;white-space:nowrap}
.star-landing .landing-links button:hover{color:white;filter:none;box-shadow:0 1px 0 #c4aa77}
.star-landing .landing-signin{background:transparent;border:1px solid #a6b3c538;color:#e5d3b0;font-size:12px;padding:10px 20px;border-radius:4px;white-space:nowrap}
.landing-hero{width:100%;max-width:1600px;min-height:calc(100svh - 192px);padding:50px 9vw 80px;pointer-events:none}
.landing-kicker{color:#97b3c8;font-size:11px;letter-spacing:5px;margin-bottom:25px}
.star-landing .landing-hero h1{font-size:clamp(48px,5.3vw,84px);line-height:1.3;font-weight:400;letter-spacing:5px;color:#f1f4f5;margin-bottom:25px;text-shadow:0 4px 35px #03091455}
.landing-hero h1>span{color:#c9ad72}.star-landing .landing-hero p{color:#a4b5c6;font-size:14px;line-height:2.1;letter-spacing:1px;margin-bottom:34px}
#enter-workspace{pointer-events:auto;min-width:198px;border-radius:5px;background:linear-gradient(115deg,#d6bd88,#b38e50);padding:15px 21px;font-size:14px;font-weight:500;box-shadow:0 4px 35px #c4a36517}
.landing-footer{max-width:1800px;color:#71849b;padding:22px 5vw;font-size:9px;letter-spacing:2px;gap:20px}
#login-gate{background:#0b1422;border-color:#324359}#login-gate input{background:#111e30;border-color:#304056}
@media(max-width:900px){.landing-nav{padding:24px 5vw;gap:20px}.landing-links{gap:20px}.star-landing .landing-links button{font-size:11px}.landing-brand{font-size:22px}.landing-hero{padding-left:7vw}}
@media(max-width:650px){.landing-nav{padding:24px 25px;flex-wrap:wrap;gap:20px}.landing-brand{margin-right:auto}.landing-links{order:3;width:100%;justify-content:space-between;margin:0;gap:10px}.star-landing .landing-signin{padding:8px 15px}.star-landing .landing-links button{font-size:11px}.landing-hero{min-height:calc(100svh - 195px);justify-content:flex-start;padding:45px 28px 160px}.landing-kicker{margin-bottom:20px;font-size:9px}.star-landing .landing-hero h1{font-size:49px;letter-spacing:2px;line-height:1.27;margin-bottom:18px}.star-landing .landing-hero p{font-size:11px;margin-bottom:24px}#enter-workspace{min-width:175px;padding:12px 18px;font-size:12px}.landing-footer{padding:20px 25px;font-size:8px}.landing-shade{background:linear-gradient(180deg,#03091422,transparent 70%,#03091477)}}
/* Override workspace button sizing only inside the public entrance. */
#app .star-landing .landing-links button{background:transparent;border:0;color:#b8c6d4;border-radius:0;padding:10px 0;font-weight:400;font-size:13px;min-width:0}
#app .star-landing .landing-links button:hover{color:#fff;filter:none}
#app .star-landing .landing-signin{background:transparent;border:1px solid #a6b3c538;color:#e5d3b0;padding:10px 20px;font-size:12px;border-radius:4px}
#app #enter-workspace{display:flex;min-width:198px;background:linear-gradient(115deg,#d6bd88,#b38e50);color:#201b12;border:1px solid #b99b63;border-radius:5px;padding:15px 21px;font-size:14px;font-weight:500}
@media(max-width:900px){#app .star-landing .landing-links button{font-size:11px}}
@media(max-width:650px){.landing-links{gap:10px}#app .star-landing .landing-signin{padding:8px 15px}#app #enter-workspace{min-width:175px;padding:12px 18px;font-size:12px}}

/* Cool, translucent galaxy palette is local to the portfolio scene. */
.atlas-real-space .eyebrow{color:#8eaed8}
.atlas-real-space .orbit-legend{background:#61aaff;box-shadow:0 0 9px #61aaff40}
.atlas-real-space .orbit-legend.mid{background:#ab80f5;box-shadow:0 0 9px #ab80f540}
.atlas-real-space .orbit-legend.post{background:#57d8c7;box-shadow:0 0 9px #57d8c740}
