:root{font-family:Inter,"Segoe UI","Microsoft YaHei",system-ui,sans-serif;color:#303142;background:#f4f5f9;--primary:#7964dc;--muted:#9697a6;--border:#ebeaf2}*{box-sizing:border-box}body{margin:0}a{color:inherit;text-decoration:none}button,input,select,textarea{font:inherit}button{cursor:pointer}button:disabled{opacity:.5;cursor:wait}[hidden]{display:none!important}.btn{display:inline-flex;justify-content:center;align-items:center;gap:8px;padding:11px 18px;border-radius:9px;border:1px solid transparent;font-size:12px;font-weight:550;cursor:pointer;white-space:nowrap}.primary{color:white;background:linear-gradient(115deg,#7965df,#9c68d9);border-color:#8e70de;box-shadow:0 4px 12px #7d64d217}.ghost{background:#faf9fd;border-color:#e4e0ed;color:#9384b1}.full{width:100%}.muted{font-size:12px;color:#9294a4;line-height:1.85}.overline{font-size:9px;letter-spacing:2px;color:#a69bc1;font-weight:600;margin:0 0 12px}.error{font-size:12px;color:#bf5a78;line-height:1.6;min-height:0}.error:empty{display:none}.auth-screen{min-height:100vh;display:grid;grid-template-columns:1fr 1fr;background:radial-gradient(900px 600px at 15% 10%,#e4ddf7,transparent 80%),#f7f7fb;align-items:center;padding:70px max(30px,calc((100vw - 1050px)/2));gap:75px}.auth-home{position:absolute;top:30px;left:40px;font-size:12px;color:#a19bb1}.auth-visual>img{width:145px;height:145px;object-fit:cover;border-radius:40px;box-shadow:0 20px 70px #8d7aaf2b;border:5px solid #fff7}.auth-visual>p{font-size:10px;color:#a79bbe;letter-spacing:3px;margin-top:32px}.auth-visual h1{font-size:42px;line-height:1.45;letter-spacing:-1px;font-weight:550;margin:18px 0;color:#686176}.auth-visual>span{font-size:12px;color:#a6a0b7;letter-spacing:1px}.auth-card{padding:38px;border:1px solid white;background:#ffffffd9;border-radius:24px;box-shadow:0 20px 60px #786e8b0b;max-width:420px}.auth-logo{width:38px;height:38px;border-radius:12px;object-fit:cover;margin-bottom:23px}.auth-card h2{font-size:25px;font-weight:550;margin:10px 0}.auth-card>.muted{font-size:12px}.segmented{display:flex;background:#f0edf6;padding:4px;border-radius:10px;margin:24px 0}.segmented button{flex:1;border:0;background:transparent;color:#a59caf;border-radius:7px;font-size:12px;padding:9px}.segmented .active{background:white;color:#8470ae;box-shadow:0 2px 6px #7664890d}.auth-card form{display:grid;gap:17px}.auth-foot{display:block;font-size:10px;color:#b6aebe;line-height:1.7;text-align:center;margin-top:24px}label{display:grid;gap:8px;font-size:11px;color:#878497}input,select,textarea{width:100%;border:1px solid #e5e1ed;background:#fcfbfe;border-radius:8px;padding:11px 12px;color:#535064;font-size:12px;outline:none;min-width:0}input:focus,select:focus,textarea:focus{border-color:#a78ce0;box-shadow:0 0 0 3px #aa90e50d}input::placeholder{color:#bbb5c9}input[type=checkbox]{width:15px;accent-color:#9075d1}.app{display:grid;grid-template-columns:225px 1fr;min-height:100vh}.sidebar{background:#fff;border-right:1px solid #e9e6f0;padding:30px 20px 20px;position:sticky;top:0;height:100vh;display:flex;flex-direction:column}.brand{display:flex;gap:11px;align-items:center;white-space:nowrap}.brand img{width:36px;height:36px;border-radius:11px;object-fit:cover}.brand>span{font-size:14px;font-weight:600;letter-spacing:-.5px}.brand b{font-weight:400;color:#8d879e}.sidebar-label{font-size:9px;letter-spacing:2px;color:#b9b2c5;margin:42px 12px 16px}.sidebar nav{display:grid;gap:8px}.sidebar nav button{display:flex;align-items:center;gap:13px;background:transparent;border:0;border-radius:9px;padding:13px 15px;font-size:12px;color:#a19aac;text-align:left}.sidebar nav button>span{font-size:17px;width:19px;text-align:center;color:#b7accd}.sidebar nav button.active{background:linear-gradient(100deg,#ede8fa,#f3effb);color:#8065b8}.sidebar nav button.active>span{color:#9b7bca}.sidebar-bottom{margin-top:auto;display:grid;gap:18px;padding:20px 10px 0}.sidebar-bottom>a,.sidebar-bottom>button{border:0;background:none;text-align:left;color:#aaa1b9;padding:0;font-size:11px}.account-mini{display:flex;align-items:center;gap:9px;border-top:1px solid #f0edf5;padding-top:18px}.account-mini>span{width:31px;height:31px;display:grid;place-items:center;border-radius:10px;background:#efeaf8;color:#a18abe;font-size:11px}.account-mini b{display:block;max-width:130px;overflow:hidden;text-overflow:ellipsis;font-size:11px;font-weight:500}.account-mini small{display:block;color:#b6adbf;font-size:8px;margin-top:3px}.main{padding:35px 42px 55px;min-width:0}.page-header{display:flex;justify-content:space-between;align-items:center;margin-bottom:30px}.page-header h1{font-size:25px;letter-spacing:-.6px;margin:0;font-weight:550}.page-header .overline{font-size:8px;margin-bottom:8px}.header-right{display:flex;align-items:center;gap:8px;color:#a7a0b4;font-size:10px}.header-right>img{width:31px;height:31px;border-radius:10px;object-fit:cover;margin-left:12px}.live-dot{height:5px;width:5px;background:#8eb8a3;border-radius:50%}.welcome-banner{border-radius:19px;border:1px solid white;background:linear-gradient(115deg,#e9e3f9,#f5f1ff 60%,#e5eef8);padding:30px;display:flex;justify-content:space-between;align-items:center;margin-bottom:23px}.welcome-banner p{font-size:8px;letter-spacing:2px;color:#b0a3c6;margin:0 0 13px}.welcome-banner h2{font-size:24px;letter-spacing:-.5px;color:#786b94;font-weight:500;margin:0 0 12px}.welcome-banner span{font-size:11px;color:#ac9fbd}.welcome-banner img{width:74px;height:74px;border-radius:22px;object-fit:cover;border:3px solid #ffffffbd;box-shadow:0 6px 20px #88729d1a}.stats-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:16px;margin-bottom:24px}.stats-grid article{padding:21px;border:1px solid white;background:white;border-radius:14px}.stats-grid article>span{font-size:11px;color:#a59caf}.stats-grid strong{font-size:30px;letter-spacing:-.8px;font-weight:550;display:block;margin:13px 0 9px;color:#756687}.stats-grid small{font-size:8px;color:#b8aebf}.account-stats{grid-template-columns:repeat(3,minmax(0,1fr))}.account-stats strong{font-size:25px}.panel{background:white;border:1px solid #fff;border-radius:16px;padding:25px;margin-bottom:23px;min-width:0}.panel-top{display:flex;justify-content:space-between;align-items:center;gap:15px;margin-bottom:22px}.panel h2{font-size:14px;font-weight:550;margin:0;color:#797085}.panel-top h2{margin:0}.panel>.muted{margin-top:0}.two-col{display:grid;grid-template-columns:1fr 1fr;gap:22px}.two-col>.panel{height:calc(100% - 23px)}.text-btn{color:#a288bd;border:0;background:transparent;font-size:10px;cursor:pointer}.inventory{display:grid;grid-template-columns:1fr 1fr;gap:18px}.inventory>div{padding:14px;background:#faf8fd;border-radius:10px;border:1px solid #f2eef6;display:flex;justify-content:space-between;align-items:center}.inventory span{font-size:10px;color:#b0a2bf}.inventory strong{font-size:21px;color:#a18cb7;font-weight:500}.quick-actions{display:grid;gap:13px}.quick-actions>button{border:1px solid #ede8f4;background:#fbf9fe;border-radius:10px;padding:17px 16px 17px 46px;text-align:left;position:relative}.quick-actions>button>span{position:absolute;left:16px;top:19px;font-size:20px;color:#b29bcd}.quick-actions b{font-size:11px;display:block;color:#94809e;font-weight:500}.quick-actions small{display:block;font-size:9px;color:#bbafc4;margin-top:6px}.table-scroll{overflow-x:auto}table{width:100%;border-collapse:collapse;font-size:11px;white-space:nowrap}th{text-align:left;font-weight:400;color:#b4a9c1;background:#faf8fc;padding:13px 12px}th:first-child{border-radius:7px 0 0 7px}th:last-child{border-radius:0 7px 7px 0}td{padding:16px 12px;border-bottom:1px solid #f2eff6;color:#9b8ba8}td>b{font-weight:500;color:#84718e;display:block}td>small{display:block;font-size:8px;color:#b5a4c2;margin-bottom:4px}.note-cell{white-space:normal;min-width:140px;max-width:300px;word-break:break-word;font-size:10px}.amount{font-weight:550;color:#9380a3}code{font-family:Consolas,monospace;font-size:10px}.badge{display:inline-flex;padding:5px 8px;border-radius:6px;font-size:9px;background:#f3f0f8;color:#a593b9}.badge.assigned{background:#eef3fb;color:#9baaca}.badge.redeemed,.badge.approved{background:#eef7f1;color:#8dad99}.badge.revoked,.badge.rejected{background:#fcf0f2;color:#c59aa5}.badge.pending{background:#faf5e9;color:#bca979}.toolbar{display:flex;gap:10px;align-items:center;margin-bottom:21px}.toolbar input{max-width:320px}.toolbar .license-input{max-width:550px}.toolbar select{width:auto;min-width:130px}.toolbar>span{font-size:10px;color:#b5a9c2;margin-left:auto}.stack{display:grid;gap:18px}.stack>.btn{justify-self:start;min-width:120px}.form-row{display:grid;grid-template-columns:1fr 1fr;gap:15px}.narrow{max-width:420px}.batch-list{display:grid;gap:12px}.batch-list>div{display:flex;justify-content:space-between;align-items:center;border-bottom:1px solid #f1edf6;padding:0 0 12px;gap:12px}.batch-list b{display:block;color:#aa98b4;font-size:11px;font-weight:500}.batch-list small{display:block;color:#c0b3cb;font-size:9px;margin-top:6px}.batch-list .btn{font-size:9px;padding:8px 10px}.row-actions{min-width:80px}.row-actions button{border:0;background:transparent;color:#a88abd;font-size:10px;padding:3px 5px}.row-actions .danger{color:#c893a4}.notice{display:flex;flex-direction:column;gap:8px;background:#f4f0fb;border:1px solid #e9e1f4;border-radius:12px;padding:20px;margin-bottom:23px}.notice b{font-size:12px;color:#9d85b2;font-weight:500}.notice span,.notice a{font-size:10px;color:#b09fc0;line-height:1.8}.notice a{color:#a27dbe}.empty{padding:35px 15px;text-align:center;color:#c3b8d0;font-size:11px}.empty>span{font-size:33px;color:#dbd1e8;display:block;margin-bottom:10px}.empty p{line-height:1.9}.loading{padding:60px;text-align:center;color:#b6abc3;font-size:12px}.pagination{display:flex;justify-content:flex-end;align-items:center;gap:9px;padding-top:20px;font-size:10px;color:#b1a5bc}.pagination>span{margin-right:auto}.pagination button{font-size:10px;padding:7px 10px}.toast{position:fixed;bottom:30px;left:50%;transform:translateX(-50%);padding:14px 24px;border:1px solid #e4ddef;border-radius:12px;background:#fff;box-shadow:0 12px 50px #8d729f22;color:#9c83b4;font-size:12px;z-index:100;max-width:85vw;line-height:1.8}.toast.bad{color:#bf8098;border-color:#f0dce5}dialog{border:1px solid #eee6f6;border-radius:19px;background:#fff;width:min(500px,92vw);padding:27px;color:#81748f;box-shadow:0 20px 100px #6d4c8b28}dialog::backdrop{background:#2921354d;backdrop-filter:blur(5px)}.dialog-heading{display:flex;justify-content:space-between;align-items:center;gap:20px;margin-bottom:23px}.dialog-heading h2{font-size:18px;font-weight:500;margin:0}.dialog-heading button{border:0;background:#faf7fd;width:28px;height:28px;display:grid;place-items:center;border-radius:50%;font-size:20px;color:#b6a2c8}.dialog-footer{display:flex;justify-content:flex-end;gap:10px;margin-top:25px}.key-output{width:100%;font-family:Consolas,monospace;font-size:11px;margin-bottom:18px}.checkbox{display:flex;align-items:center;font-size:10px;line-height:1.8;gap:9px}button:hover,.btn:hover{filter:brightness(.98)}button:focus-visible,a:focus-visible{outline:2px solid #a887d8;outline-offset:3px}
@media(max-width:1100px){.app{grid-template-columns:190px 1fr}.sidebar{padding:25px 14px}.main{padding:30px 24px}.stats-grid{gap:10px}.stats-grid article{padding:16px}.stats-grid strong{font-size:25px}.two-col{gap:15px}.panel{padding:20px}.brand>span{font-size:12px}.sidebar nav button{padding:12px 10px}.auth-screen{gap:40px}}
@media(max-width:760px){.auth-screen{grid-template-columns:1fr;padding:80px 20px 35px;gap:25px}.auth-visual{display:none}.auth-card{width:100%;margin:auto;padding:28px;max-width:430px}.auth-home{left:25px;top:28px}.app{display:block}.sidebar{position:sticky;top:0;height:auto;z-index:10;padding:14px 16px 10px;border-right:0;border-bottom:1px solid #e9e5ef;background:#fffc;backdrop-filter:blur(18px)}.sidebar>.brand{margin-bottom:13px}.sidebar .brand img{width:29px;height:29px;border-radius:9px}.sidebar-label,.account-mini,.sidebar-bottom>a{display:none}.sidebar nav{display:flex;overflow-x:auto;gap:6px;margin-right:60px}.sidebar nav button{white-space:nowrap;font-size:10px;padding:9px 10px;gap:5px}.sidebar nav button>span{font-size:13px}.sidebar-bottom{position:absolute;right:18px;bottom:21px;padding:0}.sidebar-bottom>button{font-size:9px}.main{padding:25px 16px}.page-header{margin-bottom:20px}.page-header h1{font-size:22px}.header-right{font-size:8px}.header-right img{display:none}.stats-grid{grid-template-columns:1fr 1fr;gap:10px;margin-bottom:17px}.account-stats{grid-template-columns:1fr}.stats-grid strong{font-size:26px}.two-col{grid-template-columns:1fr;gap:0}.welcome-banner{padding:24px 20px;gap:10px}.welcome-banner h2{font-size:18px}.welcome-banner img{width:52px;height:52px;border-radius:16px}.welcome-banner span{font-size:9px}.panel{padding:19px;margin-bottom:17px}.panel h2{font-size:13px}.form-row{gap:10px}.toolbar{flex-wrap:wrap}.toolbar>input{flex:1;min-width:130px}.toolbar>span{font-size:9px}th,td{padding:12px 9px;font-size:10px}.inventory{gap:10px}.inventory strong{font-size:19px}.account-stats article{display:grid;grid-template-columns:1fr auto;align-items:center;gap:8px}.account-stats strong{grid-row:span 2;font-size:21px;margin:0}.account-stats small{grid-row:2}.page-header .overline{letter-spacing:1px}.toast{bottom:18px;width:max-content;max-width:90vw}}
/* Reading contrast and comfortable control sizes for daily operations. */
.sidebar nav button{color:#786e89;font-size:13px}.sidebar nav button.active{color:#715494}.sidebar-label{color:#9386a2}.sidebar-bottom>a,.sidebar-bottom>button{color:#8c7c9d}.account-mini small{color:#8d7d9d}.muted{color:#7e748c;font-size:13px}.stats-grid article>span{font-size:12px;color:#80738e}.stats-grid small{font-size:10px;color:#95859f}.panel h2{font-size:15px;color:#6d5c7e}.inventory span{color:#8c779f}.inventory strong{color:#8865a3}.quick-actions b{font-size:12px;color:#7d6390}.quick-actions small{font-size:10px;color:#9985aa}label{font-size:12px;color:#796585}input,select,textarea{font-size:13px;color:#584363}th{font-size:11px;color:#8f7e9d}td{font-size:12px;color:#7e6b8e}.badge{font-size:10px}.table-scroll code{font-size:11px}.notice span,.notice a{font-size:11px;color:#9580a6}.batch-list b{color:#89709a}.batch-list small{color:#a08baa}.empty{color:#9b87aa}.empty>span{color:#b5a4c6}.toolbar>span{color:#95829f}.row-actions button{font-size:11px}.auth-foot{color:#9b8aaa}.auth-card .muted{font-size:12px}.key-output{font-size:11px}
