:root{color-scheme:dark;--bg:#0d0d0d;--panel:#161616;--field:#212121;--border:#242424;--text:#fff;--muted:#888;--accent:#e8e8e8;--danger:#ee9e9e;--design-scale:1}*{box-sizing:border-box}body{margin:0;background:var(--bg);color:var(--text);font:14px/1.5 -apple-system,BlinkMacSystemFont,"Segoe UI",Arial,sans-serif}button,input,select{font:inherit}button{cursor:pointer}button:disabled{opacity:.45;cursor:wait}button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible{outline:2px solid #aaa;outline-offset:3px}[hidden]{display:none!important}a{color:inherit;text-decoration:none}.sr-only{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap}.redeem{position:fixed;inset:0;overflow:auto;background:#0d0d0d}.redeem-stage{position:absolute;width:1280px;height:720px;left:50%;top:50%;transform:translate(-50%,-50%) scale(var(--design-scale));transform-origin:center}.redeem-background{position:absolute;left:-76px;top:-29px;object-fit:cover;pointer-events:none}.redeem-cover{position:absolute;inset:0;background:#0d0d0d}.redeem-symbol{position:absolute;left:278px;top:-15px;pointer-events:none}.redeem-symbol img{display:block}.redeem-card{position:absolute;left:515px;top:295px;width:251px;min-height:117px;padding:9px 10px 10px;background:#292929;border:1px solid #1d1d1db5;border-radius:6px}.redeem-card h1{margin:0;font-size:13px;line-height:16px;font-weight:590;letter-spacing:0}.redeem-description{margin:0 0 5px;color:#6c6c6cb5;font-size:9px;line-height:16px;white-space:nowrap;font-weight:510}.redeem-row{display:flex;gap:6px}.key-input{margin:0;display:flex;align-items:center;gap:8px;width:162px;height:26px;background:#212121a6;border:1px solid #1d1d1db5;border-radius:4px;padding:0 7px}.key-input img{display:block;flex-shrink:0}.key-input input{min-width:0;flex:1;width:100%;height:24px;background:transparent;border:0;padding:0;font-size:9px;line-height:16px;color:#e5e5e5;outline-offset:1px}.key-input input::placeholder{color:#6c6c6cb5}.submit-key{height:26px;width:62px;background:white;border:0;border-radius:4px;color:#000b;font-size:10px;line-height:16px;font-weight:590;padding:0}.submit-key:hover{background:#ddd}.get-key{margin-top:6px;height:26px;width:78px;display:flex;align-items:center;gap:8px;background:#212121a6;border:0;border-radius:4px;padding:0 7px;color:#6c6c6cb5;font-size:9px;line-height:16px}.get-key:hover{color:#ddd;background:#353535}.get-key img{display:block}.login-error{position:absolute;top:100%;left:0;right:0;margin:8px 0 0;color:var(--danger);font-size:12px;text-align:center}.login-error:empty{display:none}.dashboard{min-height:100svh}.sidebar{position:fixed;left:22px;top:25px;bottom:26px;width:230px;background:#161616;border:1px solid #1d1d1db5;border-radius:8px;padding:0 7px;display:flex;flex-direction:column}.sidebar-logo{position:absolute;top:14px;left:86px}.sidebar-logo img{display:block}nav{margin-top:94px;display:flex;flex-direction:column;gap:3px}.nav-item{width:100%;height:43px;border:1px solid transparent;border-radius:8px;background:transparent;color:#fff;font-size:15px;font-weight:590;line-height:16px;text-align:center}.nav-item:hover{background:#222}.nav-item.active{background:#2b2b2b;border-color:#1d1d1db5}.sidebar-bottom{margin-top:auto;padding:18px 12px 16px;display:flex;align-items:center;justify-content:space-between;gap:8px}.identity strong{display:block;font-size:12px;font-weight:550}.identity small{display:block;font-size:10px;color:#777;margin-top:3px}.logout{background:none;border:0;font-size:11px;color:#888;padding:5px}.logout:hover{color:white}.workspace{margin-left:284px;min-height:100svh}.page{padding:40px 32px 42px 0;max-width:1500px;margin:auto}.page-heading{display:flex;align-items:center;justify-content:space-between;gap:20px;margin-bottom:26px}.page-heading h1{font-size:25px;font-weight:550;letter-spacing:-.6px;margin:0 0 6px}.subtle{color:var(--muted);font-size:13px;line-height:1.7}.page-heading .subtle{margin:0}.primary,.secondary,.danger{display:inline-flex;align-items:center;justify-content:center;min-height:36px;border-radius:5px;border:1px solid transparent;padding:8px 13px;font-size:12px;font-weight:550;white-space:nowrap}.primary{background:#f3f3f3;color:#171717}.primary:hover{background:#d8d8d8}.secondary{background:#252525;color:#ddd;border-color:#333}.secondary:hover{background:#303030}.danger{background:#352323;color:#f0b0b0;border-color:#583737}.danger:hover{background:#462a2a}.full{width:100%}.card{border:1px solid #232323;border-radius:8px;background:#161616;padding:22px}.grid{display:grid;grid-template-columns:repeat(3,1fr);gap:15px;margin:22px 0}.caption{font-size:12px;color:#888;margin:0}.value{font-size:27px;font-weight:550;margin:10px 0 4px}.detail{font-size:11px;color:#777;margin:0}.section-title{font-size:15px;font-weight:550;margin:25px 0 12px}.table-wrap{overflow:auto;border:1px solid #252525;border-radius:7px;background:#161616}table{border-collapse:collapse;width:100%;text-align:left;font-size:12px;white-space:nowrap}th{font-size:10px;font-weight:500;color:#858585;padding:15px;background:#1b1b1b;letter-spacing:.5px}td{padding:15px;border-top:1px solid #252525}.actions{display:flex;gap:6px;align-items:center;flex-wrap:wrap}.actions button{font-size:11px;padding:5px 8px;min-height:29px}.key-hint{font-family:Consolas,monospace;color:#ccc}.badge{display:inline-flex;align-items:center;border:1px solid #424242;border-radius:4px;padding:3px 7px;font-size:10px;color:#ccc;background:#242424}.badge.green{color:#97d2af;background:#1a2b20;border-color:#30483a}.badge.red{color:#e5a3a3;background:#2d1e1e;border-color:#503131}.badge.gray{color:#999;border-color:#333;background:#222}.empty{text-align:center;padding:46px 20px;color:#777;font-size:13px}.notice{padding:12px 0;color:#888;font-size:12px}.info-row{display:flex;align-items:center;justify-content:space-between;gap:25px;border-bottom:1px solid #292929;padding:16px 0}.info-row:last-child{border:0}.info-row>span:first-child{color:#888}.empty-art{font-size:30px;color:#444;margin-bottom:12px}.status-line{display:flex;gap:10px;align-items:center;color:#888;font-size:12px}.monitor-toolbar{display:flex;gap:10px;align-items:center}.error{color:var(--danger);font-size:12px;min-height:18px}dialog{color:white;background:#222;border:1px solid #363636;border-radius:8px;padding:25px;width:min(430px,calc(100% - 32px));box-shadow:0 20px 100px #0008}dialog::backdrop{background:#000b;backdrop-filter:blur(4px)}dialog h2{font-size:22px;font-weight:550;margin:0}.dialog-head{display:flex;align-items:center;justify-content:space-between}.icon-button{border:0;background:none;font-size:24px;color:#888}dialog label{display:block;font-size:12px;margin:18px 0 7px}dialog input,dialog select{width:100%;background:#191919;color:#ddd;border:1px solid #353535;border-radius:5px;min-height:40px;padding:10px;font-size:13px}dialog .secondary.full{margin-top:10px}#created-key{display:block;overflow-wrap:anywhere;background:#161616;padding:18px;margin:20px 0;border:1px solid #333;border-radius:5px;font-size:13px}#toast{position:fixed;bottom:24px;right:24px;padding:14px 18px;border:1px solid #444;background:#292929;border-radius:6px;font-size:13px;z-index:100;max-width:calc(100% - 48px)}.filter{height:36px;min-width:130px;border:1px solid #343434;background:#212121;border-radius:5px;color:#ddd;padding:0 10px;font-size:12px}.ban-reason{display:block;max-width:220px;white-space:normal;font-size:11px;color:#888}.online-dot{width:6px;height:6px;display:inline-block;border-radius:50%;background:#8dcea7;margin-right:5px}.table-wrap:focus-visible{outline:2px solid #888}@media(max-width:900px){.sidebar{left:15px;top:17px;bottom:17px;width:209px}.sidebar-logo{left:76px;top:13px}nav{margin-top:85px}.nav-item{font-size:14px;height:40px}.workspace{margin-left:250px}.page{padding-top:30px;padding-right:25px}.grid{grid-template-columns:1fr}.page-heading{align-items:flex-start;flex-wrap:wrap}}@media(max-width:600px){.redeem-stage{width:100%;height:100%;left:0;top:0;transform:none;display:flex;align-items:center;justify-content:center}.redeem-background,.redeem-cover{display:none}.redeem-symbol{left:50%;top:50%;transform:translate(-50%,-50%) scale(.55)}.redeem-card{position:relative;left:auto;top:auto;width:310px;min-height:147px;padding:15px}.redeem-card h1{font-size:16px;line-height:22px}.redeem-description{font-size:10px;line-height:18px;margin-bottom:10px}.redeem-row{gap:7px}.key-input{flex:1;width:auto;height:36px}.key-input input{font-size:12px;height:34px}.submit-key{width:65px;height:36px;font-size:12px}.get-key{height:30px;width:85px;font-size:11px;margin-top:8px}.sidebar{position:relative;left:auto;top:auto;bottom:auto;width:auto;margin:12px 12px 0;padding:12px;min-height:120px}.sidebar-logo{position:static;display:flex;justify-content:center}.sidebar-logo img{transform:scale(.7);margin:-7px}.sidebar-bottom{position:absolute;right:12px;top:13px;margin:0;padding:0}.identity{display:none}.logout{font-size:11px}nav{margin-top:14px;flex-direction:row;gap:4px}.nav-item{font-size:12px;height:37px}.workspace{margin:0;min-height:0}.page{padding:25px 15px}.page-heading h1{font-size:23px}.card{padding:17px}.info-row{font-size:12px}.monitor-toolbar{flex-wrap:wrap}.grid{gap:10px}.login-error{font-size:12px}}@media(prefers-reduced-motion:reduce){*{animation:none!important;transition:none!important}}
.redeem-stage{overflow:hidden}
.account-toolbar,.bulk-bar{display:flex;align-items:center;justify-content:space-between;gap:12px;margin:16px 0;flex-wrap:wrap}.bulk-bar{justify-content:flex-start}.search-form{display:flex;gap:10px;min-width:260px}.search-form input{width:min(360px,55vw);min-height:36px;background:#181818;border:1px solid #333;border-radius:5px;color:#ddd;padding:8px 12px;font-size:12px}input[type=checkbox]{width:14px;height:14px;accent-color:#aaa;cursor:pointer}.account-status{max-width:260px;white-space:normal;word-break:break-word}#agent-config{background:#171717;border:1px solid #333;padding:14px;border-radius:5px;font:12px/1.7 Consolas,monospace;white-space:pre-wrap;overflow-wrap:anywhere}.sidebar nav{gap:3px}
/* Rounded focus belongs to the complete input, including its icon. */
.redeem-card{transition:border-color .2s ease,box-shadow .2s ease}
.redeem-card:focus-within{border-color:#343434;box-shadow:0 0 0 1px #ffffff03}
.key-input{transition:border-color .18s ease,box-shadow .18s ease,background-color .18s ease}
.key-input:focus-within{border-color:#b9b9b9;box-shadow:0 0 0 .25px #b9b9b9;background:#232323}
.key-input input:focus,.key-input input:focus-visible{outline:none;box-shadow:none}
.submit-key,.get-key{transition:background-color .18s ease,color .18s ease,box-shadow .18s ease,opacity .18s ease,transform .14s ease}
.submit-key:focus-visible,.get-key:focus-visible{outline:none;box-shadow:0 0 0 2px #aaa}
.submit-key:active,.get-key:active{transform:translateY(1px)}
.redeem:not([hidden]) .redeem-card{animation:redeem-appear .34s cubic-bezier(.2,.7,.2,1) both}
.login-error:not(:empty){animation:redeem-error .18s ease both}
@keyframes redeem-appear{from{opacity:0;transform:translateY(6px)}to{opacity:1;transform:translateY(0)}}
@keyframes redeem-error{from{opacity:0}to{opacity:1}}
@media(prefers-reduced-motion:reduce){.redeem-card,.key-input,.submit-key,.get-key{transition:none!important}.redeem:not([hidden]) .redeem-card,.login-error:not(:empty){animation:none!important}}
/* Enlarge the complete form, preserving its centre and the focus/entry animation. */
.redeem-card{scale:var(--redeem-card-scale,1.5);transform-origin:center}
#help-dialog[open]{animation:help-appear .26s cubic-bezier(.2,.75,.2,1) both}
#help-dialog[open]::backdrop{animation:help-shade .22s ease-out both}
@keyframes help-appear{from{opacity:0;transform:translateY(12px) scale(.96)}to{opacity:1;transform:translateY(0) scale(1)}}
@keyframes help-shade{from{opacity:0}to{opacity:1}}
@media(prefers-reduced-motion:reduce){#help-dialog[open],#help-dialog[open]::backdrop{animation:none!important}}
/* Motion stays on deliberate interactions; background polling never animates rows. */
.primary,.secondary,.danger,.nav-item,.logout,.icon-button{transition:background-color .2s ease,border-color .2s ease,color .2s ease,box-shadow .2s ease,transform .16s ease,opacity .2s ease}
.primary:not(:disabled):hover{box-shadow:0 3px 14px #ffffff0b}
.primary:not(:disabled):active,.secondary:not(:disabled):active,.danger:not(:disabled):active,.nav-item:not(:disabled):active{transform:scale(.975)}
.nav-item:not(.active):hover{transform:translateX(2px)}
.card,.table-wrap{transition:border-color .22s ease,box-shadow .22s ease}
.card:hover{border-color:#353535;box-shadow:0 8px 28px #0002}
tbody tr{transition:background-color .2s ease}
tbody tr:hover{background:#ffffff04}
tbody tr:has(input[type=checkbox]:checked){background:#ffffff09}
dialog[open]{animation:help-appear .26s cubic-bezier(.2,.75,.2,1) both}
dialog[open]::backdrop{animation:help-shade .22s ease-out both}
@media(prefers-reduced-motion:reduce){dialog[open],dialog[open]::backdrop{animation:none!important}.nav-item:not(.active):hover,.primary:not(:disabled):active,.secondary:not(:disabled):active,.danger:not(:disabled):active,.nav-item:not(:disabled):active{transform:none}}
