:root {
    --bg: #f5f7fa;
    --card: #ffffff;
    --text: #1f2937;
    --muted: #6b7280;
    --primary: #1677ff;
    --primary-soft: #e6f4ff;
    --border: #e5e7eb;
    --code-bg: #0f172a;
    --success: #52c41a;
    --warning: #faad14;
    --danger: #ff4d4f;
    --sidebar-width: 220px;
    --docs-rail-width: 240px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "PingFang SC", "Microsoft YaHei", sans-serif;
    color: var(--text);
    background: var(--bg);
    line-height: 1.6;
}

.layout {
    display: flex;
    min-height: 100vh;
}

.sidebar {
    width: var(--sidebar-width);
    background: #001529;
    color: #fff;
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    overflow-y: auto;
    padding: 24px 0;
    display: flex;
    flex-direction: column;
}

.sidebar-title {
    padding: 0 20px 16px;
    font-size: 18px;
    font-weight: 600;
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
    margin-bottom: 12px;
}

.sidebar-subtitle {
    padding: 0 20px 12px;
    font-size: 12px;
    color: rgba(255, 255, 255, 0.55);
}

.sidebar nav a {
    display: block;
    padding: 8px 20px;
    color: rgba(255, 255, 255, 0.75);
    text-decoration: none;
    font-size: 14px;
    border-left: 3px solid transparent;
}

.sidebar nav a:hover,
.sidebar nav a.active {
    color: #fff;
    background: rgba(255, 255, 255, 0.08);
    border-left-color: var(--primary);
}

.sidebar-main-nav {
    padding: 4px 0 8px;
    flex: 1;
}

.sidebar-tab {
    display: block;
    padding: 12px 20px;
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    font-size: 15px;
    font-weight: 500;
    border-left: 3px solid transparent;
}

.sidebar-tab:hover,
.sidebar-tab.active {
    color: #fff;
    background: rgba(255, 255, 255, 0.08);
    border-left-color: var(--primary);
}

.docs-rail {
    position: fixed;
    top: 0;
    left: var(--sidebar-width);
    bottom: 0;
    width: var(--docs-rail-width);
    z-index: 20;
    overflow-y: auto;
    background: #fff;
    border-right: 1px solid var(--border);
    box-shadow: 1px 0 0 rgba(15, 23, 42, 0.02);
}

.docs-rail[hidden] {
    display: none;
}

.docs-rail-title {
    padding: 20px 18px 12px;
    font-size: 13px;
    font-weight: 600;
    color: var(--muted);
    letter-spacing: 0.02em;
    border-bottom: 1px solid var(--border);
}

.docs-rail-nav {
    padding: 8px 0 24px;
}

.docs-rail .nav-group {
    padding: 14px 18px 6px;
    font-size: 12px;
    font-weight: 600;
    color: #94a3b8;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.docs-rail .docs-anchor {
    display: block;
    padding: 7px 18px;
    color: #475569;
    text-decoration: none;
    font-size: 13px;
    line-height: 1.4;
    border-left: 3px solid transparent;
}

.docs-rail .docs-anchor:hover {
    color: var(--primary);
    background: var(--primary-soft);
}

.docs-rail .docs-anchor.active {
    color: var(--primary);
    background: var(--primary-soft);
    border-left-color: var(--primary);
    font-weight: 500;
}

.docs-nav-search {
    position: relative;
    padding: 12px 14px 8px;
}

.docs-search-label {
    display: block;
    margin-bottom: 6px;
    font-size: 12px;
    font-weight: 500;
    color: var(--muted);
}

.docs-search-box {
    position: relative;
    display: flex;
    align-items: center;
}

.docs-search-input {
    width: 100%;
    padding: 8px 52px 8px 12px;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: #f8fafc;
    color: var(--text);
    font-size: 13px;
    outline: none;
    transition: border-color 0.15s, box-shadow 0.15s;
}

.docs-search-input:focus {
    border-color: var(--primary);
    background: #fff;
    box-shadow: 0 0 0 3px rgba(22, 119, 255, 0.12);
}

.docs-search-kbd {
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    padding: 2px 6px;
    border-radius: 4px;
    border: 1px solid #e2e8f0;
    background: #fff;
    color: #94a3b8;
    font-size: 11px;
    font-family: inherit;
    line-height: 1.2;
    pointer-events: none;
}

.docs-search-results {
    position: absolute;
    left: 14px;
    right: 14px;
    top: calc(100% - 4px);
    z-index: 30;
    max-height: 320px;
    overflow-y: auto;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 10px;
    box-shadow: 0 12px 28px rgba(15, 23, 42, 0.12);
}

.docs-search-empty {
    padding: 14px 12px;
    color: var(--muted);
    font-size: 13px;
    text-align: center;
}

.docs-search-item {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 2px;
    width: 100%;
    padding: 10px 12px;
    border: none;
    border-bottom: 1px solid #f1f5f9;
    background: transparent;
    text-align: left;
    cursor: pointer;
}

.docs-search-item:last-child {
    border-bottom: none;
}

.docs-search-item:hover,
.docs-search-item:focus {
    background: var(--primary-soft);
    outline: none;
}

.docs-search-item-title {
    font-size: 13px;
    font-weight: 600;
    color: var(--text);
}

.docs-search-item-snippet {
    font-size: 12px;
    color: var(--muted);
    line-height: 1.45;
}

.docs-search-item-snippet mark {
    background: #fff1b8;
    color: inherit;
    padding: 0 1px;
    border-radius: 2px;
}

.section.docs-search-hit {
    box-shadow: 0 0 0 2px rgba(22, 119, 255, 0.35);
    transition: box-shadow 0.3s;
}

.layout.is-docs-open .content {
    margin-left: calc(var(--sidebar-width) + var(--docs-rail-width));
}

.content-panel {
    display: none;
}

.content-panel.is-active {
    display: block;
}

.panel-page-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 20px;
    padding: 24px 28px;
    border-radius: 12px;
    background: linear-gradient(135deg, #1677ff 0%, #0958d9 100%);
    color: #fff;
    box-shadow: 0 4px 16px rgba(15, 23, 42, 0.08);
}

.panel-page-main h1 {
    margin: 8px 0 6px;
    font-size: 24px;
    font-weight: 600;
}

.panel-page-main p {
    margin: 0;
    max-width: 720px;
    font-size: 14px;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.88);
}

.panel-page-main code {
    padding: 1px 6px;
    border-radius: 4px;
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.28);
    color: #fff;
    font-size: 12px;
    font-weight: 500;
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
}

.panel-page-header .account-action-btn-primary {
    flex-shrink: 0;
    align-self: flex-start;
    margin-top: 2px;
    border-color: rgba(255, 255, 255, 0.45);
    background: rgba(255, 255, 255, 0.96);
    color: #0958d9;
    padding: 6px 16px;
    font-size: 13px;
    box-shadow: 0 1px 4px rgba(15, 23, 42, 0.12);
}

.panel-page-header-compact .account-action-btn-primary {
    align-self: center;
    margin-top: 0;
}

.panel-page-header .account-action-btn-primary:hover:not(:disabled) {
    border-color: #fff;
    background: #fff;
    color: #1677ff;
}

.panel-page-badge {
    display: inline-block;
    padding: 2px 10px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.18);
    font-size: 12px;
}

.panel-page-header .docs-exit-btn {
    flex-shrink: 0;
}

.panel-page-header-compact {
    padding: 16px 20px;
    margin-bottom: 16px;
    align-items: center;
}

.panel-page-title-row {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.panel-page-header-compact .panel-page-title-row h1 {
    margin: 0;
    font-size: 20px;
    line-height: 1.3;
}

.panel-page-header-compact .panel-page-badge {
    margin: 0;
}

.panel-page-desc {
    margin: 8px 0 0;
    max-width: 640px;
    font-size: 13px;
    line-height: 1.55;
    color: rgba(255, 255, 255, 0.9);
}

.panel-page-header-compact .panel-page-refresh-btn {
    align-self: center;
    margin-top: 0;
    padding: 7px 18px;
    font-weight: 500;
}

.home-quick-links {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
    margin-top: 20px;
}

.panel-page-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.panel-page-ghost-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 8px 16px;
    border-radius: 6px;
    border: 1px solid rgba(255, 255, 255, 0.35);
    background: rgba(255, 255, 255, 0.15);
    color: #fff;
    font-size: 13px;
    line-height: 1;
    cursor: pointer;
    white-space: nowrap;
    transition: background .15s ease, border-color .15s ease;
}

.panel-page-ghost-btn svg {
    width: 14px;
    height: 14px;
    max-width: 14px;
    max-height: 14px;
    display: block;
}

.panel-page-ghost-btn:hover {
    background: rgba(255, 255, 255, 0.28);
    border-color: rgba(255, 255, 255, 0.55);
}

.panel-page-ghost-btn:active {
    background: rgba(255, 255, 255, 0.2);
}

.panel-page-ghost-btn.is-loading {
    opacity: 0.75;
    pointer-events: none;
}

.panel-page-ghost-btn.is-loading svg {
    animation: panel-ghost-spin .8s linear infinite;
}

@keyframes panel-ghost-spin {
    to { transform: rotate(360deg); }
}

.client-dash-pulse {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 12px;
    margin-bottom: 8px;
}

.client-dash-card {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 14px 16px;
    min-height: 92px;
}

.client-dash-card .label {
    font-size: 13px;
    color: #6b7280;
    margin-bottom: 8px;
}

.client-dash-card .value {
    font-size: 24px;
    font-weight: 650;
    color: #111827;
    line-height: 1.15;
}

.client-dash-card .value.is-warn { color: #d97706; }
.client-dash-card .value.is-danger { color: #dc2626; }
.client-dash-card .value.is-ok { color: #059669; }

.client-dash-card .sub {
    margin-top: 6px;
    font-size: 12px;
    color: #9ca3af;
}

.client-dash-gen {
    margin: 0 0 18px;
    font-size: 12px;
    color: #9ca3af;
}

.client-dash-section {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 16px 18px;
    margin-bottom: 16px;
}

.client-dash-section-hd {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 12px;
}

.client-dash-section-hd h2 {
    margin: 0;
    font-size: 15px;
    font-weight: 600;
    color: #111827;
}

.client-dash-section-hd .muted {
    font-size: 12px;
    color: #9ca3af;
}

.text-link-btn {
    border: none;
    background: transparent;
    color: #1677ff;
    font-size: 13px;
    cursor: pointer;
    padding: 0;
}

.text-link-btn:hover { text-decoration: underline; }

.client-dash-projects {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 12px;
}

.client-dash-project {
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    padding: 14px;
    text-align: left;
    background: #fff;
    cursor: pointer;
    transition: border-color .15s, box-shadow .15s;
}

.client-dash-project:hover {
    border-color: #91caff;
    box-shadow: 0 4px 12px rgba(22, 119, 255, 0.08);
}

.client-dash-project.is-offline {
    border-color: #fecaca;
    background: #fff7f7;
}

.client-dash-project.is-warn {
    border-color: #fcd34d;
    background: #fffbeb;
}

.client-dash-project .name {
    font-size: 14px;
    font-weight: 600;
    color: #111827;
    margin-bottom: 8px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.client-dash-project .meta {
    font-size: 12px;
    color: #6b7280;
    line-height: 1.6;
}

.client-dash-project .meta b.online { color: #059669; font-weight: 600; }
.client-dash-project .meta b.offline { color: #dc2626; font-weight: 600; }

.client-dash-empty {
    grid-column: 1 / -1;
    padding: 24px;
    text-align: center;
    color: #9ca3af;
    font-size: 13px;
}

.client-dash-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.client-dash-alerts {
    list-style: none;
    margin: 0;
    padding: 0;
    max-height: 220px;
    overflow: auto;
}

.client-dash-alerts li {
    padding: 8px 0;
    border-bottom: 1px dashed #f0f0f0;
    font-size: 12px;
}

.client-dash-alerts li:last-child { border-bottom: none; }

.client-dash-alerts .t {
    color: #111827;
    margin-bottom: 2px;
}

.client-dash-alerts .d {
    color: #9ca3af;
}

@media (max-width: 1100px) {
    .client-dash-pulse { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .client-dash-grid { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
    .client-dash-pulse { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

.home-quick-card {
    display: block;
    width: 100%;
    padding: 18px 20px;
    border: 1px solid var(--border);
    border-radius: 12px;
    background: #fff;
    text-align: left;
    cursor: pointer;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.home-quick-card:hover {
    border-color: #91caff;
    box-shadow: 0 4px 12px rgba(22, 119, 255, 0.1);
}

.home-quick-card.is-muted {
    opacity: 0.85;
}

.home-quick-title {
    display: block;
    font-size: 15px;
    font-weight: 600;
    color: #111827;
    margin-bottom: 6px;
}

.home-quick-desc {
    display: block;
    font-size: 13px;
    color: var(--muted);
    line-height: 1.5;
}

.panel-placeholder {
    margin-top: 8px;
    padding: 48px 32px;
    border-radius: 12px;
    border: 1px dashed #d9d9d9;
    background: #fff;
    text-align: center;
}

.panel-placeholder-icon {
    width: 56px;
    height: 56px;
    margin: 0 auto 16px;
    color: #91caff;
}

.panel-placeholder-icon svg {
    width: 56px;
    height: 56px;
}

.panel-placeholder h1 {
    margin: 0 0 10px;
    font-size: 22px;
}

.panel-placeholder p {
    margin: 0 auto 16px;
    max-width: 420px;
    color: var(--muted);
    font-size: 14px;
    line-height: 1.7;
}

.panel-placeholder-tag {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 999px;
    background: #f5f5f5;
    color: #8c8c8c;
    font-size: 12px;
}

.content.is-debug-wide {
    max-width: none;
    padding-right: 32px;
}

.content.is-log-wide {
    max-width: none;
    width: calc(100% - var(--sidebar-width));
    padding-right: 32px;
    box-sizing: border-box;
}

.content.is-log-wide .client-dash-projects {
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
}

.content.is-log-wide .home-quick-links {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

@media (min-width: 1400px) {
    .content.is-log-wide .home-quick-links {
        grid-template-columns: repeat(6, minmax(0, 1fr));
    }
}

.api-debug-header {
    margin-bottom: 16px;
}

.api-debug-header h1 {
    margin: 0 0 6px;
    font-size: 22px;
}

.api-debug-header p {
    margin: 0;
    color: var(--muted);
    font-size: 14px;
}

.api-debug-token-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: flex-end;
    padding: 16px;
    margin-bottom: 12px;
    border: 1px solid var(--border);
    border-radius: 10px;
    background: #fff;
}

.api-debug-token-field {
    display: flex;
    flex-direction: column;
    gap: 6px;
    min-width: 200px;
}

.api-debug-token-grow {
    flex: 1;
    min-width: 280px;
}

.api-debug-token-field label {
    font-size: 12px;
    color: var(--muted);
}

.api-debug-input {
    width: 100%;
    padding: 8px 10px;
    border: 1px solid #d9d9d9;
    border-radius: 6px;
    font-size: 13px;
    font-family: Consolas, Monaco, monospace;
}

.api-debug-token-status {
    font-size: 12px;
    color: var(--muted);
}

.api-debug-token-actions {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.api-debug-msg {
    margin-bottom: 12px;
    padding: 8px 12px;
    border-radius: 6px;
    font-size: 13px;
}

.api-debug-msg.is-ok {
    background: #f6ffed;
    border: 1px solid #b7eb8f;
    color: #135200;
}

.api-debug-msg.is-err {
    background: #fff2f0;
    border: 1px solid #ffccc7;
    color: #cf1322;
}

.api-debug-body {
    display: grid;
    grid-template-columns: 280px minmax(0, 1fr);
    gap: 16px;
    align-items: start;
}

.api-debug-list-wrap {
    border: 1px solid var(--border);
    border-radius: 10px;
    background: #fff;
    overflow: hidden;
}

.api-debug-search {
    width: 100%;
    padding: 10px 12px;
    border: none;
    border-bottom: 1px solid var(--border);
    font-size: 13px;
    outline: none;
}

.api-debug-list {
    max-height: calc(100vh - 280px);
    overflow-y: auto;
    padding: 8px 0;
}

.api-debug-group-title {
    padding: 8px 14px 4px;
    font-size: 11px;
    color: #9ca3af;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.api-debug-item {
    display: flex;
    align-items: center;
    gap: 8px;
    width: 100%;
    padding: 8px 14px;
    border: none;
    background: transparent;
    text-align: left;
    cursor: pointer;
    font-size: 13px;
    color: #374151;
}

.api-debug-item:hover {
    background: #f5f7fa;
}

.api-debug-item.is-active {
    background: var(--primary-soft);
    color: #0958d9;
}

.api-debug-item-method {
    flex-shrink: 0;
    padding: 2px 6px;
    border-radius: 4px;
    background: #f0f0f0;
    font-size: 10px;
    font-weight: 600;
    font-family: Consolas, Monaco, monospace;
}

.api-debug-item.is-active .api-debug-item-method {
    background: #bae0ff;
}

.api-debug-item-name {
    line-height: 1.4;
}

.api-debug-empty {
    padding: 16px 14px;
    color: var(--muted);
    font-size: 13px;
}

.api-debug-workbench {
    border: 1px solid var(--border);
    border-radius: 10px;
    background: #fff;
    overflow: hidden;
}

.api-debug-request-head {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    padding: 14px 16px;
    border-bottom: 1px solid var(--border);
    background: #fafafa;
}

.api-debug-method {
    padding: 4px 8px;
    border-radius: 4px;
    background: #1677ff;
    color: #fff;
    font-size: 12px;
    font-weight: 600;
    font-family: Consolas, Monaco, monospace;
}

.api-debug-path {
    font-size: 14px;
    color: #111827;
}

.api-debug-auth-tag {
    padding: 2px 8px;
    border-radius: 999px;
    font-size: 11px;
}

.api-debug-auth-tag.need-auth {
    background: #fff7e6;
    color: #d46b08;
    border: 1px solid #ffd591;
}

.api-debug-auth-tag.no-auth {
    background: #f6ffed;
    color: #389e0d;
    border: 1px solid #b7eb8f;
}

.api-debug-params {
    padding: 12px 16px;
    border-bottom: 1px solid var(--border);
}

.api-debug-params-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 10px;
    font-size: 13px;
    font-weight: 600;
}

.api-debug-params-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
}

.api-debug-params-table th,
.api-debug-params-table td {
    padding: 8px 10px;
    border: 1px solid #f0f0f0;
    text-align: left;
    vertical-align: middle;
}

.api-debug-params-table th {
    width: 140px;
    background: #fafafa;
    color: var(--muted);
    font-weight: 500;
}

.api-debug-params-table .req {
    color: #ff4d4f;
    margin-left: 2px;
}

.api-debug-param-input {
    width: 100%;
    padding: 6px 8px;
    border: 1px solid #d9d9d9;
    border-radius: 4px;
    font-size: 13px;
    font-family: Consolas, Monaco, monospace;
}

.api-debug-no-params {
    color: var(--muted);
    text-align: center;
}

.api-debug-send-row {
    padding: 12px 16px;
    border-bottom: 1px solid var(--border);
}

.api-debug-send-btn {
    padding: 8px 24px;
    border: none;
    border-radius: 6px;
    background: #1677ff;
    color: #fff;
    font-size: 14px;
    cursor: pointer;
}

.api-debug-send-btn:hover:not(:disabled) {
    background: #0958d9;
}

.api-debug-send-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.api-debug-response {
    padding: 12px 16px 16px;
}

.api-debug-response-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 10px;
    font-size: 13px;
    font-weight: 600;
}

.api-debug-response-title-row {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
    flex: 1;
}

.api-debug-response-label {
    flex-shrink: 0;
    font-weight: 600;
    color: var(--text, #0f172a);
}

/* 代码块视图切换 / 复制（回调详情、接口调试共用） */
.code-view-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 10px;
}

.code-view-toolbar-actions {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}

.code-view-tabs {
    display: inline-flex;
    align-items: center;
    gap: 2px;
    padding: 2px;
    border-radius: 8px;
    background: #eef2f7;
    border: 1px solid #e2e8f0;
}

.code-view-tab {
    border: none;
    background: transparent;
    color: #64748b;
    font-size: 12px;
    font-weight: 500;
    padding: 5px 11px;
    border-radius: 6px;
    cursor: pointer;
    line-height: 1.25;
    white-space: nowrap;
    font-family: inherit;
    transition: color 0.15s ease, background 0.15s ease;
}

.code-view-tab:hover {
    color: var(--primary, #1677ff);
}

.code-view-tab.is-active {
    background: #fff;
    color: #0f172a;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.08);
}

.code-view-copy-btn {
    flex-shrink: 0;
    border: 1px solid #e2e8f0;
    background: #fff;
    color: #64748b;
    border-radius: 8px;
    padding: 5px 12px;
    font-size: 12px;
    font-weight: 500;
    line-height: 1.25;
    cursor: pointer;
    white-space: nowrap;
    font-family: inherit;
    transition: border-color 0.15s ease, color 0.15s ease;
}

.code-view-copy-btn:hover {
    border-color: var(--primary, #1677ff);
    color: var(--primary, #1677ff);
}

.api-debug-response-body .json-comment {
    color: #94a3b8;
    font-style: normal;
}

.api-debug-field-legend {
    margin-top: 10px;
    padding: 10px 12px;
    border-radius: 8px;
    background: var(--surface-2, #f8fafc);
    border: 1px solid var(--border, #e2e8f0);
    font-size: 12px;
}

.api-debug-field-legend-title {
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--text, #0f172a);
}

.api-debug-field-legend table {
    width: 100%;
    border-collapse: collapse;
}

.api-debug-field-legend th,
.api-debug-field-legend td {
    padding: 4px 8px;
    text-align: left;
    vertical-align: top;
    border-bottom: 1px solid var(--border, #e2e8f0);
}

.api-debug-field-legend th {
    color: var(--muted);
    font-weight: 500;
    width: 28%;
}

.api-debug-field-legend tr:last-child td,
.api-debug-field-legend tr:last-child th {
    border-bottom: none;
}

.api-debug-field-legend code {
    font-size: 11px;
}

.api-debug-response-meta {
    font-weight: 400;
    color: var(--muted);
    font-size: 12px;
}

.api-debug-response-body {
    margin: 0;
    padding: 14px;
    max-height: 420px;
    overflow: auto;
    border-radius: 8px;
    background: var(--code-bg);
    color: #e2e8f0;
    font-size: 12px;
    line-height: 1.6;
    white-space: pre-wrap;
    word-break: break-all;
}

.content {
    margin-left: var(--sidebar-width);
    flex: 1;
    padding: 32px 40px 80px;
    max-width: 1120px;
}

.content svg {
    display: inline-block;
    width: 1em;
    height: 1em;
    max-width: 24px;
    max-height: 24px;
    vertical-align: middle;
    flex-shrink: 0;
}

.docs-top-panel {
    margin-bottom: 24px;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid var(--border);
    box-shadow: 0 4px 16px rgba(15, 23, 42, 0.06);
}

.docs-hero-bar {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    padding: 24px 28px;
    background: linear-gradient(135deg, #1677ff 0%, #0958d9 100%);
    color: #fff;
}

.docs-hero-main {
    flex: 1;
    min-width: 0;
}

.docs-hero-badge {
    display: inline-block;
    margin-bottom: 10px;
    padding: 3px 10px;
    border-radius: 4px;
    background: rgba(255, 255, 255, 0.2);
    font-size: 12px;
    font-weight: 500;
}

.docs-hero-bar h1 {
    margin: 0 0 8px;
    font-size: 26px;
    font-weight: 700;
}

.docs-hero-bar p {
    margin: 0;
    font-size: 14px;
    opacity: 0.92;
    line-height: 1.7;
}

.docs-exit-btn {
    flex-shrink: 0;
    padding: 8px 16px;
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.35);
    color: #fff;
    font-size: 13px;
    text-decoration: none;
    white-space: nowrap;
}

.docs-exit-btn:hover {
    background: rgba(255, 255, 255, 0.28);
    color: #fff;
}

.hero {
    background: linear-gradient(135deg, #1677ff 0%, #0958d9 100%);
    color: #fff;
    border-radius: 12px;
    padding: 32px;
    margin-bottom: 24px;
}

.hero h1 {
    margin: 0 0 8px;
    font-size: 28px;
}

.hero p {
    margin: 0;
    opacity: 0.9;
}

.section {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 24px 28px;
    margin-bottom: 20px;
}

.section h2 {
    margin: 0 0 16px;
    font-size: 22px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--border);
}

.section h3 {
    margin: 24px 0 12px;
    font-size: 17px;
}

.section h4 {
    margin: 16px 0 8px;
    font-size: 15px;
}

p, li {
    color: var(--text);
}

.muted {
    color: var(--muted);
}

table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
    margin: 12px 0 16px;
}

th, td {
    border: 1px solid var(--border);
    padding: 10px 12px;
    text-align: left;
    vertical-align: top;
}

th {
    background: #fafafa;
    font-weight: 600;
}

code {
    background: #f3f4f6;
    padding: 2px 6px;
    border-radius: 4px;
    font-family: Consolas, Monaco, monospace;
    font-size: 13px;
}

pre {
    background: var(--code-bg);
    color: #e2e8f0;
    padding: 16px;
    border-radius: 8px;
    overflow-x: auto;
    font-size: 13px;
    line-height: 1.5;
    margin: 12px 0;
}

pre code {
    background: none;
    padding: 0;
    color: inherit;
}

.tag {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 600;
    margin-right: 8px;
}

.tag-post {
    background: #fff7e6;
    color: #d46b08;
}

.tag-get {
    background: #f6ffed;
    color: #389e0d;
}

.tag-auth {
    background: var(--primary-soft);
    color: var(--primary);
}

.tag-public {
    background: #f6ffed;
    color: var(--success);
}

.endpoint-card {
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 18px 20px;
    margin-bottom: 16px;
    background: #fafafa;
}

.endpoint-path {
    font-family: Consolas, Monaco, monospace;
    font-size: 15px;
    word-break: break-all;
    margin: 8px 0 12px;
}

.alert {
    padding: 12px 14px;
    border-radius: 8px;
    margin: 12px 0;
    font-size: 14px;
}

.alert-info {
    background: var(--primary-soft);
    border: 1px solid #91caff;
    color: #0958d9;
}

.alert-warning {
    background: #fffbe6;
    border: 1px solid #ffe58f;
    color: #ad6800;
}

.base-url-box {
    display: flex;
    gap: 8px;
    align-items: center;
    flex-wrap: wrap;
    margin: 12px 0;
}

.base-url-box input {
    flex: 1;
    min-width: 280px;
    padding: 10px 12px;
    border: 1px solid var(--border);
    border-radius: 8px;
    font-family: Consolas, Monaco, monospace;
    font-size: 14px;
}

.base-url-box button {
    padding: 10px 16px;
    border: none;
    border-radius: 8px;
    background: var(--primary);
    color: #fff;
    cursor: pointer;
    font-size: 14px;
}

.sidebar-footer {
    margin-top: auto;
    padding: 16px 20px 8px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.docs-exit-btn-sidebar {
    display: block;
    text-align: center;
    padding: 8px 12px;
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: rgba(255, 255, 255, 0.75);
    font-size: 13px;
    text-decoration: none;
}

.docs-exit-btn-sidebar:hover {
    background: rgba(255, 77, 79, 0.15);
    border-color: rgba(255, 77, 79, 0.35);
    color: #ffccc7;
}

.account-card {
    background: #fff;
    padding: 20px 28px 16px;
}

.account-card-header {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 16px;
    padding-bottom: 16px;
    border-bottom: 1px solid #f0f0f0;
}

.account-avatar {
    flex-shrink: 0;
    width: 44px;
    height: 44px;
    border-radius: 10px;
    background: linear-gradient(135deg, #1677ff, #52c41a);
    color: #fff;
    font-size: 18px;
    font-weight: 700;
    line-height: 44px;
    text-align: center;
}

.account-card-meta {
    flex: 1;
    min-width: 0;
}

.account-card-title {
    font-size: 16px;
    font-weight: 600;
    color: #111827;
    margin-bottom: 4px;
}

.account-card-sub {
    font-size: 13px;
    color: var(--muted);
}

.account-info-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 14px;
    font-size: 14px;
}

.account-info-table th,
.account-info-table td {
    padding: 10px 12px;
    border: 1px solid #f0f0f0;
    text-align: left;
    vertical-align: top;
}

.account-info-table th {
    width: 100px;
    background: #fafafa;
    color: var(--muted);
    font-weight: 500;
    font-size: 13px;
    white-space: nowrap;
}

.account-info-table td {
    color: #111827;
    word-break: break-all;
}

.app-id-mono {
    font-family: Consolas, Monaco, monospace;
    font-weight: 600;
    color: #389e0d;
    letter-spacing: 0.04em;
}

.app-secret-mono {
    font-family: Consolas, Monaco, monospace;
    font-weight: 600;
    color: #d46b08;
    letter-spacing: 0.02em;
    word-break: break-all;
}

.account-project-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.account-project-tag {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin: 2px 0;
    padding: 4px 10px;
    border-radius: 999px;
    border: 1px solid transparent;
    font-size: 13px;
    line-height: 1.4;
}

.account-project-tag.is-online {
    background: #f6ffed;
    border-color: #b7eb8f;
    color: #135200;
}

.account-project-tag.is-offline {
    background: #fafafa;
    border-color: #d9d9d9;
    color: #595959;
}

.account-project-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    flex-shrink: 0;
}

.account-project-tag.is-online .account-project-dot {
    background: #52c41a;
    box-shadow: 0 0 0 2px rgba(82, 196, 26, 0.2);
}

.account-project-tag.is-offline .account-project-dot {
    background: #bfbfbf;
}

.account-project-name {
    font-weight: 500;
}

.account-project-status {
    font-size: 11px;
    padding: 1px 6px;
    border-radius: 999px;
    background: rgba(0, 0, 0, 0.06);
}

.account-project-tag.is-online .account-project-status {
    background: rgba(82, 196, 26, 0.15);
    color: #389e0d;
}

.account-project-tag.is-offline .account-project-status {
    background: rgba(0, 0, 0, 0.06);
    color: #8c8c8c;
}

.account-project-btn {
    cursor: pointer;
    font: inherit;
    transition: box-shadow 0.2s, transform 0.15s;
}

.account-project-btn:hover {
    box-shadow: 0 2px 8px rgba(22, 119, 255, 0.12);
    transform: translateY(-1px);
}

.account-project-count {
    font-size: 11px;
    padding: 1px 7px;
    border-radius: 999px;
    background: rgba(22, 119, 255, 0.1);
    color: #0958d9;
    font-weight: 600;
}

.account-project-ip {
    font-size: 11px;
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    color: #1677ff;
    margin-left: 4px;
}

.account-project-tag.is-offline .account-project-count {
    background: rgba(0, 0, 0, 0.06);
    color: #8c8c8c;
}

body.project-modal-open {
    overflow: hidden;
}

.project-modal[hidden] {
    display: none !important;
}

.project-modal {
    position: fixed;
    inset: 0;
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px 16px;
}

.project-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(15, 23, 42, 0.45);
}

.project-modal-panel {
    position: relative;
    width: min(960px, 100%);
    max-height: calc(100vh - 48px);
    display: flex;
    flex-direction: column;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 20px 48px rgba(15, 23, 42, 0.18);
    overflow: hidden;
}

.project-modal-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    padding: 18px 20px;
    border-bottom: 1px solid var(--border);
    background: #fafafa;
}

.project-modal-header h2 {
    margin: 0 0 4px;
    font-size: 18px;
}

.project-modal-sub {
    margin: 0;
    font-size: 13px;
    color: var(--muted);
}

.project-modal-close {
    border: none;
    background: transparent;
    font-size: 24px;
    line-height: 1;
    color: #8c8c8c;
    cursor: pointer;
    padding: 0 4px;
}

.project-modal-close:hover {
    color: #111827;
}

.project-modal-body {
    padding: 16px 20px 20px;
    overflow: auto;
}

.project-modal-loading,
.project-modal-error {
    padding: 24px 0;
    text-align: center;
    color: var(--muted);
    font-size: 14px;
}

.project-modal-error {
    color: #cf1322;
}

.project-modal-table-wrap {
    overflow: auto;
}

.project-modal-batch {
    margin-bottom: 14px;
    padding: 12px 14px;
    border: 1px solid var(--border);
    border-radius: 10px;
    background: #fafbfc;
}

.project-modal-batch-left {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 10px;
    flex-wrap: wrap;
}

.project-batch-select-all {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    cursor: pointer;
    user-select: none;
}

.project-batch-count {
    font-size: 13px;
    color: var(--muted);
}

.project-modal-batch-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.project-batch-btn {
    border: 1px solid #d9d9d9;
    background: #fff;
    color: var(--text);
    border-radius: 6px;
    padding: 5px 12px;
    font-size: 12px;
    cursor: pointer;
    font-family: inherit;
}

.project-batch-btn:hover:not(:disabled) {
    border-color: var(--primary);
    color: var(--primary);
}

.project-batch-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.project-batch-divider {
    width: 1px;
    height: 18px;
    background: #e5e7eb;
    margin: 0 2px;
}

.project-modal-batch-hint {
    margin: 10px 0 0;
    font-size: 12px;
    color: var(--muted);
    line-height: 1.5;
}

.project-equip-col-check {
    width: 42px;
    text-align: center;
}

.project-equip-check {
    width: 15px;
    height: 15px;
    cursor: pointer;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.project-equipment-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
}

.project-equipment-table th,
.project-equipment-table td {
    padding: 10px 12px;
    border: 1px solid #f0f0f0;
    text-align: left;
    white-space: nowrap;
}

.project-equipment-table th {
    background: #fafafa;
    color: var(--muted);
    font-weight: 500;
    position: sticky;
    top: 0;
    z-index: 1;
}

.project-equipment-table td:nth-child(3) {
    white-space: normal;
    min-width: 120px;
}

.account-project-empty {
    color: #9ca3af;
}

.account-field-row {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.account-callback-row {
    align-items: stretch;
}

.account-callback-input {
    flex: 1;
    min-width: 220px;
    padding: 6px 10px;
    border: 1px solid #d9d9d9;
    border-radius: 4px;
    font-size: 13px;
    color: #111827;
    background: #fff;
}

.account-callback-input:focus {
    outline: none;
    border-color: #1677ff;
    box-shadow: 0 0 0 2px rgba(22, 119, 255, 0.12);
}

.account-field-hint {
    margin: 6px 0 0;
    font-size: 12px;
    color: #9ca3af;
    line-height: 1.5;
}

.account-push-mode-text {
    display: inline-block;
    font-size: 14px;
    color: #111827;
    line-height: 1.5;
}

.account-ip-whitelist-input {
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
}

.account-action-btn {
    padding: 4px 12px;
    border-radius: 4px;
    border: 1px solid #d9d9d9;
    background: #fff;
    color: #111827;
    font-size: 12px;
    line-height: 1.5;
    cursor: pointer;
    white-space: nowrap;
}

.account-action-btn:hover:not(:disabled) {
    border-color: #1677ff;
    color: #1677ff;
}

.account-action-btn:disabled {
    opacity: 0.55;
    cursor: not-allowed;
}

.account-action-btn-warn {
    border-color: #ffd591;
    background: #fff7e6;
    color: #d46b08;
}

.account-action-btn-warn:hover:not(:disabled) {
    border-color: #d46b08;
    color: #d46b08;
}

.account-action-btn-primary {
    border-color: #91caff;
    background: #e6f4ff;
    color: #0958d9;
}

.account-action-btn-primary:hover:not(:disabled) {
    border-color: #1677ff;
    color: #1677ff;
}

.account-action-msg {
    margin-bottom: 10px;
    padding: 8px 12px;
    border-radius: 6px;
    font-size: 13px;
    line-height: 1.5;
}

.account-action-msg.is-ok {
    background: #f6ffed;
    border: 1px solid #b7eb8f;
    color: #135200;
}

.account-action-msg.is-err {
    background: #fff2f0;
    border: 1px solid #ffccc7;
    color: #cf1322;
}

.account-info-tip {
    margin: 0;
    padding: 10px 12px;
    border-radius: 6px;
    background: #fffbe6;
    border: 1px solid #ffe58f;
    font-size: 13px;
    color: #ad6800;
    line-height: 1.6;
}

.docs-verify-page {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 32px 20px;
    overflow: hidden;
    background: #0b1220;
}

.docs-verify-bg {
    position: absolute;
    inset: 0;
    pointer-events: none;
}

.docs-verify-grid {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
    background-size: 48px 48px;
    mask-image: radial-gradient(ellipse 80% 70% at 50% 40%, #000 20%, transparent 75%);
}

.docs-verify-blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.55;
    animation: docsBlobFloat 12s ease-in-out infinite;
}

.docs-verify-blob-1 {
    width: 420px;
    height: 420px;
    top: -120px;
    left: -80px;
    background: #1677ff;
}

.docs-verify-blob-2 {
    width: 360px;
    height: 360px;
    right: -60px;
    bottom: -80px;
    background: #52c41a;
    animation-delay: -4s;
}

.docs-verify-blob-3 {
    width: 280px;
    height: 280px;
    top: 40%;
    left: 55%;
    background: #722ed1;
    opacity: 0.35;
    animation-delay: -8s;
}

@keyframes docsBlobFloat {
    0%, 100% { transform: translate(0, 0) scale(1); }
    50% { transform: translate(18px, -12px) scale(1.05); }
}

.docs-verify-wrap {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 460px;
    animation: docsVerifyIn 0.55s cubic-bezier(0.22, 1, 0.36, 1);
}

@keyframes docsVerifyIn {
    from { opacity: 0; transform: translateY(24px); }
    to { opacity: 1; transform: translateY(0); }
}

.docs-verify-brand {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 20px;
    padding: 0 4px;
}

.docs-verify-brand-icon {
    width: 52px;
    height: 52px;
    border-radius: 14px;
    background: linear-gradient(135deg, rgba(22, 119, 255, 0.9), rgba(82, 196, 26, 0.85));
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 24px rgba(22, 119, 255, 0.35);
}

.docs-verify-brand-icon svg {
    width: 28px;
    height: 28px;
}

.docs-verify-platform {
    font-size: 18px;
    font-weight: 700;
    color: #fff;
    letter-spacing: 0.02em;
}

.docs-verify-brand-sub {
    margin-top: 2px;
    font-size: 13px;
    color: rgba(255, 255, 255, 0.55);
}

.docs-verify-card {
    background: rgba(255, 255, 255, 0.97);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.6);
    border-radius: 20px;
    box-shadow:
        0 24px 60px rgba(0, 0, 0, 0.35),
        0 0 0 1px rgba(255, 255, 255, 0.08) inset;
    padding: 32px 28px 24px;
}

.docs-verify-card-head {
    text-align: center;
    margin-bottom: 28px;
}

.docs-verify-shield {
    width: 64px;
    height: 64px;
    margin: 0 auto 16px;
    border-radius: 50%;
    background: linear-gradient(145deg, #e6f4ff, #f6ffed);
    color: #1677ff;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 16px rgba(22, 119, 255, 0.15);
}

.docs-verify-shield svg {
    width: 36px;
    height: 36px;
}

.docs-verify-card-head h1 {
    margin: 0 0 8px;
    font-size: 26px;
    font-weight: 700;
    color: #111827;
}

.docs-verify-card-head p {
    margin: 0;
    font-size: 14px;
    color: var(--muted);
    line-height: 1.7;
}

.docs-verify-card-head strong {
    color: #1677ff;
    font-weight: 600;
}

.docs-verify-form {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.docs-field-label {
    display: block;
    margin-bottom: 8px;
    font-size: 13px;
    font-weight: 600;
    color: #374151;
}

.docs-input-wrap {
    position: relative;
    display: flex;
    align-items: center;
    border: 1.5px solid #e5e7eb;
    border-radius: 12px;
    background: #f9fafb;
    transition: border-color 0.2s, box-shadow 0.2s, background 0.2s;
}

.docs-input-wrap:focus-within {
    border-color: #1677ff;
    background: #fff;
    box-shadow: 0 0 0 4px rgba(22, 119, 255, 0.1);
}

.docs-input-wrap.is-readonly {
    background: #f0fdf4;
    border-color: #bbf7d0;
}

.docs-input-wrap.is-readonly:focus-within {
    box-shadow: 0 0 0 4px rgba(82, 196, 26, 0.1);
    border-color: #86efac;
}

.docs-input-icon {
    flex-shrink: 0;
    width: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #9ca3af;
}

.docs-input-icon svg {
    width: 18px;
    height: 18px;
}

.docs-input-wrap:focus-within .docs-input-icon {
    color: #1677ff;
}

.docs-field-input {
    flex: 1;
    min-width: 0;
    padding: 13px 12px 13px 0;
    border: none;
    background: transparent;
    font-size: 15px;
    font-family: Consolas, Monaco, "SF Mono", monospace;
    color: #111827;
    letter-spacing: 0.03em;
}

.docs-field-input:focus {
    outline: none;
}

.docs-field-input::placeholder {
    color: #9ca3af;
    font-family: inherit;
    letter-spacing: 0;
}

.docs-input-badge {
    flex-shrink: 0;
    margin-right: 12px;
    padding: 3px 10px;
    border-radius: 20px;
    background: #dcfce7;
    color: #15803d;
    font-size: 11px;
    font-weight: 600;
}

.docs-toggle-secret {
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    margin-right: 4px;
    border: none;
    border-radius: 8px;
    background: transparent;
    color: #9ca3af;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.2s, background 0.2s;
}

.docs-toggle-secret:hover {
    color: #1677ff;
    background: #eff6ff;
}

.docs-toggle-secret svg {
    width: 18px;
    height: 18px;
}

.docs-toggle-secret .icon-eye-off {
    display: none;
}

.docs-toggle-secret.is-visible .icon-eye {
    display: none;
}

.docs-toggle-secret.is-visible .icon-eye-off {
    display: block;
}

.docs-verify-error {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    padding: 12px 14px;
    border-radius: 10px;
    background: #fef2f2;
    border: 1px solid #fecaca;
    color: #b91c1c;
    font-size: 13px;
    line-height: 1.5;
    animation: docsShake 0.4s ease;
}

.docs-verify-error svg {
    flex-shrink: 0;
    width: 18px;
    height: 18px;
    margin-top: 1px;
}

@keyframes docsShake {
    0%, 100% { transform: translateX(0); }
    20%, 60% { transform: translateX(-4px); }
    40%, 80% { transform: translateX(4px); }
}

.docs-verify-btn {
    position: relative;
    width: 100%;
    margin-top: 4px;
    padding: 14px 20px;
    border: none;
    border-radius: 12px;
    background: linear-gradient(135deg, #1677ff 0%, #0958d9 100%);
    color: #fff;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    overflow: hidden;
    box-shadow: 0 8px 24px rgba(22, 119, 255, 0.35);
    transition: transform 0.2s, box-shadow 0.2s, opacity 0.2s;
}

.docs-verify-btn:hover:not(:disabled) {
    transform: translateY(-1px);
    box-shadow: 0 12px 28px rgba(22, 119, 255, 0.42);
}

.docs-verify-btn:active:not(:disabled) {
    transform: translateY(0);
}

.docs-verify-btn:disabled {
    cursor: not-allowed;
    opacity: 0.85;
}

.docs-verify-btn.is-success {
    background: linear-gradient(135deg, #52c41a, #389e0d);
    box-shadow: 0 8px 24px rgba(82, 196, 26, 0.35);
}

.docs-verify-btn-loading {
    display: none;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.docs-verify-btn.is-loading .docs-verify-btn-text {
    display: none;
}

.docs-verify-btn.is-loading .docs-verify-btn-loading {
    display: flex;
}

.docs-verify-spinner {
    width: 18px;
    height: 18px;
    border: 2px solid rgba(255, 255, 255, 0.35);
    border-top-color: #fff;
    border-radius: 50%;
    animation: docsSpin 0.7s linear infinite;
}

@keyframes docsSpin {
    to { transform: rotate(360deg); }
}

.docs-verify-footer {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    margin-top: 20px;
    padding-top: 18px;
    border-top: 1px solid #f3f4f6;
    font-size: 12px;
    color: #9ca3af;
}

.docs-verify-footer svg {
    width: 14px;
    height: 14px;
    flex-shrink: 0;
}

.docs-verify-copyright {
    margin-top: 20px;
    text-align: center;
    font-size: 12px;
    color: rgba(255, 255, 255, 0.35);
}

.docs-verify-empty {
    text-align: center;
    padding: 12px 8px 8px;
}

.docs-verify-empty-icon {
    width: 72px;
    height: 72px;
    margin: 0 auto 18px;
    border-radius: 50%;
    background: linear-gradient(145deg, #fff7e6, #fff1f0);
    color: #fa8c16;
    display: flex;
    align-items: center;
    justify-content: center;
}

.docs-verify-empty-icon svg {
    width: 40px;
    height: 40px;
}

.docs-verify-empty h1 {
    margin: 0 0 8px;
    font-size: 24px;
    color: #111827;
}

.docs-verify-empty p {
    margin: 0 0 24px;
    color: var(--muted);
    font-size: 14px;
}

.docs-verify-hint-box {
    text-align: left;
    padding: 18px 20px;
    border-radius: 12px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
}

.docs-verify-hint-title {
    font-size: 13px;
    font-weight: 600;
    color: #334155;
    margin-bottom: 10px;
}

.docs-verify-hint-box ol {
    margin: 0;
    padding-left: 20px;
    color: #64748b;
    font-size: 13px;
    line-height: 1.9;
}

@media (max-width: 900px) {
    .sidebar,
    .docs-rail {
        display: none;
    }

    .layout.is-docs-open .content,
    .content {
        margin-left: 0;
        padding: 20px 16px 60px;
    }

    .docs-verify-page {
        padding: 20px 16px;
    }

    .docs-verify-card {
        padding: 24px 20px 20px;
        border-radius: 16px;
    }

    .docs-verify-card-head h1 {
        font-size: 22px;
    }

    .docs-verify-platform {
        font-size: 16px;
    }

    .docs-hero-bar {
        flex-direction: column;
        padding: 20px 18px;
    }

    .panel-page-header {
        flex-direction: column;
        padding: 20px 18px;
    }

    .home-quick-links {
        grid-template-columns: 1fr;
    }

    .content.is-debug-wide {
        padding-right: 16px;
    }

    .api-debug-body {
        grid-template-columns: 1fr;
    }

    .api-debug-list {
        max-height: 240px;
    }

    .account-card {
        padding: 16px 18px 12px;
    }

    .account-info-table th,
    .account-info-table td {
        display: block;
        width: 100%;
    }

    .account-info-table tr {
        display: block;
        margin-bottom: 8px;
    }
}

/* ---------- 推送记录 ---------- */
.push-log-toolbar {
    display: flex;
    flex-wrap: wrap;
    gap: 12px 16px;
    margin-bottom: 14px;
    align-items: center;
    justify-content: space-between;
}

.push-log-toolbar-filters {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px 20px;
}

.push-log-filter {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    color: var(--muted);
    margin: 0;
}

.push-log-filter select {
    min-width: 132px;
    padding: 8px 12px;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: #fff;
    font-size: 13px;
}

.push-log-toolbar-tip {
    flex: 1 1 220px;
    min-width: 0;
    font-size: 12px;
    line-height: 1.5;
    color: var(--muted);
    text-align: right;
}

.push-log-toolbar-tip code {
    padding: 1px 5px;
    border-radius: 4px;
    background: #f5f5f5;
    border: 1px solid #e8e8e8;
    font-size: 11px;
    color: #595959;
}

.push-log-loading,
.push-log-error {
    padding: 16px;
    border-radius: 10px;
    margin-bottom: 12px;
}

.push-log-error {
    background: #fff2f0;
    border: 1px solid #ffccc7;
    color: #cf1322;
}

.push-log-table-wrap {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 12px;
    overflow: auto;
    -webkit-overflow-scrolling: touch;
}

.push-log-table {
    width: 100%;
    min-width: 820px;
    table-layout: fixed;
    border-collapse: collapse;
    font-size: 13px;
}

.push-log-col-id { width: 64px; }
.push-log-col-project { width: 96px; }
.push-log-col-summary { width: auto; }
.push-log-col-http { width: 72px; }
.push-log-col-status { width: 108px; }
.push-log-col-time { width: 118px; }
.push-log-col-actions { width: 128px; }

.dispatch-queue-col-id { width: 56px; }
.dispatch-queue-col-batch { width: 88px; }
.dispatch-queue-col-project { width: 96px; }
.dispatch-queue-col-equipment { width: 120px; }
.dispatch-queue-col-action { width: 88px; }
.dispatch-queue-col-status { width: 80px; }
.dispatch-queue-col-submit { width: 112px; }
.dispatch-queue-col-wait { width: 72px; }
.dispatch-queue-col-send { width: 112px; }
.dispatch-queue-col-actions { width: 64px; }

.dispatch-queue-col-wait {
    font-variant-numeric: tabular-nums;
    color: #595959;
}

.dispatch-queue-col-batch,
.dispatch-queue-col-project,
.dispatch-queue-col-equipment {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.push-log-table th,
.push-log-table td {
    padding: 11px 12px;
    border-bottom: 1px solid var(--border);
    text-align: left;
    vertical-align: middle;
}

.push-log-table thead th {
    position: sticky;
    top: 0;
    z-index: 1;
    background: #f7f8fa;
    font-weight: 600;
    font-size: 12px;
    color: #595959;
    white-space: nowrap;
    box-shadow: 0 1px 0 var(--border);
}

.push-log-table tbody tr:hover {
    background: #fafcff;
}

.push-log-table tbody tr:last-child td {
    border-bottom: none;
}

.push-log-empty {
    text-align: center;
    color: var(--muted);
    padding: 32px 16px !important;
}

.push-log-col-id {
    color: #8c8c8c;
    font-variant-numeric: tabular-nums;
    text-align: center;
}

.push-log-col-project {
    font-weight: 500;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.push-log-col-summary {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    color: #262626;
    line-height: 1.5;
}

.push-log-summary-label {
    display: inline-block;
    margin-right: 6px;
    padding: 1px 6px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 600;
    color: #1677ff;
    background: #e6f4ff;
    vertical-align: middle;
}

.push-log-summary-text {
    vertical-align: middle;
}

.push-log-summary-empty {
    color: #bfbfbf;
}

.push-log-col-http {
    text-align: center;
}

.push-log-http-code {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    padding: 2px 8px;
    border-radius: 6px;
    background: #f6ffed;
    color: #389e0d;
    font-size: 12px;
    font-weight: 600;
    font-variant-numeric: tabular-nums;
}

.push-log-http-empty {
    color: #bfbfbf;
}

.push-log-col-status {
    text-align: center;
    white-space: nowrap;
}

.push-log-status {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 52px;
    padding: 3px 10px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 500;
    line-height: 1.3;
    vertical-align: middle;
}

.push-log-timeout-tag {
    display: inline-block;
    margin-left: 4px;
    padding: 1px 6px;
    border-radius: 4px;
    font-size: 11px;
    color: #d48806;
    background: #fffbe6;
    vertical-align: middle;
}

.push-log-status.is-success {
    color: #389e0d;
    background: #f6ffed;
}

.push-log-status.is-fail {
    color: #cf1322;
    background: #fff2f0;
}

.push-log-status.is-timeout {
    color: #d48806;
    background: #fffbe6;
}

.push-log-status.is-cooldown {
    color: #096dd9;
    background: #e6f7ff;
}

.push-log-status.is-muted {
    color: var(--muted);
    background: #f5f5f5;
}

.push-log-col-time {
    font-variant-numeric: tabular-nums;
    line-height: 1.35;
}

.push-log-time-date {
    display: block;
    font-size: 12px;
    color: #8c8c8c;
}

.push-log-time-clock {
    display: block;
    font-size: 13px;
    color: #262626;
    font-weight: 500;
}

.push-log-col-actions {
    white-space: nowrap;
    text-align: right;
}

.push-log-btn {
    border: 1px solid var(--border);
    background: #fff;
    color: var(--text);
    border-radius: 6px;
    padding: 4px 10px;
    font-size: 12px;
    cursor: pointer;
    margin-left: 6px;
}

.push-log-btn:first-child {
    margin-left: 0;
}

.push-log-btn:hover {
    border-color: var(--primary);
    color: var(--primary);
}

.push-log-btn-warn {
    border-color: #ffd591;
    color: #d46b08;
    background: #fff7e6;
}

.push-log-pagination {
    margin-top: 14px;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
    font-size: 13px;
    color: var(--muted);
}

.push-log-page-btn {
    border: 1px solid var(--border);
    background: #fff;
    border-radius: 6px;
    padding: 4px 12px;
    cursor: pointer;
    font-size: 13px;
}

.push-log-page-btn:hover {
    border-color: var(--primary);
    color: var(--primary);
}

.push-log-muted {
    color: var(--muted);
}

.push-log-modal-open {
    overflow: hidden;
}

.push-log-modal {
    position: fixed;
    inset: 0;
    z-index: 1200;
}

.push-log-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.45);
}

.push-log-modal-panel {
    position: relative;
    width: min(860px, calc(100vw - 32px));
    max-height: calc(100vh - 48px);
    margin: 24px auto;
    background: #fff;
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.18);
}

.push-log-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    padding: 16px 20px;
    border-bottom: 1px solid var(--border);
    background: #fafbfc;
}

.push-log-modal-title-wrap {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
}

.push-log-modal-header h3 {
    margin: 0;
    font-size: 18px;
    font-weight: 600;
}

.push-log-modal-close {
    flex-shrink: 0;
    border: none;
    background: transparent;
    font-size: 24px;
    line-height: 1;
    cursor: pointer;
    color: var(--muted);
    padding: 4px;
    border-radius: 6px;
}

.push-log-modal-close:hover {
    background: #f0f0f0;
    color: var(--text);
}

.push-log-modal-body {
    padding: 18px 20px 20px;
    overflow: auto;
}

.push-log-detail-meta {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px 14px;
    margin-bottom: 16px;
    padding: 14px 16px;
    border: 1px solid var(--border);
    border-radius: 10px;
    background: #fafbfc;
}

.push-log-meta-item {
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-width: 0;
}

.push-log-meta-item-full {
    grid-column: 1 / -1;
}

.push-log-meta-error .push-log-meta-value {
    color: #cf1322;
}

.push-log-meta-label {
    font-size: 12px;
    color: var(--muted);
}

.push-log-meta-value {
    font-size: 13px;
    color: var(--text);
    word-break: break-all;
}

.push-log-meta-url {
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    font-size: 12px;
    color: #0958d9;
}

.push-log-detail-parse {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 16px;
    padding: 12px 14px;
    border: 1px solid #91caff;
    border-radius: 10px;
    background: linear-gradient(180deg, #f0f7ff 0%, #e6f4ff 100%);
}

.push-log-detail-parse-label {
    flex-shrink: 0;
    padding: 2px 8px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 600;
    color: #0958d9;
    background: #fff;
}

.push-log-detail-parse-text {
    font-size: 14px;
    font-weight: 500;
    color: #003a8c;
    line-height: 1.5;
    word-break: break-word;
}

.push-log-code-block {
    margin-bottom: 14px;
}

.push-log-code-block:last-child {
    margin-bottom: 0;
}

.push-log-code-head.code-view-toolbar {
    margin-bottom: 10px;
}

.push-log-code-title {
    flex-shrink: 0;
    font-size: 13px;
    font-weight: 600;
    color: var(--text);
}

.push-log-field-legend {
    margin-top: 0;
    max-height: 220px;
    overflow: auto;
}

.push-log-field-legend a {
    color: var(--primary);
}

.push-log-legend-empty {
    margin: 0;
    font-size: 12px;
    color: var(--muted);
}

.push-log-code-pre .json-comment {
    color: #94a3b8;
    font-style: normal;
}

.push-log-code-pre {
    margin: 0;
    max-height: 220px;
    overflow: auto;
    background: var(--code-bg);
    color: #e2e8f0;
    padding: 14px 16px;
    border-radius: 10px;
    white-space: pre;
    word-break: normal;
    font-size: 12px;
    line-height: 1.55;
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    border: 1px solid #1e293b;
}

.push-log-modal-footer {
    padding: 12px 20px 16px;
    border-top: 1px solid var(--border);
    background: #fafbfc;
}

@media (max-width: 640px) {
    .push-log-detail-meta {
        grid-template-columns: 1fr;
    }

    .code-view-toolbar {
        flex-wrap: wrap;
    }

    .code-view-toolbar-actions {
        width: 100%;
        justify-content: flex-end;
    }

    .code-view-tabs {
        flex: 1;
        min-width: 0;
        overflow-x: auto;
    }

    .push-log-toolbar-tip {
        flex-basis: 100%;
        text-align: left;
    }

    .api-log-toolbar-row {
        grid-template-columns: 1fr 1fr;
    }

    #panel-api-logs .api-log-toolbar-note {
        grid-column: 1 / -1;
        text-align: left;
        white-space: normal;
    }

    .content.is-log-wide {
        width: 100%;
    }

    .panel-page-header-compact {
        flex-direction: column;
        align-items: stretch;
        gap: 12px;
    }

    .panel-page-header-compact .panel-page-refresh-btn {
        align-self: flex-end;
    }
}

/* ---------- API 调用记录 ---------- */
#panel-api-logs .api-log-toolbar-card {
    margin-bottom: 14px;
    padding: 12px 16px;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 10px;
}

#panel-api-logs .api-log-toolbar-row {
    display: grid;
    grid-template-columns: auto auto minmax(0, 1fr);
    align-items: center;
    column-gap: 20px;
    row-gap: 8px;
}

#panel-api-logs .api-log-toolbar-filters {
    display: contents;
}

#panel-api-logs .api-log-toolbar-row > .push-log-filter {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin: 0;
    white-space: nowrap;
}

#panel-api-logs .api-log-toolbar-row .push-log-filter span {
    font-size: 13px;
    color: #8c8c8c;
}

#panel-api-logs .api-log-toolbar-row .push-log-filter select {
    min-width: 100px;
    padding: 7px 10px;
}

#panel-api-logs .api-log-toolbar-note {
    margin: 0;
    padding: 0;
    border: none;
    font-size: 12px;
    line-height: 1.5;
    color: #8c8c8c;
    text-align: right;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

#panel-api-logs .push-log-table-wrap {
    border-radius: 10px;
}

#panel-api-logs .api-log-table {
    width: 100%;
    min-width: 100%;
    table-layout: auto;
}

#panel-api-logs .api-log-table col.api-log-col-id { width: 52px; }
#panel-api-logs .api-log-table col.api-log-col-route { width: 42%; }
#panel-api-logs .api-log-table col.api-log-col-summary { width: 12%; }
#panel-api-logs .api-log-table col.api-log-col-result { width: 72px; }
#panel-api-logs .api-log-table col.api-log-col-ip { width: 130px; }
#panel-api-logs .api-log-table col.api-log-col-duration { width: 64px; }
#panel-api-logs .api-log-table col.api-log-col-time { width: 160px; }
#panel-api-logs .api-log-table col.api-log-col-actions { width: 64px; }

#panel-api-logs .api-log-table th,
#panel-api-logs .api-log-table td {
    padding: 10px 14px;
}

#panel-api-logs .api-log-table th.api-log-col-route,
#panel-api-logs .api-log-table td.api-log-col-route {
    min-width: 280px;
}

#panel-api-logs .api-log-col-id {
    color: #8c8c8c;
    text-align: center;
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
}

#panel-api-logs .api-log-col-route {
    vertical-align: middle;
}

#panel-api-logs .api-log-route-cell {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
    min-width: 220px;
}

#panel-api-logs .api-log-route-main {
    display: flex;
    align-items: center;
    gap: 8px;
    width: 100%;
    min-width: 0;
}

#panel-api-logs .api-log-method {
    flex-shrink: 0;
    display: inline-block;
    padding: 2px 7px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 600;
    line-height: 18px;
    color: #0958d9;
    background: #e6f4ff;
    border: 1px solid #91caff;
}

#panel-api-logs .api-log-table .api-log-path {
    flex: 1;
    min-width: 0;
    padding: 0;
    border: none;
    background: transparent;
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
    font-size: 13px;
    line-height: 1.4;
    color: #262626;
    white-space: nowrap;
}

#panel-api-logs .api-log-route-sub {
    font-size: 12px;
    line-height: 1.35;
    color: #8c8c8c;
}

#panel-api-logs .api-log-col-summary {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    color: #595959;
    font-size: 12px;
}

#panel-api-logs .api-log-col-result {
    text-align: center;
    white-space: nowrap;
}

#panel-api-logs .api-log-col-duration {
    text-align: center;
    font-variant-numeric: tabular-nums;
    color: #595959;
    font-size: 12px;
    white-space: nowrap;
}

#panel-api-logs .api-log-col-ip {
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
    font-size: 12px;
    color: #434343;
    white-space: nowrap;
}

#panel-api-logs .api-log-col-time {
    font-size: 12px;
    color: #595959;
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
}

#panel-api-logs .api-log-col-actions {
    text-align: center;
    white-space: nowrap;
}

#panel-api-logs .push-log-pagination {
    padding: 4px 2px 0;
}

.api-log-detail-route {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
}

.api-log-detail-route .api-log-path {
    white-space: normal;
    word-break: break-all;
    overflow: visible;
    text-overflow: unset;
}
