@font-face {
    font-family: Manrope;
    font-style: normal;
    font-weight: 400 800;
    font-display: swap;
    src: url('/fonts/manrope-latin.woff2') format('woff2');
}

:root {
    color-scheme: light;
    --bg: #f7f9fc;
    --surface: #ffffff;
    --soft: #f0f4fa;
    --text: #14243a;
    --muted: #596b82;
    --line: #dce4ee;
    --accent: #285fc5;
    --accent-hover: #1e4ca2;
    --on-accent: #ffffff;
    --error: #a33132;
    --error-bg: #fff1f0;
    --success-bg: #edf4ff;
    --warning: #8a6015;
    --focus: #3272df;
    --code: #f5f7fb;
    --radius: .7rem;
}

:root[data-theme=dark] {
    color-scheme: dark;
    --bg: #101722;
    --surface: #172131;
    --soft: #202d40;
    --text: #eff4fc;
    --muted: #aebcd1;
    --line: #33425a;
    --accent: #9dbefa;
    --accent-hover: #c3d7fb;
    --on-accent: #102341;
    --error: #ffb8b3;
    --error-bg: #41262c;
    --success-bg: #1e334f;
    --warning: #e6c18a;
    --focus: #9dbefa;
    --code: #141e2c;
}

* {
    box-sizing:border-box;
}

html {
    scroll-behavior:smooth;
    scroll-padding-top:9rem;
}

body {
    margin:0;
    background:var(--bg);
    color:var(--text);
    font:15px/1.65 Manrope,'Segoe UI',Arial,sans-serif;
    -webkit-font-smoothing:antialiased;
}

a {
    color:var(--accent);
    text-underline-offset:.22em;
}

a:hover {
    text-decoration-thickness:2px;
}

button,input,select,textarea {
    font:inherit;
}

button,a,input,select,textarea,summary {
    touch-action:manipulation;
}

button {
    cursor:pointer;
}

a,button,input,select,textarea,summary {
    transition:background-color .16s,color .16s,border-color .16s;
}

button:disabled {
    cursor:wait;
    opacity:.65;
}

button:active,.button:active {
    transform:translateY(1px);
}

:focus-visible {
    outline:3px solid var(--focus);
    outline-offset:4px;
}

h1,h2,h3,p {
    margin:0;
}

h1,h2,h3 {
    text-wrap:balance;
    line-height:1.16;
}

h1 {
    font-size:clamp(2rem,3.7vw,3rem);
    font-weight:650;
    letter-spacing:-.035em;
}

h2 {
    font-size:1.45rem;
    letter-spacing:-.025em;
    font-weight:650;
}

h3 {
    font-size:1.08rem;
    font-weight:650;
}

p {
    max-width:68ch;
}

p+p {
    margin-top:1rem;
}

code,pre {
    font-family:'Cascadia Code',Consolas,monospace;
    font-size:.86em;
}

code {
    overflow-wrap:anywhere;
}

pre {
    margin:0;
    white-space:pre;
    overflow:auto;
    line-height:1.8;
    tab-size:2;
}

pre code {
    font-size:inherit;
    overflow-wrap:normal;
}

strong {
    font-weight:650;
}

[hidden] {
    display:none!important;
}

.muted {
    color:var(--muted);
}

.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;
}

.skip-link {
    position:fixed;
    top:-100px;
    left:1rem;
    padding:.7rem 1rem;
    background:var(--surface);
    z-index:10;
}

.skip-link:focus {
    top:1rem;
}

.site-header {
    background:var(--surface);
    border-bottom:1px solid var(--line);
}

.header-inner {
    max-width:1260px;
    margin:auto;
    min-height:76px;
    padding:1rem 2rem;
    display:flex;
    gap:1.5rem;
    align-items:center;
}

.brand {
    display:inline-flex;
    gap:.6rem;
    align-items:center;
    font-size:1.18rem;
    font-weight:750;
    white-space:nowrap;
    color:var(--text);
    text-decoration:none;
    letter-spacing:-.035em;
}

.brand-mark {
    display:grid;
    place-items:center;
    width:34px;
    height:36px;
    background:var(--accent);
    color:var(--on-accent);
    border-radius:8px;
    font-size:1.55rem;
    font-weight:650;
}

.brand-light {
    font-weight:400;
}

.workspace-label {
    padding-left:1.5rem;
    border-left:1px solid var(--line);
    color:var(--muted);
    font-size:.88rem;
}

.header-actions {
    margin-left:auto;
    display:flex;
    align-items:center;
    gap:1.5rem;
}

.header-actions form {
    margin:0;
}

.header-link {
    font-size:.9rem;
    text-decoration:none;
}

.theme-select {
    border:0;
    background:transparent;
    color:var(--muted);
    font-size:.78rem;
    padding:.45rem;
    max-width:9rem;
}

.workspace-nav {
    max-width:1260px;
    margin:auto;
    padding:0 2rem;
    display:flex;
    gap:2rem;
    overflow-x:auto;
    scrollbar-width:thin;
}

.workspace-nav a {
    padding:.8rem 0 1rem;
    font-size:.9rem;
    white-space:nowrap;
    color:var(--muted);
    text-decoration:none;
    border-bottom:3px solid transparent;
}

.workspace-nav a:hover {
    color:var(--text);
}

.workspace-nav a.is-active {
    color:var(--accent);
    border-color:var(--accent);
    font-weight:650;
}

.main-content {
    max-width:1260px;
    margin:auto;
    padding:3rem 2rem 5rem;
    min-height:calc(100dvh - 230px);
}

.site-footer {
    max-width:1260px;
    margin:auto;
    padding:1.8rem 2rem 2rem;
    border-top:1px solid var(--line);
    display:flex;
    justify-content:space-between;
    gap:1.5rem;
    font-size:.78rem;
}

.site-footer>div {
    display:flex;
    flex-wrap:wrap;
    gap:1.5rem;
}

.site-footer a {
    text-decoration:none;
    color:var(--muted);
}

.button {
    display:inline-flex;
    align-items:center;
    justify-content:center;
    gap:.8rem;
    min-height:46px;
    padding:.65rem 1.15rem;
    background:var(--accent);
    color:var(--on-accent);
    border:1px solid var(--accent);
    border-radius:6px;
    font-weight:600;
    font-size:.9rem;
    text-decoration:none;
    line-height:1.35;
}

.button:hover {
    background:var(--accent-hover);
    border-color:var(--accent-hover);
    text-decoration:none;
}

.button-secondary {
    background:transparent;
    color:var(--accent);
    border-color:var(--line);
}

.button-secondary:hover {
    background:var(--soft);
    border-color:var(--accent);
}

.button-small {
    min-height:38px;
    padding:.5rem .9rem;
    font-size:.82rem;
}

.button-danger {
    color:var(--error);
    background:transparent;
    border-color:var(--error);
}

.button-danger:hover {
    background:var(--error-bg);
    color:var(--error);
}

.button-link {
    background:none;
    border:0;
    padding:.5rem 0;
    color:var(--accent);
    font-size:.9rem;
    text-decoration:underline;
    text-underline-offset:.25em;
}

.actions {
    display:flex;
    flex-wrap:wrap;
    align-items:center;
    gap:1rem;
}

.page-heading {
    display:flex;
    justify-content:space-between;
    align-items:flex-start;
    gap:2rem;
    margin-bottom:2.6rem;
}

.page-heading p {
    margin-top:.75rem;
    color:var(--muted);
    font-size:.96rem;
}

.section-label {
    display:block;
    color:var(--accent);
    font-size:.76rem;
    letter-spacing:.1em;
    text-transform:uppercase;
    font-weight:650;
    margin-bottom:1.2rem;
}

.section-heading {
    display:flex;
    justify-content:space-between;
    align-items:center;
    gap:1.5rem;
    margin:2.5rem 0 1.1rem;
}

.section-heading p {
    font-size:.85rem;
    color:var(--muted);
    margin-top:.4rem;
}

.metric-strip {
    display:grid;
    grid-template-columns:repeat(4,1fr);
    border-top:1px solid var(--line);
    border-bottom:1px solid var(--line);
    margin-bottom:2rem;
}

.metric {
    padding:1.5rem 1.3rem 1.6rem 0;
}

.metric+.metric {
    padding-left:1.5rem;
    border-left:1px solid var(--line);
}

.metric dt {
    font-size:.8rem;
    color:var(--muted);
}

.metric dd {
    margin:.5rem 0 0;
    font-size:2rem;
    letter-spacing:-.04em;
    line-height:1.2;
    font-variant-numeric:tabular-nums;
}

.metric dd.date {
    font-size:1.35rem;
    margin-top:.85rem;
}

.metric small {
    display:block;
    margin-top:.45rem;
    color:var(--muted);
    font-size:.75rem;
}

.surface {
    padding:1.8rem;
    background:var(--surface);
    border-radius:var(--radius);
}

.split {
    display:grid;
    grid-template-columns:minmax(0,1.4fr) minmax(260px,.7fr);
    gap:2.5rem;
    align-items:start;
}

.split-even {
    grid-template-columns:1fr 1fr;
}

.surface h2 {
    margin-bottom:1rem;
}

.surface p {
    color:var(--muted);
    font-size:.92rem;
}

.surface .actions {
    margin-top:1.3rem;
}

.note-panel {
    border-left:2px solid var(--accent);
    padding:.2rem 0 .2rem 1.3rem;
}

.note-panel h3 {
    margin-bottom:.6rem;
}

.note-panel p {
    color:var(--muted);
    font-size:.87rem;
}

.notice {
    padding:1rem 1.2rem;
    border-radius:6px;
    margin-bottom:1.5rem;
    font-size:.9rem;
    border-left:3px solid currentColor;
}

.notice.success {
    color:var(--accent);
    background:var(--success-bg);
}

.notice.error {
    color:var(--error);
    background:var(--error-bg);
}

.notice ul {
    margin:0;
    padding-left:1.3rem;
}

.table-wrap {
    width:100%;
    overflow:auto;
    border:1px solid var(--line);
    border-radius:8px;
    background:var(--surface);
}

table {
    width:100%;
    border-collapse:collapse;
    white-space:nowrap;
    text-align:left;
    font-size:.84rem;
}

th {
    padding:.85rem 1.2rem;
    background:var(--soft);
    font-weight:600;
    color:var(--muted);
    font-size:.76rem;
    letter-spacing:.015em;
}

td {
    padding:1.1rem 1.2rem;
    border-top:1px solid var(--line);
    vertical-align:top;
    font-variant-numeric:tabular-nums;
}

td strong,td small {
    display:block;
}

td small {
    color:var(--muted);
    margin-top:.2rem;
    font-size:.73rem;
}

tbody tr:hover {
    background:var(--soft);
}

.number {
    text-align:right;
}

.state {
    font-size:.78rem;
    font-weight:600;
}

.state-submitted,.state-active {
    color:var(--accent);
}

.state-rejected,.state-revoked,.state-suspended {
    color:var(--error);
}

.state-pending,.state-uncertain,.state-expired {
    color:var(--warning);
}

.table-tools {
    display:flex;
    gap:1rem;
    justify-content:space-between;
    align-items:center;
    margin-bottom:1rem;
}

.table-tools input {
    max-width:340px;
}

.segmented {
    display:flex;
    gap:.35rem;
}

.segmented a {
    padding:.35rem .8rem;
    border-radius:4px;
    text-decoration:none;
    color:var(--muted);
    font-size:.82rem;
}

.segmented a.is-active {
    background:var(--soft);
    color:var(--text);
    font-weight:600;
}

.empty-state {
    padding:3.5rem 2rem;
    border:1px dashed var(--line);
    border-radius:8px;
    text-align:center;
}

.empty-state h2 {
    margin-bottom:.75rem;
}

.empty-state p {
    color:var(--muted);
    margin:.75rem auto 1.4rem;
    font-size:.93rem;
}

.empty-state .actions {
    justify-content:center;
}

.error-page {
    border:0;
    max-width:740px;
    margin:4rem auto;
}

.error-page h1 {
    margin:1rem 0;
}

.error-page>.button {
    margin:0 1rem 1rem 0;
}

.form-grid {
    display:grid;
    grid-template-columns:1fr 1fr;
    gap:1.2rem;
}

.field {
    display:flex;
    flex-direction:column;
    gap:.4rem;
    margin-bottom:1.15rem;
}

.field label {
    font-size:.82rem;
    font-weight:600;
}

.field small {
    font-size:.75rem;
    color:var(--muted);
}

input,select,textarea {
    max-width:100%;
    width:100%;
    padding:.7rem .85rem;
    border:1px solid var(--line);
    border-radius:5px;
    color:var(--text);
    background:var(--surface);
    font-size:.88rem;
    line-height:1.35;
}

input:hover,textarea:hover,select:hover {
    border-color:var(--muted);
}

input:focus,textarea:focus,select:focus {
    border-color:var(--accent);
}

textarea {
    resize:vertical;
    min-height:90px;
}

.field-validation-error {
    font-size:.78rem;
    color:var(--error);
}

.input-validation-error {
    border-color:var(--error);
}

.inline-form {
    display:flex;
    align-items:end;
    gap:.6rem;
}

.inline-form .field {
    margin:0;
}

.inline-form input {
    min-width:190px;
}

details {
    white-space:normal;
}

summary {
    cursor:pointer;
    color:var(--accent);
    font-size:.82rem;
}

details[open]>summary {
    margin-bottom:.8rem;
}

.revoke-confirm {
    max-width:280px;
}

.revoke-confirm p {
    white-space:normal;
    font-size:.8rem;
    color:var(--muted);
    margin-bottom:.8rem;
}

.key-token {
    background:var(--code);
    padding:1rem;
    border:1px solid var(--line);
    border-radius:5px;
    overflow-wrap:anywhere;
    font-family:Consolas,monospace;
    font-size:.88rem;
    margin:1rem 0;
}

.definition-list {
    margin:0;
}

.definition-list>div {
    display:grid;
    grid-template-columns:150px 1fr;
    gap:1rem;
    padding:.9rem 0;
    border-bottom:1px solid var(--line);
}

.definition-list dt {
    font-size:.82rem;
    color:var(--muted);
}

.definition-list dd {
    margin:0;
    font-size:.9rem;
    overflow-wrap:anywhere;
}

.pagination {
    display:flex;
    justify-content:space-between;
    align-items:center;
    gap:1rem;
    margin-top:1.5rem;
    font-size:.85rem;
}

.copy-status {
    position:fixed;
    bottom:1.5rem;
    left:50%;
    transform:translate(-50%,1rem);
    background:var(--text);
    color:var(--bg);
    padding:.7rem 1.2rem;
    border-radius:6px;
    font-size:.85rem;
    opacity:0;
    pointer-events:none;
    transition:opacity .15s,transform .15s;
    z-index:20;
    max-width:90vw;
}

.copy-status.visible {
    opacity:1;
    transform:translate(-50%,0);
}

.auth-grid {
    display:grid;
    grid-template-columns:1fr 1fr;
    gap:6rem;
    align-items:center;
    max-width:1030px;
    margin:2.5rem auto;
}

.auth-copy h1 {
    font-size:clamp(2.5rem,4.6vw,4rem);
    margin-bottom:1.5rem;
}

.auth-copy p {
    color:var(--muted);
    font-size:1rem;
}

.auth-form {
    background:var(--surface);
    border-radius:10px;
    padding:2.3rem;
}

.auth-form h2 {
    margin-bottom:.5rem;
}

.auth-form>.muted {
    font-size:.88rem;
    margin-bottom:1.8rem;
}

.auth-form .button {
    width:100%;
    margin-top:.5rem;
}

.auth-form .form-footer {
    text-align:center;
    margin-top:1.3rem;
    font-size:.82rem;
}

.plain-list {
    padding:0;
    list-style:none;
    margin:2rem 0 0;
}

.plain-list li {
    padding:.8rem 0;
    border-top:1px solid var(--line);
    font-size:.9rem;
    display:flex;
    gap:.9rem;
}

.plain-list li span {
    color:var(--accent);
    font-variant-numeric:tabular-nums;
}

.hero {
    display:grid;
    grid-template-columns:1.04fr .96fr;
    gap:4rem;
    align-items:center;
    padding:2.7rem 0 4rem;
}

.hero h1 {
    font-size:clamp(3.2rem,5.8vw,5rem);
    line-height:1.04;
    max-width:11ch;
}

.hero h1 em {
    font-style:normal;
    color:var(--accent);
}

.hero p {
    margin:1.7rem 0 2rem;
    max-width:42ch;
    font-size:1.02rem;
    color:var(--muted);
}

.hero .hero-footnote {
    font-size:.78rem;
    margin:1.2rem 0 0;
}

.api-preview {
    background:var(--surface);
    border:1px solid var(--line);
    border-radius:10px;
    overflow:hidden;
    box-shadow:0 16px 45px -30px #194d3e44;
    transform:rotate(-1deg);
}

.preview-bar {
    display:flex;
    justify-content:space-between;
    align-items:center;
    padding:1rem 1.3rem;
    background:var(--soft);
    font-size:.78rem;
    border-bottom:1px solid var(--line);
}

.request-method {
    color:var(--accent);
    font-weight:700;
}

.api-preview pre {
    padding:1.4rem;
    font-size:.75rem;
    color:var(--muted);
}

.preview-result {
    border-top:1px solid var(--line);
    padding:1.2rem 1.4rem;
    display:flex;
    justify-content:space-between;
    font-size:.8rem;
    background:var(--success-bg);
    color:var(--accent);
}

.flow-strip {
    display:grid;
    grid-template-columns:repeat(3,1fr);
    gap:2rem;
    border-top:1px solid var(--line);
    border-bottom:1px solid var(--line);
    padding:2.2rem 0;
    margin:0 0 4.5rem;
}

.flow-step {
    display:grid;
    grid-template-columns:2rem 1fr;
    gap:1rem;
}

.flow-step>span {
    font-size:.8rem;
    color:var(--muted);
    padding-top:.2rem;
}

.flow-step p {
    font-size:.85rem;
    color:var(--muted);
    margin-top:.7rem;
}

.editorial-section {
    display:grid;
    grid-template-columns:.9fr 1.1fr;
    gap:5rem;
    padding:1rem 0 4rem;
}

.editorial-section h2 {
    font-size:2.2rem;
    max-width:17ch;
    margin-bottom:1.2rem;
}

.editorial-section p {
    color:var(--muted);
}

.feature-row {
    padding:1.5rem 0;
    border-top:1px solid var(--line);
}

.feature-row:first-child {
    padding-top:0;
    border:0;
}

.feature-row p {
    font-size:.9rem;
    margin-top:.5rem;
}

.callout {
    display:flex;
    justify-content:space-between;
    align-items:center;
    gap:2rem;
    padding:2.5rem;
    background:var(--soft);
    border-radius:8px;
}

.callout h2 {
    margin-bottom:.7rem;
}

.callout p {
    color:var(--muted);
    font-size:.9rem;
}

.docs-grid {
    display:grid;
    grid-template-columns:200px minmax(0,1fr);
    gap:3.5rem;
}

.docs-nav {
    position:sticky;
    top:2rem;
    align-self:start;
    display:flex;
    flex-direction:column;
    gap:.5rem;
    font-size:.86rem;
}

.docs-nav a {
    padding:.4rem 0;
    text-decoration:none;
    color:var(--muted);
}

.docs-nav a:hover {
    color:var(--accent);
}

.docs-content section {
    margin-bottom:3.5rem;
    scroll-margin-top:2rem;
}

.docs-content h2 {
    margin-bottom:1rem;
}

.docs-content h3 {
    margin:1.5rem 0 .7rem;
}

.docs-content p,.docs-content li {
    font-size:.92rem;
    color:var(--muted);
}

.docs-content li {
    margin-bottom:.5rem;
}

.code-block {
    background:var(--code);
    border:1px solid var(--line);
    border-radius:7px;
    margin:1.2rem 0;
    overflow:hidden;
}

.code-header {
    display:flex;
    justify-content:space-between;
    padding:.5rem 1rem;
    border-bottom:1px solid var(--line);
    font-size:.76rem;
    color:var(--muted);
    align-items:center;
}

.code-block pre {
    padding:1.2rem;
    font-size:.78rem;
}

.code-header button {
    font-size:.75rem;
}

.prose {
    max-width:780px;
}

.prose h2 {
    margin:2.5rem 0 1rem;
}

.prose p,.prose li {
    color:var(--muted);
}

.result-row {
    margin-bottom:1.3rem;
    padding:1.5rem;
    background:var(--surface);
    border-radius:7px;
}

.result-row .section-heading {
    margin:0 0 1rem;
}

.result-row code {
    font-size:.8rem;
}

.table-hint {
    font-size:.75rem;
    color:var(--muted);
    margin-top:.6rem;
}

.support-link {
    display:inline-block;
    margin-top:1rem;
}

.nowrap {
    white-space:nowrap;
}

@media(max-width:1000px) {
    .header-actions {
        gap:1rem;
    }
    .workspace-label {
        display:none;
    }
    .workspace-nav {
        gap:1.5rem;
    }
    .hero {
        gap:2rem;
    }
    .auth-grid {
        gap:3rem;
    }
    .editorial-section {
        gap:3rem;
    }
    .docs-grid {
        gap:2rem;
        grid-template-columns:160px minmax(0,1fr);
    }
}

@media(max-width:720px) {
    .header-inner {
        min-height:74px;
        padding:1rem 1.25rem;
        gap:.5rem;
    }
    .brand {
        font-size:1rem;
    }
    .brand-mark {
        width:28px;
        height:31px;
        font-size:1.25rem;
    }
    .theme-select {
        max-width:7rem;
        font-size:.7rem;
    }
    .header-link {
        display:none;
    }
    .header-actions {
        gap:.6rem;
    }
    .button-small {
        font-size:.76rem;
        min-height:36px;
    }
    .workspace-nav {
        padding:0 1.25rem;
        gap:1.5rem;
    }
    .workspace-nav a {
        font-size:.82rem;
    }
    .main-content {
        padding:2rem 1.25rem 3.5rem;
    }
    .page-heading {
        flex-direction:column;
        gap:1rem;
        margin-bottom:1.8rem;
    }
    .page-heading p {
        font-size:.9rem;
    }
    .metric-strip {
        grid-template-columns:1fr 1fr;
    }
    .metric {
        padding:1.2rem .7rem 1.2rem 0;
    }
    .metric+.metric {
        padding-left:1rem;
    }
    .metric:nth-child(3) {
        border-left:0;
        padding-left:0;
    }
    .metric:nth-child(n+3) {
        border-top:1px solid var(--line);
    }
    .metric dd {
        font-size:1.75rem;
    }
    .metric dd.date {
        font-size:1.1rem;
    }
    .split,.split-even,.form-grid,.auth-grid,.hero,.editorial-section {
        grid-template-columns:1fr;
        gap:2rem;
    }
    .surface {
        padding:1.3rem;
    }
    .auth-grid {
        margin:.5rem 0;
    }
    .auth-copy h1 {
        font-size:2.3rem;
        max-width:17ch;
    }
    .auth-copy .plain-list {
        display:none;
    }
    .auth-form {
        padding:1.5rem;
    }
    .auth-form .form-grid {
        gap:0;
    }
    .site-footer {
        padding:1.5rem 1.25rem;
        flex-direction:column;
        gap:1rem;
    }
    .site-footer>div {
        gap:1rem;
    }
    .hero {
        padding:1.3rem 0 3rem;
    }
    .hero h1 {
        font-size:3.7rem;
        max-width:12ch;
    }
    .hero p {
        max-width:100%;
    }
    .api-preview {
        transform:none;
    }
    .api-preview pre {
        font-size:.67rem;
    }
    .flow-strip {
        grid-template-columns:1fr;
        gap:1.5rem;
        padding:1.8rem 0;
        margin-bottom:3rem;
    }
    .flow-step {
        gap:.5rem;
    }
    .editorial-section {
        padding-bottom:3rem;
    }
    .editorial-section h2 {
        font-size:1.9rem;
        max-width:24ch;
    }
    .callout {
        padding:1.5rem;
        flex-direction:column;
        align-items:start;
    }
    .docs-grid {
        grid-template-columns:1fr;
        gap:2rem;
    }
    .docs-nav {
        position:static;
        flex-direction:row;
        flex-wrap:wrap;
        gap:.4rem 1.2rem;
        border-bottom:1px solid var(--line);
        padding-bottom:1rem;
        font-size:.78rem;
    }
    .docs-content section {
        margin-bottom:2.5rem;
    }
    .table-tools {
        align-items:stretch;
        flex-direction:column;
    }
    .table-tools input {
        max-width:100%;
    }
    .definition-list>div {
        grid-template-columns:100px 1fr;
    }
    .inline-form {
        flex-wrap:wrap;
    }
    .section-heading {
        align-items:flex-start;
        gap:.8rem;
    }
    .section-heading h2 {
        font-size:1.25rem;
    }
    .table-wrap table {
        min-width:580px;
    }
    .empty-state {
        padding:2.5rem 1.2rem;
    }
    .error-page {
        margin:2rem auto;
    }
    .pagination {
        flex-wrap:wrap;
    }
    .copy-status {
        width:max-content;
    }
}

@media(prefers-reduced-motion:reduce) {
    html {
        scroll-behavior:auto;
    }
    *,*::before,*::after {
        transition:none!important;
        animation:none!important;
    }
    .button:active,button:active {
        transform:none;
    }
}

.header-actions .button {
    white-space:nowrap;
    flex-shrink:0;
}

.hero h1 {
    font-size:clamp(3.2rem,5.2vw,4.5rem);
    max-width:none;
}

@media(max-width:720px) {
    .hero h1 {
        font-size:3.3rem;
    }
}

/* Product landing page. The explorer is a functional reference example, not a live submission form. */
.product-home {
    padding-top: 0;
}

.product-hero {
    padding: 4.5rem 1rem 3.3rem;
    text-align: center;
}

.product-category {
    display: inline-block;
    margin-bottom: 1rem;
    color: var(--accent);
    font-size: .84rem;
    font-weight: 650;
    letter-spacing: .02em;
}

.product-hero h1 {
    font-size: clamp(2.8rem, 4.5vw, 4.2rem);
    font-weight: 750;
    letter-spacing: -.035em;
    line-height: 1.12;
}

.product-description {
    max-width: 660px;
    margin: 1.3rem auto 1.7rem;
    font-size: 1.08rem;
    line-height: 1.75;
    color: var(--muted);
}

.product-hero .actions {
    justify-content: center;
}

.product-hero .button {
    min-height: 48px;
    padding-inline: 1.4rem;
}

.api-explorer {
    border: 1px solid var(--line);
    border-radius: 12px;
    background: var(--surface);
    box-shadow: 0 14px 42px -26px #33558240;
    overflow: hidden;
}

.explorer-navigation {
    display: flex;
    align-items: stretch;
    gap: 1.5rem;
    padding: 0 1.5rem;
    overflow-x: auto;
    border-bottom: 1px solid var(--line);
}

.explorer-navigation button {
    display: flex;
    align-items: center;
    gap: .65rem;
    padding: 1rem .25rem;
    border: 0;
    border-bottom: 2px solid transparent;
    color: var(--muted);
    background: none;
    font-size: .82rem;
    font-weight: 600;
    white-space: nowrap;
}

.explorer-navigation button:hover {
    color: var(--accent);
}

.explorer-navigation button[aria-selected=true] {
    color: var(--accent);
    border-bottom-color: var(--accent);
}

.endpoint-method {
    font: 650 .65rem/1.4 Consolas, monospace;
    letter-spacing: .025em;
    color: var(--accent);
}

.endpoint-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: .8rem 1.6rem;
    border-bottom: 1px solid var(--line);
    background: var(--soft);
}

.endpoint-bar code {
    font-size: .8rem;
}

.endpoint-bar span {
    font-size: .7rem;
    color: var(--muted);
}

.request-response {
    display: grid;
    grid-template-columns: 1.3fr 1fr;
    min-height: 330px;
}

.explorer-code {
    min-width: 0;
    padding: 1.4rem 1.6rem;
    background: var(--surface);
}

.explorer-label {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1rem;
    color: var(--muted);
    font-size: .72rem;
    font-weight: 600;
}

.explorer-label button {
    border: 1px solid var(--line);
    border-radius: 4px;
    background: var(--surface);
    padding: .25rem .55rem;
    color: var(--muted);
    font-size: .7rem;
}

.explorer-label button:hover {
    border-color: var(--accent);
    color: var(--accent);
}

.explorer-code pre {
    max-height: 256px;
    overflow: auto;
    font-size: .76rem;
    line-height: 1.85;
    color: var(--text);
    scrollbar-width: thin;
}

.explorer-result {
    padding: 1.4rem 1.6rem;
    border-left: 1px solid var(--line);
    background: var(--code);
}

.http-status {
    color: var(--accent);
    font: .72rem Consolas, monospace;
}

.response-fields {
    margin: .5rem 0 1.4rem;
}

.response-fields > div {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 1rem;
    padding: .65rem 0;
    border-bottom: 1px solid var(--line);
}

.response-fields dt {
    color: var(--muted);
    font: .78rem Consolas, monospace;
}

.response-fields dd {
    margin: 0;
    color: var(--text);
    font-size: .8rem;
    font-weight: 600;
    text-align: right;
}

.response-fields .response-total dt,
.response-fields .response-total dd {
    color: var(--accent);
    font-weight: 750;
}

.explorer-result > p,
.code-caption {
    font-size: .78rem;
    line-height: 1.75;
    color: var(--muted);
    max-width: 44ch;
}

.explorer-result > a {
    display: inline-block;
    margin-top: 1rem;
    text-decoration: none;
    font-size: .8rem;
    font-weight: 650;
}

.code-caption {
    margin-top: 1.5rem;
}

.explorer-footer {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 1.5rem;
    padding: .8rem 1.6rem;
    border-top: 1px solid var(--line);
    color: var(--muted);
    font-size: .7rem;
}

.explorer-footer a {
    margin-left: auto;
    text-decoration: none;
    font-weight: 650;
}

.capabilities-section {
    margin-top: 6rem;
}

.product-section-heading {
    max-width: 740px;
    margin-bottom: 2.4rem;
}

.product-section-heading h2,
.platform-section h2 {
    font-size: 2rem;
    font-weight: 700;
    line-height: 1.3;
    letter-spacing: -.035em;
}

.product-section-heading p,
.platform-section p {
    margin-top: 1rem;
    color: var(--muted);
    font-size: .95rem;
}

.capability-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    border-top: 1px solid var(--line);
}

.capability-feature {
    padding: 2.2rem 2.6rem 2.2rem 0;
    border-bottom: 1px solid var(--line);
}

.capability-feature:nth-child(even) {
    padding-left: 2.6rem;
    border-left: 1px solid var(--line);
}

.capability-symbol {
    display: inline-block;
    margin-bottom: 1.2rem;
    font: 600 1.4rem Consolas, monospace;
    color: var(--accent);
}

.capability-feature h3 {
    font-size: 1.1rem;
    margin-bottom: .7rem;
}

.capability-feature p {
    max-width: 46ch;
    font-size: .88rem;
    color: var(--muted);
}

.capability-feature a {
    display: inline-block;
    margin-top: 1rem;
    font-size: .8rem;
    font-weight: 650;
    text-decoration: none;
}

.platform-section {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 5rem;
    margin: 5rem 0;
}

.platform-section .button {
    margin-top: 1.5rem;
}

.platform-list {
    margin: 0;
}

.platform-list > div {
    padding: 1.1rem 0;
    border-bottom: 1px solid var(--line);
}

.platform-list > div:first-child {
    padding-top: 0;
}

.platform-list dt {
    font-size: .9rem;
    font-weight: 700;
}

.platform-list dd {
    margin: .4rem 0 0;
    font-size: .85rem;
    color: var(--muted);
}

.documentation-cta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
    padding: 2.3rem;
    background: var(--soft);
    border: 1px solid var(--line);
    border-radius: 10px;
}

.documentation-cta h2 {
    font-size: 1.4rem;
    font-weight: 700;
}

.documentation-cta p {
    color: var(--muted);
    font-size: .85rem;
    margin-top: .7rem;
}

.documentation-cta a {
    font-size: .85rem;
    font-weight: 650;
    white-space: nowrap;
}

.surface {
    border: 1px solid var(--line);
}

.workspace-nav {
    gap: 1.8rem;
}

.brand-mark {
    background: var(--accent);
    color: var(--on-accent);
    border-radius: 7px;
}

.header-actions .theme-select {
    width: auto;
    min-width: 4.5rem;
    max-width: 5.3rem;
    font-size: .72rem;
}

.header-actions .header-link {
    font-size: .8rem;
    white-space: nowrap;
}

.header-actions .button {
    white-space: nowrap;
    flex-shrink: 0;
}

.page-heading .section-label {
    text-transform: none;
    letter-spacing: 0;
    font-size: .85rem;
}

@media (max-width: 768px) {
    .product-hero {
        padding: 3rem 0 2.3rem;
    }
    .product-hero h1 {
        font-size: 2.8rem;
        line-height: 1.12;
    }
    .product-description {
        font-size: .95rem;
        max-width: 38ch;
    }
    .product-hero .actions {
        gap: .6rem;
    }
    .product-hero .button {
        font-size: .8rem;
        padding-inline: .9rem;
    }
    .explorer-navigation {
        gap: 1rem;
        padding-inline: 1rem;
    }
    .explorer-navigation button {
        font-size: .73rem;
        padding-block: .85rem;
    }
    .endpoint-method {
        display: none;
    }
    .endpoint-bar {
        padding: .8rem 1rem;
    }
    .endpoint-bar span {
        display: none;
    }
    .request-response {
        grid-template-columns: 1fr;
    }
    .explorer-code,
    .explorer-result {
        padding: 1.1rem;
    }
    .explorer-code pre {
        max-height: 225px;
        font-size: .7rem;
    }
    .explorer-result {
        border-left: 0;
        border-top: 1px solid var(--line);
    }
    .explorer-footer {
        gap: .7rem 1rem;
        padding: .85rem 1.1rem;
    }
    .explorer-footer a {
        margin-left: 0;
        width: 100%;
    }
    .capabilities-section {
        margin-top: 3.5rem;
    }
    .product-section-heading h2,
    .platform-section h2 {
        font-size: 1.6rem;
    }
    .capability-grid,
    .platform-section {
        grid-template-columns: 1fr;
    }
    .capability-feature,
    .capability-feature:nth-child(even) {
        padding: 1.5rem 0;
        border-left: 0;
    }
    .capability-symbol {
        margin-bottom: .8rem;
    }
    .platform-section {
        gap: 2rem;
        margin: 3rem 0;
    }
    .documentation-cta {
        padding: 1.5rem;
        flex-direction: column;
        align-items: flex-start;
    }
    .header-actions .header-link {
        display: none;
    }
}


/* Partner task flows */
.shell-portal h1, .shell-admin h1 { font-size: 2.25rem; }
input::placeholder, textarea::placeholder { color: var(--muted); opacity: 1; }
.note-panel { border: 0; padding-left: 0; }
.note-panel p { font-size: .9rem; }
.invoice-filters { display: flex; flex-wrap: wrap; align-items: end; gap: 1rem; margin-bottom: 1.6rem; }
.invoice-filters .field { margin: 0; min-width: 180px; }
.invoice-filters .search-field { flex: 1; min-width: 260px; }
.invoice-filters > a { padding-block: .7rem; }
.invoice-link { font-weight: 700; text-decoration: none; }
.invoice-link:hover { text-decoration: underline; }
.table-action { white-space: nowrap; }
.breadcrumbs { display: flex; flex-wrap: wrap; gap: .75rem; font-size: .85rem; color: var(--muted); margin-bottom: 1.75rem; }
.invoice-outcome { padding: 1.5rem 0; margin-bottom: 2rem; border-block: 1px solid var(--line); }
.invoice-outcome > div { display: flex; align-items: center; flex-wrap: wrap; gap: .85rem 1.25rem; }
.invoice-outcome h2 { font-size: 1.05rem; }
.invoice-outcome p { font-size: .88rem; color: var(--muted); }
.invoice-outcome > p { margin-top: 1rem; }
.invoice-outcome .outcome-message { color: var(--text); }
.detail-columns { display: grid; grid-template-columns: 1fr 1fr; gap: 3.5rem; }
.detail-section h2 { font-size: 1.15rem; }
.detail-list { margin: 1.4rem 0; }
.detail-list > div { display: grid; grid-template-columns: 145px minmax(0, 1fr); gap: .75rem; padding: .85rem 0; border-bottom: 1px solid var(--line); }
.detail-list dt { font-size: .83rem; color: var(--muted); }
.detail-list dd { margin: 0; font-size: .86rem; overflow-wrap: anywhere; }
.detail-list dd button { margin-left: .75rem; }
.detail-section > p { font-size: .85rem; }
.response-section { margin-top: 3rem; }
.response-code { padding: 1.5rem; background: var(--code); border: 1px solid var(--line); border-radius: 8px; font-size: .85rem; }
.inline-empty { padding-block: 1.2rem; color: var(--muted); border-block: 1px solid var(--line); }
.help-disclosure { margin-top: 2rem; border-top: 1px solid var(--line); padding-top: 1.25rem; }
.help-disclosure > summary { font-weight: 600; font-size: .9rem; }
.help-disclosure[open] > summary { margin-bottom: 1.5rem; }
.help-disclosure h3 { font-size: .95rem; margin-bottom: .5rem; }
.help-disclosure p { font-size: .85rem; color: var(--muted); }
.balance-context { display: flex; flex-wrap: wrap; align-items: baseline; gap: .4rem 1rem; padding: 1rem 0; margin-bottom: 1.75rem; border-block: 1px solid var(--line); font-size: .88rem; }
.balance-context > a { margin-left: auto; }
.balance-context p { color: var(--muted); }
.state-depleted { color: var(--muted); }
.metric dd a { color: inherit; text-decoration: none; }
.metric dd a:hover { text-decoration: underline; }
.form-error { margin: .75rem 0; color: var(--error); font-size: .88rem; }

@media (max-width: 800px) {
    .detail-columns { grid-template-columns: 1fr; gap: 2rem; }
    .invoice-filters .search-field { flex-basis: 100%; }
}
@media (max-width: 640px) {
    .shell-portal h1, .shell-admin h1 { font-size: 1.9rem; }
    .workspace-nav { display: flex; flex-wrap: wrap; gap: 0 .75rem; padding-block: .25rem; overflow: visible; }
    .workspace-nav a { padding: .6rem .1rem; font-size: .8rem; }
    .invoice-filters { gap: .75rem; }
    .invoice-filters .field { min-width: 0; flex: 1; }
    .invoice-filters .search-field { flex-basis: 100%; }
    .invoice-filters button { flex: 1; }
    .table-wrap:has(.responsive-table) { overflow: visible; background: transparent; border: 0; }
    .table-wrap table.responsive-table { display: block; min-width: 0; width: 100%; }
    .responsive-table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
    .responsive-table tbody { display: block; }
    .responsive-table tbody tr { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1fr); gap: .8rem 1rem; padding: 1.25rem 0; border-top: 1px solid var(--line); }
    .responsive-table tbody tr:last-child { border-bottom: 1px solid var(--line); }
    .responsive-table tbody td { display: block; padding: 0; border: 0; white-space: normal; font-size: .86rem; overflow-wrap: anywhere; text-align: left; }
    .responsive-table td::before { display: block; content: attr(data-label); font-size: .72rem; color: var(--muted); margin-bottom: .25rem; }
    .responsive-table td:first-child { grid-column: 1 / -1; }
    .responsive-table td:first-child::before { display: none; }
    .responsive-table td:first-child strong, .responsive-table td:first-child .invoice-link { font-size: 1rem; }
    .invoice-table-wrap td:nth-child(2) { grid-column: 1 / -1; }
    .responsive-table .revoke-confirm { min-width: 0; }
    .responsive-table .revoke-confirm[open] { grid-column: 1 / -1; }
    .detail-list > div { grid-template-columns: 1fr; gap: .25rem; }
    .balance-context > a { margin-left: 0; }
    .page-heading .actions { width: 100%; }
    .page-heading .actions .button { flex: 1; }
    .response-code { padding: 1rem; font-size: .77rem; }
}
.spaced-heading { margin-top: 1.5rem; }
.confirmation-check { display: flex; align-items: flex-start; gap: .6rem; margin: 1rem 0; font-size: .9rem; }
.confirmation-check input { width: 1.1rem; height: 1.1rem; margin: .2rem 0 0; padding: 0; accent-color: var(--accent); }
[hidden] { display: none !important; }

.local-validation-banner {
  padding: 12px 24px;
  text-align: center;
  background: #fff3cd;
  color: #5a4100;
  font-size: 14px;
}

.mode-navigation {
  margin-bottom: 24px;
}

.avtax-brand-mark { width: 48px; height: 38px; object-fit: contain; flex-shrink: 0; }
.avtax-brand-copy { display: flex; flex-direction: column; line-height: 1; text-align: left; }
.avtax-brand-copy strong { font-size: 18px; font-weight: 800; letter-spacing: 0.09em; }
.avtax-brand-copy small { margin-top: 5px; color: var(--muted); font-size: 7.5px; font-weight: 800; letter-spacing: 0.12em; }
.brand-product { border-left: 1px solid var(--line); padding-left: 14px; margin-left: 4px; font-size: 14px; font-weight: 600; }
.breadcrumbs { display: flex; flex-wrap: wrap; gap: .6rem; margin-bottom: 1.75rem; color: var(--muted); font-size: .85rem; }
.product-faq { margin-block: 4rem; max-width: 900px; }
.product-faq details { padding: 1.25rem 0; border-bottom: 1px solid var(--line); }
.product-faq summary { cursor: pointer; font-size: 1.05rem; font-weight: 650; }
.product-faq details p { margin-top: .85rem; max-width: 75ch; color: var(--muted); line-height: 1.75; }
.sandbox-guide { max-width: 960px; }
.sandbox-guide .guide-intro { font-size: 1.15rem; color: var(--muted); }
.sandbox-guide .actions { margin-block: 1.5rem; }
.sandbox-result { margin-block: 1.5rem; }
.sandbox-result > div { display: grid; grid-template-columns: minmax(180px, .6fr) 1fr; gap: 1rem; padding: .9rem 0; border-bottom: 1px solid var(--line); }
.sandbox-result dd { margin: 0; }
.site-footer > div { flex-wrap: wrap; }
@media (max-width: 640px) {
  .sandbox-result > div { grid-template-columns: 1fr; gap: .35rem; }
  .product-faq { margin-block: 2.5rem; }
}
@media (max-width: 760px) {
  .brand-product { display: none; }
  .avtax-brand-mark { width: 36px; height: 29px; }
  .avtax-brand-copy strong { font-size: 16px; }
}
