:root{font-family:Inter,"Segoe UI","Microsoft YaHei",sans-serif;color:#26332f;background:#f6f7f8;font-size:14px;line-height:1.6;--accent:#147d6f;--border:#e5e9e7;--muted:#77827d}
*{box-sizing:border-box;letter-spacing:0}
body{margin:0}button,input,select,textarea{font:inherit}button,a,input,select,textarea{-webkit-tap-highlight-color:transparent}button{cursor:pointer}button:disabled{opacity:.5;cursor:not-allowed}a{color:inherit;text-decoration:none}button,input,select,textarea{outline-offset:3px}button:focus-visible,a:focus-visible{outline:2px solid var(--accent)}[hidden]{display:none!important}h1,h2,h3,p{margin:0}svg{width:18px;height:18px;flex-shrink:0;stroke-width:1.7}button svg{pointer-events:none}h1{font-size:27px;font-weight:650;line-height:1.4}h2{font-size:17px;font-weight:650}h3{font-size:14px;font-weight:600}.muted{color:var(--muted)}.mono,code,pre{font-family:"Cascadia Code",Consolas,monospace;font-size:12px}code{background:#f1f4f2;padding:2px 6px;border-radius:3px;overflow-wrap:anywhere}.eyebrow{font-size:10px;font-weight:600;color:var(--muted);letter-spacing:1px}.error-text{color:#bd4141;min-height:24px;font-size:13px}.button{display:inline-flex;justify-content:center;align-items:center;gap:8px;min-height:37px;padding:7px 14px;border:1px solid #dce3df;border-radius:5px;background:white;color:#34483e;font-weight:500;white-space:nowrap;transition:background .15s}.button:hover{background:#f1f6f3}.button.primary{background:var(--accent);color:white;border-color:var(--accent)}.button.primary:hover{background:#10695e}.button.danger{color:#b24242;border-color:#edd1d1}.button.small{min-height:31px;padding:4px 10px;font-size:12px}.icon-button{border:1px solid var(--border);background:white;display:inline-flex;align-items:center;justify-content:center;width:33px;height:33px;flex-shrink:0;border-radius:5px;color:#6e7b74}.icon-button:hover{background:#f1f5f2;color:var(--accent)}.icon-button.danger:hover{background:#fff3f3;color:#b24242}.brand-mark{display:flex;justify-content:center;align-items:center;width:37px;height:37px;background:var(--accent);color:white;border-radius:8px;flex-shrink:0}.brand-mark svg{width:24px;height:24px}.brand-mark.large{width:54px;height:54px;margin-bottom:26px}.brand-mark.large svg{width:33px;height:33px}
#login-screen{min-height:100vh;display:grid;place-items:center;background:linear-gradient(120deg,#f8fbf9,#f5f6f8)}.login-form{width:min(365px,calc(100vw - 48px));padding:30px 0}.login-form h1{font-size:30px;margin:8px 0 8px}.login-form label{display:block;margin:32px 0 7px;color:#47564d;font-size:13px}.login-form input{width:100%}.login-form .error-text{margin-top:8px}.login-form .button{width:100%;justify-content:space-between;margin-top:6px}.login-meta{margin-top:30px;font-size:10px;color:#8b9891;display:flex;align-items:center;gap:8px;letter-spacing:1px}.login-footer{position:fixed;bottom:24px;color:#8b9891;font-size:12px;display:flex;gap:18px}
input,select,textarea{border:1px solid #dce3df;background:white;border-radius:5px;min-height:38px;padding:8px 11px;color:#2b3b32;max-width:100%}input:focus,select:focus,textarea:focus{border-color:#75b4a1;outline:2px solid #e1f2eb}textarea{resize:vertical;min-height:100px;line-height:1.7}input[type="checkbox"]{accent-color:var(--accent);min-height:16px;width:16px;height:16px;margin:0;flex-shrink:0}label{font-weight:500;font-size:13px}
.sidebar{position:fixed;inset:0 auto 0 0;width:228px;background:#fff;border-right:1px solid var(--border);display:flex;flex-direction:column;padding:28px 17px 17px;z-index:30}.brand{display:flex;align-items:center;gap:10px;margin:0 9px 38px}.brand strong{font-size:21px;line-height:1.2;display:block}.brand>div>span{font-size:8px;color:#8d9892;letter-spacing:1.6px}.version-tag{align-self:flex-start;margin-left:auto;margin-top:3px;background:#f1f4f2;padding:1px 5px;border:1px solid #e5eae7;border-radius:3px;color:#819187;font-size:8px}.nav-label{font-size:10px;color:#9aa39e;padding:0 14px;margin-bottom:9px}.sidebar nav{display:flex;flex-direction:column;gap:5px;margin-bottom:29px}.sidebar nav a{display:flex;align-items:center;gap:11px;padding:10px 13px;color:#68746d;border-radius:5px;min-height:43px;font-size:13px}.sidebar nav a:hover{background:#f7f9f7}.sidebar nav a.active{background:#eaf5ef;color:#126e5e;font-weight:600}.sidebar nav a.active svg{stroke-width:2}.nav-count{font-size:10px;min-width:20px;height:20px;display:grid;place-items:center;border-radius:4px;margin-left:auto;background:#dbeee2}.sidebar-bottom{margin-top:auto}.server-label{margin:10px 13px 24px;display:flex;align-items:flex-start;gap:10px}.server-label>.status-dot{margin-top:7px}.server-label strong{font-size:11px;display:block;font-weight:500}.server-label div>span{font-size:10px;color:#8e9892}.logout{width:100%;display:flex;align-items:center;gap:12px;padding:12px 13px;border:0;border-top:1px solid var(--border);background:none;color:#818c85;font-size:12px}.main-shell{margin-left:228px;min-height:100vh;display:flex;flex-direction:column}.topbar{height:70px;border-bottom:1px solid var(--border);background:#fff;display:flex;justify-content:space-between;align-items:center;padding:0 34px;gap:15px}.breadcrumb{display:flex;align-items:center;gap:12px;font-size:12px;color:#8a958e}.breadcrumb>svg{width:12px;height:12px;color:#b6bfb9}.breadcrumb strong{font-weight:500;color:#4d5c52}.topbar-right{display:flex;align-items:center;gap:22px}.avatar{width:30px;height:30px;display:grid;place-items:center;background:#eef1ef;border:1px solid var(--border);font-size:12px;border-radius:50%;color:#5e7065}.pill{display:inline-flex;align-items:center;gap:6px;border:1px solid #dcebe2;background:#eff9f2;color:#397e58;padding:3px 8px;font-size:10px;border-radius:4px;white-space:nowrap}.pill.amber{background:#fffbef;border-color:#f2e6c3;color:#9c7a28}.pill.gray{background:#f4f5f5;border-color:#e5e8e6;color:#859088}.pill.red{background:#fff1f0;border-color:#f6d5d2;color:#bb4d45}.status-dot{width:6px;height:6px;display:inline-block;background:#37966e;border-radius:50%;flex-shrink:0}.amber .status-dot{background:#c49637}.gray .status-dot{background:#9ba69e}.red .status-dot{background:#c45858}#main-content{width:100%;max-width:1540px;margin:0 auto;padding:31px 34px 45px;flex:1;outline:0}.page-heading{display:flex;align-items:flex-start;justify-content:space-between;gap:15px;margin-bottom:29px}.page-heading p{margin-top:6px;color:#859087;font-size:12px}.heading-actions{display:flex;gap:8px;padding-top:5px}.section-heading{display:flex;align-items:center;justify-content:space-between;margin-bottom:16px;gap:12px}.section-heading h2{font-size:15px}.section-heading>span{color:#8c978f;font-size:11px}.stats-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:18px;margin-bottom:28px}.stat{background:#fff;border:1px solid var(--border);border-radius:6px;padding:19px 21px;min-width:0}.stat-top{display:flex;justify-content:space-between;align-items:center;font-size:11px;color:#7b8980}.stat-icon{display:flex;align-items:center;justify-content:center;width:28px;height:28px;border-radius:5px;background:#eef7f2;color:#3d9470}.stat:nth-child(2) .stat-icon{background:#f0f2fa;color:#7882b8}.stat:nth-child(3) .stat-icon{background:#fdf5e8;color:#bd934a}.stat:nth-child(4) .stat-icon{background:#f8edf0;color:#b7798c}.stat-number{font-size:29px;font-weight:600;line-height:1.3;margin:10px 0 8px;color:#2a3b30}.stat-number small{font-size:12px;font-weight:400;color:#8a958e;margin-left:5px}.stat-foot{font-size:10px;color:#909b93}.two-columns{display:grid;grid-template-columns:1.25fr 1fr;gap:24px;margin-bottom:30px}.section-block{min-width:0}.connection-summary{background:#fff;border:1px solid var(--border);border-radius:6px;padding:23px;min-height:237px}.connection-main{display:flex;gap:14px;align-items:center;margin-bottom:25px}.robot-avatar{width:49px;height:49px;border:1px solid #dceae0;background:#f0f7f2;color:#65a184;border-radius:8px;display:grid;place-items:center;flex-shrink:0}.robot-avatar svg{width:26px;height:26px}.connection-main h3{font-size:15px;margin-bottom:3px}.connection-main p{font-size:11px;color:#8e9991}.connection-main .pill{margin-left:auto}.key-values{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px 30px}.key-values dt{font-size:10px;color:#94a096;margin-bottom:3px}.key-values dd{font-size:12px;margin:0;color:#4c5d50;overflow-wrap:anywhere}.quick-list{border-top:1px solid var(--border)}.quick-link{display:flex;align-items:center;gap:12px;padding:17px 2px;border-bottom:1px solid var(--border)}.quick-link>svg:first-child{width:19px;height:19px;color:#7c9584}.quick-link div{flex:1}.quick-link h3{font-size:12px;font-weight:500}.quick-link p{font-size:10px;color:#96a097;margin-top:2px}.quick-link>svg:last-child{width:14px;height:14px;color:#a9b4ab}.quick-link:hover h3{color:var(--accent)}.table-wrap{overflow-x:auto;border:1px solid var(--border);border-radius:6px;background:white}table{width:100%;border-collapse:collapse;white-space:nowrap;font-size:12px}th{font-weight:500;color:#8d9890;text-align:left;background:#fafbfa;border-bottom:1px solid var(--border);padding:12px 17px;font-size:10px}td{padding:14px 17px;border-bottom:1px solid #eef1ee;color:#607064}tr:last-child td{border-bottom:none}td strong{font-weight:500;color:#344d3c}td.message-cell{white-space:normal;min-width:220px;max-width:480px;overflow-wrap:anywhere}.table-actions{display:flex;align-items:center;gap:6px}.table-actions .icon-button{border-color:transparent;width:28px;height:28px}.table-actions svg{width:15px;height:15px}.empty-state{padding:48px 20px;text-align:center;color:#9aa59c}.empty-state>svg{width:30px;height:30px;color:#aebbb1;margin-bottom:12px}.empty-state h3{font-size:13px;color:#6c7d70;margin-bottom:5px}.empty-state p{font-size:11px}.filter-bar{display:flex;justify-content:space-between;gap:16px;align-items:center;margin-bottom:19px;flex-wrap:wrap}.filter-group{display:flex;gap:10px;align-items:center;flex-wrap:wrap}.search-field{position:relative}.search-field input{padding-left:35px;width:240px;font-size:12px;min-height:35px}.search-field>svg{position:absolute;left:12px;top:10px;width:15px;height:15px;color:#99a59b}.filter-bar select{min-height:35px;font-size:12px;padding:5px 30px 5px 10px}.result-count{font-size:11px;color:#8c998e}.tabs{display:inline-flex;gap:4px;background:#eef1ee;padding:3px;border-radius:5px}.tabs button{background:none;border:0;border-radius:3px;font-size:11px;color:#839086;min-width:64px;padding:5px 10px}.tabs button.active{background:#fff;box-shadow:0 1px 3px #24352610;color:#347758}.plugin-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:18px}.plugin-item{background:white;border:1px solid var(--border);border-radius:6px;display:flex;flex-direction:column;min-width:0}.plugin-body{padding:21px;flex:1}.plugin-item-top{display:flex;align-items:center;gap:12px;margin-bottom:15px}.plugin-symbol{width:37px;height:37px;display:grid;place-items:center;border:1px solid #e2ece4;border-radius:7px;background:#f4f8f4;color:#79a387}.plugin-item:nth-child(3n+2) .plugin-symbol{background:#f6f4fa;border-color:#e8e2ef;color:#9d8db2}.plugin-item:nth-child(3n+3) .plugin-symbol{background:#fbf7ef;border-color:#efe7d7;color:#b4a17a}.plugin-name{font-size:14px;font-weight:600;overflow-wrap:anywhere}.plugin-version{font-size:10px;color:#9aa59d}.plugin-item-top .pill{margin-left:auto}.plugin-description{font-size:11px;color:#8a968c;min-height:42px;line-height:1.9;overflow-wrap:anywhere}.plugin-meta{display:flex;gap:10px;font-size:10px;color:#a0aaa1;margin-top:15px}.plugin-bottom{padding:10px 17px;border-top:1px solid #edf0ed;display:flex;justify-content:space-between;align-items:center;font-size:10px;color:#8c978e;background:#fcfdfb;border-radius:0 0 6px 6px}.plugin-tools{display:flex;gap:3px}.plugin-tools .icon-button{border:0;background:none;width:28px;height:28px}.plugin-tools svg{width:14px;height:14px}.switch{width:30px;height:18px;border:0;background:#cdd6ce;border-radius:12px;position:relative;flex-shrink:0;padding:0}.switch:after{content:"";position:absolute;top:3px;left:3px;width:12px;height:12px;border-radius:50%;background:white;box-shadow:0 1px 2px #0002;transition:left .12s}.switch.on{background:#36967b}.switch.on:after{left:15px}.form-section{border-bottom:1px solid var(--border);padding:0 0 28px;margin-bottom:28px;display:grid;grid-template-columns:210px minmax(0,650px);gap:30px}.form-section-heading h2{font-size:14px;margin-bottom:6px}.form-section-heading p{font-size:11px;color:#91a095;line-height:1.9}.form-fields{display:flex;flex-direction:column;gap:17px}.field{display:flex;flex-direction:column;gap:7px;min-width:0}.field label{font-size:12px;color:#5c6f60}.field input,.field textarea,.field select{width:100%;font-size:12px}.field .field-hint{font-size:10px;color:#96a299}.field-row{display:grid;grid-template-columns:1fr 1fr;gap:16px}.check-label{display:flex;align-items:center;gap:10px;font-size:12px;color:#6a7f6f;font-weight:400}.form-end{display:flex;justify-content:flex-end;gap:9px;margin-top:18px}.note{border-left:3px solid #c7d7cd;padding:10px 14px;background:#eff3f0;font-size:11px;color:#7c8d80;line-height:1.9;overflow-wrap:anywhere}.note.amber{border-color:#dcc58d;background:#fbf8ef;color:#a49063}.connection-detail{max-width:850px}.token-row{display:flex;gap:8px}.token-row input{flex:1;min-width:0}.badge-number{font-size:10px;color:#7e9d89;border:1px solid #dbe6de;border-radius:50%;width:22px;height:22px;display:inline-grid;place-items:center;margin-right:9px}.connection-step{margin-bottom:30px}.connection-step h2{font-size:14px;margin-bottom:14px}.connection-step .field{margin-left:32px}.connection-step .field+.field{margin-top:15px}.connection-step .note{margin-left:32px}.overview-note{font-size:10px;color:#a5afa7;margin-top:13px;display:flex;gap:7px;align-items:center}.overview-note svg{width:13px;height:13px}.main-footer{padding:0 34px 21px;display:flex;justify-content:space-between;font-size:10px;color:#acb4ae;gap:15px}.main-footer .mono{font-size:9px;margin-left:7px}dialog{width:min(670px,calc(100vw - 32px));max-height:calc(100vh - 48px);padding:0;border:1px solid var(--border);border-radius:8px;color:#334b3c;box-shadow:0 20px 80px #17302025}dialog::backdrop{background:#15261d55;backdrop-filter:blur(2px)}.dialog-header{display:flex;align-items:center;justify-content:space-between;padding:20px 24px;border-bottom:1px solid var(--border)}.dialog-header h2{font-size:16px}#dialog-body{padding:22px 24px;overflow-wrap:anywhere}#dialog-body .field{margin-bottom:15px}.code-input{font-family:Consolas,"Microsoft YaHei",monospace!important;font-size:11px!important;tab-size:2;white-space:pre;min-height:140px}.dialog-tabs{margin-bottom:18px}.toast{position:fixed;bottom:28px;left:calc(50% + 114px);transform:translateX(-50%);background:#294c3a;color:#fff;border-radius:6px;box-shadow:0 5px 20px #273e2420;padding:10px 20px;font-size:12px;z-index:200;max-width:calc(100vw - 36px);overflow-wrap:anywhere}.toast.error{background:#964c44}.mobile-only{display:none}.load-error{padding:30px 0;display:flex;align-items:center;gap:12px;color:#b0574b}
.bottom-gap{margin-bottom:20px}.top-gap{margin-top:40px}
@media(min-width:1600px){#main-content{padding-top:40px}.topbar{padding-left:45px;padding-right:45px}}
@media(max-width:1150px){.sidebar{width:200px;padding-left:13px;padding-right:13px}.main-shell{margin-left:200px}#main-content{padding:28px 25px}.topbar{padding:0 25px}.stats-grid{gap:12px}.stat{padding:17px}.plugin-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.form-section{grid-template-columns:170px minmax(0,1fr);gap:24px}.toast{left:calc(50% + 100px)}.two-columns{gap:20px}}
@media(max-width:850px){.sidebar{width:185px}.main-shell{margin-left:185px}.brand{margin-left:2px;margin-right:2px}.sidebar nav a{padding-left:10px;padding-right:10px}.stats-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.two-columns{grid-template-columns:1fr}.form-section{grid-template-columns:1fr;gap:17px}.plugin-grid{gap:12px}.plugin-body{padding:16px}.plugin-item-top{gap:8px}.plugin-item-top .pill{padding:2px 5px}.plugin-symbol{width:30px;height:30px}.plugin-name{font-size:12px}.heading-actions{padding-top:0}.page-heading{margin-bottom:25px}.page-heading h1{font-size:24px}.toast{left:calc(50% + 92px)}}
@media(max-width:640px){.sidebar{width:228px;transform:translateX(-100%);transition:transform .2s;box-shadow:10px 0 30px #20382b15}.sidebar.open{transform:translateX(0)}.main-shell{margin-left:0}.mobile-only{display:inline-flex}.topbar{height:60px;padding:0 17px}.breadcrumb{gap:8px}.breadcrumb>span{display:none}.breadcrumb>svg{display:none}.topbar-right{gap:12px}#main-content{padding:24px 17px 35px}.main-footer{padding:0 17px 18px}.page-heading{align-items:flex-start;gap:10px}.page-heading h1{font-size:23px}.page-heading p{max-width:210px;font-size:11px}.heading-actions .button{font-size:11px;padding:6px 9px;gap:5px;min-height:33px}.heading-actions .button svg{width:14px}.stats-grid{gap:10px;margin-bottom:25px}.stat{padding:15px}.stat-number{font-size:25px}.stat-top{font-size:10px}.stat-icon{width:23px;height:23px}.stat-icon svg{width:14px;height:14px}.two-columns{gap:23px}.connection-summary{padding:17px}.plugin-grid{grid-template-columns:1fr}.plugin-item-top{gap:12px}.plugin-name{font-size:14px}.plugin-symbol{width:37px;height:37px}.filter-bar{align-items:flex-start}.filter-group{gap:7px}.search-field input{width:100%;min-width:0}.search-field{flex:1;min-width:145px}.filter-bar .filter-group{width:100%}.filter-bar select{max-width:125px}.filter-bar .result-count{display:none}.form-section{padding-bottom:24px;margin-bottom:24px}.field-row{grid-template-columns:1fr;gap:15px}.connection-main{gap:10px}.connection-main h3{font-size:13px}.connection-main .pill{font-size:9px}.key-values{gap:13px 20px}.toast{left:50%;bottom:18px}.dialog-header{padding:16px 18px}#dialog-body{padding:18px}.connection-step .field,.connection-step .note{margin-left:0}.token-row{flex-wrap:wrap}.token-row input{width:100%;flex-basis:calc(100% - 86px)}.tabs button{min-width:52px;padding:5px 7px}.page-heading .heading-actions{flex-shrink:0}.connection-summary .pill{max-width:100%}}
