:root {
	--api-bg: #020617;
	--api-sidebar: #0f172a;
	--api-sidebar-line: rgba(255, 255, 255, 0.08);
	--api-text: #f8fafc;
	--api-muted: #cbd5e1;
	--api-accent: #22d3ee;
	--api-accent-soft: rgba(34, 211, 238, 0.12);
	--api-border: rgba(255, 255, 255, 0.1);
	--api-panel: rgba(15, 23, 42, 0.72);
	--api-panel-soft: rgba(255, 255, 255, 0.035);
	--api-code-bg: #0b1120;
	--api-code-text: #f8fafc;
}

* {
	box-sizing: border-box;
}

html {
	scroll-behavior: smooth;
}

body.api-docs-page {
	margin: 0;
	min-height: 100vh;
	background: var(--api-bg);
	color: var(--api-text);
	font-family: Inter, "PingFang SC", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
	-webkit-font-smoothing: antialiased;
	scrollbar-width: thin;
	scrollbar-color: rgba(255, 255, 255, 0.08) transparent;
}

body.api-docs-page::-webkit-scrollbar {
	width: 4px;
}

body.api-docs-page::-webkit-scrollbar-track {
	background: transparent;
}

body.api-docs-page::-webkit-scrollbar-thumb {
	border-radius: 999px;
	background: rgba(255, 255, 255, 0.08);
}

body.api-docs-page::-webkit-scrollbar-button {
	display: none;
}

body.api-docs-page.api-modal-open {
	overflow: hidden;
}

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

code,
pre {
	font-family: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;
}

.api-docs-shell {
	display: flex;
	min-height: 100vh;
	background: var(--api-bg);
}

.api-docs-sidebar {
	position: sticky;
	top: 0;
	display: flex;
	flex: 0 0 240px;
	flex-direction: column;
	width: 240px;
	height: 100vh;
	overflow-x: hidden;
	overflow-y: auto;
	border-right: 1px solid var(--api-sidebar-line);
	background: var(--api-sidebar);
	background-image:
		linear-gradient(rgba(255, 255, 255, 0.02) 1px, transparent 1px),
		linear-gradient(90deg, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
	background-size: 24px 24px;
	background-position: center center;
	box-shadow: 10px 0 32px rgba(0, 0, 0, 0.18);
	scrollbar-width: thin;
	scrollbar-color: rgba(255, 255, 255, 0.08) transparent;
}

.api-docs-sidebar::-webkit-scrollbar {
	width: 3px;
}

.api-docs-sidebar::-webkit-scrollbar-track {
	background: transparent;
}

.api-docs-sidebar::-webkit-scrollbar-thumb {
	border-radius: 999px;
	background: rgba(255, 255, 255, 0.08);
}

.api-docs-sidebar::-webkit-scrollbar-button {
	display: none;
}

.api-docs-brand {
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 1.15rem 1.05rem 0.9rem;
	border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.api-docs-brand-logo {
	display: inline-flex;
	width: 200px;
	max-width: 100%;
	line-height: 0;
}

.api-docs-brand-logo img {
	display: block;
	width: 100%;
	height: auto;
}

.api-docs-back-link {
	display: flex;
	align-items: center;
	gap: 0.58rem;
	min-height: 2.4rem;
	margin: 0.72rem 1rem 0;
	padding: 0.45rem 0.72rem;
	border-radius: 0.6rem;
	color: var(--api-muted);
	font-size: 0.88rem;
	line-height: 1.3;
	text-decoration: none;
	transition: background-color 0.18s ease, color 0.18s ease;
}

.api-docs-back-link:hover {
	background: var(--api-accent-soft);
	color: #f8fafc;
}

.api-docs-back-link svg {
	width: 18px;
	height: 18px;
	flex-shrink: 0;
	fill: none;
	stroke: currentColor;
	stroke-width: 1.8;
	stroke-linecap: round;
	stroke-linejoin: round;
}

.api-docs-nav {
	padding: 0.85rem 0.75rem 1.5rem;
	display: grid;
	gap: 1rem;
}

.api-docs-group-title {
	margin: 0 0 0.65rem;
	color: var(--api-muted);
	font-size: 0.7rem;
	font-weight: 800;
	letter-spacing: 0.12em;
	text-transform: uppercase;
}

.api-docs-group {
	padding: 0 0.25rem;
}

.api-docs-link {
	display: flex;
	align-items: center;
	min-height: 2.4rem;
	padding: 0.45rem 0.75rem;
	border-radius: 0.6rem;
	color: #f8fafc;
	font-size: 0.88rem;
	line-height: 1.3;
	transition: background-color 0.18s ease, color 0.18s ease;
}

.api-docs-link:hover,
.api-docs-link.active {
	background: var(--api-accent-soft);
	color: #f8fafc;
}

.api-docs-main {
	position: relative;
	flex: 1;
	min-width: 0;
	background: var(--api-bg);
}

.api-docs-toolbar {
	position: sticky;
	top: 0;
	z-index: 30;
	display: flex;
	align-items: center;
	gap: 0.7rem;
	justify-content: flex-end;
	height: 0;
	padding: calc(1.35rem + 10px) 2.2rem 0;
	pointer-events: none;
}

.api-docs-lang-switch {
	position: relative;
	display: inline-flex;
	align-items: center;
	pointer-events: auto;
}

.api-docs-lang-trigger {
	min-width: 126px;
	min-height: 2.38rem;
	display: inline-flex;
	align-items: center;
	justify-content: space-between;
	gap: 0.5rem;
	padding: 0 0.78rem;
	border: 1px solid rgba(255, 255, 255, 0.1);
	border-radius: 0.45rem;
	background: rgba(15, 23, 42, 0.86);
	color: #cbd5e1;
	cursor: pointer;
	font-size: 0.78rem;
	font-weight: 800;
	box-shadow: 0 14px 32px rgba(0, 0, 0, 0.16);
}

.api-docs-lang-trigger [data-api-docs-lang-current] {
	display: inline-flex;
	align-items: center;
	gap: 0.5rem;
	min-width: 0;
	flex: 1 1 auto;
}

.api-docs-lang-icon {
	width: 22px;
	height: 22px;
	flex: 0 0 22px;
	display: block;
	object-fit: cover;
	border-radius: 6px;
	overflow: hidden;
}

.api-docs-lang-text {
	display: inline-block;
	min-width: 0;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.api-docs-lang-trigger::after {
	content: '';
	width: 7px;
	height: 7px;
	border-right: 1.5px solid currentColor;
	border-bottom: 1.5px solid currentColor;
	transform: rotate(45deg) translateY(-1px);
	transition: transform 0.18s ease;
	opacity: 0.8;
}

.api-docs-lang-switch.is-open .api-docs-lang-trigger::after {
	transform: rotate(225deg) translateY(-1px);
}

.api-docs-lang-trigger:hover,
.api-docs-lang-switch.is-open .api-docs-lang-trigger {
	color: #f8fafc;
	border-color: rgba(34, 211, 238, 0.3);
	background: rgba(15, 23, 42, 0.94);
}

.api-docs-lang-menu {
	position: absolute;
	top: calc(100% + 8px);
	right: 0;
	z-index: 42;
	min-width: 220px;
	padding: 0.35rem;
	border: 1px solid rgba(34, 211, 238, 0.18);
	border-radius: 0.65rem;
	background: rgba(15, 23, 42, 0.96);
	box-shadow: 0 18px 44px rgba(0, 0, 0, 0.42), 0 0 0 1px rgba(255, 255, 255, 0.04);
	backdrop-filter: blur(16px);
	-webkit-backdrop-filter: blur(16px);
	opacity: 0;
	visibility: hidden;
	transform: translateY(-4px);
	transition: opacity 0.18s ease, transform 0.18s ease, visibility 0.18s ease;
}

.api-docs-lang-switch.is-open .api-docs-lang-menu {
	opacity: 1;
	visibility: visible;
	transform: translateY(0);
}

.api-docs-lang-menu button {
	width: 100%;
	min-height: 2.25rem;
	display: flex;
	align-items: center;
	gap: 0.55rem;
	padding: 0 0.7rem;
	border: 0;
	border-radius: 0.28rem;
	background: transparent;
	color: #cbd5e1;
	cursor: pointer;
	font-size: 0.78rem;
	font-weight: 800;
	text-align: left;
	white-space: nowrap;
}

.api-docs-lang-menu button:hover,
.api-docs-lang-menu button.active {
	background: rgba(34, 211, 238, 0.18);
	color: #f8fafc;
}

.api-auth-trigger {
	display: inline-flex;
	align-items: center;
	gap: 0.42rem;
	min-height: 2.38rem;
	padding: 0 1rem;
	border: 0;
	border-radius: 0.45rem;
	background: #22d3ee;
	color: #020617;
	cursor: pointer;
	font-size: 0.86rem;
	font-weight: 800;
	pointer-events: auto;
	box-shadow: 0 14px 32px rgba(34, 211, 238, 0.18);
	transition: background-color 0.18s ease, transform 0.18s ease, box-shadow 0.18s ease;
}

.api-auth-trigger:hover {
	background: #67e8f9;
	box-shadow: 0 18px 42px rgba(34, 211, 238, 0.25);
	transform: translateY(-1px);
}

.api-auth-trigger svg {
	width: 1rem;
	height: 1rem;
}

.api-auth-trigger.is-configured {
	background: #34d399;
	box-shadow: 0 14px 32px rgba(52, 211, 153, 0.16);
}

.api-docs-content {
	max-width: 1280px;
	padding: 2rem 2rem 4rem;
}

.api-docs-section {
	padding-top: 1.4rem;
	margin-top: 2rem;
	border-top: 1px solid var(--api-border);
}

.api-docs-hero {
	padding-top: 0;
	margin-top: 0;
	border-top: 0;
}

.api-docs-eyebrow {
	margin: 0 0 0.7rem;
	color: var(--api-muted);
	font-size: 0.9rem;
	font-weight: 700;
	letter-spacing: 0.08em;
}

.api-docs-hero h1,
.api-docs-section h2 {
	margin: 0;
	font-weight: 800;
	letter-spacing: 0;
}

.api-docs-hero h1 {
	font-size: 2.15rem;
}

.api-docs-url {
	margin: 1.2rem 0 0;
	color: #f8fafc;
	font-size: 1.02rem;
}

.api-docs-lead {
	margin: 0.85rem 0 0;
	color: #f8fafc;
	font-size: 0.98rem;
	line-height: 1.8;
}

.api-docs-section h2 {
	font-size: 1.55rem;
}

.api-docs-section h3 {
	margin: 0;
	font-size: 1.08rem;
	font-weight: 800;
}

.api-docs-table {
	width: 100%;
	margin-top: 0.9rem;
	border-collapse: collapse;
	border: 1px solid var(--api-border);
	background: var(--api-panel);
}

.api-docs-table th,
.api-docs-table td {
	padding: 0.78rem 0.9rem;
	border-bottom: 1px solid var(--api-border);
	color: #f8fafc;
	font-size: 0.9rem;
	line-height: 1.55;
	text-align: left;
	vertical-align: top;
}

.api-docs-table th {
	background: var(--api-panel-soft);
	color: #f8fafc;
	font-weight: 800;
}

#dict .api-docs-table {
	table-layout: fixed;
}

#dict .api-docs-table th:first-child {
	width: 55%;
}

#dict .api-docs-table th:last-child,
#dict .api-docs-table td:last-child {
	width: 45%;
	text-align: center;
	font-variant-numeric: tabular-nums;
}

.api-docs-code {
	margin-top: 0.9rem;
	padding: 1rem 1.1rem;
	border-radius: 0.75rem;
	background: var(--api-code-bg);
	color: var(--api-code-text);
	overflow: auto;
}

.api-docs-code pre {
	margin: 0;
	font-size: 0.88rem;
	line-height: 1.7;
	white-space: pre;
}

.api-badge {
	display: inline-flex;
	align-items: center;
	padding: 0.25rem 0.55rem;
	border-radius: 999px;
	background: var(--api-accent-soft);
	color: var(--api-accent);
	font-size: 0.72rem;
	font-weight: 800;
	vertical-align: middle;
}

.api-endpoint {
	margin-top: 1rem;
	padding: 1rem 1rem 1.1rem;
	border: 1px solid var(--api-border);
	border-radius: 0.85rem;
	background: var(--api-panel);
	box-shadow: 0 16px 36px rgba(0, 0, 0, 0.18);
}

.api-endpoint-head {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: 1rem;
}

.api-debug-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 2rem;
	padding: 0 0.85rem;
	border: 1px solid rgba(34, 211, 238, 0.36);
	border-radius: 0.42rem;
	background: rgba(34, 211, 238, 0.12);
	color: #f8fafc;
	cursor: pointer;
	flex: 0 0 auto;
	font-size: 0.78rem;
	font-weight: 800;
	transition: border-color 0.18s ease, background-color 0.18s ease, color 0.18s ease, transform 0.18s ease;
}

.api-debug-btn:hover {
	border-color: rgba(103, 232, 249, 0.75);
	background: #22d3ee;
	color: #020617;
	transform: translateY(-1px);
}

.api-endpoint p {
	margin: 0.55rem 0 0;
	color: #f8fafc;
	font-size: 0.94rem;
	line-height: 1.65;
}

.api-endpoint code,
.api-docs-table code {
	padding: 0.12rem 0.32rem;
	border-radius: 0.3rem;
	background: rgba(255, 255, 255, 0.08);
	color: #f8fafc;
}

.api-docs-note {
	margin: 0.75rem 0 0;
	color: #f8fafc;
	font-size: 0.92rem;
	line-height: 1.75;
}

.api-modal[hidden] {
	display: none;
}

.api-modal {
	position: fixed;
	inset: 0;
	z-index: 1000;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 1.5rem;
}

.api-modal-backdrop {
	position: absolute;
	inset: 0;
	background: rgba(0, 0, 0, 0.55);
	backdrop-filter: blur(3px);
	-webkit-backdrop-filter: blur(3px);
}

.api-modal-dialog {
	position: relative;
	z-index: 1;
	width: min(100%, 520px);
	max-height: calc(100vh - 3rem);
	overflow: auto;
	border-radius: 0.42rem;
	background: #ffffff;
	color: #1f2937;
	box-shadow: 0 28px 80px rgba(0, 0, 0, 0.42);
}

.api-modal-dialog::-webkit-scrollbar {
	width: 4px;
}

.api-modal-dialog::-webkit-scrollbar-thumb {
	border-radius: 999px;
	background: rgba(15, 23, 42, 0.16);
}

.api-modal-close {
	position: absolute;
	top: 0.75rem;
	right: 0.9rem;
	width: 1.8rem;
	height: 1.8rem;
	border: 0;
	background: transparent;
	color: #94a3b8;
	cursor: pointer;
	font-size: 1.55rem;
	line-height: 1;
}

.api-modal-close:hover {
	color: #334155;
}

.api-modal-dialog h2 {
	margin: 0;
	padding: 1rem 1rem 0.6rem;
	color: #374151;
	font-size: 1.08rem;
	font-weight: 500;
	line-height: 1.4;
}

.api-modal-desc {
	margin: 0;
	padding: 0 1rem 1rem;
	color: #64748b;
	font-size: 0.86rem;
	line-height: 1.6;
}

.api-auth-form {
	display: grid;
	gap: 0.9rem;
	padding: 0 1rem 0.75rem;
}

.api-auth-form label,
.api-test-field {
	display: grid;
	grid-template-columns: 110px minmax(0, 1fr);
	align-items: center;
	gap: 0.75rem;
	color: #4b5563;
	font-size: 0.88rem;
}

.api-auth-form label span,
.api-test-field label {
	text-align: right;
}

.api-auth-form input,
.api-test-field input {
	width: 100%;
	min-height: 2.18rem;
	padding: 0 0.75rem;
	border: 1px solid #d7dee8;
	border-radius: 0.22rem;
	outline: none;
	background: #ffffff;
	color: #1f2937;
	font-size: 0.86rem;
	transition: border-color 0.18s ease, box-shadow 0.18s ease;
}

.api-auth-form input:focus,
.api-test-field input:focus {
	border-color: #409eff;
	box-shadow: 0 0 0 2px rgba(64, 158, 255, 0.12);
}

.api-auth-form input::placeholder,
.api-test-field input::placeholder {
	color: #a8b1c0;
}

.api-modal-message {
	min-height: 1.3rem;
	margin: 0;
	padding: 0 1rem;
	color: #ef4444;
	font-size: 0.82rem;
}

.api-modal-message.is-success {
	color: #059669;
}

.api-modal-actions {
	display: flex;
	align-items: center;
	justify-content: flex-end;
	gap: 1.5rem;
	padding: 1.2rem 1.55rem 1.35rem;
}

.api-secondary-btn,
.api-primary-btn {
	min-height: 2rem;
	padding: 0 1rem;
	border-radius: 0.28rem;
	cursor: pointer;
	font-size: 0.86rem;
	transition: border-color 0.18s ease, background-color 0.18s ease, color 0.18s ease;
}

.api-secondary-btn {
	border: 1px solid #d7dee8;
	background: #ffffff;
	color: #475569;
}

.api-secondary-btn:hover {
	border-color: #409eff;
	color: #409eff;
}

.api-primary-btn {
	border: 1px solid #409eff;
	background: #409eff;
	color: #ffffff;
}

.api-primary-btn:hover {
	border-color: #66b1ff;
	background: #66b1ff;
}

.api-primary-btn:disabled {
	border-color: #93c5fd;
	background: #93c5fd;
	cursor: not-allowed;
	opacity: 0.75;
}

.api-auth-dialog {
	width: min(92vw, 560px);
	border: 1px solid rgba(255, 255, 255, 0.12);
	background: #0f172a;
	color: #e2e8f0;
	box-shadow: 0 28px 90px rgba(0, 0, 0, 0.58);
}

.api-auth-dialog .api-modal-close {
	color: #94a3b8;
}

.api-auth-dialog .api-modal-close:hover {
	color: #f8fafc;
}

.api-auth-dialog h2 {
	padding: 1rem 1.15rem 0.55rem;
	color: #f8fafc;
	font-size: 1rem;
	font-weight: 800;
}

.api-auth-dialog .api-modal-desc {
	padding: 0 1.15rem 1rem;
	color: #cbd5e1;
}

.api-auth-dialog .api-auth-form {
	gap: 0.85rem;
	padding: 0 1.15rem 0.8rem;
}

.api-auth-dialog .api-auth-form label {
	grid-template-columns: 104px minmax(0, 1fr);
	color: #cbd5e1;
}

.api-auth-dialog .api-auth-form input {
	border-color: rgba(148, 163, 184, 0.28);
	border-radius: 0.42rem;
	background: rgba(15, 23, 42, 0.78);
	color: #f8fafc;
}

.api-auth-dialog .api-auth-form input:focus {
	border-color: rgba(34, 211, 238, 0.65);
	box-shadow: 0 0 0 2px rgba(34, 211, 238, 0.12);
}

.api-auth-dialog .api-modal-message {
	padding: 0 1.15rem;
}

.api-auth-dialog .api-modal-actions {
	padding: 0.2rem 1.15rem 1.1rem;
	gap: 0.75rem;
}

.api-auth-dialog .api-secondary-btn {
	border-color: rgba(148, 163, 184, 0.28);
	background: rgba(15, 23, 42, 0.78);
	color: #cbd5e1;
}

.api-auth-dialog .api-secondary-btn:hover {
	border-color: rgba(34, 211, 238, 0.5);
	color: #f8fafc;
}

.api-auth-dialog .api-primary-btn {
	border-color: rgba(34, 211, 238, 0.9);
	background: #22d3ee;
	color: #020617;
	font-weight: 800;
}

.api-auth-dialog .api-primary-btn:hover {
	border-color: #67e8f9;
	background: #67e8f9;
}

.api-test-dialog {
	width: min(94vw, 1120px);
	display: flex;
	flex-direction: column;
	height: calc(100vh - 3rem);
	min-height: 0;
	overflow: hidden;
	border: 1px solid rgba(255, 255, 255, 0.12);
	background: #0f172a;
	color: #e2e8f0;
	box-shadow: 0 28px 90px rgba(0, 0, 0, 0.58);
}

.api-test-dialog .api-modal-close {
	color: #94a3b8;
}

.api-test-dialog .api-modal-close:hover {
	color: #f8fafc;
}

.api-test-dialog h2 {
	flex: 0 0 auto;
	padding: 1rem 1.15rem 0.85rem;
	border-bottom: 1px solid rgba(255, 255, 255, 0.08);
	color: #f8fafc;
	font-size: 1rem;
	font-weight: 800;
}

.api-test-status {
	display: flex;
	flex: 0 0 auto;
	align-items: center;
	gap: 0.75rem;
	margin: 0;
	padding: 0.85rem 1.15rem;
	border-bottom: 1px solid rgba(255, 255, 255, 0.08);
	background: rgba(255, 255, 255, 0.035);
	color: #cbd5e1;
}

.api-test-method {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 2.35rem;
	min-height: 2rem;
	padding: 0 0.7rem;
	border: 1px solid rgba(248, 113, 113, 0.28);
	border-radius: 0.42rem;
	background: rgba(248, 113, 113, 0.12);
	color: #fca5a5;
	font-weight: 800;
}

.api-test-method.is-get {
	background: #10b981;
	color: #ffffff;
}

.api-test-method.is-post {
	background: #3b82f6;
	color: #ffffff;
}

.api-test-method.is-put {
	background: #f59e0b;
	color: #ffffff;
}

.api-test-layout {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
	grid-template-rows: minmax(0, 1fr);
	flex: 1 1 auto;
	gap: 1rem;
	min-height: 0;
	overflow: hidden;
	padding: 1rem 1.15rem;
}

.api-test-panel {
	display: flex;
	flex-direction: column;
	min-width: 0;
	min-height: 0;
	padding: 1rem;
	border: 1px solid rgba(255, 255, 255, 0.08);
	border-radius: 0.75rem;
	background: rgba(2, 6, 23, 0.38);
}

.api-test-panel:first-child {
	padding-right: 1rem;
	border-right: 1px solid rgba(255, 255, 255, 0.08);
}

.api-test-panel h3 {
	flex: 0 0 auto;
	margin: 0 0 0.8rem;
	color: #f8fafc;
	font-size: 0.86rem;
	font-weight: 800;
}

.api-test-form {
	display: grid;
	flex: 1 1 auto;
	gap: 0.85rem;
	align-content: start;
	min-height: 0;
	overflow: auto;
	padding-right: 0.15rem;
}

.api-test-empty {
	margin: 1.3rem 0 0;
	color: #94a3b8;
	font-size: 0.88rem;
	text-align: center;
}

.api-test-result {
	display: flex;
	flex: 1 1 auto;
	align-items: center;
	justify-content: center;
	min-height: 0;
	margin: 0;
	padding: 1rem;
	overflow: auto;
	border: 1px solid rgba(255, 255, 255, 0.08);
	border-radius: 0.62rem;
	background: rgba(2, 6, 23, 0.82);
	color: #94a3b8;
	font-family: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;
	font-size: 0.84rem;
	line-height: 1.7;
	white-space: pre-wrap;
	word-break: break-word;
}

.api-test-result.has-response {
	display: block;
	color: #e5e7eb;
}

.api-test-result.is-error {
	color: #fca5a5;
}

.api-test-dialog .api-test-field {
	grid-template-columns: 96px minmax(0, 1fr);
	color: #cbd5e1;
}

.api-test-dialog .api-test-field input {
	border-color: rgba(148, 163, 184, 0.28);
	border-radius: 0.42rem;
	background: rgba(15, 23, 42, 0.78);
	color: #f8fafc;
}

.api-test-dialog .api-test-field input:focus {
	border-color: rgba(34, 211, 238, 0.65);
	box-shadow: 0 0 0 2px rgba(34, 211, 238, 0.12);
}

.api-test-dialog .api-modal-actions {
	flex: 0 0 auto;
	padding: 0 1.15rem 1.1rem;
	gap: 0.75rem;
}

.api-test-dialog .api-secondary-btn {
	border-color: rgba(148, 163, 184, 0.28);
	background: rgba(15, 23, 42, 0.78);
	color: #cbd5e1;
}

.api-test-dialog .api-secondary-btn:hover {
	border-color: rgba(34, 211, 238, 0.5);
	color: #f8fafc;
}

.api-test-dialog .api-primary-btn {
	border-color: rgba(34, 211, 238, 0.9);
	background: #22d3ee;
	color: #020617;
	font-weight: 800;
}

.api-test-dialog .api-primary-btn:hover {
	border-color: #67e8f9;
	background: #67e8f9;
}

@media (max-width: 1040px) {
	.api-docs-shell {
		flex-direction: column;
	}

	.api-docs-sidebar {
		position: relative;
		width: 100%;
		flex-basis: auto;
		height: auto;
	}
}

@media (max-width: 760px) {
	.api-docs-toolbar {
		padding: calc(1rem + 10px) 1rem 0;
	}

	.api-auth-trigger {
		min-height: 2.15rem;
		padding: 0 0.75rem;
	}

	.api-docs-content {
		padding: 1.15rem;
	}

	.api-docs-hero h1 {
		font-size: 1.75rem;
	}

	.api-docs-section h2 {
		font-size: 1.35rem;
	}

	.api-endpoint-head {
		flex-direction: column;
	}

	.api-debug-btn {
		width: 100%;
	}

	.api-modal {
		padding: 0.75rem;
	}

	.api-test-dialog {
		width: 100%;
		height: calc(100vh - 1.5rem);
	}

	.api-test-layout {
		grid-template-columns: 1fr;
		grid-template-rows: auto minmax(0, 1fr);
		padding: 1rem;
	}

	.api-test-panel:first-child {
		padding-right: 1rem;
		padding-bottom: 1rem;
		border-right: 1px solid rgba(255, 255, 255, 0.08);
		border-bottom: 0;
	}

	.api-auth-form label,
	.api-test-field {
		grid-template-columns: 1fr;
		gap: 0.35rem;
	}

	.api-auth-form label span,
	.api-test-field label {
		text-align: left;
	}

	.api-modal-actions {
		gap: 0.75rem;
		padding: 1rem;
	}

	.api-test-dialog .api-modal-actions {
		padding: 0 1rem 1rem;
	}
}
