/* Classic portal, restored from the retained pre-redesign page and CSS.
   System fonts only; no framework runtime, decorative animation or backdrop filters. */
:root{color-scheme:dark;--ink:#080b0d;--panel:#101519;--line:#293138;--muted:#849099;--white:#f1f4f5;--cyan:#43bfe8;--amber:#f4a62a}
*{box-sizing:border-box}
html,body{min-width:320px;min-height:100%;margin:0;background:var(--ink);color:var(--white)}
body{font:14px/1.6 "Segoe UI","Microsoft YaHei UI","Noto Sans SC",sans-serif}
a{color:inherit;text-decoration:none}
[hidden]{display:none!important}
:focus-visible{outline:2px solid var(--cyan);outline-offset:3px}
.portal-shell{min-height:100vh}
.portal-header{display:grid;grid-template-columns:minmax(230px,1fr) auto minmax(230px,1fr);height:74px;position:sticky;top:0;z-index:20;background:#090c0e;border-bottom:1px solid var(--line)}
.brand{display:flex;align-items:center;gap:13px;width:fit-content;padding:0 25px}
.brand-mark{display:grid;grid-template-columns:repeat(3,1fr);gap:3px;flex:none;width:31px;height:31px;padding:4px;border:2px solid var(--cyan);transform:skew(-8deg)}
.brand-mark i{display:block;background:var(--cyan)}
.brand strong{display:block;font-size:13px;letter-spacing:.14em}
.brand small{display:block;margin-top:2px;font:10px/1 Consolas,monospace;color:var(--muted);letter-spacing:.18em}
.tool-switcher{display:flex;align-items:stretch}
.tool-switcher a{display:flex;align-items:center;justify-content:center;min-width:126px;padding:0 20px;border-left:1px solid #20282e;color:#9ca6ad;font-weight:600;position:relative}
.tool-switcher a:last-child{border-right:1px solid #20282e}
.tool-switcher a:hover,.tool-switcher a.active{color:#fff;background:#161c20}
.tool-switcher a.active:after{content:"";position:absolute;bottom:0;left:17px;right:17px;height:3px;background:#fff}
.tool-switcher a.active.sleep:after{background:var(--cyan)}
.tool-switcher a.active.route:after{background:var(--amber)}
.nav-index{margin-right:6px;font:10px Consolas,monospace;color:#849099}
.header-status{place-self:center end;padding-right:24px;font:10px Consolas,monospace;letter-spacing:.1em;color:#87939a}
.header-status span{display:inline-block;width:6px;height:6px;margin-right:8px;border-radius:50%;background:#56d68b}
.gateway{display:flex;flex-direction:column;min-height:calc(100vh - 74px);padding:clamp(48px,7vw,104px) clamp(24px,7vw,116px) 30px}
.gateway-copy{max-width:790px}
.gateway-kicker{margin:0 0 18px;font:11px Consolas,monospace;letter-spacing:.19em;color:var(--cyan)}
.gateway h1{margin:0;font-size:clamp(42px,7vw,88px);font-weight:900;line-height:1.1;letter-spacing:-.055em}
.gateway-copy>p:last-child{max-width:620px;margin:24px 0 0;color:#9ca6ad;line-height:1.8}
.tool-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px;width:100%;max-width:1260px;margin:clamp(48px,7vh,78px) 0 40px}
.tool-card{display:flex;flex-direction:column;justify-content:space-between;gap:20px;min-height:305px;padding:25px;background:#101519;border:1px solid #2a3339}
.tool-card:hover{border-color:currentColor;background:#151c21}
.tool-card.blue{color:var(--cyan)}.tool-card.amber{color:var(--amber)}
.card-top{display:flex;align-items:center;justify-content:space-between}
.card-number{font:12px Consolas,monospace;letter-spacing:.12em}
.card-arrow{display:grid;place-items:center;width:35px;height:35px;border:1px solid;font-size:18px}
.card-content{display:block}.card-content small{display:block;margin-bottom:12px;font:10px Consolas,monospace;letter-spacing:.15em}
.card-content strong{display:block;color:#eef2f4;font-size:clamp(23px,2.3vw,35px);line-height:1.2}
.card-content>span{display:block;max-width:480px;margin-top:13px;color:#a0abb3;line-height:1.65}
.card-meta{font-size:12px;color:#95a1aa}
.gateway-footer{display:flex;flex-wrap:wrap;gap:16px 30px;margin-top:auto;padding-top:20px;border-top:1px solid #20272c;color:#95a1aa;font-size:12px}
.gateway-footer a:hover{color:#fff}
.module-stage{display:flex;flex-direction:column;height:calc(100vh - 74px);height:calc(100dvh - 74px);min-height:360px;background:#111518}
.module-bar{display:flex;justify-content:space-between;align-items:center;gap:12px;flex:0 0 auto;min-height:42px;padding:8px 18px;background:#101519;border-bottom:1px solid #283038}
.module-bar>div{display:flex;align-items:center;gap:9px;min-width:0}
.module-dot{flex:none;width:7px;height:7px;border-radius:50%;background:var(--cyan)}.module-dot.route{background:var(--amber)}
.module-bar strong{font-size:12px;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}
.module-bar small{padding-left:9px;border-left:1px solid #344048;color:#95a1aa;font:9px Consolas,monospace;letter-spacing:.11em}
.module-bar a{font-size:11px;color:#a0abb3;white-space:nowrap}.module-bar a:hover{color:#fff}
.module-frame{display:block;flex:1 1 auto;width:100%;min-height:0;border:0;background:#eef5fc}
@media(max-width:900px){.portal-header{grid-template-columns:1fr auto;height:64px}.brand{padding:0 14px}.brand small,.header-status{display:none}.tool-switcher a{min-width:auto;padding:0 12px;font-size:12px}.tool-switcher a:first-child{display:none}.tool-grid{grid-template-columns:1fr}.tool-card{min-height:255px}.gateway{min-height:calc(100vh - 64px)}.module-stage{height:calc(100dvh - 64px)}}
@media(max-width:520px){.brand{gap:8px}.brand strong{font-size:10px}.brand-mark{width:26px;height:26px}.nav-index{display:none}.tool-switcher a{padding:0 9px}.gateway{padding:42px 18px 24px}.module-bar{flex-wrap:wrap;padding:8px 12px}.module-bar small{display:none}}
