*,:before,:after{box-sizing:border-box;margin:0;padding:0}html{min-width:0;font-size:14px}body{color:#1e293b;background:#f1f5f9;margin:0;font-family:-apple-system,BlinkMacSystemFont,Segoe UI,PingFang SC,Microsoft YaHei,Helvetica Neue,sans-serif;font-size:14px;line-height:1.5}a{color:#2563eb;text-decoration:none}a:hover{color:#1d4ed8}.card{background:#fff;border:1px solid #e2e8f0;border-radius:10px;min-width:0;padding:20px;box-shadow:0 1px 3px #0000000a}.card-header{flex-wrap:wrap;justify-content:space-between;align-items:center;gap:12px;margin-bottom:16px;display:flex}.card-header h2{color:#0f172a;align-items:center;gap:8px;margin:0;font-size:15px;font-weight:650;display:flex}.card-header h2 svg{flex-shrink:0}h3{color:#334155;align-items:center;gap:6px;margin:0 0 10px;font-size:13px;font-weight:650;display:flex}h3 svg{flex-shrink:0}.stats-grid{grid-template-columns:repeat(auto-fit,minmax(160px,1fr));gap:12px;display:grid}.stat-card{background:#f8fafc;border:1px solid #e2e8f0;border-radius:8px;align-items:center;gap:12px;padding:14px 16px;display:flex}.stat-card .stat-icon{border-radius:8px;flex-shrink:0;justify-content:center;align-items:center;width:40px;height:40px;display:flex}.stat-card .stat-icon.blue{color:#2563eb;background:#eff6ff}.stat-card .stat-icon.green{color:#16a34a;background:#f0fdf4}.stat-card .stat-icon.amber{color:#d97706;background:#fffbeb}.stat-card .stat-icon.purple{color:#9333ea;background:#faf5ff}.stat-card .stat-body .stat-num{color:#0f172a;font-size:22px;font-weight:700;line-height:1.2}.stat-card .stat-body .stat-label{color:#64748b;font-size:12px}table{border-collapse:collapse;width:100%;max-width:100%;font-size:13px}th,td{text-align:left;vertical-align:middle;border-bottom:1px solid #f1f5f9;padding:10px}th{color:#64748b;white-space:nowrap;background:#f8fafc;font-size:12px;font-weight:600}th:first-child{border-radius:6px 0 0 6px}th:last-child{border-radius:0 6px 6px 0}td{color:#334155}th,td,p,li{overflow-wrap:anywhere}code{white-space:normal;overflow-wrap:anywhere;color:#1e293b;background:#f1f5f9;border-radius:4px;padding:2px 6px;font-family:SF Mono,Cascadia Code,Consolas,monospace;font-size:12px}pre.out{color:#cbd5e1;white-space:pre-wrap;overflow-wrap:anywhere;word-break:break-word;background:#0f172a;border-radius:8px;max-height:360px;padding:14px;font-family:SF Mono,Cascadia Code,Consolas,monospace;font-size:12px;line-height:1.6;overflow:auto}button{cursor:pointer;font-family:inherit;transition:all .15s}.btn{white-space:nowrap;border:1px solid #0000;border-radius:8px;justify-content:center;align-items:center;gap:6px;min-height:36px;padding:7px 16px;font-size:13px;font-weight:550;line-height:1.4;display:inline-flex}.btn svg{flex-shrink:0}.btn-primary{color:#fff;background:#2563eb;border-color:#2563eb}.btn-primary:hover{background:#1d4ed8;border-color:#1d4ed8}.btn-secondary{color:#334155;background:#fff;border-color:#cbd5e1}.btn-secondary:hover{background:#f8fafc;border-color:#94a3b8}.btn-ghost{color:#475569;background:0 0;border-color:#0000}.btn-ghost:hover{background:#f1f5f9}.btn-danger{color:#dc2626;background:#fff;border-color:#fecaca}.btn-danger:hover{background:#fef2f2;border-color:#fca5a5}.btn-warn{color:#d97706;background:#fff;border-color:#fde68a}.btn-warn:hover{background:#fffbeb;border-color:#fcd34d}.btn-danger-solid{color:#fff;background:#dc2626;border-color:#dc2626}.btn-danger-solid:hover{background:#b91c1c;border-color:#b91c1c}.btn-sm{border-radius:6px;min-height:30px;padding:5px 10px;font-size:12px}.btn-xs{border-radius:5px;min-height:26px;padding:3px 8px;font-size:11px}.btn:disabled{opacity:.5;cursor:not-allowed}input,textarea,select{color:#0f172a;background:#fff;border:1px solid #cbd5e1;border-radius:8px;width:100%;min-height:38px;padding:8px 11px;font-family:inherit;font-size:13px;transition:border-color .15s,box-shadow .15s}input:focus,textarea:focus,select:focus{border-color:#2563eb;outline:none;box-shadow:0 0 0 3px #2563eb1a}textarea{resize:vertical;min-height:90px;font-family:SF Mono,Cascadia Code,Consolas,monospace;font-size:12px}.form-group{margin-bottom:14px}.form-group label{color:#475569;margin-bottom:5px;font-size:12px;font-weight:600;display:block}.form-row{flex-wrap:wrap;gap:14px;min-width:0;display:flex}.form-row>*{flex:1;min-width:min(200px,100%)}.badge{white-space:nowrap;border-radius:5px;align-items:center;gap:4px;padding:2px 8px;font-size:11px;font-weight:600;display:inline-flex}.badge.active{color:#166534;background:#dcfce7}.badge.off{color:#64748b;background:#f1f5f9}.badge.warn{color:#dc2626;background:#fef2f2}.badge.role{color:#2563eb;background:#eff6ff}.badge.admin{color:#b45309;background:#fffbeb}.subtitle{color:#64748b;font-size:12px}.hint{color:#94a3b8;margin-top:4px;font-size:11px}.muted{color:#94a3b8}.copybox{align-items:center;gap:8px;display:flex}.copybox code{white-space:nowrap;background:#f8fafc;border:1px solid #e2e8f0;border-radius:6px;flex:1;padding:8px 12px;overflow:auto}.flex-between{flex-wrap:wrap;justify-content:space-between;align-items:center;gap:12px;display:flex}.flex-gap{flex-wrap:wrap;gap:8px;display:flex}#authView{background:linear-gradient(135deg,#f8fafc 0%,#eef2ff 50%,#f1f5f9 100%);flex:1;justify-content:center;align-items:center;min-height:100vh;padding:24px;display:flex}.auth-wrap{background:#fff;border:1px solid #e2e8f0;border-radius:16px;width:100%;max-width:400px;padding:36px 32px;box-shadow:0 1px 3px #0000000a,0 8px 32px #0000000f}.auth-brand{flex-direction:column;align-items:center;gap:10px;margin-bottom:28px;display:flex}.auth-brand svg{flex-shrink:0}.auth-brand h1{color:#0f172a;letter-spacing:.02em;font-size:18px;font-weight:700}.auth-brand p{color:#64748b;font-size:13px}.auth-tabs{background:#f1f5f9;border-radius:10px;gap:3px;margin-bottom:24px;padding:3px;display:flex}.auth-tabs div{text-align:center;cursor:pointer;color:#64748b;border-radius:8px;flex:1;padding:8px 16px;font-size:13px;font-weight:550;transition:all .2s}.auth-tabs div:hover{color:#334155}.auth-tabs div.on{color:#0f172a;background:#fff;box-shadow:0 1px 3px #00000014}.auth-error{color:#dc2626;background:#fef2f2;border:1px solid #fecaca;border-radius:8px;margin-bottom:16px;padding:10px 14px;font-size:12px;display:none}.auth-error.show{display:block}.auth-input-group{margin-bottom:16px}.auth-input-group label{color:#475569;margin-bottom:6px;font-size:12px;font-weight:600;display:block}.auth-input-wrap{align-items:center;display:flex;position:relative}.auth-input-wrap svg{pointer-events:none;flex-shrink:0;position:absolute;top:50%;left:12px;transform:translateY(-50%)}.auth-input-wrap input{color:#0f172a;background:#fff;border:1px solid #e2e8f0;border-radius:10px;width:100%;min-height:44px;padding:10px 12px 10px 38px;font-family:inherit;font-size:14px;transition:border-color .15s,box-shadow .15s}.auth-input-wrap input:focus{border-color:#2563eb;outline:none;box-shadow:0 0 0 3px #2563eb1a}.auth-input-wrap input::placeholder{color:#94a3b8}.auth-submit{color:#fff;cursor:pointer;background:#0f172a;border:none;border-radius:10px;width:100%;min-height:44px;margin-top:4px;font-family:inherit;font-size:14px;font-weight:600;transition:all .2s}.auth-submit:hover{background:#1e293b}.auth-submit:active{transform:scale(.98)}.auth-footer{text-align:center;color:#94a3b8;margin-top:16px;font-size:12px}.modal-overlay{-webkit-backdrop-filter:blur(4px);z-index:100;background:#f8fafc59;justify-content:center;align-items:flex-start;padding:40px 16px;display:none;position:fixed;inset:0;overflow-y:auto}.modal-overlay.on{display:flex}.modal-center{align-items:flex-start;padding-top:16vh}.modal{background:linear-gradient(#fff 0%,#fbfcfe 100%);border:1px solid #e2e8f0;border-radius:16px;width:min(920px,100%);padding:24px;animation:.24s cubic-bezier(.21,.9,.33,1.15) modal-pop;position:relative;box-shadow:0 1px 2px #0f172a0d,0 16px 40px -16px #0f172a38}.modal-dialog{width:min(420px,90%)}.modal-head{border-bottom:1px solid #eef2f7;justify-content:space-between;align-items:center;margin-bottom:16px;padding-bottom:14px;display:flex}.modal-head h2{color:#0f172a;letter-spacing:.01em;margin:0;font-size:15px}@keyframes modal-pop{0%{opacity:0;transform:translateY(10px)scale(.96)}to{opacity:1;transform:translateY(0)scale(1)}}.confirm-text{color:#334155;margin:0 0 20px;font-size:15px;line-height:1.6}.action-modal-footer{justify-content:flex-end;gap:10px;margin-top:20px;display:flex}.form-error{color:#dc2626;margin-top:6px;font-size:13px;display:block}.dialog-overlay{z-index:110;background:#0f172a66;justify-content:center;align-items:center;padding:16px;display:none;position:fixed;inset:0}.dialog-overlay.on{display:flex}.dialog-box{background:#fff;border-radius:14px;width:min(380px,100%);padding:28px 24px 20px;box-shadow:0 16px 48px #0000002e}.dialog-box h3{color:#0f172a;margin:0 0 6px;font-size:15px;font-weight:650}.dialog-box .dialog-sub{color:#64748b;margin-bottom:16px;font-size:12px}.dialog-box input{color:#0f172a;border:1px solid #e2e8f0;border-radius:8px;width:100%;min-height:40px;margin-bottom:16px;padding:8px 12px;font-family:inherit;font-size:13px;transition:border-color .15s,box-shadow .15s}.dialog-box input:focus{border-color:#2563eb;outline:none;box-shadow:0 0 0 3px #2563eb1a}.dialog-actions{justify-content:flex-end;gap:8px;display:flex}.qr-box{color:#94a3b8;text-align:center;background:#f8fafc;border:2px dashed #e2e8f0;border-radius:10px;justify-content:center;align-items:center;width:200px;height:200px;font-size:12px;display:flex;overflow:hidden}.qr-box img{object-fit:contain;width:100%;height:100%}.docs-summary{grid-template-columns:1fr 1fr;gap:14px;margin-bottom:20px;display:grid}.docs-summary-item{background:#f8fafc;border:1px solid #e2e8f0;border-radius:8px;padding:14px 16px}.docs-summary-item .ds-label{color:#64748b;text-transform:uppercase;letter-spacing:.05em;margin-bottom:6px;font-size:11px;font-weight:600}.docs-summary-item code{word-break:break-all;font-size:12px}.docs-section{border:1px solid #e2e8f0;border-radius:10px;margin-bottom:12px;overflow:hidden}.docs-section-header{cursor:pointer;-webkit-user-select:none;user-select:none;background:#f8fafc;border-bottom:1px solid #0000;justify-content:space-between;align-items:center;padding:14px 18px;transition:background .15s;display:flex}.docs-section-header:hover{background:#f1f5f9}.docs-section.open .docs-section-header{border-bottom-color:#e2e8f0}.docs-section-header h3{color:#0f172a;align-items:center;gap:8px;margin:0;font-size:14px;font-weight:650;display:flex}.docs-section-header h3 .section-badge{color:#475569;background:#e2e8f0;border-radius:4px;padding:2px 6px;font-size:10px;font-weight:600}.docs-section-header .chevron{color:#94a3b8;transition:transform .2s}.docs-section.open .docs-section-header .chevron{transform:rotate(180deg)}.docs-section-body{padding:16px 18px;display:none}.docs-section.open .docs-section-body{display:block}.docs-section-body p{color:#475569;margin-bottom:12px;font-size:13px}.docs-section-body table{margin-bottom:0}.docs-tag{border-radius:4px;margin-right:2px;padding:1px 5px;font-size:10px;font-weight:600;display:inline-block}.docs-tag.get{color:#166534;background:#dcfce7}.docs-tag.post{color:#1e40af;background:#eff6ff}.docs-tag.public{color:#475569;background:#f1f5f9}.docs-tag.auth{color:#92400e;background:#fffbeb}.docs-tag.admin{color:#991b1b;background:#fef2f2}.docs-curl{color:#e2e8f0;white-space:pre;background:#0f172a;border-radius:8px;margin-bottom:12px;padding:14px 16px;font-family:SF Mono,Cascadia Code,Consolas,monospace;font-size:12px;line-height:1.7;overflow-x:auto}.billing-grid{grid-template-columns:repeat(auto-fill,minmax(260px,1fr));gap:10px;margin-bottom:16px;display:grid}.billing-item{background:#f8fafc;border:1px solid #e2e8f0;border-radius:10px;align-items:flex-start;gap:12px;padding:14px 16px;transition:border-color .15s,box-shadow .15s;display:flex}.billing-item:hover{border-color:#cbd5e1;box-shadow:0 2px 8px #0000000a}.billing-icon{border-radius:8px;flex-shrink:0;justify-content:center;align-items:center;width:36px;height:36px;display:flex}.billing-icon.blue{color:#2563eb;background:#eff6ff}.billing-icon.green{color:#16a34a;background:#f0fdf4}.billing-icon.amber{color:#d97706;background:#fffbeb}.billing-icon.purple{color:#9333ea;background:#faf5ff}.billing-icon.red{color:#dc2626;background:#fef2f2}.billing-text{flex-direction:column;gap:3px;display:flex}.billing-text strong{color:#0f172a;font-size:13px;font-weight:650}.billing-text span{color:#64748b;font-size:12px;line-height:1.5}.billing-text code{background:#f1f5f9;border-radius:4px;padding:1px 5px;font-size:11px}.docs-api-table th:first-child{width:22%}.docs-api-table th:nth-child(2){width:35%}@media (width<=640px){.docs-summary{grid-template-columns:1fr}.docs-section-body{padding:12px}.docs-section-header{padding:12px 14px}.docs-section-header h3{font-size:13px}}#log{background:#f8fafc;border:1px solid #e2e8f0;border-radius:8px;max-height:200px;margin-top:12px;padding:10px;font-family:SF Mono,Cascadia Code,Consolas,monospace;font-size:11px;line-height:1.7;overflow-y:auto}.log-entry{color:#cbd5e1;font-weight:500}.log-entry.success{color:#4ade80}.log-entry.warn{color:#fbbf24}.log-entry.error{color:#f87171}#panel-docs .card{overflow:hidden}#panel-docs pre.out{max-height:520px}@media (width<=640px){#panel-docs pre.out{max-height:420px;font-size:11px}.card{padding:14px}.form-row{grid-template-columns:1fr;gap:0;display:grid}.form-row>*{width:100%;min-width:0}.stats-grid{grid-template-columns:1fr}.copybox{flex-wrap:wrap}.copybox code{flex-basis:100%;width:100%}.btn:not(.btn-sm):not(.btn-xs){width:100%}pre.out{max-height:300px}table{white-space:nowrap;-webkit-overflow-scrolling:touch;display:block;overflow-x:auto}.auth-wrap{padding:28px 20px}.modal-overlay{padding:24px 12px}.modal-center{padding-top:14vh}}
