:root{--blue:#1766ed;--blue-dark:#0c4dc0;--ink:#17304d;--muted:#738398;--line:#dde5ef;--surface:#fff;--background:#f3f6fb;--red:#c93e47;--radius:14px;font-family:"Segoe UI","Microsoft YaHei",sans-serif;color:var(--ink);background:var(--background);font-size:14px;line-height:1.5}*{box-sizing:border-box}body{margin:0}button,input,select,textarea{font:inherit}button{cursor:pointer}a{color:inherit;text-decoration:none}[hidden]{display:none!important}.topbar{height:80px;background:#fff;border-bottom:1px solid var(--line);padding:0 4vw;display:flex;align-items:center;justify-content:space-between;gap:20px}.brand{display:flex;align-items:center;gap:12px}.brand img{border-radius:10px;object-fit:cover}.brand span{display:flex;align-items:baseline;gap:12px}.brand strong{font-size:22px;letter-spacing:.08em}.brand small{color:var(--muted);border-left:1px solid var(--line);padding-left:12px}.account-bar{display:flex;align-items:center;gap:12px}.account-bar>span{color:var(--muted);font-size:13px;margin-right:4px}main{max-width:1560px;margin:0 auto;padding:38px 4vw 28px}h1,h2,h3,p{margin-top:0}h1{font-size:30px;line-height:1.3;letter-spacing:-.03em;margin-bottom:10px}h2{font-size:21px;margin-bottom:10px}h3{font-size:15px;margin-bottom:0}.muted{color:var(--muted)}.small{font-size:12px}.eyebrow{display:block;color:var(--blue);font-size:11px;font-weight:700;letter-spacing:.12em;margin-bottom:10px}.button{display:inline-flex;justify-content:center;align-items:center;gap:7px;min-height:38px;padding:8px 15px;color:var(--ink);background:#fff;border:1px solid #cbd7e6;border-radius:8px;line-height:1.2;font-weight:600;white-space:nowrap;transition:background .15s,border-color .15s}.button:hover{background:#f3f7ff;border-color:#8eaddc}.button.primary{background:var(--blue);border-color:var(--blue);color:#fff;box-shadow:0 3px 8px #1766ed15}.button.primary:hover{background:var(--blue-dark);border-color:var(--blue-dark)}.button.subtle{background:transparent;border-color:transparent;color:var(--blue)}.button.subtle:hover{background:#edf4ff}.button.danger-outline{color:var(--red);border-color:#efc8cc}.button:disabled,button:disabled{cursor:default;opacity:.5}.button.wide{width:100%;min-height:44px}.text-button{border:0;background:none;padding:0 4px;color:var(--blue);text-decoration:underline}.icon-button{width:32px;height:32px;border:0;background:#f2f5fa;border-radius:7px;color:#718196;font-size:24px;line-height:1}.icon-button:hover{background:#e6edf7}.button:focus-visible,button:focus-visible,a:focus-visible{outline:3px solid #8ebaff;outline-offset:3px}input,select,textarea{border:1px solid #cdd8e5;border-radius:8px;background:#fff;padding:10px 12px;color:var(--ink);width:100%;min-height:42px;outline:none;transition:border-color .15s,box-shadow .15s}input:focus,select:focus,textarea:focus{border-color:var(--blue);box-shadow:0 0 0 3px #1766ed18}input::placeholder,textarea::placeholder{color:#95a2b3}textarea{resize:vertical}label{display:block;font-size:13px;font-weight:600}label>input,label>select,label>textarea{display:block;margin-top:7px;font-weight:400}.login-layout{min-height:calc(100vh - 180px);display:grid;grid-template-columns:1fr 440px;align-items:center;gap:10vw;max-width:1100px;margin:0 auto}.login-intro h1{font-size:46px;line-height:1.35;margin-bottom:22px}.login-intro p{color:var(--muted);font-size:16px;line-height:1.9}.intro-note{font-size:12px;color:#6e8097;margin-top:38px;display:flex;align-items:center;gap:7px}.status-dot{width:7px;height:7px;background:#2aa77b;border-radius:50%}.login-card{background:#fff;border:1px solid var(--line);box-shadow:0 12px 50px #21477708;border-radius:18px;padding:36px}.login-card h2{font-size:24px}.login-card label{margin:24px 0}.login-card .button{margin-top:6px}.form-note{font-weight:400;color:var(--muted);font-size:12px;margin:10px 0 0;line-height:1.7}.login-card>.form-note{margin-top:20px}.boot-state{display:flex;min-height:55vh;flex-direction:column;align-items:center;justify-content:center;color:var(--muted)}.boot-state h1{font-size:21px;color:var(--ink);margin-top:20px}.spinner{display:inline-block;width:28px;height:28px;border:3px solid #dce9ff;border-top-color:var(--blue);border-radius:50%;animation:spin 1s linear infinite}@keyframes spin{to{transform:rotate(360deg)}}.page-heading{display:flex;justify-content:space-between;align-items:center;gap:20px;margin-bottom:28px}.page-heading p{margin-bottom:0}.page-heading .button{min-height:44px;padding-inline:20px}.page-heading .button>span{font-size:20px;font-weight:400}.notice{border-radius:8px;padding:12px 15px;font-size:13px;line-height:1.65;margin-bottom:18px}.notice.warning{background:#fff8e9;color:#8b651b;border:1px solid #f2ddb0}.notice.info{background:#edf5ff;border:1px solid #d6e6ff;color:#3266a9}.tabbar{display:flex;gap:24px;margin-bottom:16px;border-bottom:1px solid var(--line)}.tab{background:none;border:0;color:var(--muted);padding:12px 3px 14px;font-size:15px;font-weight:600;position:relative}.tab.active{color:var(--blue)}.tab.active:after{content:"";height:3px;background:var(--blue);position:absolute;bottom:-1px;left:0;right:0;border-radius:3px 3px 0 0}.tab>span{background:#e9f0fa;color:#647d9f;border-radius:5px;font-size:11px;padding:2px 7px;margin-left:5px}.panel{background:#fff;border:1px solid var(--line);border-radius:var(--radius);overflow:hidden;box-shadow:0 3px 14px #17304d03}.toolbar{padding:20px;display:flex;align-items:center;gap:10px;border-bottom:1px solid var(--line);flex-wrap:wrap}.toolbar p{margin:4px 0 0}.search-field{width:300px}.filter-field{width:145px}.toolbar input,.toolbar select{margin:0;min-height:38px;padding-block:8px}.toolbar-summary{margin-left:auto;font-size:12px}.table-scroll{width:100%;overflow:auto}table{border-collapse:collapse;width:100%;text-align:left;white-space:normal}th{background:#f8fafc;color:#708196;font-size:12px;font-weight:600;padding:13px 18px;border-bottom:1px solid var(--line);white-space:nowrap}td{padding:18px;border-bottom:1px solid #eaf0f6;vertical-align:middle;font-size:13px}tbody tr:last-child td{border-bottom:0}tbody tr:hover td{background:#fbfdff}.cards-table{min-width:1000px}.cards-table td:first-child{min-width:190px;max-width:280px}.cell-title{display:block;font-weight:600;overflow-wrap:anywhere;margin-bottom:5px}.code-hint{display:block;color:#7a8ba0;font:12px Consolas,"Courier New",monospace;white-space:nowrap}.cell-note{max-width:220px;overflow-wrap:anywhere;color:var(--muted);font-size:12px}.date-pair{display:flex;flex-direction:column;gap:4px;font-size:12px;white-space:nowrap}.date-pair span:first-child{color:var(--muted)}.badge{display:inline-flex;align-items:center;gap:5px;border-radius:5px;padding:3px 8px;font-size:11px;font-weight:600;white-space:nowrap}.badge:before{content:"";width:5px;height:5px;border-radius:50%;background:currentColor}.badge.enabled{background:#eaf8f1;color:#23815b}.badge.disabled{background:#fff0f1;color:#bd4a55}.badge.expired{background:#f1f3f7;color:#7b8698}.badge.inactive{background:#edf4ff;color:#3976c6}.status-cell{display:flex;flex-direction:column;align-items:flex-start;gap:5px}.status-cell small{font-size:11px;color:var(--muted)}.row-button{color:var(--blue);background:#fff;border:1px solid #c5d8f7;border-radius:6px;padding:6px 10px;font-size:12px;white-space:nowrap}.row-button:hover{background:#edf4ff}.row-button.danger{color:var(--red);border-color:#efc8cc}.actions-heading{text-align:right}.row-actions{text-align:right}.pagination{display:flex;justify-content:space-between;align-items:center;gap:12px;border-top:1px solid var(--line);padding:14px 20px;font-size:12px}.pagination>div{display:flex;align-items:center;gap:8px}.pagination .button{min-height:32px;font-size:12px;padding:7px 11px}.page-size-label{display:flex;align-items:center;gap:6px;color:var(--muted);font-size:12px;font-weight:400;margin-right:10px;white-space:nowrap}.page-size-label select{display:inline-block;width:80px;min-height:32px;padding:5px 7px;margin:0;font-size:12px}.empty-state{padding:55px 20px;text-align:center;color:var(--muted)}.empty-state h2{font-size:17px;color:#536983;margin:10px 0}.empty-state p{font-size:13px;margin-bottom:0}.empty-icon{font-size:42px;color:#a6bfdf}.panel-error{padding:24px;color:var(--red);background:#fff8f9;border-top:1px solid #f5dfe2}.footer-note{text-align:center;font-size:12px;color:#8b99aa;margin:22px 0}.inline-error{padding:10px 12px;background:#fff0f1;border:1px solid #f3cbd0;border-radius:7px;font-size:12px;color:#b93c4c;line-height:1.65;margin:12px 0 0;overflow-wrap:anywhere}.modal{border:1px solid #d4deec;border-radius:16px;padding:0;max-width:calc(100vw - 32px);width:560px;max-height:calc(100vh - 40px);box-shadow:0 20px 70px #102b5550;overflow:auto;color:var(--ink)}.modal::backdrop{background:#18324c66;backdrop-filter:blur(2px)}.modal-wide{width:720px}.modal-small{width:460px}.detail-modal{width:780px}.modal-heading{display:flex;align-items:center;justify-content:space-between;gap:15px;padding:23px 26px 20px;border-bottom:1px solid var(--line);background:#fff;position:sticky;top:0;z-index:1}.modal-heading h2{margin:0;line-height:1.5}.modal-heading .eyebrow{margin-bottom:4px}.modal-body{padding:24px 26px}.modal-body>label{margin-bottom:18px}.modal-body>label:last-of-type{margin-bottom:0}.modal-footer{padding:17px 26px;display:flex;justify-content:flex-end;gap:9px;border-top:1px solid var(--line);background:#fbfcfe;flex-wrap:wrap}.form-grid{display:grid;grid-template-columns:1fr 1fr;gap:20px 16px}.form-grid>label{margin-bottom:0}.full{grid-column:1/-1}.form-grid>.notice,.form-grid>p{margin-bottom:0}.created-output-label{margin-top:22px}.created-output-label textarea{font:13px/1.9 Consolas,"Courier New",monospace;background:#f8fafc;white-space:pre;overflow:auto;resize:vertical}.detail-facts{margin:0;display:grid;grid-template-columns:1fr 1fr;gap:17px 22px}.detail-facts>div{padding-bottom:12px;border-bottom:1px solid #edf1f7;min-width:0}.detail-facts dt{font-size:12px;color:var(--muted);margin-bottom:5px}.detail-facts dd{font-size:13px;margin:0;overflow-wrap:anywhere}.detail-actions{display:flex;gap:10px;margin-top:22px;flex-wrap:wrap}.section-title{display:flex;align-items:center;justify-content:space-between;margin:28px 0 12px;gap:12px}.device-list{display:flex;flex-direction:column;gap:10px}.device-card{display:grid;grid-template-columns:1fr auto;gap:12px;border:1px solid var(--line);border-radius:9px;padding:14px}.device-card strong{display:block;font-size:13px;margin-bottom:4px;overflow-wrap:anywhere}.device-card p{font-size:12px;color:var(--muted);margin:3px 0;overflow-wrap:anywhere}.device-card button{align-self:center}.detail-audit{display:flex;flex-direction:column;gap:10px}.audit-item{border-left:2px solid #d8e7fc;padding-left:12px;font-size:12px}.audit-item strong{font-weight:600;margin-right:10px}.audit-item time{color:var(--muted)}.audit-item p{color:var(--muted);margin:4px 0 0;overflow-wrap:anywhere}.toast{position:fixed;left:50%;bottom:28px;transform:translateX(-50%);max-width:calc(100vw - 32px);padding:12px 20px;background:#17304df2;color:white;border-radius:9px;box-shadow:0 5px 25px #17304d26;font-size:13px;z-index:1000;line-height:1.6}.sr-only{position:absolute;clip:rect(0,0,0,0);clip-path:inset(50%);width:1px;height:1px;overflow:hidden;white-space:nowrap}.audit-detail-text{max-width:600px;overflow-wrap:anywhere;font-size:12px;color:var(--muted)}@media(min-width:1600px){main{padding-left:36px;padding-right:36px}.topbar{padding-inline:max(4vw,calc((100vw - 1488px)/2))}}@media(max-width:1000px){.login-layout{gap:40px;grid-template-columns:1fr 400px}.login-intro h1{font-size:36px}.toolbar-summary{width:100%;margin-left:0}.topbar{padding-inline:24px}main{padding:28px 24px}.pagination{padding-inline:16px}}@media(max-width:760px){.topbar{height:68px;padding:0 16px}.brand strong{font-size:19px}.brand img{width:34px;height:34px}.brand span{gap:8px}.brand small{font-size:11px;padding-left:8px}.account-bar{gap:3px}.account-bar>span{display:none}.account-bar .button{font-size:12px;padding-inline:8px}main{padding:24px 16px}.login-layout{display:block;min-height:auto;max-width:440px;margin-top:20px}.login-intro{margin-bottom:30px}.login-intro h1{font-size:30px;margin-bottom:12px}.login-intro h1 br{display:none}.login-intro p{font-size:13px}.intro-note{display:none}.login-card{padding:26px}.page-heading{align-items:flex-start;margin-bottom:22px}.page-heading h1{font-size:25px}.page-heading p{font-size:12px;max-width:250px}.page-heading .button{padding:10px 13px;min-height:40px}.eyebrow{font-size:10px}.toolbar{padding:15px;gap:8px}.search-field{width:calc(100% - 143px)}.filter-field{width:135px}.toolbar-summary{width:auto;margin-left:auto}.pagination{align-items:flex-start;flex-direction:column;padding:13px 15px}.pagination>div{width:100%;justify-content:flex-end}.page-size-label{margin-right:auto}.modal{border-radius:12px;max-height:calc(100dvh - 28px)}.modal-heading{padding:19px 20px}.modal-body{padding:20px}.modal-footer{padding:15px 20px}.modal-heading h2{font-size:19px}.detail-facts{gap:13px 15px}.device-card{padding:12px}.tabbar{gap:22px}.tab{font-size:14px}.form-grid{gap:17px 12px}.notice{font-size:12px}}@media(prefers-reduced-motion:reduce){*{transition:none!important;scroll-behavior:auto!important}.spinner{animation-duration:2s}}
