:root{--gold:#dac48b;--text:#ebe1c8;--muted:#c1b69a;--rule:#b7a67470;--surface:#121912d8;--focus:#b2a06b55}
*{box-sizing:border-box}html,body{margin:0;min-height:100%;font-family:Georgia,"Microsoft YaHei",serif;color:var(--text);letter-spacing:0}button,input,textarea{font:inherit}button{cursor:pointer}a{color:inherit;text-decoration:none}.world{height:100dvh;min-height:650px;position:relative;overflow:hidden;background:linear-gradient(90deg,#0b100ee9 0%,#111611c5 36%,#11161146 70%),linear-gradient(0deg,#0b100ced,transparent 51%),url('/portal/static/erdtree.webp') center/cover no-repeat #101610}.world:before{content:"";position:absolute;inset:0;box-shadow:inset 0 0 110px #070a08a0;pointer-events:none}.world>*{position:relative;z-index:1}.masthead{height:104px;margin:0 4.5%;border-top:1px solid var(--rule);display:flex;align-items:center;justify-content:space-between}.brand{font-size:13px;letter-spacing:3px;color:var(--gold);white-space:nowrap}.brand-mark{font-size:22px;margin-right:14px}.profile,.theme-trigger{border:0;background:none;color:var(--gold);font-size:13px}.profile:hover,.theme-trigger:hover,.back-link:hover{color:#fff0c5}.eyebrow,.kicker{font-size:12px;letter-spacing:3px;color:var(--gold)}.gold-rule{height:1px;background:linear-gradient(90deg,var(--gold),transparent)}.home-main{position:absolute;left:4.5%;top:18%;width:min(480px,43vw)}h1{font-weight:400;line-height:1.25}.home-main h1{font-size:46px;margin:19px 0 21px}.menu{margin-top:24px}.menu a,.menu button{width:100%;height:62px;padding:0 23px;display:flex;justify-content:space-between;align-items:center;color:var(--text);background:none;border:0;border-bottom:1px solid var(--rule);font-size:19px;text-align:left}.menu small{font-size:12px;color:var(--gold)}.focus-row,.menu a:hover,.menu button:hover{background:linear-gradient(90deg,var(--focus),transparent)!important;border-top:1px solid var(--gold)!important;border-bottom:1px solid var(--gold)!important;color:#fff2c9!important}.menu a:focus-visible,.menu button:focus-visible,.theme-menu button:focus-visible{outline:2px solid #f4de9e;outline-offset:3px}.theme-caption{margin-top:39px;color:var(--muted);font-size:13px}.system-status{position:absolute;right:5.5%;bottom:15%;display:flex;align-items:flex-end;flex-direction:column;gap:12px;text-align:right}.system-status .gold-rule{width:160px}.system-status strong{font-size:18px;font-weight:400}.system-status>span:last-child{font-size:13px;color:var(--muted)}.site-footer{position:absolute;bottom:27px;left:4.5%;right:4.5%;display:flex;justify-content:space-between;align-items:center;color:var(--gold);font-size:12px}.site-footer button{border-bottom:1px solid var(--gold);padding-bottom:6px}.theme-menu{position:absolute;right:4.5%;bottom:65px;width:185px;padding:7px;border:1px solid var(--gold);background:#111810f5;box-shadow:0 15px 32px #0008;z-index:5}.theme-menu[hidden]{display:none}.theme-menu button{width:100%;padding:11px;border:0;background:transparent;color:var(--text);text-align:left;font-size:13px}.theme-menu button:hover{background:var(--focus)}.login-world{background-image:linear-gradient(90deg,#0b100ef5 0%,#111611de 40%,#11161142 100%),url('/portal/static/erdtree.webp')}.login-panel{position:absolute;left:6%;top:24%;width:min(430px,85%)}.login-panel h1{font-size:48px;margin:19px 0 22px}.login-panel form{margin-top:32px}.login-panel label{display:block;color:var(--gold);font-size:13px;letter-spacing:2px;margin:21px 0 9px}.login-panel input{display:block;width:100%;height:51px;padding:0 16px;border:1px solid #b7a6748c;border-radius:0;background:#101710d9;color:var(--text);outline:none}.login-panel input:focus{border-color:var(--gold);box-shadow:0 0 0 1px var(--gold)}.login-panel button{margin-top:30px;width:100%;height:56px;display:flex;align-items:center;justify-content:space-between;padding:0 20px;border-left:0;border-right:0;color:var(--text)}.error{min-height:22px;color:#f0aba3;font-size:13px}.chat-world{background-image:linear-gradient(90deg,#0b100df7 0%,#0d120ff2 25%,#0d120fd1 65%,#0d120f8c 100%),url('/portal/static/erdtree.webp')}.chat-head{height:96px}.chat-head-actions{display:flex;gap:25px;align-items:center}.model-name{font-size:12px;letter-spacing:2px;color:var(--gold)}.chat-layout{height:calc(100% - 96px);display:flex;padding:35px 4.5% 22px;gap:55px}.history{width:245px;flex:none;border-right:1px solid var(--rule);position:relative;padding-right:27px}.new-chat{height:49px;width:100%;margin-top:25px;padding:0 14px;display:flex;align-items:center;justify-content:space-between;border-left:0;border-right:0;color:var(--text);font-size:14px}.conversation-list{margin-top:34px;max-height:calc(100% - 180px);overflow:auto}.conversation-list button{display:block;width:100%;padding:9px 12px;margin:3px 0;border:0;border-left:2px solid transparent;background:transparent;color:var(--muted);font-size:13px;text-align:left;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.conversation-list button.active{color:var(--text);border-left-color:var(--gold)}.conversation-list button:hover{background:var(--focus)}.back-link{position:absolute;bottom:8px;color:var(--muted);font-size:13px}.conversation{flex:1;min-width:0;max-width:900px;position:relative;display:flex;flex-direction:column}.conversation-header{border-bottom:1px solid var(--rule);padding:8px 0 20px}.messages{flex:1;min-height:0;overflow-y:auto;padding:25px 5px 17px 0;scrollbar-color:#a89961 transparent}.empty-state{position:absolute;top:30%;left:0;right:0;text-align:center;color:var(--gold)}.empty-state span{font-size:28px}.empty-state h1{font-size:29px}.message{max-width:760px;margin-bottom:35px}.message-label{font-size:12px;letter-spacing:2px;color:var(--gold);margin-bottom:16px}.message-body{font-size:16px;line-height:1.85;white-space:pre-wrap;overflow-wrap:anywhere}.message.user .message-body{border-left:1px solid var(--gold);padding-left:19px}.message.assistant .message-body{color:var(--text)}.composer{height:86px;flex:none;display:flex;align-items:center;padding:0 23px;background:var(--surface);border-top:1px solid var(--gold);border-bottom:1px solid var(--gold);clip-path:polygon(0 0,99% 0,100% 50%,99% 100%,0 100%,1% 50%)}.composer textarea{flex:1;min-width:0;resize:none;border:0;background:transparent;outline:none;color:var(--text);font-size:14px;padding:14px 5px}.composer textarea::placeholder{color:var(--muted)}.composer button{flex:none;border:0;background:none;color:var(--gold);font-size:13px;padding:12px}.composer button:disabled{opacity:.45;cursor:wait}.disclaimer{margin:9px 0 0;text-align:center;color:#abb19c;font-size:10px}.chat-world .theme-menu{right:4.5%;top:82px;bottom:auto}.mobile-menu{display:none}.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}body[data-theme="control"]{--gold:#8de6c7;--text:#e4f3ec;--muted:#acd3c6;--rule:#80bca475;--surface:#142522e8;--focus:#65b99d4c}body[data-theme="control"] .world{background-image:linear-gradient(90deg,#0b1718f2,#102624df 57%,#10262491),url('/portal/static/erdtree.webp')}
@media(max-width:700px){.world{min-height:0;background-image:linear-gradient(0deg,#0a0f0dec 0%,#0b100dd9 46%,#0b100d57 83%),url('/portal/static/erdtree.webp');background-size:cover;background-position:56% center}.masthead{height:64px;margin:0;padding:0 20px;border-top:0;border-bottom:1px solid var(--rule);background:#0a0f0d74}.brand{font-size:16px}.brand-mark{font-size:20px;margin-right:5px}.kicker{display:none}.home-main{top:24%;left:25px;right:25px;width:auto}.home-main h1{font-size:30px;margin:13px 0 27px}.home-main .gold-rule{display:none}.menu{margin-top:0}.menu a,.menu button{font-size:17px;height:62px;padding:0 16px}.menu a:first-child{border-top:1px solid var(--rule)}.theme-caption{display:none}.system-status{left:25px;right:auto;bottom:18%;font-size:11px}.system-status .eyebrow,.system-status .gold-rule,.system-status strong{display:none}.site-footer{left:25px;right:25px;bottom:21px;border-top:1px solid var(--rule);padding-top:12px}.site-footer>span{font-size:12px}.theme-menu{right:25px;bottom:60px}.login-world{background-position:56% center}.login-panel{left:25px;right:25px;top:21%;width:auto}.login-panel h1{font-size:35px}.login-panel form{margin-top:24px}.login-panel input{height:52px}.chat-world{background-image:linear-gradient(0deg,#0a0e0df0,#0a0e0dcf 70%,#0a0e0da7),url('/portal/static/erdtree.webp')}.chat-head{height:60px;gap:10px}.mobile-menu{display:block}.icon-button{border:0;background:none;color:var(--gold);font-size:23px;padding:5px}.desktop-only{display:none}.chat-head-actions{gap:0}.chat-head-actions .model-name{display:none}.chat-layout{height:calc(100% - 60px);padding:0;gap:0}.history{position:absolute;top:60px;bottom:0;left:0;width:min(85vw,310px);z-index:5;background:#101810f7;padding:27px 24px;transform:translateX(-105%);transition:transform .18s ease;border-right:1px solid var(--gold)}.history.open{transform:translateX(0)}.conversation{max-width:none;padding:0 17px 7px}.conversation-header{height:51px;padding:17px 0}.messages{padding:25px 4px 12px}.message{margin-bottom:26px}.message-body{font-size:14px;line-height:1.75}.message-label{font-size:11px;margin-bottom:10px}.composer{height:72px;padding:0 20px}.composer textarea{font-size:13px}.composer button{font-size:13px;padding:8px 0 8px 10px}.disclaimer{font-size:9px;margin:7px 0}.chat-world .theme-menu{right:14px;top:55px}}
@media(max-height:680px){.home-main{top:16%}.system-status{display:none}.login-panel{top:15%}}
@media(prefers-reduced-motion:reduce){.history{transition:none}}
.cinema-page{height:100dvh;overflow:hidden;background:#0b100e;display:flex;flex-direction:column}.cinema-header{height:48px;flex:none;display:flex;align-items:center;justify-content:space-between;padding:0 14px;border-bottom:1px solid var(--rule);color:var(--gold)}.cinema-header a,.cinema-header button{display:inline-flex;align-items:center;justify-content:center;width:44px;height:44px;border:0;background:none;color:var(--gold);font-size:26px}.cinema-header span{font-size:15px}.cinema-header div{display:flex}.cinema-screen{flex:1;min-height:0}.cinema-screen iframe{display:block;width:100%;height:100%;border:0;background:#101010}.cinema-page:fullscreen .cinema-header{display:none}
@media(max-width:700px){.home-main{top:17%}.system-status{display:none}.menu a,.menu button{height:55px}.home-main h1{margin-bottom:20px}}
