:root{--bg: #f5f7fa;--card: #ffffff;--border: #e4e9f0;--text: #16212e;--muted: #5b6b80;--primary: #2f6fed;--primary-dark: #1d54c8;--danger: #e5484d;--warn: #d97706;--ok: #16a34a}*{box-sizing:border-box;margin:0;padding:0}body{font-family:-apple-system,BlinkMacSystemFont,Segoe UI,PingFang SC,Microsoft YaHei,sans-serif;background:var(--bg);color:var(--text);font-size:15px;line-height:26px}h1,h2,h3,h4{line-height:1.45}a{color:var(--primary);text-decoration:none}.layout{display:flex;min-height:100vh}.sidebar{width:220px;background:#1c2536;color:#d5dde8;padding:18px 0;flex-shrink:0;display:flex;flex-direction:column}.sidebar .brand{padding:0 20px 18px;font-size:17px;font-weight:700;color:#fff;border-bottom:1px solid #2a3550;margin-bottom:10px}.sidebar .brand small{display:block;font-size:12px;font-weight:400;color:#8a99b0;margin-top:4px}.sidebar nav{flex:1}.sidebar nav a{display:block;padding:12px 20px;color:#d5dde8;font-size:14.5px}.sidebar nav a.active,.sidebar nav a:hover{background:#2a3550;color:#fff;font-weight:600}.sidebar .foot{padding:12px 20px 0;border-top:1px solid #2a3550;font-size:12.5px;color:#8a99b0}.main{flex:1;padding:24px 28px;max-width:1280px}.card{background:var(--card);border:1px solid var(--border);border-radius:10px;padding:20px 22px;margin-bottom:18px}.card h3{font-size:17px;font-weight:700;margin-bottom:14px;color:var(--text)}.card p{margin-bottom:8px}.card p:last-child{margin-bottom:0}.row{display:flex;gap:10px;align-items:center;flex-wrap:wrap}.row.align-end{align-items:flex-end}.row.align-end>div{padding-bottom:0}.row.align-end button{margin-bottom:1px}label{font-size:13.5px;color:var(--muted);font-weight:600;display:block;margin-bottom:5px;line-height:22px}input,select,textarea{border:1px solid #cfd8e3;border-radius:6px;padding:5px 12px;font-size:14.5px;line-height:26px;height:38px;width:100%;background:#fff;color:var(--text);outline:none;transition:border-color .15s,box-shadow .15s}textarea{height:auto;line-height:1.7;padding:8px 12px}select{cursor:pointer}select:hover,input:hover{border-color:#b6c3d4}input:focus,select:focus,textarea:focus{border-color:var(--primary);box-shadow:0 0 0 3px #2f6fed1f}.field{margin-bottom:14px}button{border:none;border-radius:6px;padding:5px 16px;font-size:14.5px;cursor:pointer;line-height:26px;height:38px;display:inline-flex;align-items:center;justify-content:center;gap:6px;background:var(--primary);color:#fff;transition:background .15s;white-space:nowrap}button:hover{background:var(--primary-dark)}button.ghost{background:#eef2f7;color:var(--text)}button.ghost:hover{background:#e0e7ef}button.danger{background:var(--danger)}button.warn{background:var(--warn)}button:disabled{opacity:.5;cursor:not-allowed}.btn-sm{height:32px;padding:3px 12px;font-size:13px;line-height:24px}table{width:100%;border-collapse:collapse;font-size:14px}th{text-align:left;color:#47566b;font-weight:700;padding:10px 12px;border-bottom:2px solid var(--border);white-space:nowrap;background:#f8fafc}td{padding:9px 12px;border-bottom:1px solid #eef1f6;word-break:break-all;vertical-align:middle}tr:hover td{background:#f8fafc}.badge{display:inline-block;padding:3px 10px;border-radius:10px;font-size:12.5px;font-weight:700}.badge.ACTIVE{background:#e7f6ec;color:var(--ok)}.badge.UNUSED{background:#eef2f7;color:#5b6b80}.badge.REVOKED{background:#fde8e8;color:var(--danger)}.badge.EXPIRED,.badge.PENDING{background:#fdf3e3;color:var(--warn)}.badge.APPROVED{background:#e7f6ec;color:var(--ok)}.badge.REJECTED{background:#fde8e8;color:var(--danger)}.badge.ENABLED{background:#e7f6ec;color:var(--ok)}.badge.DISABLED{background:#fde8e8;color:var(--danger)}.login-wrap{min-height:100vh;display:flex;align-items:center;justify-content:center;background:linear-gradient(135deg,#1c2536,#2f6fed)}.login-box{background:#fff;border-radius:14px;padding:36px 32px;width:360px;box-shadow:0 18px 50px #00000040}.login-box h1{font-size:21px;margin-bottom:6px}.login-box p.sub{color:var(--muted);font-size:13.5px;margin-bottom:20px}.msg{padding:10px 14px;border-radius:6px;font-size:14px;font-weight:600;margin-bottom:12px}.msg.ok{background:#e7f6ec;color:#0f8a3c}.msg.err{background:#fde8e8;color:#c82830}.mono{font-family:SF Mono,Menlo,Consolas,monospace;font-size:13px}.muted{color:var(--muted);font-size:13.5px}.toolbar{display:flex;justify-content:space-between;align-items:center;margin-bottom:14px;gap:12px;flex-wrap:wrap}a.btn-sm,a.ghost.btn-sm{display:inline-flex;align-items:center;justify-content:center;gap:6px;height:32px;padding:3px 12px;font-size:13px;line-height:24px;border-radius:6px;background:#eef2f7;color:var(--text);white-space:nowrap}a.btn-sm:hover,a.ghost.btn-sm:hover{background:#e0e7ef}.copy-mini{height:26px;padding:0 10px;font-size:12.5px;line-height:24px;border-radius:5px;display:inline-flex;align-items:center;justify-content:center;background:#eef2f7;color:#33415c;white-space:nowrap;flex-shrink:0}.copy-mini:hover{background:#dbe6f5;color:var(--primary-dark)}.hl{color:var(--primary);font-weight:700}.hl-danger{color:var(--danger);font-weight:700}.hl-ok{color:var(--ok);font-weight:700}td strong,td b{color:var(--text)}th.mono,td.mono{font-size:13.5px}.modal-mask{position:fixed;top:0;right:0;bottom:0;left:0;background:#0f172a73;display:flex;align-items:center;justify-content:center;z-index:50}.modal{background:#fff;border-radius:12px;padding:24px;width:500px;max-height:88vh;overflow:auto}.modal h3{margin-bottom:16px}.modal .actions{display:flex;justify-content:flex-end;gap:10px;margin-top:18px}.kv{display:grid;grid-template-columns:130px 1fr;gap:8px 12px;font-size:14px;margin-bottom:8px}.kv .k{color:var(--muted);font-weight:600}.kv>span:nth-child(2n){color:var(--text)}.step-block{margin-bottom:24px;padding-bottom:20px;border-bottom:1px dashed var(--border)}.step-block:last-child{border-bottom:none;margin-bottom:0}.step-title{font-size:15.5px;font-weight:700;color:var(--text);display:flex;align-items:center;gap:8px;margin:10px 0 6px}.step-title:before{content:"";width:4px;height:17px;border-radius:2px;background:var(--primary);flex-shrink:0}.step-block>p{margin-bottom:8px}.card>p.muted{line-height:26px}.code-wrap{position:relative;margin-top:10px}.code-wrap .copy-btn{position:absolute;top:10px;right:10px;opacity:.88}pre.codeblock{background:#1c2536;color:#e2eaf5;border-radius:8px;padding:18px 20px;font-family:SF Mono,Menlo,Consolas,monospace;font-size:13.5px;line-height:1.75;overflow-x:auto;white-space:pre;min-height:150px;max-height:480px;overflow-y:auto}.kv .copy-btn{margin-left:8px}.kv .val-strong{font-weight:700;color:var(--primary-dark);word-break:break-all}.k-pill{background:#eef2f7;border-radius:6px;padding:6px 12px;display:inline-block;align-self:start;color:#33415c}.select-inline{height:32px;padding:0 10px;line-height:32px;border-radius:6px;width:auto}
