:root{font-family:"Segoe UI","Microsoft YaHei",sans-serif;color:#253e36;background:#f3f6f4;font-size:14px;color-scheme:light}*{box-sizing:border-box}body{margin:0}button,input,select{font:inherit}button{cursor:pointer}a{color:#187a63;text-decoration:none}h1,h2,h3,p{margin:0}h1{font-size:28px}h2{font-size:18px}h3{font-size:14px}p{line-height:1.8}small,.help,.muted{font-size:12px;color:#62796f;line-height:1.8}[hidden]{display:none!important}.header{min-height:76px;padding:18px 4%;display:flex;align-items:center;justify-content:space-between;gap:18px;background:#fff;border-bottom:1px solid #dfe8e3}.brand{display:flex;align-items:center;gap:12px;font-size:21px;font-weight:700;color:#225942}.brand-icon{display:grid;place-items:center;width:36px;height:40px;background:#176d53;border-radius:9px;color:white;font-size:32px}.header-right,.actions{display:flex;align-items:center;gap:12px;flex-wrap:wrap}.layout{max-width:1560px;margin:auto;padding:28px 3% 48px;display:grid;grid-template-columns:170px minmax(0,1fr);gap:28px}nav{display:flex;flex-direction:column;gap:8px}nav button{border:0;background:transparent;border-radius:8px;text-align:left;padding:12px;color:#526e60}nav button.active{background:#deeee5;color:#145c44;font-weight:650}.page-head{margin:0 0 22px}.page-head p{color:#60786b;margin-top:10px}.panel{padding:24px;background:white;border:1px solid #dfe8e3;border-radius:12px;margin-bottom:22px}.panel h2{margin-bottom:18px}.panel-head{display:flex;justify-content:space-between;align-items:center}.panel-head h2{margin:0}.button{border:1px solid #cbdcd1;border-radius:7px;background:white;padding:9px 15px;color:#306449;white-space:nowrap}.button.primary{background:#176d53;border-color:#176d53;color:white}.button.danger{background:#fff0ed;color:#a74332}.button:disabled{opacity:.55;cursor:wait}.button:hover{filter:brightness(.97)}.form-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px}.full{grid-column:1/-1}label{display:flex;flex-direction:column;gap:8px;font-size:13px;color:#4a6658}input,select{width:100%;padding:10px 12px;border:1px solid #cadcd0;border-radius:7px;background:#fff;color:#253e36}input:focus,select:focus{outline:2px solid #65a68a;outline-offset:2px}.form-end{display:flex;justify-content:flex-end}.form-error{color:#ac4130}.auth-panel{max-width:600px}.pill{display:inline-block;padding:5px 9px;border-radius:6px;font-size:12px;background:#edf1ef}.pill.active{background:#e2f2e8;color:#176b46}.pill.suspended{background:#fff0e6;color:#955229}.banner{padding:14px 18px;border:1px solid #e9d7a1;border-radius:9px;background:#fffae9;color:#805d28;margin:0 0 20px}.resource-summary{display:flex;gap:18px 30px;flex-wrap:wrap;padding:18px 20px;border-radius:10px;background:#e4f0e9;margin-bottom:18px}.resource-summary b{font-size:23px;color:#1c6848;margin-left:8px}.board-toolbar{display:flex;gap:16px;align-items:end;justify-content:space-between;margin-bottom:22px}.board-search{width:440px;max-width:100%}.resource-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:20px}.resource-card{min-width:0;background:#fff;border:1px solid #dce7e0;border-radius:12px;overflow:hidden;align-self:start}.resource-card-head{display:flex;justify-content:space-between;align-items:center;gap:12px;padding:20px 20px 10px}.resource-model{font-size:12px;color:#627a6c;padding:0 20px 12px;overflow-wrap:anywhere}.resource-numbers{display:flex;flex-wrap:wrap;gap:12px 20px;padding:0 20px 16px;color:#5e7567;font-size:12px}.resource-numbers b{font-size:19px;color:#1f6345}.resource-gpus{padding:0 20px 14px}.resource-gpu{display:grid;grid-template-columns:48px minmax(0,1fr) auto;gap:10px;border-top:1px solid #e8efe9;padding:14px 0;font-size:12px}.resource-gpu small{display:block;margin-top:5px;font-size:11px;color:#627a6c}.resource-card-footer{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:14px 20px;background:#f8fbf9;border-top:1px solid #e5eee7;color:#657d6e;font-size:11px}.resource-card-footer button{border:0;background:none;color:#196847;white-space:nowrap}.empty{padding:30px 12px;text-align:center;color:#697e70}.table-wrap{overflow:auto}table{width:100%;border-collapse:collapse;text-align:left}th,td{padding:12px;border-bottom:1px solid #e5ece6;white-space:nowrap}th{font-size:12px;color:#61796a}.toast{position:fixed;z-index:20;bottom:25px;left:50%;transform:translateX(-50%);padding:14px 22px;background:#244c3c;color:white;border-radius:10px;box-shadow:0 5px 24px #14302522;max-width:90vw}dialog{width:min(900px,94vw);max-height:90vh;padding:24px;border:1px solid #c8d9ce;border-radius:12px;color:inherit;background:#fff}dialog::backdrop{background:#102f2266}.modal-head{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:20px}.local-main{max-width:980px;margin:36px auto;padding:0 24px 60px}.local-main .actions{margin-top:20px}.local-main details{margin-top:22px}.local-main summary{cursor:pointer;margin-bottom:20px}.local-main .guide{line-height:2.2;padding-left:22px}.local-main #access{display:flex;align-items:center;gap:12px;flex-wrap:wrap}.link-box{overflow-wrap:anywhere;max-width:100%}.usage-toolbar{display:flex;justify-content:space-between;gap:14px;margin-bottom:20px}.usage-toolbar label{width:180px}.usage-stats{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px}.usage-stats>div{padding:13px 12px;background:#f1f6f3;border-radius:8px}.usage-stats span{display:block;font-size:11px;color:#62796d}.usage-stats strong{display:block;font-size:23px;color:#285d49;margin-top:7px}.usage-chart{display:block;width:100%;height:auto;margin:16px 0}.usage-gridline{stroke:#e4ece6;stroke-width:1}.usage-axis{font-size:11px;fill:#687e70}.usage-line{fill:none;stroke-width:2;stroke-linejoin:round;stroke-linecap:round}.usage-average{color:#187e61;stroke:#187e61;fill:#187e61}.usage-peak{color:#b57a27;stroke:#b57a27;fill:#b57a27}.usage-memory{color:#7687b1;stroke:#7687b1;fill:#7687b1}.usage-line{fill:none}.usage-hit{fill:transparent;stroke:none}.usage-hit:hover{fill:#244e4309}.usage-legend{display:flex;gap:10px 20px;flex-wrap:wrap;font-size:11px;margin-top:20px}.usage-legend span:before{content:"";display:inline-block;width:15px;border-top:2px solid currentColor;vertical-align:middle;margin-right:6px}.usage-explanation{padding-top:14px;border-top:1px solid #e7eee8}@media(max-width:1100px){.resource-grid{grid-template-columns:1fr}.layout{grid-template-columns:150px minmax(0,1fr);gap:18px}}@media(max-width:700px){.header{flex-wrap:wrap;padding:16px}.brand{font-size:19px}.layout{display:block;padding:18px 16px}nav{flex-direction:row;overflow:auto;margin-bottom:20px}nav button{white-space:nowrap}.form-grid{grid-template-columns:1fr}.full{grid-column:auto}.resource-numbers b{font-size:17px}.resource-summary{gap:12px 18px}.board-toolbar{flex-wrap:wrap}.usage-stats{grid-template-columns:repeat(2,minmax(0,1fr))}.resource-gpu{grid-template-columns:42px minmax(0,1fr) auto}.local-main{padding:0 16px 40px}}

/* Portal refresh: a shared centered frame, server ranking, responsive cards. */
.portal-shell{--accent:#166b52;--ink:#203e34;--line:#dfe8e3;--quiet:#6b8076;color:var(--ink);background:#f4f7f5;line-height:1.5}
.portal-shell .header{padding:0;min-height:80px;background:#ffffffed;border-bottom:1px solid var(--line)}
.header-inner{width:min(1480px,100%);padding:18px 32px;margin:0 auto;display:flex;align-items:center;justify-content:space-between;gap:24px}
.portal-shell .brand{font-size:20px;letter-spacing:.02em;flex-shrink:0}
.portal-shell .brand-icon{width:38px;height:40px;font-size:29px;border-radius:12px;box-shadow:0 4px 12px #176d5314}
.portal-shell .header-right{font-size:13px;color:var(--quiet);justify-content:flex-end}
.portal-shell .layout{width:min(1480px,100%);max-width:1480px;padding:36px 32px 64px;grid-template-columns:176px minmax(0,1fr);gap:32px;align-items:start}
.portal-shell main{min-width:0;width:100%}
.portal-shell nav{position:sticky;top:24px;padding:8px;background:#edf3ef;border:1px solid #e3ece6;border-radius:14px;gap:5px}
.portal-shell nav button{padding:13px 14px;border-radius:9px;font-size:13px;font-weight:600;line-height:1.6}
.portal-shell nav button.active{background:white;box-shadow:0 2px 8px #193c2b0a;color:var(--accent)}
.portal-shell .page-head{margin-bottom:28px}
.portal-shell h1{font-size:28px;letter-spacing:-.03em;line-height:1.4}
.portal-shell .page-head p{font-size:13px;margin-top:8px}
.portal-shell .panel{border-radius:16px;padding:26px;box-shadow:0 3px 14px #173a2703}
.portal-shell .panel h2{margin-bottom:16px;font-size:18px;line-height:1.5}
.portal-shell .section-heading{display:flex;justify-content:space-between;align-items:center;gap:20px;margin:0 0 22px}
.portal-shell .section-heading h2{font-size:19px;margin:3px 0 7px;letter-spacing:-.02em}
.eyebrow{display:block;font-size:10px;letter-spacing:.16em;font-weight:700;color:#8a9e93}
.count-label{font-size:12px;color:#7b8f83;white-space:nowrap}
.portal-shell .help{font-size:12px;color:var(--quiet);line-height:1.9}
.portal-shell .button{min-height:40px;padding:9px 16px;border-radius:9px;font-weight:600;font-size:13px;transition:background .15s,box-shadow .15s}
.portal-shell .button:hover{background:#edf5ef;filter:none}
.portal-shell .button.primary:hover{background:#11573f}
.portal-shell .button:focus-visible,.portal-shell button:focus-visible{outline:3px solid #72ad95;outline-offset:3px}
.portal-shell input,.portal-shell select{height:43px;border-color:#d6e1da;border-radius:9px;font-size:13px;padding:10px 13px}
.portal-shell input::placeholder{color:#9aa9a0}
.portal-shell .resource-summary{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:14px;padding:0;background:none;margin-bottom:28px}
.metric{min-width:0;padding:20px 18px;background:#fff;border:1px solid var(--line);border-radius:14px;display:flex;flex-direction:column;gap:6px}
.metric>span{font-size:12px;font-weight:600;color:#6e8277}
.metric>strong{font-size:32px;line-height:1.2;font-weight:700;letter-spacing:-.04em;color:#245b44;font-variant-numeric:tabular-nums}
.metric>small{font-size:10px;color:#8e9e94;line-height:1.6}
.metric:nth-child(4){background:#eaf4ed;border-color:#d2e7da}
.portal-shell .ranking-panel{padding:26px 0 0;margin-bottom:36px;overflow:hidden}
.ranking-panel .section-heading{padding:0 26px}
.ranking-panel .help{max-width:690px}
.ranking-wrap{overflow-x:auto;overscroll-behavior-inline:contain}
.ranking-table{min-width:860px;font-size:12px;table-layout:auto}
.ranking-table th{background:#f6f9f6;font-size:11px;font-weight:500;padding:13px 16px;border-top:1px solid #e7eee9;border-bottom:1px solid #e7eee9}
.ranking-table td{padding:16px;border-bottom:1px solid #edf2ed;vertical-align:middle;font-variant-numeric:tabular-nums}
.ranking-table th:first-child,.ranking-table td:first-child{padding-left:26px}
.ranking-table th:last-child,.ranking-table td:last-child{padding-right:26px;text-align:right}
.ranking-table tr:last-child td{border-bottom:0}
.ranking-table tbody tr:hover{background:#f8fbf9}
.rank-server{display:flex;align-items:center;gap:12px;min-width:170px}
.rank-server strong{font-size:14px;line-height:1.5}
.rank-server small{display:block;max-width:180px;overflow:hidden;text-overflow:ellipsis;font-size:10px;line-height:1.6;color:#8b9c91}
.rank-number{flex:0 0 26px;height:26px;border-radius:8px;background:#f1f5f1;display:grid;place-items:center;color:#8a9c8f;font-size:11px;font-weight:700}
.rank-number.rank-top{background:#e4f0e8;color:#1c6d4d}
.server-address{font-size:11px;color:#6f8275;font-variant-numeric:tabular-nums}
.score-cell{display:grid;grid-template-columns:auto 1fr;column-gap:4px;align-items:baseline;min-width:92px}
.score-cell strong{font-size:17px;color:#245f45;font-weight:650}
.score-cell>span{font-size:10px;color:#9aa89e}
.score-cell progress{grid-column:1/-1;height:4px;width:88px;margin-top:6px;border:0;border-radius:5px;overflow:hidden;appearance:none;background:#edf2ed}
.score-cell progress::-webkit-progress-bar{background:#edf2ed}
.score-cell progress::-webkit-progress-value{background:#78a68a;border-radius:5px}
.score-cell progress::-moz-progress-bar{background:#78a68a}
.idle-value{font-size:16px;font-weight:650;color:#286548}
.portal-shell .pill{border-radius:6px;font-size:10px;line-height:1.4;padding:5px 8px;font-weight:500;white-space:nowrap}
.pill.neutral{background:#f0f3f0;color:#758275}
.text-button{border:0;padding:5px 0;background:none;color:#3d795c;font-size:11px;white-space:nowrap;font-weight:600}
.text-button:hover{color:#135c3c}
.ranking-note{padding:14px 26px;background:#fafcf9;border-top:1px solid #edf2ed;color:#8b9a8f;font-size:11px;line-height:1.8}
.board-section>.section-heading{margin-bottom:18px}
.portal-shell .board-toolbar{align-items:end;gap:14px;padding:18px 20px;background:#fff;border:1px solid var(--line);border-radius:13px;margin-bottom:20px}
.portal-shell .board-search{flex:1;width:auto;min-width:180px}
.portal-shell .board-sort{width:190px;flex-shrink:0}
.portal-shell .board-toolbar label{gap:7px;font-size:11px;color:#798e7f}
.portal-shell .board-toolbar .button{height:43px}
.portal-shell .resource-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:20px;align-items:start}
.portal-shell .resource-card{border-radius:15px;scroll-margin-top:24px;box-shadow:0 3px 14px #173a2703}
.portal-shell .resource-card:target{outline:2px solid #76a38c;outline-offset:3px}
.portal-shell .resource-card-head{padding:23px 22px 20px;align-items:center}
.portal-shell .resource-card-head h3{font-size:20px;line-height:1.4;letter-spacing:-.02em}
.card-address{font-size:11px;color:#899a90;margin-top:3px;overflow-wrap:anywhere}
.portal-shell .card-key-stats{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;padding:0 22px 20px;margin:0}
.card-key-stats>span{font-size:10px;display:flex;flex-direction:column;gap:5px;color:#819386}
.portal-shell .card-key-stats b{font-size:21px;line-height:1.5;letter-spacing:-.03em;font-variant-numeric:tabular-nums}
.card-key-stats b small{font-size:10px;font-weight:400;color:#8b9a90;letter-spacing:0}
.system-summary{display:flex;flex-wrap:wrap;gap:8px 20px;margin:0 22px 6px;padding:12px 0;border-top:1px solid #edf2ed;border-bottom:1px solid #edf2ed;color:#89988e;font-size:10px}
.system-summary b{font-weight:500;color:#637f6d;margin-left:5px}
.portal-shell .resource-gpus{padding:0 22px 6px}
.portal-shell .resource-gpu{grid-template-columns:28px minmax(0,1fr) auto;align-items:start;gap:12px;padding:15px 0;border-top:0;border-bottom:1px solid #f0f4ef;font-size:11px}
.portal-shell .resource-gpu:last-child{border-bottom:0}
.gpu-index{height:25px;width:26px;display:grid;place-items:center;border-radius:7px;background:#f1f6f1;color:#7f9785;font-size:10px}
.resource-gpu>div>strong{font-size:11px;font-weight:600;color:#4b6857}
.portal-shell .resource-gpu small{font-size:10px;color:#93a196;line-height:1.7;margin-top:3px}
.gpu-state{font-size:10px;color:#99a79c;background:#f5f7f3;padding:4px 7px;border-radius:5px;white-space:nowrap}
.gpu-state.is-idle{color:#367856;background:#eaf5ed}
.disk-details{margin:0 22px 15px;font-size:11px;color:#819386}
.disk-details summary{cursor:pointer;line-height:2}
.disk-details>div{padding-top:8px}
.portal-shell .resource-card-footer{padding:14px 22px;background:#fafcf9;font-size:10px}
.portal-shell .resource-card-footer button{font-size:11px}
.portal-shell .empty{grid-column:1/-1;padding:36px 18px;font-size:13px;color:#8b9b90}
.portal-shell .auth-panel{max-width:520px;margin:0 auto;padding:30px;box-shadow:0 14px 50px #204c3510;border-radius:18px}
.portal-shell .auth-panel .form-grid{gap:22px}
.portal-shell .auth-panel .button.primary{width:100%;height:44px}
.portal-shell .auth-panel>.help{margin:18px 0 8px;font-size:11px}
.portal-shell.is-guest .header-inner{justify-content:center}
.portal-shell.is-guest .header-right{display:none}
.portal-shell.is-guest .layout{display:flex;justify-content:center;align-items:center;min-height:calc(100vh - 80px);padding:48px 24px}
.portal-shell.is-guest main{width:min(520px,100%);margin:0 auto}
.portal-shell.is-guest .page-head{text-align:center;margin-bottom:28px}
.portal-shell.is-guest .page-head h1{font-size:26px}
.portal-shell[data-page="profile"] main,.portal-shell[data-page="members"] main{max-width:1000px;margin:0 auto}
.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}
@media(min-width:1700px){.portal-shell .layout,.header-inner{max-width:1540px}}
@media(max-width:1180px){.portal-shell .layout{grid-template-columns:150px minmax(0,1fr);padding:28px 24px 48px;gap:24px}.header-inner{padding:18px 24px}.portal-shell .resource-summary{gap:10px}.metric{padding:16px 12px}.metric>strong{font-size:27px}.metric>small{font-size:9px}}
@media(max-width:980px){.portal-shell .layout{display:block;padding:24px}.portal-shell nav{position:static;flex-direction:row;margin-bottom:24px;overflow:auto;padding:6px}.portal-shell nav button{white-space:nowrap;text-align:center}.portal-shell .resource-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.portal-shell .resource-summary{grid-template-columns:repeat(5,minmax(0,1fr))}}
@media(max-width:720px){.header-inner{padding:16px 20px;gap:12px}.portal-shell .brand{font-size:17px}.portal-shell .brand-icon{width:32px;height:35px;font-size:25px}.portal-shell .header-right{gap:8px;font-size:11px}.portal-shell .header-right .button{font-size:11px;padding:7px 11px;min-height:34px}.portal-shell .layout{padding:22px 16px 40px}.portal-shell h1{font-size:25px}.portal-shell .page-head{margin-bottom:22px}.portal-shell .page-head p{font-size:12px}.portal-shell .resource-summary{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.metric{padding:16px}.metric:last-child{grid-column:1/-1;display:grid;grid-template-columns:1fr auto;align-items:center;gap:2px}.metric:last-child small{grid-column:1}.metric:last-child strong{grid-column:2;grid-row:1/3;font-size:26px}.metric>strong{font-size:29px}.portal-shell .section-heading{align-items:flex-start;gap:12px}.section-heading .count-label{font-size:10px;margin-top:5px}.portal-shell .section-heading h2{font-size:18px}.portal-shell .ranking-panel{padding-top:22px;margin-bottom:28px}.ranking-panel .section-heading{padding:0 20px;flex-direction:column;gap:8px}.ranking-note{padding:13px 20px;font-size:10px}.portal-shell .board-toolbar{flex-wrap:wrap;padding:16px;gap:12px}.portal-shell .board-search{flex-basis:100%;min-width:0}.portal-shell .board-sort{width:auto;flex:1}.portal-shell .resource-grid{grid-template-columns:1fr;gap:16px}.portal-shell .card-key-stats b{font-size:21px}.portal-shell .resource-card-head{padding:20px 20px 18px}.portal-shell .resource-gpus{padding:0 20px 8px}.portal-shell .auth-panel{padding:24px}.portal-shell.is-guest .layout{padding:36px 20px;min-height:calc(100svh - 80px)}.portal-shell.is-guest .page-head h1{font-size:25px}.portal-shell .panel{padding:22px}.portal-shell .ranking-panel{padding:22px 0 0}.portal-shell .form-grid{grid-template-columns:1fr}}
/* Keep the centered layout still when filtering adds/removes the page scrollbar. */
html{scrollbar-gutter:stable}
.portal-shell.is-guest .layout{min-height:calc(100svh - 116px)}
.site-footer{padding:0 16px 18px;text-align:center;font-size:12px}
.site-footer a{text-decoration:underline}
@media(prefers-reduced-motion:reduce){html{scroll-behavior:auto}*,*::before,*::after{transition:none!important}}
