@font-face {
    font-family: Figtree;
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url('/developer-docs/assets/figtree-400.woff2') format('woff2');
}

@font-face {
    font-family: Figtree;
    font-style: normal;
    font-weight: 600;
    font-display: swap;
    src: url('/developer-docs/assets/figtree-600.woff2') format('woff2');
}

@font-face {
    font-family: Figtree;
    font-style: normal;
    font-weight: 700;
    font-display: swap;
    src: url('/developer-docs/assets/figtree-700.woff2') format('woff2');
}

:root {
    color-scheme: light;
    --page: #f6f6f9;
    --ink: #252525;
    --text: #252525;
    --muted: #627083;
    --line: #d6d6d6;
    --surface: #ffffff;
    --surface-muted: #f6f6f9;
    --violet: #5947ff;
    --violet-soft: #eef0ff;
    --green: #08783d;
    --green-soft: #e5f8ec;
    --red: #b42318;
    --code: #f0f1fa;
    --console-surface: #ffffff;
    --console-panel: #f6f6f9;
    --console-text: #252525;
    --console-muted: #627083;
    --console-line: #d6d6d6;
    --console-accent: #256f9f;
    --console-accent-contrast: #ffffff;
    --console-warning: #854d0e;
    --console-warning-soft: #fffbeb;
    --console-warning-line: #e8bb59;
    --syntax-keyword: #7041a5;
    --syntax-string: #236b3b;
    --syntax-number: #9a4d00;
    --syntax-comment: #667085;
    --syntax-option: #075e94;
    --syntax-operator: #0b7285;
}

:root[data-theme='dark'] {
    color-scheme: dark;
    --page: #151821;
    --ink: #dee2e6;
    --text: #aab8c5;
    --muted: #8391a2;
    --line: #37394d;
    --surface: #1e1f27;
    --surface-muted: #252630;
    --violet: #89c4f1;
    --violet-soft: #252630;
    --green: #83e2ad;
    --green-soft: rgb(131 226 173 / 12%);
    --red: #f8928e;
    --code: #252630;
    --console-surface: #11131a;
    --console-panel: #1e1f27;
    --console-text: #dee2e6;
    --console-muted: #8391a2;
    --console-line: #37394d;
    --console-accent: #89c4f1;
    --console-accent-contrast: #17181e;
    --console-warning: #fde09d;
    --console-warning-soft: rgb(253 224 157 / 10%);
    --console-warning-line: rgb(253 224 157 / 30%);
    --syntax-keyword: #c792ea;
    --syntax-string: #addb67;
    --syntax-number: #f78c6c;
    --syntax-comment: #697386;
    --syntax-option: #82aaff;
    --syntax-operator: #89ddff;
}

@media (prefers-color-scheme: dark) {
    :root:not([data-theme]) {
        color-scheme: dark;
        --page: #151821;
        --ink: #dee2e6;
        --text: #aab8c5;
        --muted: #8391a2;
        --line: #37394d;
        --surface: #1e1f27;
        --surface-muted: #252630;
        --violet: #89c4f1;
        --violet-soft: #252630;
        --green: #83e2ad;
        --green-soft: rgb(131 226 173 / 12%);
        --red: #f8928e;
        --code: #252630;
        --console-surface: #11131a;
        --console-panel: #1e1f27;
        --console-text: #dee2e6;
        --console-muted: #8391a2;
        --console-line: #37394d;
        --console-accent: #89c4f1;
        --console-accent-contrast: #17181e;
        --console-warning: #fde09d;
        --console-warning-soft: rgb(253 224 157 / 10%);
        --console-warning-line: rgb(253 224 157 / 30%);
        --syntax-keyword: #c792ea;
        --syntax-string: #addb67;
        --syntax-number: #f78c6c;
        --syntax-comment: #697386;
        --syntax-option: #82aaff;
        --syntax-operator: #89ddff;
    }
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    overflow-x: hidden;
    color: var(--text);
    background: var(--page);
    font: 16px/1.55 Figtree, system-ui, sans-serif;
}

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

button,
a,
input,
select,
textarea {
    outline-offset: 3px;
}

:focus-visible {
    outline: 3px solid var(--violet);
}

a {
    color: var(--violet);
}

code,
pre,
.operation-path,
.schema-type,
.nav-path {
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

code {
    padding: .12rem .3rem;
    color: var(--ink);
    background: var(--code);
    border-radius: 5px;
    font-size: .88em;
}

[hidden] {
    display: none !important;
}

.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
}

.skip-link {
    position: fixed;
    z-index: 100;
    top: .75rem;
    left: .75rem;
    padding: .6rem .85rem;
    color: #fff;
    background: var(--ink);
    border-radius: 7px;
    transform: translateY(-150%);
}

.skip-link:focus {
    transform: none;
}

.topbar {
    position: sticky;
    z-index: 20;
    top: 0;
    min-height: 70px;
    display: grid;
    grid-template-columns: auto minmax(300px, 1fr) auto;
    align-items: center;
    gap: 2rem;
    padding: 0 clamp(1rem, 3vw, 2.5rem);
    background: color-mix(in srgb, var(--surface) 97%, transparent);
    border-bottom: 1px solid var(--line);
}

.brand {
    display: flex;
    align-items: center;
    gap: .75rem;
    color: var(--ink);
    text-decoration: none;
}

.brand img {
    display: block;
    width: 132px;
    height: 28px;
}

:root[data-theme='dark'] .brand img {
    filter: brightness(0) invert(1);
}

@media (prefers-color-scheme: dark) {
    :root:not([data-theme]) .brand img {
        filter: brightness(0) invert(1);
    }
}

.brand > span {
    width: 1px;
    height: 24px;
    background: var(--line);
}

.brand strong {
    font-size: .9rem;
}

.contract-control,
.topbar-actions,
.search-control,
.live-status,
.sidebar-contract,
.document-title-row,
.operation-toggle,
.operation-meta,
.schema-heading,
.message-heading {
    display: flex;
    align-items: center;
}

.contract-control {
    min-width: 0;
    gap: .65rem;
}

.contract-control > label {
    color: var(--muted);
    font-size: .78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .06em;
}

select,
input {
    height: 40px;
    color: var(--ink);
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 8px;
}

textarea {
    color: var(--ink);
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 8px;
}

select {
    padding: 0 2.2rem 0 .7rem;
}

.contract-control select {
    width: min(360px, 100%);
}

.live-status {
    gap: .4rem;
    color: var(--green);
    font-size: .78rem;
    font-weight: 700;
    white-space: nowrap;
}

.live-status i {
    width: 7px;
    height: 7px;
    background: var(--green);
    border-radius: 50%;
}

.topbar-actions {
    justify-content: flex-end;
    gap: .65rem;
}

.theme-toggle {
    height: 40px;
    padding: 0 .85rem;
    color: var(--ink);
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 8px;
    font-size: .8rem;
    font-weight: 700;
    white-space: nowrap;
    cursor: pointer;
}

.theme-toggle:hover {
    color: var(--violet);
    border-color: var(--violet);
}

.search-control {
    position: relative;
}

.search-control svg {
    position: absolute;
    left: .7rem;
    width: 17px;
    fill: none;
    stroke: var(--muted);
    stroke-width: 1.8;
}

.search-control input {
    width: 210px;
    padding: 0 .7rem 0 2.15rem;
}

.mobile-navigation-button {
    min-height: 40px;
    padding: .55rem .8rem;
    border-radius: 8px;
    font-size: .84rem;
    font-weight: 700;
    cursor: pointer;
}

.mobile-navigation-button {
    color: var(--ink);
    background: var(--surface);
    border: 1px solid var(--line);
}

.mobile-navigation-button {
    display: none;
}

.reference-layout {
    min-height: calc(100vh - 70px);
    display: grid;
    grid-template-columns: 270px minmax(540px, 1fr) minmax(360px, 430px);
    background: var(--surface);
}

.reference-sidebar {
    position: sticky;
    top: 70px;
    height: calc(100vh - 70px);
    overflow-y: auto;
    padding: 1.25rem 1rem 2rem;
    background: var(--surface-muted);
    border-right: 1px solid var(--line);
}

.sidebar-contract {
    justify-content: space-between;
    gap: .75rem;
    padding: 0 .55rem 1rem;
    border-bottom: 1px solid var(--line);
}

.sidebar-contract span {
    color: var(--muted);
    font-size: .78rem;
    font-weight: 700;
}

.sidebar-contract a {
    font-size: .78rem;
    font-weight: 700;
    text-decoration: none;
}

.nav-group {
    margin-top: 1.15rem;
}

.nav-group h2 {
    margin: 0 .55rem .4rem;
    color: var(--muted);
    font-size: .7rem;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.nav-link {
    width: 100%;
    display: grid;
    grid-template-columns: 38px minmax(0, 1fr);
    align-items: center;
    gap: .45rem;
    padding: .48rem .55rem;
    color: var(--text);
    background: transparent;
    border: 0;
    border-radius: 7px;
    text-align: left;
    cursor: pointer;
}

.nav-link:hover,
.nav-link.is-active {
    color: var(--violet);
    background: var(--violet-soft);
}

.nav-method {
    padding: .18rem .28rem;
    color: #fff;
    background: #3c6e47;
    border-radius: 4px;
    font-size: .62rem;
    font-weight: 800;
    text-align: center;
}

.nav-method.post,
.nav-method.send { background: #5947ff; }
.nav-method.put { background: #986b00; }
.nav-method.patch { background: #8b4b16; }
.nav-method.delete { background: #b42318; }
.nav-method.receive { background: #08783d; }
.nav-method.doc { color: var(--muted); background: var(--surface-muted); }

.nav-path,
.nav-label {
    overflow: hidden;
    font-size: .75rem;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.reference-main {
    width: 100%;
    min-width: 0;
    padding: 3rem clamp(1.25rem, 3vw, 3.5rem) 6rem;
}

.loading-state,
.empty-state {
    padding: 2rem;
    color: var(--muted);
    background: var(--surface-muted);
    border: 1px solid var(--line);
    border-radius: 10px;
    text-align: center;
}

.document-header {
    padding-bottom: 2.5rem;
    border-bottom: 1px solid var(--line);
}

.document-title-row {
    justify-content: space-between;
    gap: 1rem;
}

.document-title-row p {
    margin: 0 0 .25rem;
    color: var(--violet);
    font-size: .75rem;
    font-weight: 700;
    letter-spacing: .07em;
    text-transform: uppercase;
}

.document-title-row h1 {
    margin: 0;
    color: var(--ink);
    font-size: clamp(2rem, 4vw, 3.25rem);
    line-height: 1.05;
    letter-spacing: -.04em;
}

.document-title-row > span {
    flex: 0 0 auto;
    padding: .35rem .55rem;
    color: var(--ink);
    background: var(--surface-muted);
    border: 1px solid var(--line);
    border-radius: 7px;
    font-size: .78rem;
    font-weight: 700;
}

#document-description {
    max-width: 760px;
    margin: 1rem 0 0;
    color: var(--muted);
    font-size: 1.02rem;
}

.document-metadata {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: .7rem 2rem;
    margin: 1.5rem 0 0;
}

.document-metadata div {
    min-width: 0;
}

.document-metadata dt {
    color: var(--muted);
    font-size: .72rem;
    font-weight: 700;
    text-transform: uppercase;
}

.document-metadata dd {
    overflow-wrap: anywhere;
    margin: .15rem 0 0;
    color: var(--ink);
    font-size: .9rem;
}

.tag-section,
.definition-section {
    padding-top: 2.75rem;
    scroll-margin-top: 90px;
}

.section-heading {
    margin-bottom: 1rem;
}

.section-heading h2,
.definition-section > h2 {
    margin: 0;
    color: var(--ink);
    font-size: 1.45rem;
}

.section-heading p,
.definition-section > p {
    margin: .35rem 0 0;
    color: var(--muted);
    font-size: .92rem;
}

.operation,
.message,
.definition-block {
    margin-top: .75rem;
    border: 1px solid var(--line);
    border-radius: 10px;
    scroll-margin-top: 90px;
}

.operation-toggle {
    width: 100%;
    min-width: 0;
    gap: .75rem;
    padding: .85rem 1rem;
    color: var(--text);
    background: var(--surface);
    border: 0;
    border-radius: 10px;
    text-align: left;
    cursor: pointer;
}

.operation-toggle:hover {
    background: var(--surface-muted);
}

.method {
    min-width: 54px;
    padding: .25rem .35rem;
    color: #fff;
    background: #3c6e47;
    border-radius: 5px;
    font-size: .68rem;
    font-weight: 800;
    text-align: center;
}

.method.post,
.method.send { background: #5947ff; }
.method.put { background: #986b00; }
.method.patch { background: #8b4b16; }
.method.delete { background: #b42318; }
.method.receive { background: #08783d; }

.operation-path {
    flex: 0 1 auto;
    overflow: hidden;
    color: var(--ink);
    font-size: .86rem;
    font-weight: 700;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.operation-summary {
    min-width: 0;
    margin-left: auto;
    overflow: hidden;
    color: var(--muted);
    font-size: .84rem;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.disclosure-icon {
    flex: 0 0 auto;
    color: var(--muted);
    font-size: 1rem;
}

.operation.is-open .operation-toggle {
    border-radius: 10px 10px 0 0;
    border-bottom: 1px solid var(--line);
}

.operation.is-selected {
    border-color: color-mix(in srgb, var(--violet) 62%, var(--line));
    box-shadow: 0 0 0 1px color-mix(in srgb, var(--violet) 18%, transparent);
}

.operation-body {
    padding: 1.25rem;
}

.operation-body > p:first-child {
    margin-top: 0;
}

.operation-meta {
    flex-wrap: wrap;
    gap: .4rem;
    margin: 0 0 1.25rem;
}

.meta-chip {
    padding: .25rem .45rem;
    color: var(--muted);
    background: var(--surface-muted);
    border: 1px solid var(--line);
    border-radius: 6px;
    font-size: .72rem;
}

.operation-body h3,
.message h3,
.definition-block h3 {
    margin: 1.5rem 0 .65rem;
    color: var(--ink);
    font-size: 1rem;
}

.technical-table {
    width: 100%;
    border-collapse: collapse;
    font-size: .84rem;
}

.technical-table th,
.technical-table td {
    padding: .65rem;
    border-bottom: 1px solid var(--line);
    text-align: left;
    vertical-align: top;
}

.technical-table th {
    color: var(--muted);
    background: var(--surface-muted);
    font-size: .72rem;
    text-transform: uppercase;
}

.technical-table td:first-child {
    color: var(--ink);
    font-weight: 600;
}

.schema {
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 8px;
}

.schema-heading,
.schema-row,
.message-heading {
    gap: .65rem;
    padding: .65rem .75rem;
}

.schema-heading {
    background: var(--surface-muted);
    border-bottom: 1px solid var(--line);
}

.schema-heading strong,
.schema-row strong {
    color: var(--ink);
    font-size: .84rem;
}

.schema-type {
    color: var(--violet);
    font-size: .76rem;
}

.required-label {
    color: var(--red);
    font-size: .7rem;
    font-weight: 700;
}

.schema-row {
    align-items: flex-start;
    display: grid;
    grid-template-columns: minmax(130px, .7fr) minmax(90px, .35fr) minmax(0, 1.5fr);
    border-bottom: 1px solid var(--line);
}

.schema-row:last-child {
    border-bottom: 0;
}

.schema-description,
.schema-detail {
    color: var(--muted);
    font-size: .8rem;
}

.schema-description-full {
    grid-column: 1 / -1;
}

.schema-nested {
    grid-column: 1 / -1;
    margin-top: .35rem;
}

.message,
.definition-block {
    padding: 1rem;
}

.message-heading {
    justify-content: space-between;
    padding: 0 0 .75rem;
    border-bottom: 1px solid var(--line);
}

.message-heading h3,
.definition-block > h3 {
    margin: 0;
}

.raw-value {
    overflow: auto;
    margin: .65rem 0 0;
    padding: .8rem;
    color: var(--ink);
    background: var(--surface-muted);
    border-radius: 7px;
    font-size: .78rem;
    white-space: pre-wrap;
    word-break: break-word;
}

.developer-console {
    position: sticky;
    top: 70px;
    height: calc(100vh - 70px);
    overflow-y: auto;
    color: var(--console-text);
    background: var(--console-surface);
    border-left: 1px solid var(--console-line);
}

.console-empty,
.console-header,
.console-section {
    padding: 1.25rem;
}

.console-empty {
    padding-top: 3rem;
}

.console-empty h2,
.console-header h2 {
    overflow-wrap: anywhere;
    margin: .2rem 0 0;
    color: var(--console-text);
    font-size: 1rem;
    line-height: 1.35;
}

.console-empty p {
    color: var(--console-muted);
    font-size: .86rem;
}

.console-eyebrow {
    color: var(--console-accent);
    font-size: .68rem;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.console-header {
    display: flex;
    align-items: flex-start;
    gap: .75rem;
    border-bottom: 1px solid var(--console-line);
}

.console-header .method {
    margin-top: .1rem;
}

.console-tabs {
    display: grid;
    grid-template-columns: 1fr 1fr;
    padding: .75rem 1.25rem 0;
}

.console-tabs button {
    padding: .65rem .75rem;
    color: var(--console-muted);
    background: transparent;
    border: 0;
    border-bottom: 2px solid var(--console-line);
    font-size: .8rem;
    font-weight: 700;
    cursor: pointer;
}

.console-tabs button.is-active {
    color: var(--console-accent);
    border-bottom-color: var(--console-accent);
}

.console-toolbar,
.credential-row,
.try-actions,
.try-response-heading,
.environment-notice {
    display: flex;
    align-items: center;
}

.console-toolbar {
    justify-content: space-between;
    gap: .75rem;
    margin-bottom: .75rem;
}

.language-select,
.developer-console input,
.developer-console textarea {
    color: var(--console-text);
    background: var(--console-panel);
    border-color: var(--console-line);
}

.language-select {
    height: 36px;
    min-width: 150px;
    font-size: .8rem;
}

.console-copy,
.secondary-button,
.send-request {
    min-height: 36px;
    padding: .45rem .7rem;
    border: 1px solid var(--console-line);
    border-radius: 7px;
    font-size: .76rem;
    font-weight: 700;
    cursor: pointer;
}

.console-copy,
.secondary-button {
    color: var(--console-text);
    background: var(--console-panel);
}

.console-copy:hover,
.secondary-button:hover {
    color: var(--console-accent);
    border-color: var(--console-accent);
}

.code-example,
.try-response pre {
    overflow: auto;
    margin: 0;
    padding: 1rem;
    color: var(--console-text);
    background: var(--console-panel);
    border: 1px solid var(--console-line);
    border-radius: 8px;
    font: .76rem/1.6 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    white-space: pre;
}

.code-example code {
    padding: 0;
    color: inherit;
    background: transparent;
    border-radius: 0;
    font-size: inherit;
}

.syntax-keyword {
    color: var(--syntax-keyword);
    font-weight: 600;
}

.syntax-string {
    color: var(--syntax-string);
}

.syntax-number {
    color: var(--syntax-number);
}

.syntax-comment {
    color: var(--syntax-comment);
    font-style: italic;
}

.syntax-option {
    color: var(--syntax-option);
}

.syntax-operator {
    color: var(--syntax-operator);
}

.console-feedback {
    min-height: 1.2rem;
    margin: .5rem 0 0;
    color: var(--console-muted);
    font-size: .72rem;
}

.environment-notice {
    align-items: flex-start;
    gap: .55rem;
    margin-bottom: 1.25rem;
    padding: .75rem;
    color: var(--console-muted);
    background: color-mix(in srgb, var(--console-accent) 9%, var(--console-panel));
    border: 1px solid color-mix(in srgb, var(--console-accent) 30%, var(--console-line));
    border-radius: 8px;
    font-size: .75rem;
}

.environment-notice strong {
    flex: 0 0 auto;
    color: var(--console-accent);
}

.console-field {
    margin-top: 1rem;
}

.console-field > label {
    display: flex;
    justify-content: space-between;
    gap: .75rem;
    margin-bottom: .38rem;
    color: var(--console-text);
    font-size: .78rem;
    font-weight: 700;
}

.field-location {
    color: var(--console-muted);
    font-size: .67rem;
    font-weight: 600;
}

.console-field > input,
.console-field > textarea,
.credential-row input {
    width: 100%;
    padding: .6rem .7rem;
    font: .76rem/1.45 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

.console-field > input,
.credential-row input {
    height: 40px;
}

.console-field > textarea {
    resize: vertical;
}

.console-field small {
    display: block;
    margin-top: .38rem;
    color: var(--console-muted);
    font-size: .7rem;
}

.credential-row {
    gap: .4rem;
}

.credential-row input {
    min-width: 0;
}

.mutation-confirmation {
    display: flex;
    align-items: flex-start;
    gap: .55rem;
    margin-top: 1.25rem;
    padding: .75rem;
    color: var(--console-warning);
    background: var(--console-warning-soft);
    border: 1px solid var(--console-warning-line);
    border-radius: 8px;
    font-size: .75rem;
}

.mutation-confirmation input {
    width: 16px;
    height: 16px;
    flex: 0 0 auto;
    margin-top: .1rem;
}

.try-actions {
    gap: .5rem;
    margin-top: 1.25rem;
}

.send-request {
    color: var(--console-accent-contrast);
    background: var(--console-accent);
    border-color: var(--console-accent);
}

.send-request:disabled {
    cursor: wait;
    opacity: .65;
}

.try-response {
    margin-top: 1rem;
    border: 1px solid var(--console-line);
    border-radius: 8px;
}

.try-response.is-success {
    border-color: rgb(131 226 173 / 45%);
}

.try-response.is-error {
    border-color: rgb(248 146 142 / 45%);
}

.try-response-heading {
    justify-content: space-between;
    gap: 1rem;
    padding: .7rem .8rem;
    color: var(--console-muted);
    font-size: .74rem;
}

.try-response-heading strong {
    color: var(--console-text);
}

.try-response pre {
    max-height: 420px;
    border-width: 1px 0 0;
    border-radius: 0 0 8px 8px;
    white-space: pre-wrap;
    word-break: break-word;
}

.response-request-id {
    overflow-wrap: anywhere;
    margin: 0;
    padding: 0 .8rem .65rem;
    color: var(--console-muted);
    font: .7rem/1.4 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

@media (max-width: 1180px) {
    .reference-layout {
        grid-template-columns: 260px minmax(0, 1fr);
    }

    .reference-sidebar {
        grid-column: 1;
        grid-row: 1 / span 2;
    }

    .reference-main {
        grid-column: 2;
        grid-row: 1;
    }

    .developer-console {
        position: static;
        grid-column: 2;
        grid-row: 2;
        height: auto;
        max-height: none;
        border-top: 1px solid var(--console-line);
        border-left: 0;
    }
}

@media (max-width: 1100px) {
    .topbar {
        grid-template-columns: auto minmax(270px, 1fr);
    }

    .topbar-actions {
        grid-column: 1 / -1;
        justify-content: flex-start;
        padding-bottom: .75rem;
    }

    .topbar {
        padding-top: .75rem;
    }

    .reference-sidebar {
        top: 120px;
        height: calc(100vh - 120px);
    }
}

@media (max-width: 760px) {
    .topbar {
        position: relative;
        min-height: auto;
        display: flex;
        flex-wrap: wrap;
        gap: .8rem;
        padding: .9rem 1rem;
    }

    .brand strong,
    .brand > span,
    .contract-control > label,
    .contract-control {
        min-width: 0;
        flex: 1 1 210px;
    }

    .contract-control select {
        width: 100%;
    }

    .topbar-actions {
        width: 100%;
        padding: 0;
    }

    .search-control {
        flex: 1;
    }

    .search-control input {
        width: 100%;
    }

    .mobile-navigation-button {
        width: calc(100% - 2rem);
        display: block;
        margin: 1rem;
    }

    .reference-layout {
        display: block;
        min-height: auto;
    }

    .reference-sidebar {
        position: static;
        width: calc(100% - 2rem);
        height: auto;
        max-height: 65vh;
        display: none;
        margin: 0 1rem 1rem;
        border: 1px solid var(--line);
        border-radius: 10px;
    }

    .reference-sidebar.is-open {
        display: block;
    }

    .reference-main {
        width: 100%;
        padding: 1.25rem 1rem 4rem;
    }

    .document-title-row {
        align-items: flex-start;
        flex-direction: column;
    }

    .document-metadata {
        grid-template-columns: 1fr;
    }

    .operation-toggle {
        display: grid;
        grid-template-columns: 52px minmax(0, 1fr) auto;
    }

    .operation-summary {
        grid-column: 1 / -1;
        width: 100%;
        margin: 0;
        white-space: normal;
    }

    .technical-table {
        display: block;
        overflow-x: auto;
    }

    .schema-row {
        grid-template-columns: minmax(120px, 1fr) minmax(80px, .6fr);
    }

    .schema-description {
        grid-column: 1 / -1;
    }
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after { transition-duration: .01ms !important; }
}
