:root {
    --bg: #f6f9fc;
    --bg-warm: #eef4fb;
    --surface: #ffffff;
    --surface-alt: #f4f7fb;
    --line: #dbe5ef;
    --line-strong: #c7d6e8;
    --ink: #1f2937;
    --muted: #66768d;
    --primary: #d9e8fb;
    --primary-soft: #edf4ff;
    --primary-hover: #c8dcfb;
    --primary-pressed: #b7cff2;
    --focus: rgba(93, 137, 199, 0.16);
    --accent-bg: #edf4ff;
    --accent-bg-strong: #dbeafe;
    --accent-ink: #496a96;
    --docs-heading: #2f6f88;
    --accent-border: rgba(93, 137, 199, 0.22);
    --danger-bg: #fce8e6;
    --danger-line: #f6aea9;
    --danger-ink: #c5221f;
    --info-bg: #eef5ff;
    --info-line: #c7daf7;
    --info-ink: var(--accent-ink);
    --success-bg: #edf8f1;
    --success-line: #bdddc7;
    --success-ink: #24613b;
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 18px;
}

* {
    box-sizing: border-box;
}

html,
body {
    margin: 0;
    min-height: 100%;
}

body {
    background: var(--bg);
    color: var(--ink);
    font-family: "Roboto", Arial, sans-serif;
    line-height: 1.5;
}

body.is-loading {
    cursor: progress;
}

a {
    color: inherit;
    text-decoration: none;
}

.auth-page {
    background:
        radial-gradient(circle at top center, rgba(125, 167, 227, 0.1), transparent 28%),
        linear-gradient(180deg, #ffffff 0%, var(--bg) 72%, var(--bg-warm) 100%);
}

.auth-topbar {
    border-bottom: 1px solid var(--line);
    background: rgba(255, 255, 255, 0.96);
    backdrop-filter: blur(8px);
}

.auth-topbar-inner,
.app-header-inner,
.app-main {
    width: min(1120px, calc(100vw - 32px));
    margin: 0 auto;
}

.auth-topbar-inner {
    min-height: 72px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 32px;
}

.brand-mark {
    display: inline-flex;
    align-items: center;
}

.brand-logo {
    display: block;
    height: auto;
}

.brand-logo-icon {
    width: 42px;
}

.brand-logo-full {
    width: 188px;
}

.auth-nav {
    display: flex;
    align-items: center;
    flex: 1;
    gap: 32px;
    color: var(--muted);
    font-size: 14px;
    font-weight: 500;
}

.auth-nav a:hover {
    color: var(--ink);
}

.auth-login-link {
    color: var(--ink);
    font-size: 14px;
    font-weight: 500;
    padding: 8px 0;
}

.auth-login-link:hover {
    color: var(--primary-pressed);
}

.auth-shell {
    width: min(1120px, calc(100vw - 32px));
    min-height: calc(100vh - 72px);
    margin: 0 auto;
    display: grid;
    place-items: center;
    padding: 48px 0 64px;
}

.auth-panel {
    width: 100%;
}

.auth-panel-centered {
    display: grid;
    justify-items: center;
}

.docs-page {
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.98) 0%, rgba(252, 251, 247, 0.98) 100%);
}

.docs-topbar {
    position: sticky;
    top: 0;
    z-index: 60;
    border-bottom: 1px solid var(--line);
    background: rgba(255, 255, 255, 0.94);
    backdrop-filter: blur(12px);
}

.docs-topbar-inner,
.docs-shell {
    width: min(1240px, calc(100vw - 28px));
    margin: 0 auto;
}

.docs-topbar-inner {
    min-height: 62px;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
    align-items: center;
    gap: 16px;
}

.docs-main-nav {
    display: flex;
    align-items: center;
    gap: 20px;
    justify-self: center;
    color: var(--muted);
    font-size: 13px;
    font-weight: 500;
}

.docs-main-nav-link {
    padding: 8px 0;
    transition: color 120ms ease;
}

.docs-main-nav-link:hover,
.docs-main-nav-link.is-active {
    color: var(--ink);
}

.docs-topbar-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    justify-self: end;
}

.docs-shell {
    padding: 24px 0 44px;
}

.docs-layout {
    display: grid;
    grid-template-columns: 216px minmax(0, 1fr);
    gap: 20px;
    align-items: start;
}

.docs-sidebar,
.docs-toc-card {
    position: sticky;
    top: 86px;
}

.docs-sidebar {
    display: grid;
    gap: 14px;
}

.docs-sidebar-group {
    display: grid;
    gap: 8px;
    padding: 12px;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: var(--surface);
}

.docs-sidebar-eyebrow,
.docs-toc-label {
    color: var(--muted);
    font-size: 11px;
    line-height: 16px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.docs-sidebar-title {
    color: var(--ink);
    font-size: 16px;
    line-height: 20px;
    font-weight: 600;
}

.docs-sidebar-copy {
    margin: 0;
    color: var(--muted);
    font-size: 12px;
    line-height: 17px;
}

.docs-sidebar-nav,
.docs-toc-card {
    display: grid;
    gap: 4px;
    padding: 8px;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: var(--surface);
}

.docs-sidebar-section-label {
    padding: 8px 10px 2px;
    color: var(--muted);
    font-size: 11px;
    line-height: 16px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.docs-sidebar-link,
.docs-toc-link {
    display: block;
    padding: 8px 10px;
    border-radius: 10px;
    color: var(--muted);
    font-size: 13px;
    line-height: 18px;
    font-weight: 500;
    transition: background-color 120ms ease, color 120ms ease;
}

.docs-sidebar-link:hover,
.docs-toc-link:hover,
.docs-sidebar-link.is-active,
.docs-toc-link.is-active {
    background: var(--surface-alt);
    color: var(--ink);
}

.docs-sidebar-link.is-active {
    background: var(--accent-bg);
    color: var(--accent-ink);
    box-shadow: inset 0 0 0 1px var(--accent-border);
}

.docs-sidebar-link-endpoint {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 8px;
    align-items: start;
}

.docs-sidebar-method {
    min-width: 34px;
    min-height: 20px;
    display: inline-grid;
    place-items: center;
    margin-top: 1px;
    padding: 0 6px;
    border-radius: 999px;
    background: var(--accent-bg-strong);
    color: var(--accent-ink);
    font-size: 10px;
    line-height: 14px;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.docs-sidebar-link-copy {
    display: grid;
    gap: 2px;
}

.docs-sidebar-link-copy strong {
    color: inherit;
    font-size: 13px;
    line-height: 18px;
    font-weight: 600;
}

.docs-sidebar-link-copy span {
    color: inherit;
    opacity: 0.72;
    font-size: 11px;
    line-height: 16px;
}

.docs-content {
    min-width: 0;
    display: grid;
    gap: 28px;
}

.docs-page-header {
    display: grid;
    gap: 10px;
    padding-bottom: 4px;
}

.docs-page-kicker {
    color: var(--muted);
    font-size: 12px;
    line-height: 16px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.docs-page-header h1,
.docs-endpoint-header h2 {
    margin: 0;
    color: var(--ink);
    letter-spacing: -0.03em;
}

.docs-section-heading h2,
.docs-endpoint-intro h2,
.docs-endpoint-header h2 {
    margin: 0;
    color: var(--docs-heading);
    letter-spacing: -0.03em;
}

.docs-page-header h1 {
    font-size: 36px;
    line-height: 40px;
    font-weight: 700;
}

.docs-page-intro {
    max-width: 760px;
    margin: 0;
    color: var(--muted);
    font-size: 15px;
    line-height: 23px;
}

.docs-page-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.docs-meta-pill {
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    padding: 0 10px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: var(--surface);
    color: var(--muted);
    font-size: 12px;
    line-height: 16px;
    font-weight: 500;
}

.docs-section {
    display: grid;
    gap: 12px;
    scroll-margin-top: 90px;
}

.docs-content > .docs-section + .docs-section {
    margin-top: 4px;
    padding-top: 24px;
    border-top: 1px solid var(--line);
}

.docs-reference-section {
    gap: 14px;
}

.docs-section-heading {
    display: grid;
    gap: 6px;
}

.docs-section-heading h2 {
    font-size: 24px;
    line-height: 30px;
    font-weight: 600;
}

.docs-section-heading h3 {
    margin: 0;
    color: var(--ink);
    font-size: 18px;
    line-height: 24px;
    font-weight: 600;
}

.docs-section-heading p,
.docs-endpoint-header p,
.docs-callout p {
    margin: 0;
    color: var(--muted);
    font-size: 13px;
    line-height: 20px;
}

.docs-plain-list {
    display: grid;
    gap: 10px;
}

.docs-plain-item {
    position: relative;
    display: grid;
    gap: 3px;
    padding-left: 14px;
}

.docs-plain-item::before {
    content: "";
    position: absolute;
    top: 8px;
    left: 0;
    width: 6px;
    height: 6px;
    border-radius: 999px;
    background: var(--accent-ink);
    opacity: 0.5;
}

.docs-plain-item strong {
    margin: 0;
    color: var(--ink);
    font-size: 13px;
    line-height: 18px;
    font-weight: 600;
}

.docs-plain-item p {
    margin: 0;
    color: var(--muted);
    font-size: 12px;
    line-height: 18px;
}

.docs-subheading {
    margin-top: 6px;
}

.docs-code-block {
    overflow-x: auto;
    padding: 12px 14px;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: #f8fbff;
}

.docs-code-block pre,
.docs-code-block code {
    margin: 0;
    color: var(--ink);
    font-family: "Roboto Mono", "SFMono-Regular", Consolas, monospace;
    font-size: 12px;
    line-height: 18px;
    white-space: pre-wrap;
    word-break: break-word;
}

.docs-callout {
    display: grid;
    gap: 6px;
    padding: 12px 14px;
    border: 1px solid var(--line-strong);
    border-radius: 14px;
    background: var(--surface);
}

.docs-callout strong {
    color: var(--ink);
    font-size: 13px;
    line-height: 20px;
    font-weight: 600;
}

.docs-callout-soft {
    background: #f6faff;
}

.docs-reference-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 380px);
    gap: 18px;
    align-items: start;
}

.docs-reference-main {
    min-width: 0;
    display: grid;
    gap: 14px;
}

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

.docs-endpoint-intro p {
    margin: 0;
    color: var(--muted);
    font-size: 13px;
    line-height: 20px;
}

.docs-reference-side {
    position: sticky;
    top: 90px;
    min-width: 0;
    display: grid;
    gap: 10px;
}

.docs-path-bar {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: var(--surface);
}

.docs-path-code {
    color: var(--ink);
    font-family: "Roboto Mono", "SFMono-Regular", Consolas, monospace;
    font-size: 14px;
    line-height: 20px;
    font-weight: 500;
}

.docs-reference-block {
    display: grid;
    gap: 10px;
    padding-top: 12px;
    border-top: 1px solid var(--line);
}

.docs-reference-block h3 {
    margin: 0;
    color: var(--ink);
    font-size: 19px;
    line-height: 24px;
    font-weight: 600;
}

.docs-reference-block p {
    margin: 0;
    color: var(--muted);
    font-size: 13px;
    line-height: 20px;
}

.docs-inline-link {
    color: var(--docs-heading);
    text-decoration: underline;
    text-underline-offset: 2px;
    text-decoration-thickness: 1.5px;
}

.docs-inline-link:hover {
    color: var(--accent-ink);
}

.docs-reference-item {
    display: grid;
    gap: 8px;
}

.docs-reference-item-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
}

.docs-reference-item-head strong {
    color: var(--ink);
    font-size: 15px;
    line-height: 20px;
    font-weight: 600;
}

.docs-reference-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.docs-reference-tag {
    display: inline-flex;
    align-items: center;
    min-height: 26px;
    padding: 0 10px;
    border-radius: 999px;
    background: #f4f4f5;
    color: #525866;
    font-size: 11px;
    line-height: 15px;
    font-weight: 600;
}

.docs-reference-tag-accent {
    background: var(--accent-bg-strong);
    color: var(--accent-ink);
}

.docs-reference-tag-required {
    background: #fbe7e8;
    color: #a44652;
}

.docs-example-card {
    --docs-example-border: #22314a;
    --docs-example-bg: #0b1220;
    --docs-example-head-border: rgba(148, 163, 184, 0.12);
    --docs-example-head-bg: linear-gradient(180deg, rgba(18, 29, 46, 0.98) 0%, rgba(13, 21, 34, 0.98) 100%);
    --docs-example-title-color: #dbe7f5;
    --docs-example-title-dot: #60a5fa;
    --docs-example-title-dot-outline: rgba(125, 167, 227, 0.18);
    --docs-example-meta-border: rgba(96, 165, 250, 0.16);
    --docs-example-meta-bg: rgba(15, 23, 42, 0.45);
    --docs-example-meta-color: #bfdbfe;
    --docs-example-code-overlay: rgba(147, 197, 253, 0.04);
    --docs-example-code-grid: rgba(148, 163, 184, 0.045);
    --docs-example-code-bg: #09111c;
    --docs-switcher-border: rgba(148, 163, 184, 0.14);
    --docs-switcher-bg: rgba(15, 23, 42, 0.42);
    --docs-switcher-color: #dbe7f5;
    --docs-switcher-hover-border: rgba(125, 167, 227, 0.28);
    --docs-switcher-hover-bg: rgba(27, 40, 63, 0.72);
    --docs-switcher-hover-color: #f8fbff;
    --docs-switcher-icon: #93a4bb;
    --docs-switcher-menu-border: #24344f;
    --docs-switcher-menu-bg: #0f1827;
    --docs-switcher-option-color: #dbe7f5;
    --docs-switcher-option-active-bg: rgba(125, 167, 227, 0.12);
    --docs-switcher-option-active-color: #f8fbff;
    --docs-switcher-check: #93c5fd;
    overflow: visible;
    min-width: 0;
    max-width: 100%;
    border: 1px solid var(--docs-example-border);
    border-radius: 14px;
    background: var(--docs-example-bg);
    box-shadow:
        0 10px 24px rgba(15, 23, 42, 0.12),
        inset 0 1px 0 rgba(255, 255, 255, 0.02);
}

.docs-example-card-response {
    --docs-example-border: #37305a;
    --docs-example-bg: #161326;
    --docs-example-head-border: rgba(167, 139, 250, 0.16);
    --docs-example-head-bg: linear-gradient(180deg, rgba(34, 29, 54, 0.98) 0%, rgba(24, 21, 41, 0.98) 100%);
    --docs-example-title-color: #ece8ff;
    --docs-example-title-dot: #34d399;
    --docs-example-title-dot-outline: rgba(52, 211, 153, 0.22);
    --docs-example-meta-border: rgba(52, 211, 153, 0.28);
    --docs-example-meta-bg: rgba(8, 29, 22, 0.34);
    --docs-example-meta-color: #a7f3d0;
    --docs-example-code-overlay: rgba(167, 139, 250, 0.06);
    --docs-example-code-grid: rgba(167, 139, 250, 0.055);
    --docs-example-code-bg: #120f1e;
    --docs-switcher-border: rgba(167, 139, 250, 0.2);
    --docs-switcher-bg: rgba(24, 21, 41, 0.55);
    --docs-switcher-color: #ede9fe;
    --docs-switcher-hover-border: rgba(167, 139, 250, 0.38);
    --docs-switcher-hover-bg: rgba(38, 33, 60, 0.82);
    --docs-switcher-hover-color: #ffffff;
    --docs-switcher-icon: #b8a8f9;
    --docs-switcher-menu-border: #463b70;
    --docs-switcher-menu-bg: #171328;
    --docs-switcher-option-color: #ede9fe;
    --docs-switcher-option-active-bg: rgba(167, 139, 250, 0.2);
    --docs-switcher-option-active-color: #ffffff;
    --docs-switcher-check: #c4b5fd;
}

.docs-example-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    padding: 10px 12px;
    border-bottom: 1px solid var(--docs-example-head-border);
    border-top-left-radius: inherit;
    border-top-right-radius: inherit;
    background: var(--docs-example-head-bg);
}

.docs-example-title {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--docs-example-title-color);
    font-family: "Roboto Mono", "SFMono-Regular", Consolas, monospace;
    font-size: 11px;
    line-height: 14px;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.docs-example-title::before {
    content: "";
    width: 8px;
    height: 8px;
    border-radius: 3px;
    background: var(--docs-example-title-dot);
    box-shadow: 0 0 0 1px var(--docs-example-title-dot-outline);
}

.docs-example-meta {
    min-height: 24px;
    display: inline-flex;
    align-items: center;
    padding: 0 8px;
    border: 1px solid var(--docs-example-meta-border);
    border-radius: 999px;
    background: var(--docs-example-meta-bg);
    color: var(--docs-example-meta-color);
    font-family: "Roboto Mono", "SFMono-Regular", Consolas, monospace;
    font-size: 10px;
    line-height: 14px;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.docs-example-code {
    max-height: 360px;
    min-width: 0;
    max-width: 100%;
    overflow-x: auto;
    padding: 14px 16px;
    border: 0;
    border-bottom-left-radius: inherit;
    border-bottom-right-radius: inherit;
    background:
        linear-gradient(180deg, var(--docs-example-code-overlay) 0%, transparent 72px),
        repeating-linear-gradient(
            180deg,
            var(--docs-example-code-grid) 0,
            var(--docs-example-code-grid) 1px,
            transparent 1px,
            transparent 30px
        ),
        var(--docs-example-code-bg);
}

.docs-code-switcher {
    position: relative;
}

.docs-code-switcher-trigger {
    min-height: 30px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 0 10px;
    border: 1px solid var(--docs-switcher-border);
    border-radius: 8px;
    background: var(--docs-switcher-bg);
    color: var(--docs-switcher-color);
    font-family: "Roboto Mono", "SFMono-Regular", Consolas, monospace;
    font-size: 12px;
    line-height: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: border-color 120ms ease, background-color 120ms ease, color 120ms ease;
}

.docs-code-switcher-trigger:hover {
    border-color: var(--docs-switcher-hover-border);
    background: var(--docs-switcher-hover-bg);
    color: var(--docs-switcher-hover-color);
}

.docs-code-switcher-trigger svg {
    width: 12px;
    height: 12px;
    color: var(--docs-switcher-icon);
}

.docs-code-switcher-menu {
    position: absolute;
    top: calc(100% + 6px);
    right: 0;
    z-index: 40;
    min-width: 200px;
    max-height: min(320px, 56vh);
    overflow-y: auto;
    display: grid;
    gap: 3px;
    padding: 6px;
    border: 1px solid var(--docs-switcher-menu-border);
    border-radius: 10px;
    background: var(--docs-switcher-menu-bg);
    box-shadow: 0 18px 36px rgba(15, 23, 42, 0.28);
}

.docs-code-switcher-menu[hidden],
[data-code-panel][hidden] {
    display: none !important;
}

.docs-code-switcher-option {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    width: 100%;
    padding: 8px 10px;
    border: 0;
    border-radius: 8px;
    background: transparent;
    color: var(--docs-switcher-option-color);
    font-size: 12px;
    line-height: 16px;
    font-weight: 500;
    text-align: left;
    cursor: pointer;
}

.docs-code-switcher-option:hover,
.docs-code-switcher-option.is-active {
    background: var(--docs-switcher-option-active-bg);
    color: var(--docs-switcher-option-active-color);
}

.docs-code-switcher-option.is-active::after {
    content: "✓";
    font-size: 12px;
    line-height: 16px;
    font-weight: 700;
    color: var(--docs-switcher-check);
}

.docs-example-code pre,
.docs-example-code code {
    white-space: pre;
    color: #dbe7f5;
    font-family: "Roboto Mono", "SFMono-Regular", Consolas, monospace;
}

.docs-example-code pre {
    width: max-content;
    min-width: 100%;
}

.docs-code-grid,
.docs-rule-grid,
.docs-fields-grid {
    display: grid;
    gap: 10px;
}

.docs-steps {
    display: grid;
    gap: 10px;
}

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

.docs-rule-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

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

.docs-fields-grid-wide {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.docs-code-card,
.docs-rule-card,
.docs-field-card,
.docs-step-card {
    display: grid;
    gap: 8px;
    padding: 12px 14px;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: var(--surface);
}

.docs-step-card {
    grid-template-columns: auto 1fr;
    gap: 10px;
    align-items: start;
}

.docs-step-card strong {
    color: var(--ink);
    font-size: 14px;
    line-height: 20px;
    font-weight: 600;
}

.docs-step-card p {
    margin: 4px 0 0;
    color: var(--muted);
    font-size: 12px;
    line-height: 18px;
}

.docs-step-number {
    width: 26px;
    height: 26px;
    display: inline-grid;
    place-items: center;
    border-radius: 999px;
    background: var(--accent-bg-strong);
    color: var(--accent-ink);
    font-size: 11px;
    line-height: 14px;
    font-weight: 700;
}

.docs-code-label {
    color: var(--muted);
    font-size: 12px;
    line-height: 16px;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.docs-rule-card strong,
.docs-field-card strong {
    color: var(--ink);
    font-size: 13px;
    line-height: 18px;
    font-weight: 600;
}

.docs-rule-card p,
.docs-field-card span {
    margin: 0;
    color: var(--muted);
    font-size: 12px;
    line-height: 18px;
}

.docs-endpoint-header {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 10px;
    align-items: start;
}

.docs-method-badge {
    min-width: 44px;
    min-height: 26px;
    display: inline-grid;
    place-items: center;
    padding: 0 9px;
    border-radius: 999px;
    background: var(--accent-bg-strong);
    color: var(--accent-ink);
    font-size: 10px;
    line-height: 14px;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.docs-param-table-wrap {
    overflow-x: auto;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: var(--surface);
}

.docs-param-table {
    width: 100%;
    border-collapse: collapse;
}

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

.docs-param-table th {
    color: var(--muted);
    font-size: 11px;
    line-height: 14px;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.docs-param-table td {
    color: var(--ink);
    font-size: 12px;
    line-height: 18px;
}

.docs-param-table tbody tr:last-child td {
    border-bottom: 0;
}

.docs-availability-access {
    white-space: nowrap;
}

.docs-access-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 20px;
    padding: 0 8px;
    border-radius: 999px;
    border: 1px solid transparent;
    font-size: 10px;
    line-height: 14px;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.docs-access-badge-yes {
    background: #eaf8ef;
    border-color: #b8dfc5;
    color: #1f7a3f;
}

.docs-access-badge-no {
    background: #fdecec;
    border-color: #f2b9b9;
    color: #b42318;
}

.docs-toc {
    display: block;
}

.flash-stack {
    position: fixed;
    right: 24px;
    bottom: 24px;
    width: min(360px, calc(100vw - 32px));
    display: grid;
    gap: 12px;
    z-index: 140;
    pointer-events: none;
}

.flash {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 14px 14px 14px 16px;
    border: 1px solid transparent;
    border-radius: 18px;
    box-shadow: 0 14px 32px rgba(17, 24, 39, 0.12);
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
    transition: opacity 180ms ease, transform 180ms ease;
    font-size: 14px;
    font-weight: 500;
}

.flash.is-hiding {
    opacity: 0;
    transform: translateY(8px);
}

.flash-copy {
    flex: 1 1 auto;
    line-height: 20px;
}

.flash-close {
    width: 28px;
    height: 28px;
    flex: 0 0 28px;
    display: inline-grid;
    place-items: center;
    margin-top: -2px;
    border: 0;
    border-radius: 999px;
    background: transparent;
    color: inherit;
    opacity: 0.72;
    cursor: pointer;
    transition: background-color 120ms ease, opacity 120ms ease;
}

.flash-close:hover {
    background: rgba(17, 24, 39, 0.06);
    opacity: 1;
}

.flash-close svg {
    width: 16px;
    height: 16px;
}

.flash-success {
    background: var(--success-bg);
    border-color: var(--success-line);
    color: var(--success-ink);
}

.flash-danger {
    background: var(--danger-bg);
    border-color: var(--danger-line);
    color: var(--danger-ink);
}

.flash-info,
.flash-warning {
    background: var(--info-bg);
    border-color: var(--info-line);
    color: var(--info-ink);
}

.page-loading {
    position: fixed;
    inset: 0;
    display: grid;
    place-items: center;
    padding: 24px;
    background: rgba(246, 249, 252, 0.56);
    backdrop-filter: blur(2px);
    opacity: 0;
    pointer-events: none;
    transition: opacity 140ms ease;
    z-index: 135;
}

.page-loading.is-active {
    opacity: 1;
    pointer-events: auto;
}

.page-loading-card {
    min-width: 180px;
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 14px 16px;
    border: 1px solid var(--line);
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.96);
    box-shadow: 0 18px 40px rgba(17, 24, 39, 0.08);
}

.page-loading-label {
    color: var(--ink);
    font-size: 14px;
    line-height: 20px;
    font-weight: 500;
}

.page-loading-spinner {
    width: 18px;
    height: 18px;
    border: 2px solid rgba(32, 33, 36, 0.18);
    border-top-color: var(--ink);
    border-radius: 999px;
    animation: app-spin 0.8s linear infinite;
}

.auth-card {
    width: min(448px, 100%);
    padding: 36px 32px 32px;
    background: rgba(255, 255, 255, 0.98);
    border: 1px solid var(--line);
    border-radius: 28px;
    box-shadow: 0 2px 12px rgba(32, 33, 36, 0.04);
}

.auth-card-compact {
    padding-top: 32px;
    padding-bottom: 32px;
}

.auth-card-center,
.auth-card-header-center {
    text-align: center;
}

.auth-card-brand {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    margin-bottom: 24px;
}

.auth-card-logo {
    width: 164px;
    height: auto;
}

.eyebrow,
.user-chip-label {
    display: inline-flex;
    align-items: center;
    width: fit-content;
    padding: 4px 12px;
    border-radius: 999px;
    background: var(--accent-bg);
    color: var(--accent-ink);
    font-size: 11px;
    font-weight: 500;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.auth-card-header h2 {
    margin: 0 0 12px;
    font-size: 38px;
    line-height: 42px;
    font-weight: 700;
    letter-spacing: -0.02em;
    color: var(--ink);
}

.auth-card-header p {
    margin: 0;
    color: var(--muted);
    font-size: 16px;
    line-height: 26px;
}

.auth-card-header-center p {
    max-width: 320px;
    margin: 0 auto;
}

.auth-actions,
.auth-form {
    display: grid;
    gap: 12px;
    margin-top: 28px;
}

.primary-action,
.secondary-action,
.solid-button,
.ghost-button {
    width: 100%;
    min-height: 52px;
    border-radius: 16px;
    border: 1px solid transparent;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 0 16px;
    font-size: 14px;
    font-weight: 500;
    letter-spacing: 0.01em;
    cursor: pointer;
    transition: background-color 120ms ease, border-color 120ms ease, color 120ms ease;
}

.primary-action,
.secondary-action,
.solid-button,
.ghost-button,
.text-button,
.api-table-link,
.dashboard-action-button,
.dashboard-select-button,
.sidebar-menu-button {
    position: relative;
}

.primary-action,
.solid-button {
    --button-spinner-color: var(--ink);
}

.secondary-action,
.ghost-button,
.dashboard-action-button,
.dashboard-select-button,
.api-table-link,
.text-button,
.sidebar-menu-button {
    --button-spinner-color: var(--ink);
}

.api-table-link-danger,
.sidebar-menu-button-danger {
    --button-spinner-color: #c2415c;
}

.primary-action,
.solid-button {
    background: var(--primary);
    border-color: var(--primary);
    color: var(--ink);
}

.primary-action:hover,
.solid-button:hover {
    background: var(--primary-hover);
    border-color: var(--primary-hover);
}

.primary-action:disabled,
.solid-button:disabled {
    background: #f3f4f6;
    border-color: #e5e7eb;
    color: #9ca3af;
    cursor: not-allowed;
}

.primary-action:active,
.solid-button:active {
    background: var(--primary-pressed);
    border-color: var(--primary-pressed);
}

.secondary-action {
    background: #ffffff;
    border-color: var(--accent-border);
    color: var(--ink);
}

.secondary-action:hover {
    background: #f5f9ff;
    border-color: rgba(93, 137, 199, 0.3);
}

.secondary-action:active {
    background: var(--accent-bg-strong);
}

.ghost-button:hover {
    background: var(--surface-alt);
}

.ghost-button:active,
.ghost-button:active {
    background: #e8eaed;
}

.primary-action:focus-visible,
.secondary-action:focus-visible,
.solid-button:focus-visible,
.ghost-button:focus-visible,
.text-field:focus-visible,
.auth-nav a:focus-visible,
.auth-login-link:focus-visible {
    outline: 0;
    box-shadow: 0 0 0 4px var(--focus);
}

.ghost-button {
    width: auto;
    min-height: 40px;
    padding: 0 16px;
    background: var(--surface);
    border-color: var(--line);
    color: var(--ink);
}

.primary-action.is-loading,
.secondary-action.is-loading,
.solid-button.is-loading,
.ghost-button.is-loading,
.text-button.is-loading,
.api-table-link.is-loading,
.dashboard-action-button.is-loading,
.dashboard-select-button.is-loading,
.sidebar-menu-button.is-loading {
    color: transparent !important;
    pointer-events: none;
}

.primary-action.is-loading > *,
.secondary-action.is-loading > *,
.solid-button.is-loading > *,
.ghost-button.is-loading > *,
.text-button.is-loading > *,
.api-table-link.is-loading > *,
.dashboard-action-button.is-loading > *,
.dashboard-select-button.is-loading > *,
.sidebar-menu-button.is-loading > * {
    opacity: 0 !important;
}

.primary-action.is-loading::after,
.secondary-action.is-loading::after,
.solid-button.is-loading::after,
.ghost-button.is-loading::after,
.text-button.is-loading::after,
.api-table-link.is-loading::after,
.dashboard-action-button.is-loading::after,
.dashboard-select-button.is-loading::after,
.sidebar-menu-button.is-loading::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 18px;
    height: 18px;
    margin: -9px 0 0 -9px;
    border: 2px solid rgba(32, 33, 36, 0.16);
    border-top-color: var(--button-spinner-color, var(--ink));
    border-radius: 999px;
    animation: app-spin 0.8s linear infinite;
}

.api-table-link.is-loading,
.text-button.is-loading {
    min-height: auto;
}

.api-table-link.is-loading::after,
.text-button.is-loading::after {
    border-width: 2px;
}

.auth-secondary-action {
    width: 100%;
    margin-top: 12px;
}

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

.action-icon {
    width: 18px;
    height: 18px;
    display: inline-grid;
    place-items: center;
}

.action-icon svg {
    width: 100%;
    height: 100%;
}

.field-label {
    display: block;
    margin-bottom: 8px;
    color: var(--ink);
    font-size: 14px;
    font-weight: 500;
    text-align: left;
}

.text-field {
    width: 100%;
    min-height: 52px;
    padding: 0 16px;
    border: 1px solid var(--line);
    border-radius: 16px;
    background: var(--surface);
    color: var(--ink);
    font: inherit;
    outline: none;
    transition: border-color 120ms ease, box-shadow 120ms ease;
}

.text-field:hover {
    border-color: var(--line-strong);
}

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

.text-field:focus {
    border-color: var(--primary-pressed);
}

.switch-copy {
    margin: 24px 0 0;
    color: var(--muted);
    font-size: 14px;
    line-height: 20px;
    text-align: center;
}

.switch-copy a {
    color: var(--info-ink);
    font-weight: 500;
}

.switch-copy-compact {
    margin-top: 0;
}

.recaptcha-wrap {
    display: flex;
    justify-content: center;
    max-width: 100%;
    overflow-x: auto;
}

.resend-block,
.resend-form {
    display: grid;
    justify-items: center;
    gap: 12px;
}

.resend-block {
    margin-top: 24px;
}

.verify-email-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-top: 24px;
}

.verify-email-chip {
    flex: 1;
    min-height: 52px;
    padding: 12px 16px;
    border: 1px solid var(--line);
    border-radius: 16px;
    background: var(--surface);
    color: var(--ink);
    font-size: 14px;
    font-weight: 500;
}

.inline-link,
.text-button {
    color: var(--ink);
    font-size: 14px;
    font-weight: 500;
}

.text-button {
    padding: 0;
    border: 0;
    background: transparent;
    cursor: pointer;
}

.text-button:hover,
.inline-link:hover {
    color: var(--primary-pressed);
}

.inline-form {
    display: inline;
}

.otp-group {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 12px;
}

.otp-digit {
    width: 100%;
    min-height: 56px;
    padding: 0;
    border: 1px solid var(--line);
    border-radius: 16px;
    background: var(--surface);
    color: var(--ink);
    text-align: center;
    font: inherit;
    font-size: 24px;
    font-weight: 700;
    line-height: 1;
    outline: none;
    transition: border-color 120ms ease, box-shadow 120ms ease, background-color 120ms ease;
}

.otp-digit:hover {
    border-color: var(--line-strong);
}

.otp-digit:focus {
    border-color: var(--primary-pressed);
    box-shadow: 0 0 0 4px var(--focus);
}

.app-page {
    --app-bg: #f6f9fc;
    --app-surface: #ffffff;
    --app-surface-alt: #f4f7fb;
    --app-border: #dbe5ef;
    --app-border-strong: #c7d6e8;
    --app-text: #111827;
    --app-muted: #6b7b91;
    --app-muted-soft: #98a6ba;
    --app-accent: #7da7e3;
    --app-accent-soft: #edf4ff;
    --app-accent-ink: #476692;
    --app-shadow: 0 1px 2px rgba(17, 24, 39, 0.04);
    background: var(--app-bg);
    color: var(--app-text);
}

.app-shell {
    min-height: 100vh;
    background: var(--app-bg);
}

.portal-layout {
    min-height: 100vh;
    display: grid;
    grid-template-columns: 248px minmax(0, 1fr);
}

.portal-sidebar {
    position: sticky;
    top: 0;
    height: 100vh;
    padding: 18px 14px;
    display: grid;
    grid-template-rows: auto auto 1fr auto;
    gap: 16px;
    border-right: 1px solid var(--app-border);
    background: var(--app-surface);
}

.sidebar-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 4px 8px;
}

.sidebar-brand-icon {
    width: 34px;
    height: 34px;
    display: block;
}

.sidebar-brand-copy {
    display: grid;
    gap: 2px;
}

.sidebar-brand-copy strong {
    font-size: 14px;
    line-height: 18px;
    font-weight: 700;
    color: var(--app-text);
}

.sidebar-brand-copy span {
    color: var(--app-muted);
    font-size: 12px;
    line-height: 16px;
}

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

.sidebar-nav-link {
    position: relative;
    min-height: 40px;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 0 10px;
    border: 1px solid transparent;
    border-radius: 12px;
    color: var(--app-muted);
    font-size: 13px;
    font-weight: 500;
    box-shadow: none;
    transition: background-color 120ms ease, border-color 120ms ease, color 120ms ease, box-shadow 120ms ease;
}

.sidebar-nav-link:hover {
    background: linear-gradient(135deg, #f9fbff 0%, #eff5ff 100%);
    border-color: rgba(125, 167, 227, 0.14);
    color: var(--app-text);
}

.sidebar-nav-link.active {
    background: linear-gradient(135deg, #f7fbff 0%, #e2eeff 100%);
    border-color: rgba(125, 167, 227, 0.34);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.92), 0 1px 2px rgba(71, 102, 146, 0.08);
    color: var(--app-accent-ink);
}

.sidebar-nav-link.active .sidebar-nav-icon {
    color: var(--app-accent-ink);
}

.sidebar-nav-icon {
    width: 18px;
    height: 18px;
    display: inline-grid;
    place-items: center;
    flex: 0 0 18px;
}

.sidebar-nav-icon svg {
    width: 100%;
    height: 100%;
}

.sidebar-section {
    display: grid;
    align-content: start;
    gap: 8px;
}

.sidebar-section-label {
    padding: 0 8px;
    color: var(--app-muted-soft);
    font-size: 10px;
    line-height: 14px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.sidebar-api-card {
    display: grid;
    gap: 10px;
    padding: 12px;
    border: 1px solid var(--app-border);
    border-radius: 14px;
    background: var(--app-surface);
}

.sidebar-api-card-top {
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.sidebar-api-badge {
    width: 30px;
    height: 30px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    background: var(--app-accent-soft);
    color: var(--app-accent-ink);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.06em;
}

.sidebar-api-card strong {
    display: block;
    color: var(--app-text);
    font-size: 13px;
    line-height: 18px;
    font-weight: 600;
}

.sidebar-api-card p {
    margin: 4px 0 0;
    color: var(--app-muted);
    font-size: 12px;
    line-height: 16px;
}

.sidebar-status {
    width: fit-content;
    min-height: 24px;
    display: inline-flex;
    align-items: center;
    padding: 0 8px;
    border-radius: 999px;
    background: #eaf7ef;
    color: #137333;
    font-size: 10px;
    line-height: 14px;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.sidebar-api-empty {
    padding: 10px 12px;
    border: 1px solid var(--app-border);
    border-radius: 14px;
    background: var(--app-surface-alt);
    color: var(--app-muted);
    font-size: 12px;
    line-height: 16px;
    font-weight: 500;
}

.sidebar-status-muted {
    background: #f3f4f6;
    color: var(--app-muted);
}

.sidebar-footer {
    position: relative;
    display: grid;
    gap: 8px;
    align-content: end;
}

.sidebar-account {
    position: relative;
}

.sidebar-account-trigger {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    border: 1px solid var(--app-border);
    border-radius: 14px;
    background: var(--app-surface);
    color: var(--app-text);
    cursor: pointer;
    text-align: left;
    transition: background-color 120ms ease, border-color 120ms ease, box-shadow 120ms ease;
}

.sidebar-account-trigger:hover,
.sidebar-account.is-open .sidebar-account-trigger {
    background: var(--app-surface-alt);
    border-color: var(--app-border-strong);
}

.sidebar-account-avatar {
    width: 36px;
    height: 36px;
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 36px;
    border-radius: 999px;
    background: var(--app-accent-soft);
    color: var(--app-accent-ink);
    font-size: 14px;
    line-height: 18px;
    font-weight: 700;
    overflow: hidden;
}

.sidebar-account-avatar-fallback {
    width: 100%;
    height: 100%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.sidebar-account-avatar-image {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
}

.sidebar-account-trigger-copy {
    min-width: 0;
    display: grid;
    gap: 2px;
    flex: 1 1 auto;
}

.sidebar-account-trigger-copy strong,
.sidebar-account-popover-header strong {
    overflow: hidden;
    color: var(--app-text);
    font-size: 13px;
    line-height: 18px;
    font-weight: 600;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.sidebar-account-trigger-copy span,
.sidebar-account-popover-header span {
    overflow: hidden;
    color: var(--app-muted);
    font-size: 12px;
    line-height: 16px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.sidebar-account-chevron {
    width: 16px;
    height: 16px;
    display: inline-grid;
    place-items: center;
    flex: 0 0 16px;
    color: var(--app-muted);
    transition: transform 120ms ease, color 120ms ease;
}

.sidebar-account.is-open .sidebar-account-chevron {
    color: var(--app-text);
    transform: rotate(180deg);
}

.sidebar-account-chevron svg,
.sidebar-menu-icon svg {
    width: 100%;
    height: 100%;
}

.sidebar-account-popover {
    position: absolute;
    right: 0;
    left: 0;
    bottom: calc(100% + 8px);
    display: grid;
    gap: 4px;
    padding: 12px;
    border: 1px solid var(--app-border);
    border-radius: 14px;
    background: var(--app-surface);
    box-shadow: 0 18px 40px rgba(17, 24, 39, 0.08);
    opacity: 0;
    transform: translateY(8px);
    pointer-events: none;
    transition: opacity 140ms ease, transform 140ms ease;
    z-index: 30;
}

.sidebar-account.is-open .sidebar-account-popover {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

.sidebar-account-popover-header {
    display: grid;
    gap: 4px;
    padding: 2px 2px 8px;
    margin-bottom: 4px;
    border-bottom: 1px solid var(--app-border);
}

.sidebar-account-eyebrow {
    color: var(--app-muted-soft);
    font-size: 10px;
    line-height: 14px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.sidebar-menu-form {
    margin: 0;
}

.sidebar-menu-link,
.sidebar-menu-button {
    width: 100%;
    min-height: 38px;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 0 10px;
    border: 0;
    border-radius: 10px;
    background: transparent;
    color: var(--app-text);
    font: inherit;
    font-size: 13px;
    line-height: 18px;
    font-weight: 500;
    cursor: pointer;
    text-align: left;
    transition: background-color 120ms ease, color 120ms ease;
}

.sidebar-menu-link:hover,
.sidebar-menu-button:hover {
    background: var(--app-surface-alt);
}

.sidebar-menu-icon {
    width: 16px;
    height: 16px;
    display: inline-grid;
    place-items: center;
    flex: 0 0 16px;
    color: inherit;
}

.sidebar-menu-button-danger {
    color: #c2415c;
}

.sidebar-menu-button-danger:hover {
    background: #fff4f6;
}

.sidebar-account-trigger:focus-visible,
.sidebar-menu-link:focus-visible,
.sidebar-menu-button:focus-visible,
.sidebar-nav-link:focus-visible,
.dashboard-action-button:focus-visible,
.dashboard-select-button:focus-visible {
    outline: 0;
    box-shadow: 0 0 0 4px rgba(125, 167, 227, 0.12);
}

.portal-main-shell {
    min-width: 0;
}

.portal-main {
    width: min(100%, 1800px);
    margin: 0 auto;
    padding: 24px;
}

.dashboard-shell {
    display: grid;
    gap: 16px;
}

.dashboard-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.dashboard-title-group {
    display: flex;
    align-items: center;
    gap: 10px;
}

.dashboard-title-icon {
    width: 28px;
    height: 28px;
    display: inline-grid;
    place-items: center;
    color: var(--app-muted);
}

.dashboard-title-icon svg {
    width: 100%;
    height: 100%;
}

.dashboard-title-group h1 {
    margin: 0;
    color: var(--app-text);
    font-size: 40px;
    line-height: 44px;
    font-weight: 700;
    letter-spacing: -0.03em;
}

.dashboard-actions {
    display: flex;
    align-items: center;
    gap: 8px;
}

.dashboard-action-form {
    margin: 0;
}

.dashboard-action-button,
.dashboard-select-button {
    min-height: 38px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 0 14px;
    border: 1px solid var(--app-border);
    border-radius: 12px;
    background: var(--app-surface);
    color: var(--app-text);
    font: inherit;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 120ms ease, border-color 120ms ease;
}

.dashboard-action-button:hover,
.dashboard-select-button:hover {
    background: var(--app-surface-alt);
    border-color: var(--app-border-strong);
}

.dashboard-action-button svg,
.dashboard-select-button svg {
    width: 16px;
    height: 16px;
    color: var(--app-muted);
}

.dashboard-select-button {
    position: relative;
    padding-right: 34px;
}

.dashboard-select-button svg {
    position: absolute;
    right: 10px;
    pointer-events: none;
}

.dashboard-range-select {
    min-height: 36px;
    padding: 0;
    border: 0;
    background: transparent;
    color: var(--app-text);
    font: inherit;
    font-size: 13px;
    font-weight: 500;
    appearance: none;
    cursor: pointer;
    outline: none;
}

.dashboard-range-select::-ms-expand {
    display: none;
}

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

.metric-card,
.chart-panel {
    border: 1px solid var(--app-border);
    border-radius: 16px;
    background: var(--app-surface);
    box-shadow: var(--app-shadow);
}

.metric-card {
    padding: 22px;
}

.metric-label {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--app-muted);
    font-size: 11px;
    line-height: 16px;
    font-weight: 500;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.metric-dot {
    width: 8px;
    height: 8px;
    border-radius: 999px;
    display: inline-block;
}

.metric-dot-success {
    background: #10b981;
}

.metric-dot-error {
    background: #f43f5e;
}

.metric-dot-warning {
    background: var(--app-accent);
}

.metric-value {
    margin: 18px 0 0;
    color: var(--app-text);
    font-size: 34px;
    line-height: 1.05;
    font-weight: 650;
    letter-spacing: -0.03em;
}

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

.chart-panel {
    min-height: 430px;
    display: grid;
    grid-template-rows: auto 1fr;
    overflow: hidden;
}

.chart-panel-header {
    padding: 22px;
    border-bottom: 1px solid var(--app-border);
}

.chart-panel-header h2 {
    margin: 0;
    color: var(--app-text);
    font-size: 18px;
    line-height: 24px;
    font-weight: 700;
    letter-spacing: -0.02em;
}

.chart-panel-header p {
    margin: 8px 0 0;
    color: var(--app-muted);
    font-size: 13px;
    line-height: 20px;
}

.chart-panel-body {
    display: grid;
    place-items: center;
    padding: 22px;
}

.empty-state {
    display: grid;
    justify-items: center;
    gap: 12px;
    text-align: center;
}

.empty-state-icon {
    width: 36px;
    height: 36px;
    display: inline-grid;
    place-items: center;
    border: 1px solid var(--app-border);
    border-radius: 999px;
    background: var(--app-surface-alt);
    color: var(--app-muted-soft);
}

.empty-state-icon svg {
    width: 18px;
    height: 18px;
}

.empty-state p {
    margin: 0;
    color: var(--app-muted-soft);
    font-size: 14px;
    line-height: 20px;
    font-weight: 500;
}

.chart-panel-body-traffic {
    display: block;
    padding: 18px;
}

.chart-panel-body-endpoints {
    display: block;
    padding: 18px;
}

.dashboard-traffic-canvas-wrap {
    width: 100%;
    height: 220px;
    border: 1px solid var(--app-border);
    border-radius: 12px;
    background: var(--app-surface-alt);
    padding: 8px 10px 2px;
}

.dashboard-endpoint-list {
    width: 100%;
    display: grid;
    gap: 8px;
}

.dashboard-endpoint-row {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 10px;
    padding: 10px 12px;
    border: 1px solid var(--app-border);
    border-radius: 10px;
    background: var(--app-surface-alt);
}

.dashboard-endpoint-main {
    min-width: 0;
    display: flex;
    align-items: center;
    gap: 8px;
}

.dashboard-endpoint-method {
    min-width: 38px;
    min-height: 20px;
    display: inline-grid;
    place-items: center;
    padding: 0 7px;
    border-radius: 999px;
    background: #e6effa;
    color: #2f5f9b;
    font-size: 10px;
    line-height: 12px;
    font-weight: 700;
    letter-spacing: 0.04em;
}

.dashboard-endpoint-path {
    color: var(--app-text);
    font-family: "Roboto Mono", "SFMono-Regular", Consolas, monospace;
    font-size: 12px;
    line-height: 16px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.dashboard-endpoint-meta {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    color: var(--app-muted);
    font-size: 11px;
    line-height: 14px;
    font-weight: 500;
    white-space: nowrap;
}

.api-keys-shell {
    gap: 14px;
}

.api-page-toolbar {
    align-items: flex-start;
}

.api-page-heading-copy {
    display: grid;
    gap: 4px;
}

.api-page-heading-copy p {
    margin: 0;
    color: var(--app-muted);
    font-size: 13px;
    line-height: 20px;
}

.api-page-meta {
    display: flex;
    align-items: center;
    gap: 8px;
}

.api-open-modal-button {
    width: auto;
}

.api-inline-pill,
.api-status-pill {
    width: fit-content;
    min-height: 24px;
    display: inline-flex;
    align-items: center;
    padding: 0 8px;
    border-radius: 999px;
    font-size: 11px;
    line-height: 14px;
    font-weight: 600;
    letter-spacing: 0.01em;
}

.api-inline-pill {
    background: #f3f4f6;
    color: var(--app-muted);
}

.api-status-pill-active {
    background: #eaf7ef;
    color: #137333;
}

.api-status-pill-revoked {
    background: #fff1f2;
    color: #be123c;
}

.api-key-reveal-card,
.api-plan-card,
.api-key-list-card {
    border: 1px solid var(--app-border);
    border-radius: 16px;
    background: var(--app-surface);
}

.api-key-reveal-card {
    display: grid;
    gap: 12px;
    padding: 16px;
    background: #f8fbff;
}

.api-card-eyebrow {
    color: var(--app-muted-soft);
    font-size: 11px;
    line-height: 16px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.api-key-reveal-copy {
    display: grid;
    gap: 4px;
}

.api-key-reveal-copy h2,
.api-card-header h2 {
    margin: 0;
    color: var(--app-text);
    font-size: 22px;
    line-height: 28px;
    font-weight: 600;
    letter-spacing: -0.02em;
}

.api-key-reveal-copy p,
.api-card-header p {
    margin: 0;
    color: var(--app-muted);
    font-size: 13px;
    line-height: 20px;
}

.api-key-reveal-row {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.api-key-reveal-value {
    flex: 1 1 560px;
    margin: 0;
    padding: 12px 14px;
    border: 1px solid var(--app-border);
    border-radius: 12px;
    background: #fbfbfc;
    color: var(--app-text);
    font-family: "Roboto Mono", "SFMono-Regular", Consolas, monospace;
    font-size: 12px;
    line-height: 18px;
    word-break: break-all;
}

.api-copy-button {
    width: auto;
    min-width: 112px;
}

.api-copy-button svg {
    width: 16px;
    height: 16px;
}

.api-card-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 10px;
    padding: 16px 16px 0;
}

.api-card-header-split {
    align-items: center;
}

.api-card-header-actions {
    display: flex;
    align-items: center;
    gap: 8px;
}

.api-plan-table-wrap,
.api-key-table-wrap {
    padding: 16px;
    overflow-x: auto;
}

.api-key-table-wrap[hidden],
.api-empty-state[hidden] {
    display: none !important;
}

.api-plan-table,
.api-key-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
}

.api-plan-table thead th,
.api-key-table thead th {
    padding: 10px 12px;
    border-bottom: 1px solid var(--app-border);
    color: var(--app-muted);
    font-size: 11px;
    line-height: 14px;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    text-align: left;
}

.api-plan-table tbody td,
.api-key-table tbody td {
    padding: 12px;
    border-bottom: 1px solid var(--app-border);
    color: var(--app-text);
    font-size: 12px;
    line-height: 18px;
    vertical-align: middle;
}

.api-plan-table tbody tr:last-child td,
.api-key-table tbody tr:last-child td {
    border-bottom: 0;
}

.api-key-cell {
    display: grid;
    gap: 4px;
}

.api-key-cell strong {
    color: var(--app-text);
    font-size: 13px;
    line-height: 18px;
    font-weight: 600;
    letter-spacing: 0.01em;
}

.api-key-cell span,
.api-key-muted {
    color: var(--app-muted);
    font-size: 11px;
    line-height: 15px;
}

.api-key-table-actions {
    width: 116px;
    text-align: right;
}

.api-key-table-actions form {
    display: flex;
    justify-content: flex-end;
}

.table-action-stack {
    display: inline-flex;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
}

.api-toggle-revoked-button {
    width: 36px;
    min-height: 36px;
    min-width: 36px;
    padding: 0;
    gap: 0;
}

.api-toggle-revoked-button svg {
    color: var(--app-muted);
}

.api-toggle-revoked-button [data-toggle-icon="hide"] {
    display: none;
}

.api-toggle-revoked-button[data-state="visible"] [data-toggle-icon="show"] {
    display: none;
}

.api-toggle-revoked-button[data-state="visible"] [data-toggle-icon="hide"] {
    display: block;
}

.api-table-link {
    padding: 0;
    border: 0;
    background: transparent;
    color: var(--app-text);
    font: inherit;
    font-size: 12px;
    line-height: 16px;
    font-weight: 500;
    cursor: pointer;
}

.api-table-link-danger {
    color: #c2415c;
}

.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;
}

.api-table-link:hover {
    text-decoration: underline;
}

.api-empty-state {
    display: grid;
    justify-items: center;
    gap: 12px;
    padding: 32px 16px;
    text-align: center;
}

.api-empty-state p {
    margin: 0;
    max-width: 320px;
    color: var(--app-muted);
    font-size: 13px;
    line-height: 20px;
}

.api-empty-state-tight {
    padding-top: 24px;
    padding-bottom: 24px;
}

.app-page .field-label {
    color: var(--app-text);
}

.app-page .text-field {
    border-color: var(--app-border);
    background: var(--app-surface);
    color: var(--app-text);
}

.app-page .text-field:hover {
    border-color: var(--app-border-strong);
}

.app-page .text-field::placeholder {
    color: var(--app-muted-soft);
}

.app-page .text-field:focus {
    border-color: var(--app-accent);
    box-shadow: 0 0 0 4px rgba(125, 167, 227, 0.1);
}

.text-area-field {
    min-height: 96px;
    padding: 14px 16px;
    resize: vertical;
}

.api-form-wrap {
    padding: 16px;
}

.admin-shell {
    gap: 16px;
}

.admin-tabs {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px;
    border: 1px solid var(--app-border);
    border-radius: 12px;
    background: var(--app-surface);
}

.admin-tab-button {
    min-height: 36px;
    padding: 0 14px;
    border: 0;
    border-radius: 10px;
    background: transparent;
    color: var(--app-muted);
    font: inherit;
    font-size: 13px;
    line-height: 18px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 120ms ease, color 120ms ease;
}

.admin-tab-button:hover {
    background: var(--app-surface-alt);
    color: var(--app-text);
}

.admin-tab-button.is-active {
    background: #eef4ff;
    color: var(--app-text);
}

.admin-tab-panel {
    display: grid;
    gap: 16px;
}

.admin-tab-panel[hidden] {
    display: none !important;
}

.admin-page-toolbar {
    align-items: center;
}

.admin-toolbar-summary {
    min-width: 190px;
    display: grid;
    gap: 4px;
    padding: 12px 14px;
    border: 1px solid var(--app-border);
    border-radius: 12px;
    background: var(--app-surface);
    text-align: left;
}

.admin-toolbar-label {
    color: var(--app-muted-soft);
    font-size: 11px;
    line-height: 16px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.admin-toolbar-summary strong {
    color: var(--app-text);
    font-size: 15px;
    line-height: 20px;
    font-weight: 600;
}

.admin-toolbar-summary span:last-child {
    color: var(--app-muted);
    font-size: 12px;
    line-height: 16px;
}

.admin-overview-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
    gap: 12px;
}

.admin-overview-card {
    display: grid;
    gap: 6px;
    padding: 14px;
    border: 1px solid var(--app-border);
    border-radius: 12px;
    background: var(--app-surface);
}

.admin-overview-label {
    color: var(--app-muted);
    font-size: 12px;
    line-height: 16px;
    font-weight: 500;
}

.admin-overview-value {
    color: var(--app-text);
    font-size: 28px;
    line-height: 32px;
    font-weight: 600;
    letter-spacing: -0.03em;
}

.admin-overview-note {
    color: var(--app-muted);
    font-size: 12px;
    line-height: 16px;
}

.admin-workspace-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
    gap: 16px;
    align-items: start;
}

.admin-content-stack,
.admin-records-stack {
    display: grid;
    gap: 16px;
}

.admin-feature-card,
.admin-record-card {
    overflow: hidden;
}

.admin-feature-card-full {
    width: 100%;
}

.admin-feature-header,
.admin-record-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 10px;
    padding: 16px 16px 0;
}

.admin-feature-header-split {
    align-items: center;
}

.admin-feature-copy {
    display: grid;
    gap: 6px;
}

.admin-feature-copy h2 {
    margin: 0;
    color: var(--app-text);
    font-size: 22px;
    line-height: 28px;
    font-weight: 600;
    letter-spacing: -0.02em;
}

.admin-feature-copy p {
    margin: 0;
    color: var(--app-muted);
    font-size: 13px;
    line-height: 20px;
}

.admin-card-badge,
.admin-record-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 28px;
    padding: 0 10px;
    border-radius: 999px;
    background: var(--app-surface-alt);
    color: var(--app-text);
    font-size: 11px;
    line-height: 14px;
    font-weight: 600;
}

.admin-inline-note {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    padding: 12px 16px 0;
}

.admin-inline-note span {
    display: inline-flex;
    align-items: center;
    min-height: 26px;
    padding: 0 10px;
    border-radius: 999px;
    background: #eef4ff;
    color: var(--app-muted);
    font-size: 11px;
    line-height: 14px;
    font-weight: 500;
}

.admin-access-form {
    display: grid;
    gap: 14px;
}

.admin-form-section {
    display: grid;
    gap: 12px;
    padding: 14px;
    border: 1px solid var(--app-border);
    border-radius: 12px;
    background: #fbfdff;
}

.admin-section-header {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 8px;
    align-items: start;
}

.admin-section-step {
    width: 22px;
    height: 22px;
    display: inline-grid;
    place-items: center;
    border-radius: 999px;
    background: #e6effd;
    color: #476692;
    font-size: 10px;
    line-height: 12px;
    font-weight: 700;
}

.admin-section-header h3 {
    margin: 0 0 4px;
    color: var(--app-text);
    font-size: 15px;
    line-height: 20px;
    font-weight: 600;
}

.admin-section-header p {
    margin: 0;
    color: var(--app-muted);
    font-size: 12px;
    line-height: 17px;
}

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

.admin-form-grid-single {
    grid-template-columns: 1fr;
}

.admin-form-grid-compact {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

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

.field-group {
    display: grid;
    gap: 6px;
}

.field-help {
    color: var(--app-muted);
    font-size: 11px;
    line-height: 15px;
}

.user-search {
    position: relative;
}

.user-search-results {
    position: absolute;
    top: calc(100% + 6px);
    left: 0;
    right: 0;
    z-index: 20;
    display: grid;
    gap: 3px;
    padding: 6px;
    border: 1px solid var(--app-border);
    border-radius: 12px;
    background: var(--app-surface);
    box-shadow: 0 16px 32px rgba(17, 24, 39, 0.08);
}

.user-search-results[hidden] {
    display: none;
}

.user-search.is-open .text-field {
    border-color: var(--app-accent);
    box-shadow: 0 0 0 4px rgba(125, 167, 227, 0.08);
}

.user-search-result {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 8px 10px;
    border: 0;
    border-radius: 10px;
    background: transparent;
    color: var(--app-text);
    cursor: pointer;
    text-align: left;
    transition: background-color 120ms ease;
}

.user-search-result:hover {
    background: var(--app-surface-alt);
}

.user-search-result-copy {
    min-width: 0;
    display: grid;
    gap: 2px;
}

.user-search-result-copy strong,
.user-search-empty {
    color: var(--app-text);
    font-size: 12px;
    line-height: 16px;
    font-weight: 500;
}

.user-search-result-copy span {
    color: var(--app-muted);
    font-size: 11px;
    line-height: 15px;
}

.user-search-result-status {
    flex: 0 0 auto;
    color: var(--app-muted-soft);
    font-size: 11px;
    line-height: 14px;
    font-weight: 600;
}

.user-search-empty {
    padding: 8px 10px;
    color: var(--app-muted);
}

.field-group-wide {
    grid-column: 1 / -1;
}

.field-group .field-label {
    margin-bottom: 0;
}

.field-group .text-field[readonly] {
    background: var(--app-surface-alt);
    color: var(--app-muted);
    cursor: not-allowed;
}

.admin-plan-preview {
    display: grid;
    gap: 12px;
    padding: 12px;
    border: 1px solid var(--app-border);
    border-radius: 12px;
    background: var(--app-surface);
}

.admin-plan-preview-header {
    display: grid;
    gap: 6px;
}

.admin-plan-preview-header strong {
    color: var(--app-text);
    font-size: 15px;
    line-height: 20px;
    font-weight: 600;
}

.admin-plan-preview-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
}

.admin-plan-preview-item {
    display: grid;
    gap: 4px;
    padding: 10px 12px;
    border-radius: 10px;
    background: #f8fbff;
}

.admin-plan-preview-item span {
    color: var(--app-muted);
    font-size: 11px;
    line-height: 14px;
    font-weight: 500;
}

.admin-plan-preview-item strong {
    color: var(--app-text);
    font-size: 12px;
    line-height: 17px;
    font-weight: 600;
    word-break: break-word;
}

.admin-plan-preview-item-wide {
    grid-column: 1 / -1;
}

.admin-access-actions {
    justify-content: space-between;
    align-items: center;
}

.admin-form-footer {
    margin-top: -4px;
}

.admin-form-footnote {
    color: var(--app-muted);
    font-size: 12px;
    line-height: 16px;
}

.admin-table-wrap {
    padding-top: 12px;
}

.portal-modal {
    position: fixed;
    inset: 0;
    display: grid;
    place-items: center;
    padding: 24px;
    opacity: 0;
    pointer-events: none;
    transition: opacity 140ms ease;
    z-index: 80;
}

.portal-modal.is-open {
    opacity: 1;
    pointer-events: auto;
}

.portal-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(17, 24, 39, 0.28);
}

.portal-modal-dialog {
    position: relative;
    width: min(560px, calc(100vw - 32px));
    border: 1px solid var(--app-border);
    border-radius: 28px;
    background: var(--app-surface);
    box-shadow: 0 24px 60px rgba(17, 24, 39, 0.12);
}

.portal-modal-body {
    display: grid;
    gap: 20px;
    padding: 28px;
}

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

.portal-modal-copy {
    margin: -8px 0 0;
    color: var(--app-muted);
    font-size: 15px;
    line-height: 22px;
}

.portal-modal-body h2 {
    margin: 0;
    color: var(--app-text);
    font-size: 30px;
    line-height: 36px;
    font-weight: 600;
    letter-spacing: -0.02em;
}

.portal-modal-close {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 40px;
    height: 40px;
    border: 0;
    border-radius: 999px;
    background: transparent;
    color: var(--app-muted);
    cursor: pointer;
    display: inline-grid;
    place-items: center;
    transition: background-color 120ms ease, color 120ms ease;
}

.portal-modal-close:hover {
    background: var(--app-surface-alt);
    color: var(--app-text);
}

.portal-modal-close svg {
    width: 18px;
    height: 18px;
}

.portal-modal-form .text-field {
    margin-top: 8px;
}

.portal-modal-actions {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
}

.api-modal-field {
    display: grid;
    gap: 8px;
}

.api-modal-field-surface {
    min-height: 56px;
    display: flex;
    align-items: center;
    padding: 0 16px;
    border: 1px solid var(--app-border);
    border-radius: 16px;
    background: #f8fbff;
    color: var(--app-text);
    font-size: 14px;
    line-height: 20px;
    font-weight: 500;
}

.api-modal-copy-row {
    display: grid;
    gap: 12px;
}

@media (max-width: 1080px) {
    .auth-nav {
        display: none;
    }

    .auth-topbar-inner {
        width: min(720px, calc(100vw - 24px));
    }

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

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

    .docs-sidebar,
    .docs-toc-card,
    .docs-reference-side {
        position: static;
    }

    .docs-toc {
        display: none;
    }

    .docs-code-grid,
    .docs-rule-grid,
    .docs-fields-grid,
    .docs-fields-grid-wide {
        grid-template-columns: 1fr;
    }

    .portal-sidebar {
        position: static;
        height: auto;
        border-right: 0;
        border-bottom: 1px solid var(--app-border);
        grid-template-rows: auto auto auto auto;
    }

    .metric-grid,
    .chart-grid {
        grid-template-columns: 1fr;
    }

    .dashboard-toolbar {
        align-items: stretch;
        flex-direction: column;
    }

    .admin-overview-grid,
    .admin-workspace-grid {
        grid-template-columns: 1fr;
    }

    .admin-tabs {
        width: 100%;
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .api-card-header,
    .api-key-reveal-row,
    .admin-feature-header,
    .admin-record-header,
    .admin-access-actions {
        align-items: stretch;
        flex-direction: column;
    }

    .admin-form-grid,
    .admin-form-grid-compact {
        grid-template-columns: 1fr;
    }

    .admin-access-grid {
        grid-template-columns: 1fr;
    }

    .admin-plan-preview-grid {
        grid-template-columns: 1fr;
    }

    .api-copy-button {
        width: 100%;
    }

    .portal-modal-actions {
        flex-direction: column-reverse;
    }

    .docs-example-code {
        max-height: none;
    }
}

@media (max-width: 720px) {
    .flash-stack {
        right: 12px;
        bottom: 12px;
        width: calc(100vw - 24px);
    }

    .auth-topbar-inner {
        width: calc(100vw - 24px);
    }

    .docs-topbar-inner,
    .docs-shell {
        width: calc(100vw - 24px);
    }

    .docs-topbar-inner {
        display: flex;
        min-height: auto;
        padding: 14px 0;
        flex-wrap: wrap;
    }

    .docs-main-nav {
        order: 3;
        width: 100%;
        gap: 12px;
        overflow-x: auto;
        padding-bottom: 2px;
    }

    .docs-shell {
        padding: 24px 0 40px;
    }

    .auth-shell {
        width: calc(100vw - 24px);
        min-height: calc(100vh - 64px);
        padding: 24px 0 32px;
    }

    .brand-logo-full {
        width: 156px;
    }

    .auth-card {
        width: 100%;
        padding: 24px;
    }

    .verify-email-row {
        align-items: stretch;
        flex-direction: column;
    }

    .otp-group {
        gap: 8px;
    }

    .otp-digit {
        min-height: 52px;
        font-size: 22px;
    }

    .auth-card-header h2 {
        font-size: 32px;
        line-height: 40px;
    }

    .portal-sidebar,
    .portal-main {
        padding: 16px 12px;
    }

    .admin-tabs {
        grid-template-columns: 1fr;
    }

    .dashboard-title-group h1 {
        font-size: 32px;
        line-height: 36px;
    }

    .docs-page-header h1 {
        font-size: 30px;
        line-height: 34px;
    }

    .docs-page-intro {
        font-size: 14px;
        line-height: 21px;
    }

    .docs-section-heading h2 {
        font-size: 22px;
        line-height: 28px;
    }

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

    .docs-path-bar {
        align-items: flex-start;
        flex-direction: column;
    }

    .docs-reference-block h3 {
        font-size: 18px;
        line-height: 24px;
    }

    .dashboard-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .dashboard-action-button,
    .dashboard-select-button {
        width: 100%;
    }

    .api-key-reveal-copy h2,
    .api-card-header h2,
    .admin-feature-copy h2 {
        font-size: 20px;
        line-height: 26px;
    }

    .api-plan-table-wrap,
    .api-key-table-wrap {
        padding: 14px 12px;
    }

    .portal-modal {
        padding: 16px;
    }

    .portal-modal-dialog {
        width: min(100%, calc(100vw - 24px));
        border-radius: 24px;
    }

    .portal-modal-body {
        padding: 24px;
    }

    .portal-modal-body h2 {
        font-size: 22px;
        line-height: 28px;
    }

    .metric-card,
    .chart-panel-header,
    .chart-panel-body {
        padding: 18px;
    }

    .metric-value {
        font-size: 30px;
    }

    .chart-panel {
        min-height: 360px;
    }

    .admin-overview-value {
        font-size: 24px;
        line-height: 30px;
    }
}
