:root{font-family:Inter,-apple-system,BlinkMacSystemFont,"Segoe UI","Microsoft YaHei",sans-serif;color:#222629;background:#f6f7f8;font-size:14px;line-height:1.5;letter-spacing:0;--green:#167658;--line:#e3e6e8;--muted:#727a80;--red:#bc3541}
*{box-sizing:border-box}body{margin:0}button,input,select,textarea{font:inherit;letter-spacing:0}button,a,input,select,textarea{outline-offset:3px}a{color:var(--green);text-decoration:none}button{cursor:pointer}button:disabled{opacity:.5;cursor:wait}button{border:1px solid var(--line);background:#fff;color:#343b40;min-height:36px;border-radius:5px;padding:7px 12px;display:inline-flex;align-items:center;justify-content:center;gap:7px;white-space:nowrap}button:hover{background:#f0f3f3}button.primary{background:var(--green);color:#fff;border-color:var(--green)}button.primary:hover{background:#105e46}button.danger{color:var(--red);border-color:#efc9cc}button.icon{width:34px;height:34px;min-height:34px;padding:7px;border:0;background:transparent;flex:none}button.icon:hover{background:#eef1f2}svg.lucide{width:17px;height:17px;stroke-width:1.8;flex:none}.muted{color:var(--muted)}.mono{font-family:ui-monospace,SFMono-Regular,Consolas,monospace;font-size:12px;overflow-wrap:anywhere}h1,h2,h3,p{margin:0}h1{font-size:24px;font-weight:650;line-height:1.35}h2{font-size:18px;font-weight:600}h3{font-size:15px;font-weight:600}.brand{display:flex;align-items:center;gap:10px;font-size:19px;font-weight:650;color:#242d30}.brand-mark{background:var(--green);width:32px;height:32px;border-radius:6px;display:grid;place-items:center;color:#fff}.brand-mark svg{width:21px;height:21px}.initial-loading{padding:45px;color:var(--muted)}.auth-page{min-height:100dvh;background:#fff;display:flex;flex-direction:column}.auth-header{padding:28px 40px;border-bottom:1px solid var(--line);display:flex;justify-content:space-between;align-items:center}.auth-header .muted{font-size:12px}.auth-main{width:min(100% - 40px,380px);margin:clamp(40px,10vh,100px) auto 40px}.auth-main h1{font-size:28px;margin-bottom:7px}.auth-main>.muted{margin-bottom:28px}.auth-footer{margin-top:auto;text-align:center;padding:24px;font-size:12px;color:#92999d}.field{display:flex;flex-direction:column;gap:7px;margin-bottom:18px;min-width:0}.field>label,.field>span{font-size:13px;color:#4a555b;font-weight:500}input,select,textarea{border:1px solid #d6dce0;border-radius:5px;padding:10px 11px;background:#fff;width:100%;min-width:0;color:#202b30}input:focus,select:focus,textarea:focus{border-color:var(--green);outline:2px solid #16765815}textarea{resize:vertical;min-height:112px;font-family:ui-monospace,monospace;font-size:13px}.password-input{position:relative}.password-input input{padding-right:42px}.password-input .icon{position:absolute;right:4px;top:5px}.auth-main .primary{width:100%;min-height:42px;margin-top:7px}.error{color:var(--red);background:#fff2f2;border:1px solid #f0d4d7;border-radius:5px;padding:10px 12px;margin-bottom:16px;font-size:13px}.error:empty{display:none}.shell{display:grid;grid-template-columns:208px minmax(0,1fr);min-height:100dvh}.sidebar{background:#fff;border-right:1px solid var(--line);padding:25px 14px 16px;display:flex;flex-direction:column;position:sticky;top:0;height:100dvh}.sidebar .brand{padding:0 10px 29px}.nav{display:flex;flex-direction:column;gap:5px}.nav button{justify-content:flex-start;border:0;background:transparent;min-height:40px;padding:10px 12px;color:#687177}.nav button.active{background:#edf5f1;color:#11674b;font-weight:600}.nav button svg{width:18px;height:18px;margin-right:5px}.sidebar-bottom{margin-top:auto;padding:16px 7px 0;border-top:1px solid var(--line)}.userline{display:flex;gap:10px;align-items:center;min-width:0}.avatar{width:32px;height:32px;background:#e6eef0;border-radius:5px;display:grid;place-items:center;color:#49636b;flex:none;font-weight:600}.userline .username{font-size:13px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.userline small{font-size:11px;color:var(--muted)}.sidebar-bottom .actions{justify-content:flex-start;margin-top:10px}.content{min-width:0}.topbar{height:69px;background:#fff;border-bottom:1px solid var(--line);padding:0 34px;display:flex;align-items:center;justify-content:space-between;gap:12px}.breadcrumb{color:#858d92;font-size:13px;display:flex;gap:12px;align-items:center}.breadcrumb strong{font-weight:500;color:#333d43}.online{font-size:12px;color:#527266;display:flex;align-items:center;gap:7px}.dot{height:6px;width:6px;border-radius:50%;background:#30976c;display:inline-block}.workspace{padding:30px 34px;max-width:1600px;margin:auto}.page-heading{display:flex;align-items:center;justify-content:space-between;gap:16px;margin-bottom:26px}.page-heading .muted{font-size:12px;margin-top:5px}.actions{display:flex;align-items:center;gap:6px}.stats{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));border-block:1px solid var(--line);margin-bottom:26px;background:#fff}.stat{padding:19px 21px;border-right:1px solid var(--line)}.stat:last-child{border-right:0}.stat label{color:var(--muted);font-size:12px}.stat strong{display:block;font-size:25px;font-weight:600;margin-top:6px}.stat small{font-size:12px;color:#899296;margin-left:6px}.table-tools{display:flex;gap:14px;justify-content:space-between;align-items:center;margin-bottom:15px}.search{position:relative;width:280px;max-width:100%}.search svg{position:absolute;left:10px;top:11px;color:#8a9298}.search input{padding-left:35px;font-size:13px;min-height:38px}.table-wrap{overflow:auto;border-top:1px solid var(--line);background:#fff}table{border-collapse:collapse;width:100%;font-size:13px;white-space:nowrap}th{color:#778087;font-weight:500;text-align:left;font-size:12px;background:#f9fafb}td,th{padding:14px 16px;border-bottom:1px solid var(--line);max-width:330px}td{height:74px}td.name{font-weight:500}.subtext{font-size:11px;color:#879096;margin-top:3px;font-weight:400}.badge{display:inline-flex;align-items:center;gap:6px;font-size:11px;padding:3px 8px;border-radius:4px;color:#267551;background:#edf7ef}.badge.off{background:#f0f1f3;color:#828a90}.badge.blue{background:#edf3fa;color:#4b6f98}.badge.neutral{background:#f1f3f5;color:#778188}.table-footer{font-size:12px;color:#8b9398;padding:14px 0}.empty{text-align:center;padding:70px 20px;background:#fff;border-block:1px solid var(--line);color:#879096}.empty svg{width:29px;height:29px;margin-bottom:12px;stroke-width:1.3}.empty h3{color:#5d686f;font-weight:500;margin-bottom:12px}.app-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(250px,1fr));gap:16px}.app-item{border:1px solid var(--line);border-radius:6px;background:#fff;padding:20px;display:flex;align-items:center;gap:14px;color:#293a3f;min-width:0}.app-item:hover{border-color:#80b59d}.app-item .app-symbol{width:40px;height:40px;background:#edf5f1;display:grid;place-items:center;border-radius:5px;color:var(--green);flex:none}.app-item .app-meta{min-width:0;flex:1}.app-item h3{overflow-wrap:anywhere}.app-item p{font-size:12px;color:#7a858a;margin-top:5px;overflow-wrap:anywhere}.app-item>svg{width:16px;color:#899298}.account-form{max-width:420px;padding-top:15px}.section-title{padding-bottom:14px;border-bottom:1px solid var(--line);margin-bottom:23px}.mobile-menu{display:none}dialog{width:min(580px,calc(100% - 32px));max-height:calc(100dvh - 48px);padding:0;border:1px solid #dce2e4;border-radius:8px;color:#283137;box-shadow:0 18px 70px #162b3b26}dialog::backdrop{background:#172f3950;backdrop-filter:blur(2px)}.modal-header{display:flex;justify-content:space-between;align-items:center;padding:20px 24px;border-bottom:1px solid var(--line)}.modal-header h2{font-size:17px}.modal-body{padding:24px}.modal-footer{padding:16px 24px;background:#fafbfc;border-top:1px solid var(--line);display:flex;gap:8px;justify-content:flex-end}.form-grid{display:grid;grid-template-columns:1fr 1fr;gap:0 16px}.check{display:flex;align-items:center;gap:8px;font-size:13px;margin:12px 0;color:#526068;cursor:pointer}.check input{width:16px;height:16px;accent-color:var(--green)}.switch-row{display:flex;justify-content:space-between;align-items:center;border-bottom:1px solid var(--line);padding:0 0 16px;margin-bottom:19px}.switch-row .check{margin:0}.user-checks{max-height:160px;overflow:auto;border:1px solid var(--line);border-radius:5px;padding:5px 12px;margin-bottom:18px}.secret-value{word-break:break-all;font-size:13px;line-height:1.9;background:#f4f7f7;border:1px solid var(--line);padding:14px;border-radius:5px;margin:15px 0}.key-info{display:grid;grid-template-columns:90px minmax(0,1fr);gap:10px;font-size:13px}.key-info dt{color:#7b878c}.key-info dd{margin:0;overflow-wrap:anywhere}.confirm-text{font-size:14px;line-height:1.8}.notice{font-size:12px;color:#8b7371;line-height:1.8;margin-top:16px}#toast{position:fixed;bottom:28px;left:50%;transform:translateX(-50%);background:#243d35;color:#fff;padding:12px 20px;border-radius:6px;box-shadow:0 4px 20px #0002;max-width:calc(100% - 32px);z-index:20;font-size:13px}#toast.failure{background:#94434b}[hidden]{display:none!important}.data-detail{white-space:normal;overflow-wrap:anywhere;min-width:150px}.loading{color:#7a868c;padding:40px 0}
@media(max-width:1050px){.shell{grid-template-columns:180px minmax(0,1fr)}.workspace{padding:25px 22px}.topbar{padding:0 22px}.stat{padding:16px}.table-tools .muted{display:none}.sidebar .brand{font-size:17px;padding-left:5px}}
@media(max-width:700px){.shell{display:block}.sidebar{position:fixed;left:0;top:0;width:220px;z-index:10;transform:translateX(-100%);transition:transform .15s;box-shadow:8px 0 30px #0001}.shell.menu-open .sidebar{transform:translateX(0)}.mobile-menu{display:inline-flex}.topbar{height:58px;padding:0 16px;justify-content:flex-start}.topbar .online{margin-left:auto;font-size:11px}.workspace{padding:23px 16px}.page-heading{margin-bottom:20px;align-items:flex-start}.page-heading h1{font-size:22px}.page-heading .primary{padding:7px 10px;font-size:12px}.stats{grid-template-columns:repeat(2,minmax(0,1fr));margin-bottom:21px}.stat{padding:14px 16px}.stat:nth-child(2){border-right:0}.stat:nth-child(-n+2){border-bottom:1px solid var(--line)}.stat strong{font-size:23px}.auth-header{padding:20px}.auth-header>.muted{display:none}.auth-main{margin-top:48px}.form-grid{grid-template-columns:1fr}.modal-header{padding:16px 18px}.modal-body{padding:20px 18px}.modal-footer{padding:14px 18px}td,th{padding:12px}.breadcrumb{gap:7px;font-size:12px}.app-grid{grid-template-columns:1fr}.search{width:100%}.table-tools{gap:8px}.table-tools>.actions{flex-shrink:0}}
