:root{font-family:Inter,-apple-system,BlinkMacSystemFont,"PingFang SC","Microsoft YaHei",sans-serif;color:#202723;background:#f7f8f7;font-synthesis:none}*{box-sizing:border-box}body{margin:0;min-width:320px}button,input,select,textarea{font:inherit}button{cursor:pointer}button:disabled{cursor:wait;opacity:.65}button:focus-visible,input:focus-visible,a:focus-visible{outline:3px solid #95b8a8;outline-offset:3px}[hidden]{display:none!important}.auth-view{min-height:100vh;display:flex;flex-direction:column;background:#f7f8f7}.auth-header,.auth-footer{display:flex;align-items:center;justify-content:space-between;padding:27px 48px}.auth-header{border-bottom:1px solid #e9edeb}.auth-footer{color:#969f99;font-size:12px}.brand{display:flex;gap:10px;align-items:center;font-size:23px;font-weight:750;line-height:1;color:#1d2b24}.brand-dot{color:#d28d6f}.brand-mark{height:28px;width:28px;display:grid;grid-template-columns:repeat(2,1fr);grid-template-rows:repeat(2,1fr);gap:3px;transform:rotate(-7deg)}.brand-mark i{display:block;background:#426c58;border-radius:2px}.brand-mark i:nth-child(2){background:#9ebaaa}.brand-mark i:nth-child(3){background:#d79578}.brand-mark i:nth-child(4){background:#244d3c}.header-label,.eyebrow,.nav-heading{font-size:10px;font-weight:750;letter-spacing:0;color:#89978f}.auth-main{flex:1;display:grid;place-items:center;padding:54px 22px}.auth-box{width:100%;max-width:432px;background:#fff;border:1px solid #e4eae6;border-radius:8px;padding:38px 38px 32px;box-shadow:0 12px 42px rgba(27,50,38,.05)}.auth-icon{width:44px;height:44px;border-radius:8px;background:#ebf1ed;color:#426c58;display:grid;place-items:center;font-size:27px;font-weight:600}.key-icon{transform:rotate(-40deg)}.auth-copy{margin:29px 0 28px}.eyebrow{margin:0 0 10px;color:#829187}.auth-copy h1,.page-heading h1{font-size:28px;line-height:1.25;margin:0;font-weight:720}.auth-copy p:not(.eyebrow),.page-heading p:not(.eyebrow),.section-heading p:not(.eyebrow){font-size:14px;color:#818c85;margin:10px 0 0;line-height:1.6}label{display:block;font-size:13px;font-weight:650;color:#35443b;margin:0 0 9px}.input-wrap{position:relative;display:flex;align-items:center}.input-wrap input{width:100%;height:47px;border:1px solid #dce3de;border-radius:6px;padding:0 65px 0 14px;color:#26342c;background:#fff;font-size:14px;transition:border-color .15s,box-shadow .15s}.input-wrap input::placeholder{color:#b0b9b3}.input-wrap input:focus{outline:none;border-color:#739b85;box-shadow:0 0 0 3px #eaf2ec}.reveal{position:absolute;right:12px;border:0;background:transparent;color:#7e8d82;font-size:12px;padding:7px}.button{min-height:44px;border-radius:6px;border:1px solid transparent;display:inline-flex;justify-content:center;align-items:center;gap:11px;padding:0 18px;font-size:13px;font-weight:650;white-space:nowrap}.primary{background:#315d48;color:white}.primary:hover{background:#254d3b}.secondary{background:#fff;border-color:#dfe6e1;color:#405348}.secondary:hover{background:#f6f9f7}.button.full{width:100%;justify-content:space-between;margin-top:5px}.button.full span:last-child{font-size:18px;font-weight:400}.form-error{min-height:19px;margin:8px 0 5px;font-size:12px;color:#b6524c;line-height:1.45}.form-hint{font-size:12px;color:#8b968e;margin:8px 0 0}.back-link{display:block;background:none;border:0;color:#7b8a80;font-size:12px;margin:21px auto 0}.back-link:hover{color:#315d48}#confirm-field{margin-top:18px}.dashboard{min-height:100vh;display:flex;background:#f8faf8}.sidebar{width:226px;background:#fff;border-right:1px solid #e8ede9;position:fixed;inset:0 auto 0 0;display:flex;flex-direction:column;padding:30px 16px 18px;z-index:2}.sidebar-brand{padding:0 10px}.nav-heading{margin:62px 12px 14px;color:#a4aea6}.nav-item{height:43px;display:flex;align-items:center;gap:12px;color:#315d48;text-decoration:none;border-radius:6px;padding:0 13px;font-size:13px;font-weight:650}.nav-item.active{background:#edf4ef}.nav-symbol{font-size:17px}.sidebar-bottom{margin-top:auto;border-top:1px solid #edf0ee;padding:17px 2px 0;display:flex;align-items:center;justify-content:space-between}.sidebar-account{display:flex;align-items:center;gap:10px;min-width:0}.sidebar-account strong,.sidebar-account small{display:block;font-size:12px}.sidebar-account small{color:#9da7a0;font-size:11px;margin-top:5px}.avatar{width:34px;height:34px;border-radius:6px;background:#e9f0eb;color:#466b56;display:grid;place-items:center;font-size:13px;font-weight:750}.avatar.small{width:30px;height:30px}.icon-button{border:0;background:transparent;color:#8b9990;width:34px;height:34px;border-radius:5px;font-size:18px;display:grid;place-items:center}.icon-button:hover{background:#eff4f0;color:#315d48}.workspace{min-width:0;flex:1;margin-left:226px;display:flex;flex-direction:column;min-height:100vh}.topbar{height:70px;background:#fff;border-bottom:1px solid #e8ede9;display:flex;align-items:center;justify-content:space-between;padding:0 42px}.breadcrumb{font-size:12px;color:#9aa69d}.breadcrumb strong{color:#43524a;font-weight:650}.crumb-separator{padding:0 13px;color:#d1d9d3}.top-account{border:0;background:transparent;display:flex;gap:10px;align-items:center;color:#66756b;font-size:12px}.mobile-brand{display:none}.workspace-main{width:100%;max-width:1350px;padding:51px 52px 22px;margin:0 auto;flex:1;display:flex;flex-direction:column}.page-heading{display:flex;justify-content:space-between;align-items:flex-end;gap:20px;margin-bottom:34px}.heading-period{color:#d28d6f}.add-button{padding:0 18px}.plus{font-size:18px;font-weight:400;line-height:1}.overview-band{background:#f0f5f1;border:1px solid #e1ebe3;border-radius:8px;padding:25px 28px 28px}.overview-label{display:flex;align-items:center;gap:10px;color:#344c3e;font-size:13px;font-weight:700}.metric-icon{width:30px;height:30px;border-radius:5px;background:#fff;display:grid;place-items:center;color:#5e806a;font-size:18px}.metric-grid{display:grid;grid-template-columns:minmax(130px,1fr) minmax(130px,1fr) 1fr;margin-top:28px}.metric{padding-right:35px}.metric+.metric{border-left:1px solid #dbe6dd;padding-left:35px}.metric-label{display:block;color:#87978b;font-size:12px}.metric-value{display:flex;align-items:baseline;gap:8px;margin-top:8px}.metric-value strong{font-size:32px;font-weight:700;color:#263d2f;line-height:1.15}.metric-value span{font-size:12px;color:#8c9c90}.metric-note{display:block;margin-top:10px;color:#91a095;font-size:11px}.status-dot{display:inline-block;width:6px;height:6px;border-radius:50%;background:#70a47f;margin-right:6px}.overview-aside{border-left:1px solid #dbe6dd;padding-left:35px;display:flex;align-items:center;gap:14px;color:#6e8d79}.overview-aside-icon{font-size:30px;color:#d59175}.overview-aside p{font-size:12px;line-height:1.75;margin:0}.overview-aside strong{font-size:14px;font-weight:650;color:#4d6e58}.subscriptions{margin-top:43px}.section-heading{display:flex;justify-content:space-between;align-items:flex-end;gap:15px;margin-bottom:20px}.section-heading h2{font-size:19px;margin:0;font-weight:700;color:#27352d}.count-badge{display:inline-grid;place-items:center;min-width:22px;height:22px;padding:0 6px;background:#eef3ef;color:#6a8571;border-radius:4px;font-size:11px;vertical-align:2px;margin-left:6px}.text-button{border:0;background:transparent;color:#75857a;font-size:12px;padding:8px 3px}.text-button span{font-size:16px;vertical-align:-1px;margin-right:4px}.table-shell{background:white;border:1px solid #e9eeea;border-radius:7px;overflow:hidden}.table-head,.account-row{display:grid;grid-template-columns:minmax(160px,2fr) minmax(95px,1fr) minmax(85px,1fr) minmax(100px,1fr);gap:12px;align-items:center;padding:0 24px}.table-head{height:43px;background:#fbfcfb;color:#a0aaa3;font-size:11px;border-bottom:1px solid #edf0ee}.account-row{min-height:75px;font-size:12px;color:#617168;border-bottom:1px solid #f0f3f1}.account-row:last-child{border-bottom:0}.account-name{display:flex;align-items:center;gap:11px;min-width:0}.account-name strong{color:#394b40;font-size:13px;overflow-wrap:anywhere}.account-icon{width:35px;height:35px;flex:none;display:grid;place-items:center;border:1px solid #e7eee8;background:#f5f8f5;border-radius:6px;color:#749380;font-weight:700;font-size:14px}.status-pill{display:inline-flex;align-items:center;gap:6px;font-size:11px;color:#56866a}.status-pill i{width:6px;height:6px;background:#70a47f;border-radius:50%}.empty-state{text-align:center;padding:42px 20px 48px}.empty-icon{margin:auto;width:42px;height:42px;border-radius:7px;background:#f0f5f1;color:#87a291;display:grid;place-items:center;font-size:22px}.empty-state h3{font-size:14px;margin:16px 0 0}.empty-state p{font-size:12px;color:#98a49b;margin:8px 0 16px}.workspace-footer{display:flex;justify-content:space-between;margin-top:auto;padding-top:64px;color:#aab4ad;font-size:11px}dialog{width:min(440px,calc(100% - 32px));border:1px solid #e5ebe6;border-radius:8px;padding:27px;color:#25362c;box-shadow:0 24px 70px #17271d35}dialog::backdrop{background:#1c2821aa}.dialog-top{display:flex;justify-content:space-between;align-items:flex-start}.dialog-icon{display:grid;place-items:center;width:38px;height:38px;background:#edf4ef;color:#3c7151;border-radius:6px;font-size:21px}.close-button{font-size:24px}dialog h2{font-size:20px;margin:22px 0 0}.dialog-description{font-size:13px;line-height:1.6;color:#8a978e;margin:8px 0 24px}.dialog-actions{display:flex;justify-content:flex-end;gap:9px;margin-top:8px}.toast{position:fixed;right:24px;bottom:24px;max-width:calc(100% - 48px);background:#274c38;color:#fff;padding:13px 18px;border-radius:6px;font-size:13px;box-shadow:0 8px 25px #23382b33;z-index:5}@media(max-width:760px){.auth-header,.auth-footer{padding:23px 24px}.header-label{font-size:9px}.sidebar{display:none}.workspace{margin-left:0}.topbar{height:62px;padding:0 22px}.mobile-brand{display:flex;font-size:20px}.mobile-brand .brand-mark{width:24px;height:24px}.breadcrumb{display:none}.workspace-main{padding:36px 22px 22px}.page-heading{align-items:flex-start;flex-direction:column;margin-bottom:26px}.page-heading h1{font-size:25px}.add-button{align-self:flex-start}.overview-band{padding:22px}.metric-grid{grid-template-columns:1fr 1fr;margin-top:24px}.metric{padding-right:16px}.metric+.metric{padding-left:20px}.overview-aside{display:none}.subscriptions{margin-top:35px}.table-head{display:none}.account-row{grid-template-columns:minmax(0,1fr) auto;gap:12px;padding:16px 18px}.account-row .row-count{text-align:right}.account-row .row-date{text-align:right}.workspace-footer{padding-top:45px}}@media(max-width:420px){.auth-box{padding:30px 24px 26px}.auth-main{padding:30px 16px}.auth-copy h1{font-size:25px}.workspace-main{padding-left:17px;padding-right:17px}.metric-value strong{font-size:28px}}

/* ---------- navigation ---------- */
nav .nav-item+.nav-item{margin-top:4px}
.nav-item:not(.active){color:#5f7166}
.nav-item:not(.active):hover{background:#f3f7f4;color:#315d48}
.nav-icon{display:grid;place-items:center;width:18px;height:18px}
svg{fill:none;stroke:currentColor;stroke-width:1.6;stroke-linecap:round;stroke-linejoin:round}
.nav-icon svg{width:17px;height:17px}
.mobile-tabs{display:none}
a.overview-aside{text-decoration:none;border-radius:0;transition:color .15s}
a.overview-aside:hover strong{color:#315d48}
a.overview-aside strong span{display:inline-block;transition:transform .15s}
a.overview-aside:hover strong span{transform:translateX(3px)}
.metric-icon svg,.empty-icon svg{width:17px;height:17px}

/* ---------- connection guide ---------- */
.mono,.endpoint-row code,.code-block pre,.key-mask,.account-chip,.secret-field code,.code-title{font-family:"JetBrains Mono","SFMono-Regular",ui-monospace,Menlo,Consolas,monospace}
.connect-band{display:grid;grid-template-columns:minmax(0,1fr) 288px;background:linear-gradient(125deg,#eef4f0 0%,#f5f8f5 55%,#fbf5f0 100%);border:1px solid #e1ebe3;border-radius:10px;overflow:hidden}
.connect-main{padding:26px 28px 28px;min-width:0}
.endpoint{margin-top:24px}
.endpoint-label{display:block;font-size:12px;color:#87978b;margin-bottom:9px}
.endpoint-row{display:flex;align-items:center;gap:12px;background:#fff;border:1px solid #dce7df;border-radius:8px;padding:6px 6px 6px 16px;max-width:600px;box-shadow:0 1px 0 #ffffff inset,0 6px 18px rgba(36,77,60,.05)}
.endpoint-row code{flex:1;min-width:0;font-size:14.5px;font-weight:600;color:#1f4535;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;line-height:2.1}
.endpoint-row code.muted{color:#a3aea7;font-weight:500}
.endpoint-note{font-size:12px;color:#a2683f;margin:9px 0 0}
.copy-button{flex:none;border:1px solid #dfe6e1;background:#fff;color:#405348;border-radius:6px;height:34px;padding:0 12px;font-size:12px;font-weight:650;display:inline-flex;align-items:center;gap:7px;transition:background .15s,color .15s,border-color .15s}
.copy-button svg{width:14px;height:14px}
.copy-button:hover{background:#f3f7f4}
.copy-button.copied{color:#2f7a52;border-color:#bcd8c6;background:#f0f8f2}
.code-card{margin-top:22px;background:#14201a;border-radius:10px;overflow:hidden;box-shadow:0 18px 44px rgba(20,32,26,.2);border:1px solid #1e2c24}
.code-tabs{display:flex;align-items:flex-end;justify-content:space-between;gap:12px;padding:8px 12px 0 8px;border-bottom:1px solid #24342b;flex-wrap:wrap}
.code-tablist{display:flex;gap:2px}
.code-tab{border:0;background:transparent;color:#86a08f;font-size:12.5px;font-weight:650;padding:11px 13px 12px;border-bottom:2px solid transparent;margin-bottom:-1px;transition:color .15s}
.code-tab:hover{color:#d3e2d8}
.code-tab[aria-selected="true"]{color:#f3f7f4;border-bottom-color:#d79578}
.shell-switch{display:flex;background:#1c2a22;border:1px solid #263830;border-radius:7px;padding:3px;margin-bottom:8px}
.shell-switch button{border:0;background:transparent;color:#86a08f;font-size:11px;font-weight:650;padding:5px 10px;border-radius:5px}
.shell-switch button[aria-pressed="true"]{background:#2d4337;color:#eef4ef}
.code-block{margin:0}
.code-block+.code-block{border-top:1px dashed #24342b}
.code-block figcaption{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:12px 14px 0 18px}
.code-title{font-size:11px;color:#6f8a7a;letter-spacing:.01em}
.code-block pre{margin:0;padding:10px 18px 18px;overflow-x:auto;font-size:13px;line-height:1.8;color:#dbe6de;tab-size:2}
.copy-button.dark{background:transparent;border-color:#2b3d33;color:#a7bcae;height:28px;padding:0 10px}
.copy-button.dark:hover{background:#1d2c24;color:#e7f0ea}
.copy-button.dark.copied{color:#9fdcb4;border-color:#3d6a51;background:#1a2c21}
.tok-comment{color:#647d6f;font-style:italic}
.tok-section{color:#e9c98c}
.tok-keyword{color:#8fc0e6}
.tok-key{color:#9fd5b2}
.tok-punct{color:#6f8a7a}
.tok-string{color:#f0b394}
.tok-placeholder{background:#3a2a21;border-radius:3px;padding:1px 3px}
.tok-command{color:#f3f7f4;font-weight:600}
.connect-aside{border-left:1px solid #e1ebe3;padding:26px 26px 28px;background:rgba(255,255,255,.6)}
.connect-aside h3{font-size:13px;margin:4px 0 22px;color:#344c3e}
.tips{list-style:none;margin:0;padding:0;display:grid;gap:20px}
.tips li{display:grid;grid-template-columns:30px 1fr;gap:12px;align-items:start}
.tip-icon{width:30px;height:30px;border-radius:7px;background:#fff;border:1px solid #e1ebe3;display:grid;place-items:center;color:#4f7a62}
.tip-icon svg{width:16px;height:16px}
.tips b{display:block;font-size:12.5px;color:#2f4437;margin:2px 0 5px}
.tips span{font-size:12px;color:#83938a;line-height:1.65}

/* ---------- key list ---------- */
.section-tools{display:flex;align-items:center;gap:16px}
.toggle{display:inline-flex;align-items:center;gap:7px;font-size:12px;color:#75857a;margin:0;font-weight:500;cursor:pointer;user-select:none}
.toggle input{accent-color:#315d48;width:14px;height:14px;margin:0}
.keys-head,.key-row{display:grid;grid-template-columns:minmax(210px,2.4fr) minmax(90px,1fr) minmax(95px,1fr) minmax(100px,1fr) minmax(76px,.8fr) 72px;gap:12px;align-items:center;padding:0 24px}
.key-row{min-height:78px;font-size:12px;color:#617168;border-bottom:1px solid #f0f3f1;transition:background .15s}
.key-row:hover{background:#fbfcfb}
.key-row:last-child{border-bottom:0}
.key-name{display:flex;align-items:center;gap:12px;min-width:0}
.apikey-icon{width:38px;height:38px;flex:none;border-radius:8px;display:grid;place-items:center;background:linear-gradient(145deg,#eaf2ec,#f8f1eb);border:1px solid #e3ebe5;color:#3f6a55}
.apikey-icon svg{width:18px;height:18px}
.key-text{min-width:0}
.key-label{display:block;color:#2f4236;font-size:13px;font-weight:650;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.key-mask{display:block;margin-top:6px;font-size:11.5px;color:#93a198}
.account-chip{display:inline-flex;align-items:center;height:24px;padding:0 9px;border-radius:5px;background:#f3f6f4;border:1px solid #e6ece8;color:#4b6353;font-size:11.5px;font-weight:600;max-width:100%;overflow:hidden;text-overflow:ellipsis}
.status-pill.revoked{color:#9aa49d}
.status-pill.revoked i{background:#c6cec8}
.key-row.revoked .apikey-icon{filter:grayscale(1);opacity:.55}
.key-row.revoked .key-label{color:#8d9a91}
.key-action{display:flex;justify-content:flex-end}
.danger-link{border:0;background:transparent;color:#b6524c;font-size:12px;font-weight:650;padding:7px 10px;border-radius:6px}
.danger-link:hover{background:#fbefee}
.add-button:disabled{cursor:not-allowed;opacity:.5}

/* ---------- dialogs ---------- */
dialog.wide{width:min(660px,calc(100% - 32px))}
.dialog-icon svg{width:20px;height:20px}
.dialog-icon.success{background:#e6f3ea;color:#2f7a52}
.dialog-icon.danger{background:#fbefee;color:#b6524c}
.optional{font-weight:500;color:#a3aea7;font-size:12px;margin-left:4px}
.select-wrap{position:relative}
.select-wrap select{width:100%;height:47px;border:1px solid #dce3de;border-radius:6px;padding:0 42px 0 14px;appearance:none;-webkit-appearance:none;background:#fff;font-size:14px;color:#26342c;cursor:pointer}
.select-wrap select:focus{outline:none;border-color:#739b85;box-shadow:0 0 0 3px #eaf2ec}
.select-wrap::after{content:"";position:absolute;right:17px;top:50%;width:7px;height:7px;border-right:1.6px solid #7e8d82;border-bottom:1.6px solid #7e8d82;transform:translateY(-70%) rotate(45deg);pointer-events:none}
.callout{display:flex;gap:11px;align-items:flex-start;background:#fdf6ee;border:1px solid #f1dfc8;color:#87562a;border-radius:8px;padding:12px 14px;font-size:12.5px;line-height:1.65;margin:0 0 16px}
.callout svg{flex:none;width:17px;height:17px;margin-top:1px;color:#c27a45}
.secret-field{display:flex;align-items:center;gap:12px;background:#f5f9f6;border:1px solid #d9e6dd;border-radius:8px;padding:9px 9px 9px 15px}
.secret-field code{flex:1;min-width:0;font-size:13.5px;font-weight:600;color:#1d3d2f;word-break:break-all;line-height:1.55;user-select:all}
#secret-dialog .code-card{margin-top:16px}
#secret-dialog .dialog-actions{margin-top:22px}
.button.danger{background:#b6524c;color:#fff}
.button.danger:hover{background:#9e433e}
.copy-buffer{position:fixed;left:-9999px;top:0;opacity:0;pointer-events:none}

@media(max-width:980px){.connect-band{grid-template-columns:1fr}
.connect-aside{border-left:0;border-top:1px solid #e1ebe3}
.tips{grid-template-columns:repeat(3,1fr);gap:18px}
}
@media(max-width:760px){.mobile-tabs{display:flex;gap:6px;padding:10px 22px;background:#fff;border-bottom:1px solid #e8ede9;position:sticky;top:0;z-index:3}
.mobile-tabs a{flex:1;height:38px;display:grid;place-items:center;border-radius:6px;font-size:13px;font-weight:650;color:#5f7166;text-decoration:none}
.mobile-tabs a.active{background:#edf4ef;color:#315d48}
.connect-main{padding:22px 20px}
.connect-aside{padding:22px 20px}
.tips{grid-template-columns:1fr}
.code-tabs{padding-left:4px}
.code-block pre{font-size:12px}
.section-heading{flex-direction:column;align-items:flex-start}
.keys-head{display:none}
.key-row{display:flex;flex-wrap:wrap;align-items:center;gap:10px 16px;padding:16px 18px}
.key-name{flex:1 1 100%}
.key-cell[data-label]::before{content:attr(data-label);color:#a3aea7;margin-right:6px}
.key-status{margin-left:auto}
.key-action{flex:0 0 auto}
}
.secret-actions{align-items:center;justify-content:space-between;gap:16px}
.secret-actions .button{margin-left:auto}
.secret-hint{margin:0;font-size:12.5px;color:#a45a2c;font-weight:600}
.secret-hint.pulse{animation:hint-pulse .5s ease}
@keyframes hint-pulse{0%,100%{transform:none}25%{transform:translateX(-4px)}75%{transform:translateX(4px)}}
@media(prefers-reduced-motion:reduce){.secret-hint.pulse{animation:none}}
