:root {
    --brand-green: #006633;
    --brand-green-light: #00884a;
    --brand-green-dark: #004d26;
    --brand-orange: #cc6633;
    --bg-warm: #faf9f7;
    --bg-white: #ffffff;
    --bg-soft: #f3f6f4;
    --bg-code: #111827;
    --text-primary: #111827;
    --text-secondary: #4b5563;
    --text-muted: #6b7280;
    --border: #e5e7eb;
    --border-strong: #d1d5db;
    --success: #087a42;
    --warning: #9a5b13;
    --danger: #b42318;
    --info: #1d4ed8;
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.06);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 12px 40px rgba(0, 0, 0, 0.10);
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 20px;
    --radius-xl: 28px;
    --content-max: 1200px;
    --header-height: 72px;
    --transition: 180ms ease;
}

* {
    box-sizing: border-box;
}

html {
    color-scheme: light;
    scroll-behavior: smooth;
}

body {
    margin: 0;
    min-width: 0;
    overflow-x: hidden;
    background: var(--bg-warm);
    color: var(--text-primary);
    font-family: Inter, "Noto Sans SC", "Microsoft YaHei", Arial, sans-serif;
    font-size: 16px;
    line-height: 1.7;
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
}

body.console-page {
    background: #f6f8f7;
}

img,
svg {
    display: block;
    max-width: 100%;
}

button,
input,
select,
textarea {
    font: inherit;
}

button,
summary,
select {
    cursor: pointer;
}

a {
    color: var(--brand-green);
    text-decoration-thickness: 1px;
    text-underline-offset: 3px;
}

a:hover {
    color: var(--brand-green-light);
}

:focus-visible {
    outline: 3px solid var(--brand-green-dark);
    outline-offset: 3px;
    box-shadow: 0 0 0 2px #fff;
}

[hidden] {
    display: none !important;
}

.skip-link {
    position: fixed;
    z-index: 1000;
    top: 12px;
    left: 12px;
    padding: 10px 14px;
    transform: translateY(-160%);
    border-radius: var(--radius-sm);
    background: var(--text-primary);
    color: #fff;
    font-weight: 700;
    transition: transform var(--transition);
}

.skip-link:focus {
    transform: translateY(0);
}

.container {
    width: min(calc(100% - 40px), var(--content-max));
    margin-inline: auto;
}

.site-header {
    position: sticky;
    z-index: 100;
    top: 0;
    min-height: var(--header-height);
    border-bottom: 1px solid rgba(229, 231, 235, 0.88);
    background: rgba(250, 249, 247, 0.96);
    box-shadow: var(--shadow-sm);
    backdrop-filter: blur(12px);
}

.nav-shell {
    display: flex;
    min-height: var(--header-height);
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.brand {
    flex: 0 0 auto;
    color: var(--text-primary);
    font-size: 24px;
    font-weight: 700;
    letter-spacing: 0.02em;
    text-decoration: none;
    user-select: none;
}

.brand em {
    color: var(--brand-green);
    font-style: normal;
}

.brand span {
    margin-left: 6px;
    font-weight: 700;
    color: inherit;
}

.brand .brand-sub {
    margin-left: 8px;
    font-size: 14px;
    font-weight: 500;
    color: var(--text-muted);
}

.primary-nav {
    min-width: 0;
}

.nav-list {
    display: flex;
    margin: 0;
    padding: 0;
    align-items: center;
    justify-content: flex-end;
    gap: 4px;
    list-style: none;
}

.nav-link {
    display: inline-flex;
    min-height: 42px;
    padding: 8px 13px;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-sm);
    color: var(--text-secondary);
    font-size: 14px;
    font-weight: 650;
    text-decoration: none;
    white-space: nowrap;
    transition: background-color var(--transition), color var(--transition);
}

.nav-link:hover {
    background: #eef4f0;
    color: var(--brand-green);
}

.nav-link[aria-current="page"] {
    background: #e7f3ec;
    color: var(--brand-green-dark);
}

.nav-link.nav-console {
    margin-left: 4px;
    background: var(--brand-green);
    color: #fff;
}

.nav-link.nav-console:hover,
.nav-link.nav-console[aria-current="page"] {
    background: var(--brand-green-light);
    color: #fff;
}

.nav-link.nav-product {
    border: 1px solid var(--border-strong);
    background: var(--bg-white);
}

.main-content {
    min-height: calc(100vh - var(--header-height) - 210px);
}

.hero {
    padding: 88px 0 70px;
}

.hero-grid {
    display: grid;
    align-items: center;
    gap: 56px;
    grid-template-columns: minmax(0, 1.28fr) minmax(320px, 0.72fr);
}

.eyebrow {
    display: inline-flex;
    margin: 0 0 16px;
    padding: 6px 11px;
    align-items: center;
    gap: 7px;
    border: 1px solid #cfe4d7;
    border-radius: 999px;
    background: #eef7f1;
    color: var(--brand-green-dark);
    font-size: 13px;
    font-weight: 750;
    letter-spacing: 0.02em;
}

.hero h1,
.page-hero h1 {
    margin: 0;
    max-width: 780px;
    font-size: clamp(36px, 5vw, 62px);
    line-height: 1.12;
    letter-spacing: -0.045em;
}

.hero h1 .accent,
.page-hero h1 .accent {
    color: var(--brand-green);
}

.hero-copy {
    max-width: 690px;
    margin: 22px 0 0;
    color: var(--text-secondary);
    font-size: 18px;
    line-height: 1.85;
}

.hero-actions,
.section-actions,
.inline-actions {
    display: flex;
    margin-top: 30px;
    flex-wrap: wrap;
    gap: 12px;
}

.button {
    display: inline-flex;
    min-height: 46px;
    padding: 10px 18px;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border: 1px solid transparent;
    border-radius: var(--radius-sm);
    background: transparent;
    color: var(--text-primary);
    font-weight: 700;
    line-height: 1.2;
    text-decoration: none;
    transition: transform var(--transition), border-color var(--transition), background-color var(--transition), color var(--transition), box-shadow var(--transition);
}

.button:hover {
    transform: translateY(-1px);
}

.button-primary {
    border-color: var(--brand-green);
    background: var(--brand-green);
    color: #fff;
    box-shadow: var(--shadow-sm);
}

.button-primary:hover {
    border-color: var(--brand-green-light);
    background: var(--brand-green-light);
    color: #fff;
    box-shadow: var(--shadow-md);
}

.button-secondary {
    border-color: var(--border-strong);
    background: var(--bg-white);
    color: var(--text-primary);
}

.button-secondary:hover {
    border-color: var(--brand-green);
    color: var(--brand-green);
}

.button-quiet {
    border-color: transparent;
    color: var(--brand-green);
}

.button-danger {
    border-color: #f1b8b2;
    background: #fff7f6;
    color: var(--danger);
}

.button-small {
    min-height: 36px;
    padding: 7px 12px;
    font-size: 13px;
}

.button[disabled],
button[disabled] {
    cursor: not-allowed;
    opacity: 0.55;
    transform: none;
}

.hero-panel,
.surface-card {
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    background: var(--bg-white);
    box-shadow: var(--shadow-md);
}

.hero-panel {
    padding: 28px;
}

.hero-panel-label {
    display: flex;
    margin-bottom: 12px;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    color: var(--text-muted);
    font-size: 13px;
    font-weight: 700;
}

.base-url {
    display: block;
    overflow-x: auto;
    padding: 15px 16px;
    border: 1px solid #d7e9de;
    border-radius: var(--radius-md);
    background: #f1f8f4;
    color: var(--brand-green-dark);
    font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
    font-size: 14px;
    white-space: nowrap;
}

.auth-summary {
    display: grid;
    margin-top: 18px;
    gap: 10px;
}

.auth-line {
    display: grid;
    gap: 3px;
    grid-template-columns: 82px minmax(0, 1fr);
    color: var(--text-secondary);
    font-size: 14px;
}

.auth-line strong {
    color: var(--text-primary);
}

.section {
    padding: 76px 0;
}

.section[id] {
    scroll-margin-top: calc(var(--header-height) + 20px);
}

.section-white {
    background: var(--bg-white);
}

.section-soft {
    background: var(--bg-soft);
}

.section-heading {
    display: flex;
    margin-bottom: 32px;
    align-items: end;
    justify-content: space-between;
    gap: 28px;
}

.section-heading > div {
    min-width: 0;
}

.section-kicker {
    margin: 0 0 8px;
    color: var(--brand-green);
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.section-title {
    margin: 0;
    font-size: clamp(27px, 3.5vw, 40px);
    line-height: 1.25;
    letter-spacing: -0.035em;
}

.section-description {
    max-width: 720px;
    margin: 10px 0 0;
    color: var(--text-secondary);
}

.card-grid {
    display: grid;
    gap: 20px;
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.card-grid.two {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.card-grid.five {
    grid-template-columns: repeat(5, minmax(0, 1fr));
}

.feature-card,
.info-card,
.metric-card,
.pricing-card {
    min-width: 0;
    padding: 24px;
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    background: var(--bg-white);
    box-shadow: var(--shadow-sm);
}

.feature-card {
    display: flex;
    min-height: 240px;
    flex-direction: column;
}

.feature-card:hover {
    border-color: #b9d5c5;
    box-shadow: var(--shadow-md);
}

.card-index {
    display: inline-flex;
    width: 36px;
    height: 36px;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-sm);
    background: #e9f5ee;
    color: var(--brand-green);
    font-size: 13px;
    font-weight: 800;
}

.feature-card h3,
.info-card h3,
.pricing-card h3 {
    margin: 18px 0 8px;
    font-size: 19px;
    line-height: 1.35;
}

.feature-card p,
.info-card p,
.pricing-card p {
    margin: 0;
    color: var(--text-secondary);
    font-size: 14px;
}

.card-link {
    margin-top: auto;
    padding-top: 20px;
    font-weight: 700;
}

.steps {
    display: grid;
    gap: 22px;
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.step {
    position: relative;
    padding: 28px;
    border-radius: var(--radius-lg);
    background: var(--bg-white);
    box-shadow: var(--shadow-sm);
}

.step-number {
    display: inline-flex;
    width: 30px;
    height: 30px;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: var(--brand-green);
    color: #fff;
    font-size: 13px;
    font-weight: 800;
}

.step h3 {
    margin: 16px 0 8px;
    font-size: 18px;
}

.step p {
    margin: 0;
    color: var(--text-secondary);
    font-size: 14px;
}

.callout {
    padding: 20px 22px;
    border: 1px solid #cfe4d7;
    border-left: 4px solid var(--brand-green);
    border-radius: var(--radius-md);
    background: #f1f8f4;
    color: var(--text-secondary);
}

.callout strong {
    color: var(--text-primary);
}

.callout.warning {
    border-color: #f3d7ae;
    border-left-color: var(--warning);
    background: #fff9ef;
}

.callout.danger {
    border-color: #f2c7c2;
    border-left-color: var(--danger);
    background: #fff7f6;
}

.page-hero {
    padding: 58px 0 38px;
}

.page-hero h1 {
    font-size: clamp(34px, 4.5vw, 52px);
}

.page-hero .hero-copy {
    font-size: 17px;
}

.breadcrumb {
    display: flex;
    margin: 0 0 12px;
    padding: 0;
    flex-wrap: wrap;
    gap: 7px;
    color: var(--text-muted);
    font-size: 13px;
    list-style: none;
}

.breadcrumb li:not(:last-child)::after {
    margin-left: 7px;
    color: #9ca3af;
    content: "/";
}

.docs-shell {
    width: min(calc(100% - 32px), 1460px);
    margin: 0 auto 72px;
}

.docs-layout {
    display: grid;
    align-items: start;
    gap: 22px;
    grid-template-columns: minmax(190px, 0.65fr) minmax(0, 1.55fr) minmax(300px, 0.95fr);
}

.docs-sidebar,
.docs-article,
.docs-example-panel {
    min-width: 0;
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    background: var(--bg-white);
    box-shadow: var(--shadow-sm);
}

.docs-sidebar,
.docs-example-panel {
}

.docs-sidebar {
    padding: 18px;
}

.sidebar-title {
    margin: 0 0 12px;
    color: var(--text-muted);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.endpoint-nav {
    display: grid;
    gap: 6px;
}

.endpoint-nav button {
    width: 100%;
    padding: 11px 12px;
    border: 1px solid transparent;
    border-radius: var(--radius-sm);
    background: transparent;
    color: var(--text-secondary);
    text-align: left;
}

.endpoint-nav button:hover {
    background: #f4f7f5;
    color: var(--brand-green);
}

.endpoint-nav button[aria-selected="true"] {
    border-color: #cfe4d7;
    background: #eaf5ee;
    color: var(--brand-green-dark);
    font-weight: 750;
}

.endpoint-nav .nav-method {
    display: block;
    margin-bottom: 2px;
    color: inherit;
    font-size: 11px;
    font-weight: 850;
    letter-spacing: 0.04em;
}

.endpoint-select-wrap {
    display: none;
    margin-bottom: 18px;
}

.docs-article {
    padding: clamp(18px, 2.5vw, 36px);
}

.endpoint-section > header {
    padding-bottom: 24px;
    border-bottom: 1px solid var(--border);
}

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

.endpoint-section h2 {
    margin: 0;
    font-size: clamp(25px, 3vw, 34px);
    letter-spacing: -0.03em;
}

.endpoint-summary {
    margin: 14px 0 0;
    color: var(--text-secondary);
}

.doc-block {
    padding: 28px 0;
    border-bottom: 1px solid var(--border);
}

.doc-block:last-child {
    padding-bottom: 0;
    border-bottom: 0;
}

.doc-block h3 {
    margin: 0 0 13px;
    font-size: 19px;
}

.doc-block h4 {
    margin: 20px 0 8px;
    font-size: 15px;
}

.doc-block p,
.doc-block ul {
    color: var(--text-secondary);
}

.doc-block ul {
    padding-left: 22px;
}

.method,
.status-tag,
.tag {
    display: inline-flex;
    min-height: 26px;
    padding: 3px 9px;
    align-items: center;
    border-radius: 999px;
    font-family: "SFMono-Regular", Consolas, monospace;
    font-size: 11px;
    font-weight: 850;
    line-height: 1.2;
    white-space: nowrap;
}

.method.post {
    background: #e9f0ff;
    color: #1e4fa3;
}

.method.get {
    background: #e8f5ee;
    color: var(--brand-green-dark);
}

.status-tag.success,
.tag.green {
    background: #e8f5ee;
    color: var(--brand-green-dark);
}

.status-tag.error,
.tag.red {
    background: #fff0ee;
    color: var(--danger);
}

.status-tag.warning,
.tag.amber {
    background: #fff5e6;
    color: #8a520f;
}

.tag.blue {
    background: #eaf1ff;
    color: #1e4fa3;
}

.path {
    overflow-wrap: anywhere;
    font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
    font-size: 0.94em;
}

.table-wrap {
    width: 100%;
    overflow-x: auto;
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    background: var(--bg-white);
}

.data-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}

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

.data-table th {
    background: #f7f8f7;
    color: var(--text-primary);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.02em;
}

.data-table td {
    color: var(--text-secondary);
}

.data-table tr:last-child td {
    border-bottom: 0;
}

.docs-example-panel {
    overflow: hidden;
}

.ai-integration-card {
    position: relative;
    margin: 16px;
    overflow: hidden;
    padding: 20px;
    border: 1px solid #b9dcc6;
    border-radius: var(--radius-md);
    background:
        radial-gradient(circle at 100% 0, rgba(51, 128, 84, 0.14), transparent 42%),
        linear-gradient(145deg, #f3fbf6 0%, #edf7f1 58%, #f8fbf9 100%);
    box-shadow: 0 14px 34px rgba(24, 86, 50, 0.12);
}

.ai-card-badge {
    display: inline-flex;
    margin-bottom: 12px;
    padding: 4px 8px;
    border: 1px solid #b9dcc6;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.76);
    color: var(--brand-green-dark);
    font-family: "SFMono-Regular", Consolas, monospace;
    font-size: 10px;
    font-weight: 850;
    letter-spacing: 0.08em;
}

.ai-integration-card h2 {
    margin: 0;
    color: var(--text-primary);
    font-size: 20px;
    line-height: 1.28;
    letter-spacing: -0.025em;
}

.ai-integration-card h2 span {
    display: block;
    margin-top: 2px;
    color: var(--brand-green-dark);
}

.ai-integration-summary {
    margin: 10px 0 16px;
    color: var(--text-secondary);
    font-size: 13px;
    line-height: 1.65;
}

.ai-mode-picker {
    margin-bottom: 14px;
}

.ai-control-label {
    display: block;
    margin-bottom: 7px;
    color: var(--text-muted);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.04em;
}

.ai-mode-options {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 7px;
}

.ai-mode-button {
    min-width: 0;
    padding: 9px 8px;
    border: 1px solid #cbd8d0;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.76);
    color: var(--text-secondary);
    font-family: "SFMono-Regular", Consolas, monospace;
    font-size: 12px;
    font-weight: 800;
    text-align: left;
}

.ai-mode-button span {
    display: block;
    margin-top: 3px;
    color: var(--text-muted);
    font-family: inherit;
    font-size: 9px;
    font-weight: 650;
}

.ai-mode-button[aria-checked="true"] {
    border-color: var(--brand-green);
    background: var(--brand-green);
    color: #fff;
    box-shadow: 0 8px 18px rgba(24, 106, 57, 0.2);
}

.ai-mode-button[aria-checked="true"] span {
    color: #d9f5e3;
}

.ai-prompt-meta {
    display: flex;
    margin-bottom: 14px;
    flex-wrap: wrap;
    gap: 6px;
}

.ai-prompt-meta span {
    padding: 4px 7px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.84);
    color: #35634a;
    font-family: "SFMono-Regular", Consolas, monospace;
    font-size: 9px;
    font-weight: 750;
}

.ai-card-actions {
    display: grid;
    gap: 8px;
}

.ai-card-actions .button {
    width: 100%;
    min-height: 42px;
    padding: 10px 12px;
    font-size: 12px;
}

.ai-security-note {
    margin: 12px 0 0;
    color: #53685d;
    font-size: 10px;
    line-height: 1.55;
}

.ai-prompt-preview {
    margin-top: 14px;
    overflow: hidden;
    border: 1px solid #263247;
    border-radius: 11px;
    background: var(--bg-code);
}

.ai-preview-title {
    padding: 9px 11px;
    border-bottom: 1px solid #263247;
    color: #cbd5e1;
    font-size: 10px;
    font-weight: 750;
}

.ai-prompt-preview pre {
    max-height: 360px;
    overflow: auto;
    padding: 12px;
    color: #e5e7eb;
    font-family: "SFMono-Regular", Consolas, monospace;
    font-size: 10px;
    line-height: 1.65;
    white-space: pre-wrap;
    word-break: break-word;
}

.example-header {
    padding: 18px;
    border-bottom: 1px solid var(--border);
}

.example-header h2 {
    margin: 0 0 12px;
    font-size: 17px;
}

.tab-list {
    display: flex;
    padding: 3px;
    border-radius: 10px;
    background: #eef1ef;
    gap: 3px;
}

.tab-button {
    min-width: 0;
    flex: 1;
    padding: 8px 7px;
    border: 0;
    border-radius: 8px;
    background: transparent;
    color: var(--text-secondary);
    font-size: 12px;
    font-weight: 750;
}

.tab-button[aria-selected="true"] {
    background: var(--bg-white);
    color: var(--brand-green-dark);
    box-shadow: var(--shadow-sm);
}

.example-body {
    min-width: 0;
    padding: 16px;
}

.code-card {
    min-width: 0;
    overflow: hidden;
    border: 1px solid #273449;
    border-radius: var(--radius-md);
    background: var(--bg-code);
    box-shadow: var(--shadow-sm);
}

.code-card + .code-card {
    margin-top: 14px;
}

.code-title {
    display: flex;
    padding: 10px 12px;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    border-bottom: 1px solid #263247;
    color: #cbd5e1;
    font-size: 12px;
    font-weight: 700;
}

.copy-button {
    flex: 0 0 auto;
    padding: 5px 9px;
    border: 1px solid #475569;
    border-radius: 7px;
    background: #1f2937;
    color: #f8fafc;
    font-size: 11px;
    font-weight: 750;
}

.copy-button:hover {
    border-color: #8fbca2;
    color: #b7f0cd;
}

pre {
    margin: 0;
}

.code-block {
    max-width: 100%;
    overflow: auto;
    padding: 16px;
    color: #e5e7eb;
    font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
    font-size: 12px;
    line-height: 1.65;
    tab-size: 2;
    white-space: pre;
    scrollbar-color: #64748b #111827;
}

.code-block code {
    font: inherit;
}

.inline-code {
    padding: 2px 5px;
    border-radius: 5px;
    background: #eef2f0;
    color: var(--brand-green-dark);
    font-family: "SFMono-Regular", Consolas, monospace;
    font-size: 0.9em;
    overflow-wrap: anywhere;
}

.query-notice {
    margin: 0 0 18px;
}

.pricing-grid {
    display: grid;
    gap: 22px;
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.pricing-card {
    display: flex;
    flex-direction: column;
}

.pricing-card.featured {
    border-color: var(--brand-green);
    box-shadow: var(--shadow-md);
}

.price-value {
    margin: 18px 0 4px;
    color: var(--brand-green);
    font-size: 36px;
    font-weight: 850;
    line-height: 1;
}

.price-unit {
    color: var(--text-muted);
    font-size: 13px;
}

.rule-list {
    margin: 22px 0 0;
    padding: 0;
    color: var(--text-secondary);
    list-style: none;
}

.rule-list li {
    position: relative;
    padding: 9px 0 9px 22px;
    border-top: 1px solid var(--border);
}

.rule-list li::before {
    position: absolute;
    left: 2px;
    color: var(--brand-green);
    content: "✓";
    font-weight: 900;
}

.faq-layout {
    display: grid;
    align-items: start;
    gap: 32px;
    grid-template-columns: 240px minmax(0, 1fr);
}

.faq-index {
    position: sticky;
    top: calc(var(--header-height) + 20px);
    padding: 18px;
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    background: var(--bg-white);
    box-shadow: var(--shadow-sm);
}

.faq-index ul {
    margin: 0;
    padding: 0;
    list-style: none;
}

.faq-index a {
    display: block;
    padding: 8px 9px;
    border-radius: 7px;
    color: var(--text-secondary);
    font-size: 14px;
    text-decoration: none;
}

.faq-index a:hover {
    background: #edf5f0;
    color: var(--brand-green);
}

.faq-group + .faq-group {
    margin-top: 42px;
}

.faq-group {
    scroll-margin-top: calc(var(--header-height) + 20px);
}

.faq-group h2 {
    margin: 0 0 16px;
    font-size: 24px;
}

.faq-item {
    scroll-margin-top: calc(var(--header-height) + 20px);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    background: var(--bg-white);
    box-shadow: var(--shadow-sm);
}

.faq-item + .faq-item {
    margin-top: 12px;
}

.faq-item summary {
    position: relative;
    padding: 18px 54px 18px 20px;
    color: var(--text-primary);
    font-weight: 750;
    list-style: none;
}

.faq-item summary::-webkit-details-marker {
    display: none;
}

.faq-item summary::after {
    position: absolute;
    top: 17px;
    right: 20px;
    color: var(--brand-green);
    content: "+";
    font-size: 22px;
    font-weight: 500;
    line-height: 1;
}

.faq-item[open] summary::after {
    content: "−";
}

.faq-answer {
    padding: 0 20px 20px;
    color: var(--text-secondary);
}

.faq-answer p:first-child {
    margin-top: 0;
}

.console-layout {
    display: grid;
    margin-bottom: 72px;
    align-items: start;
    gap: 24px;
    grid-template-columns: 240px minmax(0, 1fr);
}

.console-sidebar {
    position: sticky;
    top: calc(var(--header-height) + 20px);
    padding: 18px;
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    background: var(--bg-white);
    box-shadow: var(--shadow-sm);
}

.console-section-nav {
    display: grid;
    gap: 6px;
}

.console-section-nav a {
    padding: 10px 12px;
    border-radius: var(--radius-sm);
    color: var(--text-secondary);
    font-size: 14px;
    font-weight: 700;
    text-decoration: none;
}

.console-section-nav a:hover,
.console-section-nav a[aria-current="location"] {
    background: #eaf5ee;
    color: var(--brand-green-dark);
}

.account-summary {
    margin-bottom: 18px;
    padding: 14px;
    border-radius: var(--radius-md);
    background: #f3f7f4;
}

.account-summary strong,
.account-summary span {
    display: block;
}

.account-summary span {
    margin-top: 2px;
    color: var(--text-muted);
    font-size: 12px;
    overflow-wrap: anywhere;
}

.console-main {
    display: grid;
    min-width: 0;
    gap: 24px;
}

#overview,
#api-keys,
#usage {
    scroll-margin-top: calc(var(--header-height) + 20px);
}

#usage-overview-status {
    margin-bottom: 20px;
}

#usage-overview-status strong {
    display: block;
    margin-bottom: 4px;
}

.console-card {
    min-width: 0;
    padding: clamp(22px, 3vw, 34px);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    background: var(--bg-white);
    box-shadow: var(--shadow-sm);
}

.console-card-header {
    display: flex;
    margin-bottom: 22px;
    align-items: start;
    justify-content: space-between;
    gap: 18px;
}

.console-card-header h2 {
    margin: 0;
    font-size: 23px;
}

.console-card-header p {
    margin: 5px 0 0;
    color: var(--text-secondary);
    font-size: 14px;
}

.form-grid {
    display: grid;
    gap: 18px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.form-field {
    min-width: 0;
}

.form-field.full {
    grid-column: 1 / -1;
}

.form-label,
.fieldset legend {
    display: block;
    margin-bottom: 7px;
    color: var(--text-primary);
    font-size: 14px;
    font-weight: 750;
}

.field-hint,
.field-error {
    display: block;
    margin-top: 6px;
    font-size: 12px;
}

.field-hint {
    color: var(--text-muted);
}

.field-error {
    color: var(--danger);
    font-weight: 650;
}

.input,
.select,
.textarea {
    width: 100%;
    min-height: 44px;
    padding: 10px 12px;
    border: 1px solid var(--border-strong);
    border-radius: var(--radius-sm);
    background: var(--bg-white);
    color: var(--text-primary);
}

.textarea {
    min-height: 96px;
    resize: vertical;
}

.input:focus,
.select:focus,
.textarea:focus {
    border-color: var(--brand-green);
    outline: 3px solid var(--brand-green-dark);
    outline-offset: 3px;
    box-shadow: 0 0 0 2px #fff;
}

.input[aria-invalid="true"],
.textarea[aria-invalid="true"] {
    border-color: var(--danger);
}

.fieldset {
    margin: 0;
    padding: 0;
    border: 0;
}

.scope-grid {
    display: grid;
    gap: 10px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.check-option {
    display: flex;
    min-width: 0;
    padding: 11px 12px;
    align-items: flex-start;
    gap: 9px;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    background: #fbfcfb;
    color: var(--text-secondary);
    font-size: 13px;
}

.check-option:hover {
    border-color: #b8d5c4;
}

.check-option input {
    width: 17px;
    height: 17px;
    margin: 2px 0 0;
    flex: 0 0 auto;
    accent-color: var(--brand-green);
}

.login-panel {
    max-width: 560px;
    margin-inline: auto;
}

.login-panel .security-note {
    margin-top: 22px;
}

.one-time-key {
    margin-top: 22px;
    padding: 20px;
    border: 1px solid #e1c584;
    border-radius: var(--radius-md);
    background: #fffbeb;
}

.one-time-key h3 {
    margin: 0 0 8px;
    font-size: 17px;
}

.secret-value {
    display: block;
    width: 100%;
    margin: 14px 0;
    overflow-x: auto;
    padding: 13px 14px;
    border: 1px dashed #bf8b2c;
    border-radius: var(--radius-sm);
    background: #fff;
    color: var(--text-primary);
    font-family: "SFMono-Regular", Consolas, monospace;
    font-size: 13px;
    white-space: nowrap;
}

.state-panel {
    padding: 22px;
    border: 1px dashed var(--border-strong);
    border-radius: var(--radius-md);
    background: #fafbfa;
    color: var(--text-secondary);
    text-align: center;
}

.state-panel h3 {
    margin: 0 0 7px;
    color: var(--text-primary);
    font-size: 17px;
}

.state-panel p {
    margin: 0;
}

.state-panel .button {
    margin-top: 14px;
}

.state-panel.error {
    border-color: #efb9b4;
    background: #fff8f7;
}

.state-panel.loading {
    border-style: solid;
}

.state-panel.loading::before {
    display: inline-block;
    width: 18px;
    height: 18px;
    margin: 0 8px -4px 0;
    border: 3px solid #d7e9de;
    border-top-color: var(--brand-green);
    border-radius: 50%;
    content: "";
    animation: spin 800ms linear infinite;
}

.key-list {
    display: grid;
    gap: 13px;
}

.key-card {
    display: grid;
    padding: 18px;
    align-items: start;
    gap: 16px;
    grid-template-columns: minmax(0, 1fr) auto;
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    background: #fbfcfb;
}

.key-card h3 {
    margin: 0;
    font-size: 16px;
}

.key-mask {
    margin: 5px 0;
    color: var(--brand-green-dark);
    font-family: "SFMono-Regular", Consolas, monospace;
    font-size: 13px;
    overflow-wrap: anywhere;
}

.key-meta {
    display: flex;
    margin: 8px 0 0;
    padding: 0;
    flex-wrap: wrap;
    gap: 6px 14px;
    color: var(--text-muted);
    font-size: 12px;
    list-style: none;
}

.metric-grid {
    display: grid;
    gap: 14px;
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.metric-card {
    padding: 18px;
}

.metric-label {
    color: var(--text-muted);
    font-size: 12px;
    font-weight: 750;
}

.metric-value {
    display: block;
    margin-top: 5px;
    color: var(--text-primary);
    font-size: 27px;
    font-weight: 850;
    line-height: 1.2;
}

.metric-detail {
    display: block;
    margin-top: 5px;
    color: var(--text-secondary);
    font-size: 12px;
}

.status-line {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
}

.status-dot {
    display: inline-block;
    width: 9px;
    height: 9px;
    border: 2px solid currentColor;
    border-radius: 50%;
}

.status-success {
    color: var(--success);
}

.status-error {
    color: var(--danger);
}

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

.toast-region {
    position: fixed;
    z-index: 500;
    right: 20px;
    bottom: 20px;
    display: grid;
    width: min(380px, calc(100% - 40px));
    gap: 10px;
    pointer-events: none;
}

.toast {
    padding: 13px 15px;
    transform: translateY(12px);
    border: 1px solid #b8d5c4;
    border-radius: var(--radius-md);
    background: #eff8f2;
    color: var(--brand-green-dark);
    box-shadow: var(--shadow-lg);
    font-size: 14px;
    font-weight: 650;
    opacity: 0;
    transition: opacity var(--transition), transform var(--transition);
}

.toast.show {
    transform: translateY(0);
    opacity: 1;
}

.toast.error {
    border-color: #efb9b4;
    background: #fff4f2;
    color: var(--danger);
}

.toast.warning {
    border-color: #efd29e;
    background: #fff9ed;
    color: #7a470c;
}

.site-footer {
    padding: 44px 0 26px;
    border-top: 1px solid var(--border);
    background: var(--bg-white);
}

.footer-grid {
    display: grid;
    align-items: start;
    gap: 30px;
    grid-template-columns: minmax(240px, 1.2fr) repeat(3, minmax(130px, 0.6fr));
}

.footer-brand p {
    max-width: 420px;
    margin: 12px 0 0;
    color: var(--text-muted);
    font-size: 13px;
}

.footer-column h2 {
    margin: 0 0 11px;
    font-size: 14px;
}

.footer-column ul {
    margin: 0;
    padding: 0;
    list-style: none;
}

.footer-column li + li {
    margin-top: 7px;
}

.footer-column a {
    color: var(--text-muted);
    font-size: 13px;
    text-decoration: none;
}

.footer-column a:hover {
    color: var(--brand-green);
}

.footer-bottom {
    display: flex;
    margin-top: 32px;
    padding-top: 18px;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    border-top: 1px solid var(--border);
    color: var(--text-muted);
    font-size: 12px;
}

.noscript-note {
    margin: 18px auto;
}

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

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

@media (max-width: 1180px) {
    .card-grid.five {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .docs-layout {
        grid-template-columns: 210px minmax(0, 1fr);
    }

    .docs-example-panel {
        position: static;
        max-height: none;
        grid-column: 2;
    }

    .metric-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 960px) {
    :root {
        --header-height: auto;
    }

    .site-header {
        position: relative;
    }

    .nav-shell {
        padding: 14px 0;
        align-items: flex-start;
        flex-direction: column;
        gap: 10px;
    }

    .primary-nav {
        width: 100%;
    }

    .nav-list {
        justify-content: flex-start;
        overflow-x: auto;
        padding-bottom: 3px;
    }

    .hero {
        padding: 62px 0 54px;
    }

    .hero-grid,
    .faq-layout,
    .console-layout {
        grid-template-columns: 1fr;
    }

    .faq-index,
    .console-sidebar {
        position: static;
    }

    .docs-layout {
        grid-template-columns: 1fr;
    }

    .docs-sidebar {
        display: none;
    }

    .endpoint-select-wrap {
        display: block;
    }

    .docs-example-panel {
        grid-column: auto;
    }

    .docs-sidebar,
    .docs-example-panel {
        position: static;
        max-height: none;
    }

    .card-grid,
    .pricing-grid,
    .steps {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .footer-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 640px) {
    .container,
    .docs-shell {
        width: min(calc(100% - 28px), var(--content-max));
    }

    .brand {
        font-size: 22px;
    }

    .nav-link {
        min-height: 40px;
        padding: 7px 10px;
        font-size: 13px;
    }

    .nav-list {
        flex-wrap: wrap;
        overflow-x: visible;
        padding-bottom: 0;
        row-gap: 6px;
    }

    .nav-link.nav-console {
        margin-left: 0;
    }

    .hero,
    .section {
        padding: 50px 0;
    }

    .page-hero {
        padding: 42px 0 28px;
    }

    .hero h1,
    .page-hero h1 {
        font-size: 34px;
    }

    .hero-copy {
        font-size: 16px;
    }

    .hero-actions,
    .section-actions,
    .inline-actions {
        align-items: stretch;
        flex-direction: column;
    }

    .button {
        width: 100%;
    }

    .hero-panel,
    .docs-article,
    .console-card {
        padding: 20px;
        border-radius: var(--radius-md);
    }

    .card-grid,
    .card-grid.two,
    .card-grid.five,
    .pricing-grid,
    .steps,
    .footer-grid,
    .form-grid,
    .scope-grid,
    .metric-grid {
        grid-template-columns: 1fr;
    }

    .section-heading,
    .console-card-header,
    .footer-bottom {
        align-items: flex-start;
        flex-direction: column;
    }

    .feature-card {
        min-height: 0;
    }

    .auth-line {
        grid-template-columns: 1fr;
    }

    .data-table {
        min-width: 560px;
    }

    .key-card {
        grid-template-columns: 1fr;
    }

    .key-card .button {
        width: 100%;
    }

    .toast-region {
        right: 14px;
        bottom: 14px;
        width: calc(100% - 28px);
    }
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

@media print {
    .site-header,
    .site-footer,
    .docs-sidebar,
    .docs-example-panel,
    .toast-region,
    .button,
    .copy-button {
        display: none !important;
    }

    body {
        background: #fff;
    }

    .docs-layout {
        display: block;
    }

    .docs-article {
        border: 0;
        box-shadow: none;
    }

    [hidden] {
        display: block !important;
    }
}
