:root{color-scheme:dark;font:14px/1.45 system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;background:#0d1015;color:#e9edf3}
*{box-sizing:border-box}
body{margin:0;min-width:320px}
[hidden]{display:none!important}
button,input{font:inherit}
button{cursor:pointer}
button:disabled{cursor:wait;opacity:.58}
input{height:36px;width:100%;border:1px solid #343b47;border-radius:3px;background:#12171f;color:#f1f4f8;padding:0 11px;outline:none}
input::placeholder{color:#788390}
input:focus,button:focus-visible{outline:2px solid #6aa7ff;outline-offset:2px}
h1,h2,h3,p{margin:0}
h1{font-size:22px;line-height:1.2;font-weight:650}
h2{font-size:16px;font-weight:630}
h3{font-size:13px;font-weight:630}
.muted{color:#8e9aa8}
.eyebrow{font-size:10px;font-weight:700;text-transform:uppercase;color:#8393a8;margin-bottom:6px}
.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}
.button{height:34px;border:1px solid #3a4554;border-radius:3px;padding:0 13px;color:#dbe4ee;background:#1a222d;font-weight:600;white-space:nowrap}
.button:hover:not(:disabled){background:#263241}
.button.primary{background:#2e6fcb;border-color:#3d7dd5;color:#fff}
.button.primary:hover:not(:disabled){background:#397dda}
.button.subtle{background:transparent}
.brand-mark{display:grid;place-items:center;width:34px;height:34px;background:#2e6fcb;color:#fff;font-size:18px;font-weight:800;border:1px solid #4a8cdf}
.brand-mark.small{width:25px;height:25px;font-size:13px}
.login-shell{min-height:100vh;display:grid;place-items:center;padding:24px;background:#0d1015}
.login-box{width:min(100%,380px);border:1px solid #303844;background:#161b23;padding:28px;box-shadow:0 22px 50px #0005}
.login-box .brand-mark{margin-bottom:24px}
.login-box h1{margin-bottom:8px}
.login-box>.muted{margin-bottom:24px}
.login-box label,.dialog-body label{display:block;margin:14px 0 7px;color:#b7c2cf;font-size:12px;font-weight:600}
.login-box .login-button{width:100%;margin-top:20px}
.form-error{color:#ff9e9e;margin-top:12px;font-size:12px}
.topbar{height:55px;border-bottom:1px solid #2a313a;background:#131820;display:flex;align-items:center;justify-content:space-between;padding:0 30px;gap:16px}
.topbar-identity,.topbar-actions{display:flex;align-items:center;gap:13px}
.topbar-identity strong{font-size:13px;white-space:nowrap}
.scope{border-left:1px solid #343b47;padding-left:13px;color:#82909e;font-size:11px;white-space:nowrap}
.topbar-actions{font-size:12px}
.page{max-width:1600px;margin:0 auto;padding:27px 30px 40px}
.page-heading{display:flex;justify-content:space-between;align-items:end;gap:20px;margin-bottom:22px}
.heading-actions{display:flex;gap:8px;flex-wrap:wrap}
.stats{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));border:1px solid #303844;background:#151a22;margin-bottom:18px}
.stats>div{min-height:77px;padding:14px 18px;display:flex;flex-direction:column;gap:3px}
.stats>div+div{border-left:1px solid #303844}
.stats span{color:#8c99a8;font-size:11px}
.stats strong{font-size:22px;line-height:1.2;font-weight:660;font-variant-numeric:tabular-nums}
.refresh-report{border:1px solid #303844;background:#151a22;padding:15px 18px;margin-bottom:18px}
.refresh-report-head{display:flex;justify-content:space-between;gap:12px;align-items:center;margin-bottom:9px}
.refresh-report-head span{font-size:12px;color:#aebac8;font-variant-numeric:tabular-nums}
.refresh-report progress{display:block;width:100%;height:10px;accent-color:#4b94eb}
.refresh-report p{font-size:12px;margin-top:9px;overflow-wrap:anywhere}
.refresh-report details{font-size:12px;margin-top:9px;color:#e8a8ac}
.refresh-report summary{cursor:pointer}
.refresh-report ul{margin:8px 0 0;padding-left:18px;max-height:170px;overflow:auto}
.refresh-report li{margin:4px 0;overflow-wrap:anywhere}
.workspace{display:grid;grid-template-columns:minmax(250px,315px) minmax(0,1fr);border:1px solid #303844;background:#151a22;min-height:640px;height:calc(100vh - 245px);max-height:970px}
.account-panel{border-right:1px solid #303844;min-height:0;display:flex;flex-direction:column}
.panel-heading{height:53px;padding:0 16px;display:flex;align-items:center;border-bottom:1px solid #303844}
.panel-heading h2{display:flex;align-items:center;gap:8px}
.panel-heading .muted{font-size:12px;font-weight:400}
.panel-filter{padding:11px 13px;border-bottom:1px solid #303844}
.account-table-head{display:flex;justify-content:space-between;padding:8px 16px;background:#171d26;color:#8491a0;font-size:10px;font-weight:700;text-transform:uppercase}
.account-list{overflow:auto;min-height:0;flex:1}
.account-row{width:100%;min-height:55px;display:flex;align-items:center;justify-content:space-between;text-align:left;border:0;border-bottom:1px solid #28303a;background:transparent;color:inherit;padding:8px 16px;gap:12px}
.account-row:hover{background:#1e2733}
.account-row.selected{background:#1b2b41;box-shadow:inset 3px 0 #4b94eb}
.account-identity{display:flex;flex-direction:column;min-width:0;gap:2px}
.account-identity strong{font-weight:600;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.status{font-size:11px;color:#9aa6b4}
.status.good{color:#83c4a3}
.account-count{font-size:12px;color:#b6c1ce;font-variant-numeric:tabular-nums}
.detail-panel{display:flex;flex-direction:column;min-width:0;min-height:0}
.search-bar{padding:10px 20px;border-bottom:1px solid #303844;display:flex;align-items:center;gap:20px;min-height:61px}
.search-bar label{font-size:12px;font-weight:650;white-space:nowrap;color:#b9c4d0}
.search-bar input{max-width:420px;margin-left:auto}
.detail-content{overflow:auto;min-height:0;flex:1;padding:22px 24px 30px}
.empty{color:#8d9ba9;padding:32px 4px;font-size:13px}
.small-empty{padding:20px 16px}
.error-text{color:#e99b9b}
.detail-heading,.search-heading{display:flex;justify-content:space-between;align-items:start;gap:16px}
.detail-heading>div:first-child{min-width:0}
.detail-actions{display:flex;gap:8px;flex-wrap:wrap;justify-content:flex-end}
.detail-heading h2,.search-heading h2{font-size:20px;line-height:1.2;overflow-wrap:anywhere}
.detail-meta{display:flex;gap:12px;align-items:center;flex-wrap:wrap;margin:17px 0 26px;font-size:12px;color:#9aa7b5}
.credentials-panel{border:1px solid #303844;background:#171d26;padding:12px 14px;margin:-8px 0 24px}
.credential-row{display:grid;grid-template-columns:55px minmax(0,1fr) auto;align-items:center;gap:10px}
.credential-row+.credential-row{margin-top:8px}
.credential-label{font-size:11px;color:#9aa7b5}
.credential-value{font:12px/1.4 ui-monospace,SFMono-Regular,Consolas,monospace;color:#e9edf3;overflow-wrap:anywhere;white-space:pre-wrap;user-select:all}
.badge{border:1px solid #48515e;background:#202730;color:#d0d7df;padding:4px 7px;font-size:11px}
.badge.good{border-color:#325947;color:#95d3ad;background:#182b22}
.inline-error{border-left:2px solid #a95454;background:#261b21;color:#e8a8ac;padding:10px 13px;margin:-10px 0 23px;font-size:12px;overflow-wrap:anywhere}
.games-heading{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:10px}
.games-heading input{max-width:250px}
.games-table,.search-table{border:1px solid #303844}
.games-table-head,.search-table-head,.game-row,.search-row{display:grid;align-items:center;gap:14px;padding:0 14px;min-height:36px}
.games-table-head,.game-row{grid-template-columns:minmax(0,1fr) 90px 78px}
.search-table-head,.search-row{grid-template-columns:minmax(0,1fr) minmax(110px,190px) 78px}
.games-table-head,.search-table-head{color:#83909f;background:#191f28;font-size:10px;font-weight:700;text-transform:uppercase;border-bottom:1px solid #303844}
.game-row,.search-row{min-height:39px;border-bottom:1px solid #28303a;font-size:12px}
.game-row:last-child,.search-row:last-child{border-bottom:0}
.game-row:nth-child(even),.search-row:nth-child(odd){background:#171d25}
.game-name{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:#dbe4ed}
.game-id,.game-source{color:#8b98a6;font-variant-numeric:tabular-nums}
.search-heading{margin-bottom:19px}
.search-row{width:100%;border-left:0;border-right:0;border-top:0;color:inherit;text-align:left;background:transparent}
.search-row:hover{background:#223044}
.search-login{color:#a9c9f4;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.notice{position:fixed;bottom:24px;right:24px;max-width:min(420px,calc(100vw - 48px));border:1px solid #4f739f;background:#1b314b;color:#e9f2ff;padding:11px 15px;box-shadow:0 12px 30px #0008;z-index:20;font-size:12px}
.notice.error{background:#392025;border-color:#96535e;color:#ffd9dd}
dialog{width:min(440px,calc(100vw - 24px));padding:0;color:#e9edf3;background:#171d25;border:1px solid #424c59;box-shadow:0 22px 70px #000b}
dialog::backdrop{background:#05080dc9}
.dialog-body{padding:20px}
.dialog-head{display:flex;justify-content:space-between;align-items:start;gap:10px}
.dialog-body>.muted{font-size:12px;margin:7px 0 18px}
.dialog-actions{display:flex;justify-content:flex-end;gap:8px;margin-top:23px}
.icon-button{border:0;background:transparent;color:#a9b5c2;font-size:23px;line-height:1;padding:0 3px}
.icon-button:hover{color:#fff}
.import-form{border-top:1px solid #303844;padding-top:16px;margin-top:16px}
.import-form>.muted{font-size:12px;margin-top:4px}
.import-form input[type=file]{height:auto;min-height:36px;padding:7px 9px;font-size:12px}
.import-form .button{margin-top:10px}
.import-feedback{margin-top:16px;font-size:12px;color:#9bd3b3}
.import-feedback.error{color:#ff9e9e}
@media(max-width:760px){.topbar{padding:0 15px}.scope,.topbar-actions .muted{display:none}.page{padding:19px 12px 28px}.page-heading{align-items:center}.page-heading h1{font-size:18px}.stats>div{padding:10px}.stats strong{font-size:18px}.workspace{height:auto;min-height:0;max-height:none;grid-template-columns:1fr}.account-panel{height:275px;border-right:0;border-bottom:1px solid #303844}.detail-panel{min-height:520px}.detail-content{max-height:70vh;padding:18px 14px}.search-bar{padding:10px 14px;align-items:stretch;flex-direction:column;gap:7px}.search-bar input{max-width:none}.games-heading{align-items:stretch;flex-direction:column}.games-heading input{max-width:none}}
@media(max-width:460px){.page-heading{align-items:start;flex-direction:column;gap:12px}.heading-actions{width:100%}.heading-actions .button{flex:1}.stats span{font-size:10px}.stats strong{font-size:16px}.detail-heading{flex-direction:column}.detail-actions{justify-content:flex-start}.credentials-panel{padding:10px}.credential-row{grid-template-columns:minmax(0,1fr) auto;gap:5px}.credential-label{grid-column:1/-1}.game-row,.games-table-head{grid-template-columns:minmax(0,1fr) 68px 58px;gap:7px;padding:0 8px}.search-row,.search-table-head{grid-template-columns:minmax(0,1fr) 105px;gap:8px;padding:0 8px}.search-row .game-source,.search-table-head span:last-child{display:none}}
