@charset "UTF-8";
:root{color-scheme:light;--ink:#332b50;--muted:#9a92ae;--line:#eee8fa;--purple:#8650f4;--red:#ee6489;--font:"Segoe UI","Microsoft YaHei",sans-serif}*{box-sizing:border-box}body{margin:0;background:radial-gradient(ellipse at 10% 5%,#e7f8ff 0,transparent 45%),radial-gradient(ellipse at 90% 40%,#ffe6f3 0,transparent 50%),#f5f0ff;font:14px/1.6 var(--font);color:var(--ink);min-height:100dvh}button,input,textarea,select{font:inherit}button,a,input,textarea,select{-webkit-tap-highlight-color:transparent}button{cursor:pointer}button:disabled{opacity:.42;cursor:not-allowed}button:focus-visible,a:focus-visible{outline:3px solid #b596f6;outline-offset:3px}a{color:inherit;text-decoration:none}svg{width:19px;height:19px;flex-shrink:0;vertical-align:middle}h1,h2,h3,p{margin:0}h1{font-size:20px;font-weight:650}h2{font-size:15px}small{font-size:11px}input,select{height:49px;min-width:0;padding:0 14px;border:1px solid #e6ddf6;border-radius:12px;background:#fcfaff;color:var(--ink);font-size:16px}input:focus,textarea:focus,select:focus{border-color:#a87cf4;outline:3px solid #a67cf414}input::placeholder,textarea::placeholder{color:#b4a9c7}label{display:block;color:#7a6a93;font-size:12px;margin-bottom:8px}.field{margin-bottom:19px}.field input,.field select{width:100%}.field small{display:block;color:var(--muted);margin-top:7px}.btn{display:inline-flex;align-items:center;justify-content:center;gap:8px;min-height:46px;padding:11px 17px;border:0;border-radius:13px;background:linear-gradient(120deg,#8053f3,#b54ee8 70%,#da68cf);color:white;font-size:14px;font-weight:600;white-space:nowrap;box-shadow:0 5px 14px #9b64ed20;transition:filter .15s}.btn:hover:not(:disabled){filter:brightness(1.05)}.btn svg{width:17px;height:17px}.btn.secondary{color:#8454c4;background:#f1e8ff;box-shadow:none}.btn.quiet{background:transparent;color:#947aac;box-shadow:none}.btn.small{min-height:40px;font-size:12px;padding:9px 13px;border-radius:11px}.btn.wide{width:100%;min-height:49px}.btn.danger{background:#fff0f5;color:#da6086;box-shadow:none}.muted{color:var(--muted)}.mono{font-family:Consolas,monospace}.brand{display:flex;align-items:center;gap:10px;font-size:18px;font-weight:700;white-space:nowrap;letter-spacing:.3px;color:#603b91}.brand-mark{height:35px;width:35px;display:grid;place-items:center;border-radius:12px;color:white;background:linear-gradient(145deg,#7955f6,#cb61e2);box-shadow:0 4px 12px #a96dec30}.brand-mark svg{height:20px;width:20px}.login-screen{max-width:460px;margin:auto;min-height:100dvh;display:flex;align-items:flex-start;padding:50px 23px}.login-box{width:100%;padding:27px 23px 26px;border-radius:25px;background:#ffffffeb;border:1px solid #fff;box-shadow:0 15px 60px #8c65b910}.login-box>.brand{justify-content:center;margin-bottom:29px}.admin-tag{display:block;text-align:center;font-size:11px;color:#ab91c5;margin:-16px 0 26px}.tabs{display:flex;gap:5px;padding:5px;margin-bottom:24px;border-radius:13px;background:#f4edff}.tabs button{flex:1;padding:10px 8px;border:0;background:transparent;border-radius:9px;color:#a08bb8;font-size:13px}.tabs button.active{background:linear-gradient(120deg,#8e60f1,#b35de9);color:#fff}.captcha-row{display:grid;grid-template-columns:minmax(0,1fr) 128px;gap:10px}.captcha-button{padding:0;border:0;background:#f1edfb;border-radius:12px;overflow:hidden;cursor:pointer}.captcha{display:block;width:128px;height:49px;object-fit:fill}.login-error{min-height:23px;font-size:12px;color:var(--red);margin-bottom:7px}.shell{max-width:460px;margin:0 auto;min-height:100dvh;padding-bottom:env(safe-area-inset-bottom,0px)}.topbar{display:flex;align-items:center;justify-content:space-between;gap:8px;padding:21px 20px 17px}.top-actions{display:flex;gap:6px}.icon-btn{display:inline-flex;align-items:center;justify-content:center;width:39px;height:39px;padding:9px;border:0;border-radius:12px;background:#ffffffbd;color:#9b75bd;cursor:pointer}.icon-btn:hover{background:#f0e6ff}.nav{display:flex;gap:8px;padding:0 20px 17px}.nav button{flex:1;display:flex;justify-content:center;align-items:center;gap:7px;min-height:43px;padding:9px;border:1px solid #eee5fa;border-radius:13px;background:#ffffffa6;color:#a18cb8;font-size:13px}.nav button.active{background:linear-gradient(125deg,#8a60f3,#b85fe6);border-color:transparent;color:white;box-shadow:0 5px 15px #9a66e72b}.nav svg{width:16px;height:16px}.content{padding:0 20px 28px}.access-card{display:flex;align-items:center;justify-content:space-between;gap:15px;padding:20px 21px;margin-bottom:18px;border:1px solid #dddfff;border-radius:21px;background:linear-gradient(115deg,#e9e2ff,#e6eeff 60%,#dcf7fb);box-shadow:0 8px 24px #8f8ce811}.access-card .muted{font-size:11px;color:#9792bd}.countdown{font:600 30px/1.3 Consolas,"Segoe UI",monospace;letter-spacing:.3px;color:#7962cc;margin-top:6px;font-variant-numeric:tabular-nums}.countdown.expired{color:#e56793}.access-card .btn{background:#ffffffad;color:#8b69c5;border:1px solid #ffffffaa;min-height:40px}.pill{display:inline-flex;align-items:center;padding:4px 9px;border-radius:8px;color:#7d60cb;background:#eee5ff;font-size:11px;line-height:1.5;font-weight:500;white-space:nowrap}.pill.red{color:#e27198;background:#fff0f6}.pill.amber{color:#c78e3e;background:#fff5e4}.pill.gray{color:#a399b6;background:#f4f0f9}.panel{border:1px solid #eee7fa;background:#ffffffed;border-radius:20px;overflow:hidden;box-shadow:0 7px 30px #8458af08}.tool-body{padding:19px}.tool-body textarea{width:100%;min-height:245px;resize:vertical;border:1px solid #ede5f8;background:#fdfaff;border-radius:14px;padding:15px;color:var(--ink);font-size:16px;line-height:1.9}.tool-bottom{display:flex;justify-content:flex-end;padding:8px 1px 15px;font-size:10px;color:#b2a4c4}.tool-caption{min-height:0;font-size:12px;color:#a481bc;line-height:1.8;text-align:center}.tool-caption:not(:empty){padding-top:13px}.page-heading{display:flex;align-items:center;justify-content:space-between;margin:3px 0 17px;gap:10px}.page-heading h1{font-size:19px;color:#70518f}.generator{padding:20px;margin-bottom:18px;border:1px solid #f0def5;border-radius:20px;background:linear-gradient(120deg,#fff4fb,#f1eaff);box-shadow:0 7px 30px #a868b008}.generator-copy{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-bottom:19px}.generator-copy h2{font-size:14px;color:#9b6fa5}.duration-preview{font-size:12px;color:#bb76bc;background:#ffffff9c;border-radius:8px;padding:4px 9px}.generator-form{display:grid;grid-template-columns:1fr 1fr;gap:15px 12px}.generator-form .field{margin:0}.generator-form .btn{grid-column:1/-1}.generator-form input{background:#ffffffab;border-color:#eadcf3}.generator-form label{font-size:11px;color:#a18aac}.table-toolbar{display:flex;align-items:center;gap:8px;padding:14px;border-bottom:1px solid #f3edfb}.search{flex:1;width:100%;height:40px;font-size:13px;padding:0 11px;min-width:0}.table-toolbar select{height:40px;max-width:86px;padding:0 7px;font-size:12px}.table-toolbar .btn{flex-shrink:0}.table-wrap{padding:0 15px}table{width:100%;border-collapse:collapse;table-layout:fixed}thead{display:none}tbody{display:block}tbody tr{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:11px 8px;padding:17px 0;border-bottom:1px solid #f1ebf8}tbody tr:last-child{border-bottom:0}td{display:block;padding:0;min-width:0;font-size:12px;color:#9d8bae;overflow-wrap:anywhere}td strong{color:#71528d;font-size:14px;font-weight:600}.row-title{grid-column:1;grid-row:1;align-self:center;min-width:0}.row-title small{margin-left:9px;font-size:10px}.row-status{grid-column:2;grid-row:1;justify-self:end;align-self:center}.row-detail{grid-column:1/-1;display:flex;align-items:center;justify-content:space-between;gap:10px;font-size:11px}.row-detail:before{content:attr(data-label);color:#b8aac7;font-size:10px;white-space:nowrap}.row-controls{grid-column:1/-1}.row-actions{display:flex;gap:8px;justify-content:flex-end;padding-top:1px}.link-btn{min-height:34px;padding:7px 12px;border:0;border-radius:9px;background:#f4edff;color:#a17ac6;font-size:11px}.link-btn.red{color:#df83a5;background:#fff1f7}.card-title{grid-column:1/-1;grid-row:1;padding-right:0}.card-title+.row-detail{grid-row:3}.card-title~.row-status{grid-row:2;grid-column:1/-1;justify-self:start}.table-code{font-size:11px;letter-spacing:0;color:#9374af;word-break:break-all}.card-title small{display:block;margin:5px 0 0}.empty{grid-column:1/-1;text-align:center;padding:26px 0;font-size:12px;color:#baa9cc}.toast{position:fixed;bottom:max(25px,env(safe-area-inset-bottom));left:50%;transform:translateX(-50%);width:max-content;max-width:calc(100vw - 36px);z-index:40;padding:13px 20px;background:#8558cceF;color:#fff;box-shadow:0 7px 30px #9b65b82b;border-radius:14px;font-size:13px;backdrop-filter:blur(8px)}.toast.error{background:#d3749e}.toast[hidden]{display:none}dialog{width:420px;max-width:calc(100vw - 28px);max-height:calc(100dvh - 40px);border:1px solid #fff;border-radius:23px;padding:0;color:var(--ink);box-shadow:0 20px 80px #74519e30}dialog::backdrop{background:#59427347;backdrop-filter:blur(4px)}.modal-head{display:flex;align-items:center;justify-content:space-between;padding:20px 21px 14px;border-bottom:1px solid var(--line)}.modal-head h2{font-size:16px;color:#806294}.modal-head .icon-btn{width:32px;height:32px;background:#f7f0fc}.modal-body{padding:22px}.modal-body .note{font-size:12px;color:#af96bf;margin-bottom:19px;line-height:1.8}.modal-error{font-size:12px;color:#e7759c;min-height:24px;margin-bottom:8px}.modal-actions{display:flex;gap:10px;justify-content:flex-end;margin-top:16px}.generated-codes{width:100%;min-height:170px;padding:12px;border:1px solid #eadff4;border-radius:12px;background:#fcf8ff;color:#9472aa;font:12px/2 Consolas,monospace;resize:vertical}.boot{min-height:80dvh;display:grid;place-items:center;color:#b399ce;font-size:13px}.skeleton{height:190px;border-radius:20px;background:#ffffffa6}.mono input{font-size:14px}@media(max-width:360px){.topbar{padding-left:15px;padding-right:15px}.brand{font-size:16px;gap:8px}.brand-mark{width:32px;height:32px}.content{padding-left:15px;padding-right:15px}.nav{padding-left:15px;padding-right:15px}.login-screen{padding:30px 15px}.login-box{padding:24px 18px}.captcha-row{grid-template-columns:minmax(0,1fr) 112px}.captcha{width:112px}.countdown{font-size:26px}.access-card{padding:17px}.tool-body{padding:15px}.table-code{font-size:10px}.table-toolbar{gap:6px;padding:11px}}

.tool-title{font-size:17px;font-weight:650;color:#8c64bc;margin:0 0 20px}.tool-label{font-size:12px;color:#b08cc8;margin-bottom:9px}

.login-note{text-align:center;margin-top:19px;font-size:12px;color:#b18ec8;line-height:1.8}

.device-note{margin-top:17px;font-size:11px;color:#c58baf;line-height:1.8;text-align:left}.access-note{margin:-4px 3px 17px;color:#b99bc6}.device-note+.login-note{margin-top:12px}

.install-brand{justify-content:center;font-size:18px;margin-bottom:25px}.install-check{display:flex;gap:9px;align-items:center;margin:5px 0 18px;font-size:12px}.install-check input{width:18px;height:18px;accent-color:#9a5ee7}.install-success{font-size:13px;color:#a581ba;margin-bottom:22px}
/* Management layout: customer pages keep the compact mobile layout. */
.admin-shell{max-width:1320px;width:calc(100% - 32px);margin:18px auto;background:#fcfaff;border:1px solid #fff;border-radius:24px;box-shadow:0 14px 70px #8650c511;min-height:calc(100dvh - 36px);overflow:hidden}.admin-shell>.topbar{padding:22px 25px;background:#ffffffc9;border-bottom:1px solid #eee6f9}.admin-shell>.nav{padding:18px 24px 0;max-width:390px}.admin-shell>.content{padding:23px 24px 30px;min-width:0}.admin-shell .page-heading{margin:0 0 20px}.admin-shell .page-heading h1{font-size:23px}.card-stats{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:14px;margin-bottom:22px}.stat-card{--accent:#9362df;--tint:#f2eaff;display:flex;align-items:flex-start;flex-direction:column;gap:9px;min-width:0;min-height:108px;border:1px solid #ede5f8;border-radius:17px;background:white;color:#a591bc;padding:18px 21px;text-align:left;transition:border-color .15s,background .15s,box-shadow .15s}.stat-card strong{font-size:29px;font-weight:650;color:var(--accent);line-height:1.2;letter-spacing:-.7px}.stat-card>span{font-size:12px}.stat-card.unused{--accent:#559be6;--tint:#eef7ff}.stat-card.used{--accent:#a76de1;--tint:#f5ecff}.stat-card.expired{--accent:#e484a8;--tint:#fff0f7}.stat-card:hover,.stat-card.selected{border-color:var(--accent);background:var(--tint);box-shadow:0 3px 14px #b29aca10}.stat-card.selected:after{content:"";height:3px;width:20px;border-radius:4px;background:var(--accent)}.stat-card:not(.selected):after{content:"";height:3px}.admin-shell .generator{padding:22px 23px;margin-bottom:22px}.admin-shell .table-toolbar{padding:16px 19px;justify-content:space-between;gap:14px;flex-wrap:wrap}.admin-shell .table-toolbar .search{max-width:360px;height:42px}.toolbar-buttons{display:flex;align-items:center;gap:9px;flex-shrink:0}.filter-selected{outline:1px solid #ad83de;background:#e9dcff!important}.admin-shell .table-wrap{overflow:auto;padding:0;max-height:calc(100dvh - 430px);min-height:240px;scrollbar-color:#dac9ee #fbf8ff;scrollbar-width:thin;outline-offset:-3px}.admin-shell .cards-table{width:100%;min-width:1090px;border-collapse:separate;border-spacing:0;table-layout:auto}.admin-shell .cards-table thead{display:table-header-group}.admin-shell .cards-table tbody{display:table-row-group}.admin-shell .cards-table tr{display:table-row;padding:0;border:0}.admin-shell .cards-table th,.admin-shell .cards-table td{display:table-cell;white-space:nowrap;word-break:normal;overflow-wrap:normal;text-align:left;padding:15px 14px;border-bottom:1px solid #f2edf8;font-size:12px;color:#8f7b9f;line-height:1.4;vertical-align:middle}.admin-shell .cards-table th{position:sticky;top:0;z-index:2;font-size:11px;font-weight:500;background:#faf6ff;color:#b09abd;padding-top:13px;padding-bottom:13px}.admin-shell .cards-table tbody tr:last-child td{border-bottom:0}.admin-shell .cards-table tbody tr:hover td{background:#fcf9ff}.admin-shell .cards-table .code-cell{min-width:244px}.admin-shell .cards-table .table-code{font-size:12px;color:#8d6ba9;letter-spacing:0;white-space:nowrap;word-break:normal}.admin-shell .cards-table td.empty{text-align:center;color:#bba8ca;padding:48px 20px}.status-stack{display:inline-flex;align-items:center;gap:5px;white-space:nowrap}.pill.unused{color:#659ed3;background:#eef6ff}.pill.used{color:#a572ce;background:#f4eaff}.pill.expired{color:#d485a9;background:#fff0f7}.binding-label{font-size:11px;color:#c2b5ce}.binding-label.bound{color:#8d9cc9}.admin-shell .cards-table .row-actions{display:flex;gap:5px;justify-content:flex-start;padding:0;white-space:nowrap}.admin-shell .cards-table .link-btn{padding:7px 9px;min-height:33px;font-size:11px;flex-shrink:0}.pagination{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:15px 20px;border-top:1px solid #efe7fa;font-size:11px;color:#b09bbf}.pagination>div{display:flex;gap:8px}.pagination .btn{min-height:35px;padding:8px 12px;font-size:11px}.delete-code{padding:13px 12px;border:1px solid #f1def0;background:#fff7fc;border-radius:11px;color:#be7aab;font-size:12px;overflow-wrap:anywhere;margin-bottom:17px}.admin-shell .tool-body{max-width:none}.admin-shell .tool-body textarea{min-height:310px}.admin-shell .access-card{max-width:100%}
@media(min-width:1100px){.admin-shell{max-width:1600px;width:calc(100% - 48px);margin:24px auto;min-height:calc(100dvh - 48px);display:grid;grid-template-columns:164px minmax(0,1fr);grid-template-rows:81px minmax(0,1fr)}.admin-shell>.topbar{grid-column:1/-1;grid-row:1;padding:21px 27px}.admin-shell>.nav{grid-column:1;grid-row:2;max-width:none;padding:25px 12px;flex-direction:column;gap:10px;background:linear-gradient(180deg,#f5edff,#fcfaff);border-right:1px solid #eee5fa}.admin-shell>.nav button{flex:0;justify-content:flex-start;padding:13px 17px;font-size:13px;min-height:47px}.admin-shell>.content{grid-column:2;grid-row:2;padding:26px 24px 28px}.admin-shell .generator{display:flex;align-items:center;gap:30px;justify-content:space-between}.admin-shell .generator-copy{margin:0;display:flex;align-items:flex-start;flex-direction:column;gap:9px;min-width:150px}.admin-shell .generator-form{grid-template-columns:150px 110px 130px;align-items:end;gap:14px}.admin-shell .generator-form .btn{grid-column:auto;min-height:49px}.admin-shell .cards-table .code-cell{position:sticky;left:0;background:white;z-index:1}.admin-shell .cards-table th:first-child{left:0;z-index:3;min-width:244px}.admin-shell .table-wrap{max-height:calc(100dvh - 450px)}.admin-shell .tool-body textarea{min-height:390px}}
@media(max-width:720px){.admin-shell{width:calc(100% - 22px);margin:11px auto;border-radius:21px;min-height:calc(100dvh - 22px)}.admin-shell>.topbar{padding:17px 15px}.admin-shell>.nav{padding:14px 14px 0;max-width:none}.admin-shell>.content{padding:20px 14px 24px}.admin-shell .page-heading h1{font-size:20px}.card-stats{gap:9px;grid-template-columns:repeat(2,minmax(0,1fr));margin-bottom:17px}.stat-card{padding:14px 16px;min-height:96px;gap:7px;border-radius:14px}.stat-card strong{font-size:26px}.stat-card>span{font-size:11px}.admin-shell .generator{padding:18px;margin-bottom:17px}.admin-shell .table-toolbar{padding:13px;gap:11px}.admin-shell .table-toolbar .search{max-width:none;flex-basis:100%}.toolbar-buttons{width:100%;gap:7px}.toolbar-buttons .btn{flex:1;font-size:11px;padding:9px 7px;min-height:40px}.admin-shell .table-wrap{max-height:62dvh;min-height:200px}.admin-shell .cards-table th,.admin-shell .cards-table td{padding:14px 12px;font-size:12px}.admin-shell .cards-table .code-cell{min-width:238px;position:static}.pagination{padding:13px;flex-wrap:wrap;gap:10px}.pagination>div{margin-left:auto}.pagination .btn{min-height:39px;padding:9px 11px}.admin-shell .tool-body textarea{min-height:245px}}

.remember-choice{display:flex;align-items:center;gap:8px;margin:12px 0 0;font-size:12px;color:#a183bc}.remember-choice input{width:17px;height:17px;min-height:17px;flex-shrink:0;margin:0;accent-color:#aa65e5}.clipboard-helper{position:fixed;top:0;left:0;width:2px;height:2px;min-height:0;padding:0;border:0;opacity:.01;z-index:2147483647;font-size:16px;resize:none}.copy-result{-webkit-user-select:text;user-select:text;min-height:210px;line-height:1.9;font-size:15px}.copy-manual-note{font-size:12px;color:#a58abb;margin:12px 0 17px;line-height:1.8}
