/* GPChat — thème (clair/sombre) de la référence API interactive : Swagger UI est clair par défaut,
   on le recolore avec les variables de site-skin.css pour qu'il suive le thème de la page. */
body { background: var(--bg); color: var(--text); }
.topbar { background: color-mix(in srgb, var(--bg) 86%, transparent) !important; }
.topnav a:hover { background: var(--bg-hover) !important; }
.topnav a.active { background: var(--bg-soft) !important; }
.spacer { flex: 1; }
.icon-btn { width: 36px; height: 36px; display: grid; place-items: center; border: 1px solid var(--border); background: transparent; color: var(--text); cursor: pointer; font-size: 15px; }
.icon-btn:hover { background: var(--bg-hover); }
.intro h1 { font-size: clamp(30px, 4.4vw, 46px); }
.tip { background: var(--bg-elev) !important; }
.tip code { background: var(--bg-soft) !important; color: var(--text); }

.swagger-ui, .swagger-ui .info .title, .swagger-ui .info p, .swagger-ui .info li, .swagger-ui .info table, .swagger-ui .info h1, .swagger-ui .info h2, .swagger-ui .info h3, .swagger-ui .info h4,
.swagger-ui .markdown p, .swagger-ui .markdown li, .swagger-ui .markdown h1, .swagger-ui .markdown h2, .swagger-ui .markdown h3, .swagger-ui .markdown h4, .swagger-ui .renderedMarkdown p,
.swagger-ui .opblock-tag, .swagger-ui .opblock-tag small, .swagger-ui .opblock .opblock-summary-description, .swagger-ui .opblock .opblock-summary-path, .swagger-ui .opblock .opblock-summary-path__deprecated,
.swagger-ui .opblock-description-wrapper p, .swagger-ui .opblock-external-docs-wrapper p, .swagger-ui .opblock-title_normal p, .swagger-ui .opblock-section-header h4,
.swagger-ui table thead tr th, .swagger-ui table thead tr td, .swagger-ui table tbody tr td, .swagger-ui .parameter__name, .swagger-ui .parameter__type, .swagger-ui .parameter__in, .swagger-ui .parameter__extension,
.swagger-ui .response-col_status, .swagger-ui .response-col_description, .swagger-ui .response-col_links, .swagger-ui .responses-inner h4, .swagger-ui .responses-inner h5, .swagger-ui .responses-table .response-col_description__inner p,
.swagger-ui .tab li, .swagger-ui label, .swagger-ui .model-title, .swagger-ui .model, .swagger-ui .model-toggle, .swagger-ui section.models h4, .swagger-ui section.models h5, .swagger-ui .prop-type, .swagger-ui .prop-format,
.swagger-ui .servers-title, .swagger-ui .servers > label, .swagger-ui .scheme-container .schemes > label, .swagger-ui .auth-container h4, .swagger-ui .auth-container h6, .swagger-ui .auth-container p, .swagger-ui .auth-container .wrapper,
.swagger-ui .dialog-ux .modal-ui .modal-ux-header h3, .swagger-ui .dialog-ux .modal-ui .modal-ux-content p, .swagger-ui .dialog-ux .modal-ui .modal-ux-content h4, .swagger-ui .dialog-ux .modal-ui .modal-ux-content label,
.swagger-ui .btn, .swagger-ui .copy-to-clipboard-text, .swagger-ui .filter .operation-filter-input, .swagger-ui .response-control-media-type__title { color: var(--text); }
.swagger-ui .info a, .swagger-ui .markdown a, .swagger-ui .opblock-external-docs-wrapper a, .swagger-ui .link { color: var(--accent-text); }
.swagger-ui .opblock-tag { border-bottom-color: var(--border); }
.swagger-ui .opblock-tag:hover { background: var(--bg-hover); }
.swagger-ui .opblock .opblock-section-header { background: var(--bg-soft); box-shadow: none; }
.swagger-ui .opblock .opblock-summary { border-color: transparent; }
.swagger-ui .opblock-body pre.microlight, .swagger-ui .highlight-code > .microlight { background: var(--code-bg) !important; }
.swagger-ui .opblock-body pre.microlight span, .swagger-ui .highlight-code .microlight span { color: var(--code-text) !important; }
.swagger-ui .markdown code, .swagger-ui .renderedMarkdown code { background: var(--bg-soft); color: var(--text); border-radius: 6px; padding: 1px 6px; }
.swagger-ui .scheme-container, .swagger-ui section.models, .swagger-ui section.models .model-container, .swagger-ui .model-box, .swagger-ui .responses-inner { background: var(--bg-elev); border-color: var(--border); }
.swagger-ui section.models { border: 1px solid var(--border); border-radius: 14px; }
.swagger-ui section.models.is-open h4 { border-bottom-color: var(--border); }
.swagger-ui .model-box-control:focus, .swagger-ui .models-control:focus, .swagger-ui .opblock-summary-control:focus { outline-color: var(--accent); }
.swagger-ui table tbody tr td, .swagger-ui table thead tr td, .swagger-ui table thead tr th, .swagger-ui .tab { border-color: var(--border); }
.swagger-ui select, .swagger-ui input[type=text], .swagger-ui input[type=password], .swagger-ui input[type=search], .swagger-ui textarea, .swagger-ui .filter .operation-filter-input {
  background: var(--bg-elev); color: var(--text); border: 1px solid var(--border-strong); }
.swagger-ui .btn { background: transparent; border-color: var(--border-strong); box-shadow: none; }
.swagger-ui .btn:hover { box-shadow: none; background: var(--bg-hover); }
.swagger-ui .btn.execute { color: #fff; } .swagger-ui .btn.cancel { color: var(--danger); border-color: var(--danger); }
.swagger-ui .dialog-ux .backdrop-ux { background: rgba(4, 12, 15, .62); }
.swagger-ui .dialog-ux .modal-ui { background: var(--bg-elev); border: 1px solid var(--border); box-shadow: 0 30px 60px -20px rgba(0, 0, 0, .5); }
.swagger-ui .dialog-ux .modal-ui .modal-ux-header { border-bottom-color: var(--border); }
.swagger-ui .expand-methods svg, .swagger-ui .expand-operation svg, .swagger-ui .arrow, .swagger-ui .authorization__btn svg, .swagger-ui .model-box-control svg, .swagger-ui .models-control svg { fill: var(--muted); }
.swagger-ui .btn.authorize svg { fill: var(--accent); }
.swagger-ui .loading-container .loading:before { border-color: var(--border); border-top-color: var(--accent); }
.swagger-ui .info .title small pre, .swagger-ui .info .title small { background: var(--accent); }
.swagger-ui .response-control-media-type--accept-controller select { border-color: var(--ok); }
.swagger-ui .responses-table.live-responses-table .response-col_status { color: var(--text); }
.swagger-ui .info h1, .swagger-ui .info h2, .swagger-ui .info h3, .swagger-ui .markdown h1, .swagger-ui .markdown h2, .swagger-ui .markdown h3, .swagger-ui .opblock-tag, .swagger-ui section.models h4 { font-family: "Bricolage Grotesque", var(--font); letter-spacing: -.02em; }
.swagger-ui .opblock-body :is(h4, h5, h6, label, li, td, th, .tab-item, .opblock-title, .opblock-title_normal, .parameter__name, .parameter__type, .parameter__deprecated, .parameter__in, .prop-type, .response-col_status, .examples-select__section-label, .body-param__text),
.swagger-ui .opblock-section-header :is(h4, label, .opblock-title), .swagger-ui .tab-header .tab-item, .swagger-ui .opblock-description-wrapper :is(li, ul, ol, strong),
.swagger-ui .opblock-body .servers > label, .swagger-ui .opblock-body .servers-title, .swagger-ui .opblock-body table.parameters td, .swagger-ui .opblock-body .response-control-media-type__title { color: var(--text); opacity: 1; }
.swagger-ui .opblock-body .parameter__type, .swagger-ui .opblock-body .prop-format, .swagger-ui .opblock-body .parameter__in { color: var(--muted); }
.swagger-ui .opblock-body .tab-header .tab-item.active h4 span::after { background: var(--accent); }
.swagger-ui .opblock-description-wrapper li::marker, .swagger-ui .markdown li::marker { color: var(--muted); }
.swagger-ui .opblock .opblock-section-request-body .opblock-section-header { background: var(--bg-soft); }
.swagger-ui .opblock-body .opblock-description-wrapper { opacity: 1; }
.swagger-ui .opblock-section-header :is(h4, h4 span, span, label, label span, small),
.swagger-ui .tab-header :is(.tab-item, h4, h4 span), .swagger-ui .opblock-title_normal, .swagger-ui .opblock-title_normal * { color: var(--text) !important; }
.swagger-ui .opblock-section-header .btn { color: var(--text) !important; }
.swagger-ui .opblock-section-header .btn.try-out__btn.cancel, .swagger-ui .btn.cancel { color: var(--danger) !important; }
.swagger-ui .opblock-section-header .opblock-title sup, .swagger-ui .parameter__name.required::after, .swagger-ui .parameter__name.required span { color: var(--danger) !important; }
