:root{font:16px 'Segoe UI','Microsoft YaHei',sans-serif;color:#342e38;background:#faf8fa;letter-spacing:0}*{box-sizing:border-box}[hidden]{display:none!important}body{margin:0}button,input,select,textarea{font:inherit}button{border:1px solid transparent;background:#a73e67;color:white;padding:10px 18px;min-height:42px;border-radius:6px;cursor:pointer;font-weight:600;white-space:nowrap}button:hover{filter:brightness(.94)}button:disabled{opacity:.5;cursor:default}.secondary{background:#fff;color:#675369;border-color:#dacfd8}.danger{background:#b93850;color:white}input,select,textarea{border:1px solid #d7cdd7;border-radius:6px;background:#fff;color:#342e38;padding:10px 12px;min-height:42px;min-width:0;width:100%}input:focus,select:focus,textarea:focus,button:focus-visible{outline:3px solid #e5b0c8;outline-offset:2px}label{display:grid;gap:8px;font-size:14px;color:#645464}h1{font-size:26px;margin:0;font-weight:650}h2{font-size:18px;margin:0 0 18px}.brand{font-size:12px;color:#93617a;margin:0 0 6px}header{border-bottom:1px solid #e4d9e1;background:#fff;display:flex;justify-content:space-between;align-items:center;padding:24px max(24px,calc((100% - 1440px)/2));gap:16px}.content{max-width:1488px;margin:auto;padding:28px 24px}.stats{display:grid;grid-template-columns:repeat(4,1fr);gap:24px}.stats div{padding:8px 20px;border-left:3px solid #e8bfd0;font-size:14px;color:#6f6270}.stats div:nth-child(2){border-color:#8bc8b7}.stats div:nth-child(3){border-color:#afa2d0}.stats div:nth-child(4){border-color:#daa06d}.stats b{display:block;font-size:30px;margin-top:8px;font-weight:600;color:#342e38}.content section{padding:26px 0;border-bottom:1px solid #e4d9e1}#createForm{display:flex;align-items:end;gap:16px}#createForm label{flex:1}#createForm .noteField{flex:2}.sectionHead{display:flex;align-items:center;justify-content:space-between;gap:20px;margin-bottom:18px}.sectionHead h2{margin:0;flex:none}.filters{display:flex;gap:10px}.filters input{width:260px}.filters select{width:125px}.tableScroll{overflow:auto}table{width:100%;border-collapse:collapse;font-size:14px;text-align:left}th{background:#f2e6ed;font-weight:600;color:#6b465c;white-space:nowrap}th,td{padding:15px 12px;border-bottom:1px solid #e9e1e7}td{background:#fff;vertical-align:top}td:first-child{min-width:260px;max-width:300px}.key{font:14px Consolas,monospace;overflow-wrap:anywhere;line-height:1.6}small{display:block;font-size:12px;color:#817384;margin-top:5px}.note{min-width:100px;max-width:180px;overflow-wrap:anywhere}.date{min-width:155px;line-height:1.5}.device{max-width:125px;overflow-wrap:anywhere}.badge{display:inline-block;padding:4px 8px;background:#f0edf2;color:#675870;border-radius:4px;white-space:nowrap}.badge.active{background:#ddf1e9;color:#286c56}.badge.disabled,.badge.expired{background:#fae2e7;color:#a2314b}.actions{min-width:188px}.actions button{min-height:32px;padding:5px 9px;margin:0 5px 6px 0;font-size:13px}.unbind{background:#e9e2f5;color:#69548b}.empty{text-align:center;padding:50px;color:#837284}#notice{padding:12px 16px;border-left:3px solid #a73e67;background:#f8eaf0;overflow-wrap:anywhere}#newKeys{height:130px;resize:vertical;font-family:Consolas,monospace}footer{font-size:12px;color:#8b7c89;padding-top:24px}.login{width:min(420px,calc(100% - 40px));margin:12vh auto}.login h1{margin-bottom:28px}.login label{margin:18px 0}.login button{width:100%}#loginError{color:#b93850;font-size:14px}dialog{border:1px solid #dfd0da;border-radius:8px;padding:26px;width:min(460px,calc(100% - 32px));color:inherit}dialog::backdrop{background:#241b2a66}dialog p{line-height:1.7}.dialogActions{display:flex;justify-content:end;gap:10px}@media(max-width:800px){header{padding:20px 16px}.content{padding:20px 16px}.stats{grid-template-columns:repeat(2,1fr);gap:14px}#createForm{display:grid;grid-template-columns:1fr 1fr}#createForm .noteField{grid-column:1/-1}.sectionHead{align-items:start;flex-direction:column}.filters{width:100%;flex-wrap:wrap}.filters input{width:100%}.filters select{flex:1}h1{font-size:22px}#username{display:none}}
