:root{font-family:system-ui,-apple-system,Segoe UI,Microsoft YaHei,sans-serif;font-size:14px;color:#1a1a1a;background:#f5f6f8}*{box-sizing:border-box}body{margin:0}button,input,select,textarea{font-family:inherit;font-size:14px}.login-wrap{min-height:100vh;display:flex;align-items:center;justify-content:center;background:linear-gradient(135deg,#e8eef7,#f5f6f8)}.login-card{width:360px;background:#fff;padding:36px;border-radius:14px;box-shadow:0 8px 30px #00000014;display:flex;flex-direction:column;gap:16px}.login-card h1{margin:0;font-size:22px}.muted{color:#888;font-size:12px}label{display:flex;flex-direction:column;gap:6px;font-size:13px;color:#444}input,select,textarea{padding:9px 11px;border:1px solid #d5d9e0;border-radius:8px;background:#fff;outline:none}input:focus,select:focus,textarea:focus{border-color:#3b6fd4}textarea{min-height:70px;resize:vertical}.btn{padding:9px 14px;border:1px solid #d5d9e0;background:#fff;border-radius:8px;cursor:pointer;color:#222}.btn:hover{border-color:#3b6fd4}.btn-primary{background:#2f62c9;color:#fff;border-color:#2f62c9}.btn-primary:hover{background:#2754ae}.btn-small{padding:5px 10px;font-size:12px}.btn-danger{color:#c0392b;border-color:#e0b5b0}.btn-copy{padding:2px 8px;font-size:11px;margin-left:6px}.btn:disabled{opacity:.55;cursor:not-allowed}.error{background:#fdecea;color:#b3261e;padding:9px 12px;border-radius:8px;font-size:13px}.ok{background:#e8f6ed;color:#1e7a3c;padding:9px 12px;border-radius:8px;font-size:13px}.layout{display:flex;min-height:100vh}.sidebar{width:250px;background:#1f2733;color:#e8ecf2;padding:20px 16px;display:flex;flex-direction:column;gap:14px;flex-shrink:0}.brand{font-size:18px;font-weight:600}.brand .muted{color:#8a95a5}.user-line{font-size:13px;padding-bottom:12px;border-bottom:1px solid #333d4b}.tabs{display:flex;gap:4px;flex-wrap:wrap}.tabs button{padding:6px 10px;border:0;background:transparent;color:#9aa5b4;border-radius:6px;cursor:pointer}.tabs button.active{background:#2f62c9;color:#fff}.sidebar .tabs button.active{background:#34425a}.sidebar h4{margin:6px 0 0;font-size:12px;color:#8a95a5;text-transform:uppercase}.cat-list{list-style:none;padding:0;margin:0;display:flex;flex-direction:column;gap:2px;max-height:50vh;overflow:auto}.cat-list button{width:100%;text-align:left;padding:8px 10px;border:0;background:transparent;color:#d6dce5;border-radius:6px;cursor:pointer;display:flex;align-items:center;gap:8px}.cat-list button:hover{background:#2a3442}.cat-list button.active{background:#34425a;color:#fff}.dot{width:8px;height:8px;border-radius:50%;background:#5aa9e6;flex-shrink:0}.dot-high{background:#e05a4a}.sidebar-bottom{margin-top:auto}.content{flex:1;padding:28px 34px;overflow:auto;background:#fff}.empty{color:#999;text-align:center;margin-top:120px;font-size:15px}.content-head{display:flex;align-items:center;justify-content:space-between;margin-bottom:16px}.content-head h2{margin:0;font-size:21px}.badge{font-size:11px;padding:2px 7px;background:#eef2fb;color:#3b6fd4;border-radius:10px;margin-left:6px}.badge-high{background:#fdecea;color:#b3261e}.unlock-panel{background:#f8f9fb;border:1px solid #e3e7ee;border-radius:12px;padding:18px;margin-bottom:18px}.unlock-head{display:flex;align-items:center;gap:12px;margin-bottom:12px}.row{display:flex;gap:10px;align-items:center;flex-wrap:wrap}.row input{flex:1;min-width:180px}.toolbar{display:flex;gap:10px;align-items:center;margin-bottom:14px}.editor{background:#f8f9fb;border:1px solid #e3e7ee;border-radius:12px;padding:18px;margin-bottom:18px;display:flex;flex-direction:column;gap:12px;max-width:520px}.editor h3{margin:0}.secret-table{width:100%;border-collapse:collapse;font-size:13px}.secret-table th,.secret-table td{text-align:left;padding:10px 12px;border-bottom:1px solid #edf0f4;vertical-align:middle}.secret-table th{color:#7a8290;font-weight:500;background:#fafbfc}.secret-table tr:hover td{background:#fafbfc}.admin-wrap{max-width:1000px}.panel{margin-top:16px;display:flex;flex-direction:column;gap:16px}.grid-form{display:grid;grid-template-columns:repeat(auto-fit,minmax(200px,1fr));gap:12px;align-items:end}.grid-form label{flex-direction:row;align-items:center;gap:6px}.cat-head{display:flex;align-items:center;justify-content:space-between;gap:8px;margin-top:6px}.cat-head h4{margin:0}.small{font-size:12px}.modal-mask{position:fixed;top:0;right:0;bottom:0;left:0;background:#141a2473;display:flex;align-items:center;justify-content:center;z-index:100;padding:20px}.modal{background:#fff;border-radius:14px;width:480px;max-width:100%;max-height:90vh;overflow:auto;box-shadow:0 20px 60px #00000040}.modal-wide{width:640px}.modal-head{display:flex;align-items:center;justify-content:space-between;padding:16px 20px;border-bottom:1px solid #edf0f4;position:sticky;top:0;background:#fff}.modal-head h3{margin:0;font-size:17px}.modal-body{padding:20px;display:flex;flex-direction:column;gap:14px}.modal-body form{display:flex;flex-direction:column;gap:14px}code{background:#f2f4f8;padding:3px 7px;border-radius:5px;font-family:ui-monospace,Consolas,monospace;font-size:12px;word-break:break-all}.cak-box{background:#f8f9fb;border:1px solid #e3e7ee;border-radius:10px;padding:14px;display:flex;flex-direction:column;gap:10px}.cak-head{display:flex;align-items:center;justify-content:space-between;font-size:13px;color:#444}.cak-gen{display:flex;align-items:center;gap:8px;flex-wrap:wrap}.cak-gen code{flex:1;min-width:200px}.check{flex-direction:row;align-items:center;gap:8px;font-size:13px;color:#444}.check input{width:auto}.detail{display:flex;flex-direction:column;gap:2px}.detail-row{display:flex;gap:16px;padding:12px 0;border-bottom:1px solid #f0f2f6;align-items:flex-start}.detail-row>span{width:110px;flex-shrink:0;color:#7a8290;font-size:13px;padding-top:4px}.detail-row>div{flex:1;display:flex;align-items:center;gap:8px;flex-wrap:wrap}.detail-notes pre{background:#f8f9fb;border:1px solid #e3e7ee;border-radius:8px;padding:12px;white-space:pre-wrap;font-family:inherit;font-size:13px;line-height:1.7;margin:0;width:100%;color:#333}.cell-val{margin-right:6px;word-break:break-all}.danger-zone{border-top:1px dashed #e0b5b0;padding-top:12px;display:flex;flex-direction:column;gap:10px}.danger-zone .btn-danger{align-self:flex-start}hr{border:0;border-top:1px solid #edf0f4;margin:4px 0}.warn-box{background:#fff8e6;border:1px solid #f0d79a;border-left:3px solid #d99b1f;border-radius:8px;padding:12px 14px;font-size:13px;line-height:1.7;color:#6b4a06}.warn-box strong{font-weight:600}.run-log{background:#1f2733;color:#d6e2f0;border-radius:8px;padding:12px 14px;font-size:12px;line-height:1.7;white-space:pre-wrap;margin:0;font-family:ui-monospace,Consolas,monospace}.cak-result{background:#e8f6ed;border:1px solid #bfe3cd;border-radius:10px;padding:14px;display:flex;flex-direction:column;gap:8px}.cak-result h4{margin:0;font-size:13px;color:#1e7a3c}.cak-line{display:flex;align-items:center;gap:8px;flex-wrap:wrap;font-size:13px}.cak-line>span{min-width:110px;color:#2c5c3e}.cak-line code{flex:1;min-width:180px}.secret-table select{width:100%;min-width:150px}.secret-table input[type=password],.secret-table input[type=text]{width:100%;min-width:130px}.secret-table .check{font-size:11px;gap:4px;color:#555}.admin-wrap .panel h4{margin:8px 0 0;font-size:14px}
