.doc-page { min-height: 100vh; background: #f7f9fc; color: #0f172a; }
.doc-icon-sm { width: 14px; height: 14px; }
.doc-icon-md { width: 20px; height: 20px; }
.doc-icon-lg { width: 28px; height: 28px; }

.doc-hero {
    position: relative;
    overflow: hidden;
    border-bottom: 1px solid #e2e8f0;
    background: #fff;
}
.doc-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background: radial-gradient(circle at 10% 30%, rgba(23, 107, 255, .08) 0%, transparent 28%),
                radial-gradient(circle at 90% 70%, rgba(14, 165, 233, .08) 0%, transparent 28%);
}
.doc-hero .container { position: relative; z-index: 1; padding-top: 56px; padding-bottom: 64px; }
.doc-breadcrumb {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    row-gap: 4px;
    gap: 8px;
    font-size: 14px;
    color: #64748b;
    margin-bottom: 14px;
}
.doc-breadcrumb a { text-decoration: none; color: #64748b; }
.doc-breadcrumb span { color: #cbd5e1; }
.doc-breadcrumb strong { color: #1e293b; font-weight: 500; }
.doc-chip {
    display: inline-flex;
    border-radius: 999px;
    background: #0891b2;
    color: #fff;
    padding: 4px 10px;
    font-size: 12px;
    font-weight: 700;
}
.doc-hero h1 {
    margin: 12px 0 10px;
    font-size: clamp(1.8rem, 4vw, 2.8rem);
    line-height: 1.2;
    font-weight: 600;
}
.doc-hero-lead {
    margin: 0 0 22px;
    max-width: 720px;
    font-size: 15px;
    line-height: 1.65;
    color: #64748b;
}
.doc-search-wrap {
    position: relative;
    max-width: 560px;
}
.doc-search {
    position: relative;
    max-width: 560px;
}
.doc-search svg {
    position: absolute;
    top: 50%;
    left: 16px;
    transform: translateY(-50%);
    color: #94a3b8;
}
.doc-search input {
    width: 100%;
    height: 48px;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    padding: 0 16px 0 42px;
    font-size: 14px;
    color: #1e293b;
    background: #fff;
}
.doc-search-panel {
    position: absolute;
    left: 0;
    right: 0;
    top: calc(100% + 8px);
    z-index: 40;
    border-radius: 16px;
    border: 1px solid #e2e8f0;
    background: #fff;
    box-shadow: 0 12px 40px rgba(15, 23, 42, .12);
    max-height: min(70vh, 420px);
    overflow: auto;
}
.doc-search-results { padding: 8px; }
.doc-search-empty {
    padding: 14px 16px;
    font-size: 14px;
    color: #64748b;
}
.doc-search-hit {
    display: block;
    padding: 12px 14px;
    border-radius: 12px;
    text-decoration: none;
    color: inherit;
}
.doc-search-hit:hover { background: #f8fafc; }
.doc-search-hit-title {
    font-size: 14px;
    font-weight: 600;
    color: #0f172a;
    line-height: 1.35;
}
.doc-search-hit-meta {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-top: 4px;
    font-size: 12px;
    color: #64748b;
}
.doc-search-hit-dot {
    width: 8px;
    height: 8px;
    border-radius: 999px;
    flex-shrink: 0;
}
.doc-search-hit-sum {
    margin: 6px 0 0;
    font-size: 13px;
    line-height: 1.5;
    color: #64748b;
}

.doc-quick-links {
    position: sticky;
    top: 56px;
    z-index: 20;
    border-bottom: 1px solid #e2e8f0;
    background: rgba(255, 255, 255, .8);
    backdrop-filter: blur(6px);
}
.doc-quick-links-wrap {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    padding: 12px 0;
}
.doc-quick-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    border: 1px solid #e2e8f0;
    background: #fff;
    border-radius: 14px;
    padding: 8px 12px;
    font-size: 12px;
    color: #334155;
    font-weight: 600;
    text-decoration: none;
}
.doc-quick-link-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
}
.doc-quick-link:hover { border-color: #7dd3fc; background: #f0f9ff; color: #0369a1; }

.doc-content { padding: 48px 0 56px; }
.doc-grid {
    display: grid;
    gap: 40px;
}
@media (min-width: 1200px) {
    .doc-grid {
        grid-template-columns: 1fr 320px;
        align-items: start;
    }
}
.doc-kicker {
    margin: 0;
    color: #0284c7;
    text-transform: uppercase;
    letter-spacing: .12em;
    font-size: 14px;
    font-weight: 600;
}
.doc-empty-hint {
    margin: 0 0 20px;
    color: #64748b;
    font-size: 15px;
    line-height: 1.5;
}
.doc-content h2 {
    margin: 6px 0 20px;
    font-size: 1.875rem;
    font-weight: 600;
    letter-spacing: -.02em;
}

.doc-cards-grid {
    display: grid;
    gap: 20px;
}
@media (min-width: 768px) {
    .doc-cards-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
.doc-card {
    border: 1px solid #e2e8f0;
    border-radius: 28px;
    background: #fff;
    padding: 24px;
    box-shadow: 0 1px 4px rgba(15, 23, 42, .06);
}
.doc-card-head {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
}
.doc-icon-wrap {
    width: 40px;
    height: 40px;
    border-radius: 14px;
    background: var(--icon-bg);
    color: var(--icon-color);
    display: inline-flex;
    align-items: center;
    justify-content: center;
}
.doc-card h3 { margin: 0; font-size: 16px; font-weight: 600; letter-spacing: -.01em; }
.doc-card-desc { margin: 0 0 14px; color: #475569; font-size: 14px; line-height: 1.75; }
.doc-card-list { margin: 0; padding: 0; list-style: none; display: grid; gap: 6px; }
.doc-card-row {
    display: grid;
    grid-template-columns: 1fr auto 14px;
    align-items: center;
    gap: 8px;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    padding: 10px 12px;
    text-decoration: none;
    color: #334155;
    font-size: 14px;
    font-weight: 500;
}
.doc-card-row:hover { border-color: #7dd3fc; background: #f0f9ff; color: #0369a1; }
.doc-card-row-title { min-width: 0; }
.doc-card-row-badge {
    flex-shrink: 0;
    border-radius: 999px;
    padding: 2px 8px;
    font-size: 11px;
    font-weight: 600;
    background: #f1f5f9;
    color: #475569;
}
.doc-card-row:hover .doc-card-row-badge { background: #e0f2fe; color: #0369a1; }
.doc-card-row-chevron { justify-self: end; color: #94a3b8; }
.doc-card-row:hover .doc-card-row-chevron { color: #0369a1; }
.doc-card-view-all {
    margin-top: 14px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    font-weight: 600;
    color: #0284c7;
    text-decoration: none;
}
.doc-card-view-all:hover { color: #0369a1; }

.doc-sidebar { display: grid; gap: 20px; }
.doc-stats-card {
    border: 1px solid #e2e8f0;
    border-radius: 28px;
    background: #fff;
    padding: 24px;
    box-shadow: 0 1px 4px rgba(15, 23, 42, .06);
}
.doc-stats-title {
    margin: 0 0 14px;
    color: #64748b;
    letter-spacing: .1em;
    text-transform: uppercase;
    font-size: 12px;
    font-weight: 600;
}
.doc-stats-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}
.doc-stat-cell {
    border: 1px solid #f1f5f9;
    border-radius: 16px;
    padding: 12px 14px;
    background: #fafafa;
}
.doc-stat-value {
    display: block;
    font-size: 1.25rem;
    font-weight: 700;
    color: #0f172a;
    letter-spacing: -.02em;
}
.doc-stat-label {
    display: block;
    margin-top: 4px;
    font-size: 12px;
    color: #64748b;
    font-weight: 500;
}
.doc-popular,
.doc-help-card {
    border: 1px solid #e2e8f0;
    border-radius: 28px;
    background: #fff;
    padding: 24px;
    box-shadow: 0 1px 4px rgba(15, 23, 42, .06);
}
.doc-popular-head {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 10px;
}
.doc-popular-head p {
    margin: 0;
    color: #64748b;
    letter-spacing: .1em;
    text-transform: uppercase;
    font-size: 12px;
    font-weight: 600;
}
.doc-icon-star { color: #f59e0b; fill: #f59e0b; }
.doc-popular ul { margin: 0; padding: 0; list-style: none; }
.doc-popular li { border-bottom: 1px solid #f1f5f9; }
.doc-popular li:last-child { border-bottom: 0; }
.doc-popular li a {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 10px;
    text-decoration: none;
    color: #334155;
    padding: 12px 0;
}
.doc-popular h4 { margin: 0; font-size: 14px; font-weight: 500; line-height: 1.4; color: #1e293b; }
.doc-popular-meta { margin-top: 6px; display: flex; align-items: center; gap: 6px; color: #94a3b8; font-size: 12px; }
.doc-popular-meta small {
    border-radius: 999px;
    background: #f0f9ff;
    color: #0369a1;
    font-size: 11px;
    font-weight: 600;
    padding: 2px 6px;
}

.doc-api-card {
    border-radius: 28px;
    padding: 24px;
    background: #0f172a;
    color: #fff;
}
.doc-api-card svg { color: #38bdf8; }
.doc-api-card h4 { margin: 10px 0 0; font-size: 20px; font-weight: 600; letter-spacing: -.01em; }
.doc-api-card p { margin: 8px 0 0; color: #94a3b8; font-size: 14px; line-height: 1.75; }
.doc-api-card a {
    margin-top: 16px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    text-decoration: none;
    border-radius: 14px;
    background: #fff;
    color: #0f172a;
    padding: 10px 14px;
    font-size: 14px;
    font-weight: 600;
}

.doc-help-title {
    margin: 0 0 8px;
    color: #64748b;
    letter-spacing: .1em;
    text-transform: uppercase;
    font-size: 12px;
    font-weight: 600;
}
.doc-help-card a {
    margin-top: 8px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    text-decoration: none;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    color: #334155;
    font-size: 14px;
    font-weight: 500;
    padding: 10px 12px;
}
.doc-help-card a:hover { border-color: #7dd3fc; background: #f0f9ff; color: #0369a1; }

.doc-api-sdk-back-wrap { margin: 20px 0 0; }
.doc-inline-back {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    font-weight: 600;
    color: #0284c7;
    text-decoration: none;
}
.doc-inline-back:hover { color: #0369a1; }
