/* Ported from the AdminCenter api-docs component LESS so the gateway-hosted portal is
   visually identical without Angular. Variable names kept as CSS custom properties. */

:root {
	--color-primary: #14343e;
	--color-accent: #2c758c;
	--color-accent-bg: #f5feff;
	--color-accent-border: #bce8ee;
	--color-border: #e5e7eb;
	--color-text: #4b5563;
	--color-text-muted: #6b7280;
	--header-height: 56px;
}

*, *::before, *::after {
	box-sizing: border-box;
}

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

body {
	font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
	color: var(--color-text);
}

.api-docs-container {
	display: flex;
	flex-direction: column;
	height: 100%;
	background-color: #f9fafb;
	overflow: hidden;
}

/* ---------- header ---------- */
.api-header {
	flex-shrink: 0;
	background-color: #fff;
	border-bottom: 1px solid var(--color-border);
	z-index: 10;
}

.api-header .header-content {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 0 1.5rem;
	height: var(--header-height);
}

.api-header .header-left {
	display: flex;
	align-items: center;
	gap: 1.5rem;
}

.api-header .logo-link {
	display: flex;
	align-items: center;
	gap: 0.5rem;
	text-decoration: none;
	flex-shrink: 0;
}

.api-header .logo-icon {
	width: 28px;
	height: 28px;
	border-radius: 6px;
	background-color: var(--color-primary);
	color: #fff;
	font-size: 14px;
	font-weight: bold;
	display: flex;
	align-items: center;
	justify-content: center;
	user-select: none;
}

.api-header .logo-text {
	font-weight: 600;
	color: var(--color-primary);
	font-size: 14px;
	white-space: nowrap;
}

.api-header .breadcrumb {
	display: flex;
	align-items: center;
	gap: 8px;
	font-size: 13px;
	min-width: 0;
	overflow: hidden;
}

.api-header .breadcrumb-label {
	color: var(--color-text-muted);
	white-space: nowrap;
}

.api-header .breadcrumb-sep {
	color: #d1d5db;
}

.api-header .breadcrumb-current {
	color: var(--color-primary);
	font-weight: 600;
	white-space: nowrap;
}

.api-header .header-right {
	display: flex;
	align-items: center;
	gap: 20px;
}

.api-header .header-link {
	display: inline-flex;
	align-items: center;
	gap: 4px;
	font-size: 14px;
	font-weight: 500;
	color: var(--color-accent);
	text-decoration: none;
	white-space: nowrap;
}

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

.admin-center-button {
	display: flex;
	align-items: center;
	gap: 6px;
	padding: 6px 12px;
	font-size: 14px;
	font-weight: 500;
	color: #fff;
	background-color: var(--color-primary);
	border-radius: 6px;
	white-space: nowrap;
	text-decoration: none;
}

.admin-center-button:hover {
	background-color: #1e4a5c;
}

/* Groups whose service does not publish a spec yet stay visible but inert. */
.sidebar-pending {
	padding: 6px 8px;
	margin-top: 2px;
	font-size: 11px;
	line-height: 1.4;
	color: #9ca3af;
	font-style: italic;
}

.download-group {
	display: flex;
	align-items: center;
	gap: 8px;
	margin-left: auto;
}

.download-group .download-spec {
	margin-left: 0;
}

/* ---------- layout ---------- */
.api-layout {
	display: flex;
	flex: 1;
	min-height: 0;
	width: 100%;
}

/* ---------- sidebar ---------- */
.api-sidebar {
	display: flex;
	flex-direction: column;
	width: 256px;
	flex-shrink: 0;
	border-right: 1px solid var(--color-border);
	background-color: rgba(249, 250, 251, 0.5);
	overflow: hidden;
}

.sidebar-search {
	flex-shrink: 0;
	padding: 1rem 1rem 0.5rem;
}

.search-box {
	position: relative;
	display: flex;
	align-items: center;
}

.search-icon {
	position: absolute;
	left: 10px;
	color: #9ca3af;
	pointer-events: none;
}

.search-input {
	width: 100%;
	padding: 8px 28px 8px 32px;
	border: 1px solid var(--color-border);
	border-radius: 9999px;
	background: #fff;
	font-size: 13px;
	color: var(--color-text);
	outline: none;
}

.search-input:focus {
	border-color: var(--color-accent);
}

.search-input::-webkit-search-cancel-button {
	display: none;
}

.search-clear {
	position: absolute;
	right: 8px;
	width: 18px;
	height: 18px;
	display: flex;
	align-items: center;
	justify-content: center;
	border: none;
	border-radius: 50%;
	background: #e5e7eb;
	color: #6b7280;
	font-size: 14px;
	line-height: 1;
	cursor: pointer;
}

.sidebar-scroll {
	flex: 1;
	min-height: 0;
	overflow-y: auto;
	padding: 0.5rem 1rem 1rem;
}

.sidebar-scroll::-webkit-scrollbar {
	width: 6px;
}

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

.sidebar-scroll::-webkit-scrollbar-thumb {
	background: #cbd5e0;
	border-radius: 3px;
}

.sidebar-scroll::-webkit-scrollbar-thumb:hover {
	background: #a0aec0;
}

.sidebar-section {
	margin-bottom: 1.5rem;
}

.sidebar-empty {
	padding: 0.5rem 8px;
	font-size: 13px;
	color: var(--color-text-muted);
}

.section-title {
	font-size: 10px;
	text-transform: uppercase;
	letter-spacing: 0.05em;
	color: #9ca3af;
	font-weight: 600;
	padding: 0 8px;
	margin-bottom: 6px;
}

.nav-list {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-direction: column;
	gap: 2px;
}

.nav-item {
	width: 100%;
	display: flex;
	align-items: center;
	gap: 8px;
	padding: 7px 8px;
	border-radius: 6px;
	font-size: 14px;
	text-align: left;
	background: none;
	border: none;
	cursor: pointer;
	transition: background-color 0.15s, color 0.15s;
	color: var(--color-text);
	font-family: inherit;
}

.nav-item:hover {
	background-color: #f3f4f6;
	color: var(--color-primary);
}

.nav-item.active {
	background-color: var(--color-accent);
	color: #fff;
}

.nav-item .nav-icon {
	flex: 0 0 auto;
	display: inline-flex;
	align-items: center;
	color: var(--color-accent);
}

.nav-item.active .nav-icon {
	color: #fff;
}

.nav-item .nav-label {
	flex: 1;
}

.nav-item .count-badge {
	flex: 0 0 auto;
	font-size: 10px;
	color: #9ca3af;
}

.nav-item.active .count-badge {
	color: rgba(255, 255, 255, 0.85);
}

/* Protocol label on sidebar entries of a group that mixes REST and GraphQL (ITEC-706) */
.nav-item .nav-protocol {
	flex: 0 0 auto;
	margin-right: 6px;
	padding: 1px 6px;
	border-radius: 8px;
	font-size: 10px;
	font-weight: 600;
	letter-spacing: 0.02em;
	background-color: #e5e7eb;
	color: #374151;
}

.nav-item.active .nav-protocol {
	background-color: rgba(255, 255, 255, 0.2);
	color: #fff;
}

/* ---------- main ---------- */
.api-main {
	flex: 1;
	min-width: 0;
	min-height: 0;
	overflow-y: auto;
	scroll-behavior: smooth;
}

.main-inner {
	max-width: 900px;
	padding: 2rem;
}

.main-header {
	display: flex;
	align-items: center;
	gap: 12px;
	margin-bottom: 12px;
}

.page-title {
	font-size: 24px;
	font-weight: bold;
	color: var(--color-primary);
	margin: 0;
}

.version-badge {
	display: inline-flex;
	align-items: center;
	border-radius: 9999px;
	border: 1px solid var(--color-accent-border);
	font-weight: 600;
	font-size: 10px;
	padding: 2px 8px;
	background-color: var(--color-accent-bg);
	color: var(--color-accent);
}

.download-spec {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	margin-left: auto;
	padding: 6px 12px;
	border-radius: 6px;
	border: 1px solid var(--color-accent-border);
	background-color: var(--color-accent-bg);
	color: var(--color-accent);
	font-size: 12px;
	font-weight: 600;
	text-decoration: none;
	cursor: pointer;
}

.download-spec:hover {
	background-color: var(--color-accent);
	color: #fff;
}

.page-description {
	font-size: 14px;
	color: var(--color-text-muted);
	margin-bottom: 2rem;
	line-height: 1.6;
}

.inline-code {
	padding: 2px 6px;
	background-color: #fff;
	border: 1px solid var(--color-border);
	border-radius: 4px;
	font-size: 12px;
	color: var(--color-primary);
	font-family: 'Courier New', monospace;
}

/* ---------- loading / error ---------- */
.api-state {
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 4rem 1rem;
}

.api-state-spinner,
.api-state-error {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 12px;
	text-align: center;
	font-size: 14px;
	color: var(--color-text-muted);
}

.api-state-spinner svg {
	color: var(--color-accent);
	animation: api-docs-spin 0.8s linear infinite;
}

.api-state-error svg {
	color: #dc2626;
}

.api-state-error p {
	margin: 0;
	color: var(--color-text);
}

.api-state-retry {
	padding: 6px 14px;
	font-size: 13px;
	font-weight: 500;
	color: #fff;
	background-color: var(--color-accent);
	border: none;
	border-radius: 6px;
	cursor: pointer;
	font-family: inherit;
}

.api-state-retry:hover {
	background-color: var(--color-primary);
}

@keyframes api-docs-spin {
	from { transform: rotate(0deg); }
	to { transform: rotate(360deg); }
}

/* ---------- content sections ---------- */
.content-section {
	scroll-margin-top: 1rem;
	max-width: 768px;
	padding-top: 1.5rem;
	margin-bottom: 1rem;
	border-top: 1px solid var(--color-border);
}

.content-section:first-of-type {
	border-top: none;
	padding-top: 0;
}

.section-heading {
	font-size: 20px;
	font-weight: bold;
	color: var(--color-primary);
	margin: 0 0 1rem 0;
}

.content-section p {
	font-size: 14px;
	color: var(--color-text);
	line-height: 1.6;
	margin-bottom: 1rem;
}

.content-section ul.error-list {
	list-style: none;
	padding: 0;
	margin: 1rem 0;
}

.content-section ul.error-list li {
	font-size: 14px;
	color: var(--color-text);
	margin-bottom: 0.5rem;
}

.content-section ul.error-list li strong {
	color: var(--color-primary);
	font-weight: 600;
}

.code-block {
	background-color: #1f2937;
	color: #f9fafb;
	padding: 1rem;
	border-radius: 6px;
	font-family: 'Courier New', monospace;
	font-size: 13px;
	overflow-x: auto;
	margin: 1rem 0;
	line-height: 1.6;
	white-space: pre;
}

/* ---------- entity view ---------- */
.back-link {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	margin-bottom: 1.25rem;
	padding: 0;
	background: none;
	border: none;
	cursor: pointer;
	font-size: 13px;
	font-weight: 500;
	color: var(--color-accent);
	font-family: inherit;
}

.back-link:hover {
	color: var(--color-primary);
}

.entity-header-section {
	display: flex;
	align-items: center;
	gap: 12px;
	margin-bottom: 8px;
}

.entity-icon-wrapper {
	border-radius: 8px;
	background-color: var(--color-accent-bg);
	border: 1px solid var(--color-accent-border);
	padding: 10px;
	display: flex;
}

.entity-icon-svg {
	color: var(--color-accent);
}

.entity-header-text {
	flex: 1;
}

.entity-title {
	font-size: 20px;
	font-weight: bold;
	color: var(--color-primary);
	margin: 0;
}

.entity-subtitle {
	font-size: 12px;
	color: var(--color-text-muted);
	margin-top: 2px;
}

.entity-description {
	font-size: 14px;
	color: var(--color-text);
	line-height: 1.6;
	margin-top: 12px;
	margin-bottom: 1rem;
}

/* ---------- schema block ---------- */
.schema-block {
	margin-top: 0.75rem;
}

.schema-toggle {
	width: 100%;
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 10px 16px;
	border: 1px solid var(--color-accent);
	border-radius: 6px;
	background-color: var(--color-accent-bg);
	cursor: pointer;
	text-align: left;
	font-family: inherit;
	transition: background-color 0.15s;
}

.schema-toggle:hover {
	background-color: #e8f8fb;
}

.schema-label {
	font-size: 14px;
	font-weight: 600;
	color: var(--color-primary);
	text-transform: uppercase;
	letter-spacing: 0.05em;
	flex-shrink: 0;
}

.schema-count {
	flex-shrink: 0;
	padding: 1px 6px;
	border-radius: 4px;
	border: 1px solid var(--color-accent-border);
	background: #fff;
	color: var(--color-accent);
	font-family: 'Courier New', monospace;
	font-size: 10px;
}

.schema-dot {
	color: var(--color-accent-border);
	flex-shrink: 0;
}

.schema-pills {
	display: flex;
	flex-wrap: wrap;
	gap: 4px;
	flex: 1;
	min-width: 0;
}

.schema-pill {
	padding: 1px 7px;
	border-radius: 9999px;
	border: 1px solid var(--color-accent-border);
	background: #fff;
	color: var(--color-accent);
	font-size: 10px;
	white-space: nowrap;
}

.schema-view {
	display: inline-flex;
	align-items: center;
	gap: 4px;
	flex-shrink: 0;
	font-size: 12px;
	font-weight: 500;
	color: var(--color-accent);
}

/* ---------- schema dialog ---------- */
.schema-dialog {
	width: 100%;
	max-width: 840px;
	max-height: calc(100% - 4rem);
	padding: 0;
	border: none;
	background: #fff;
	border-radius: 12px;
	box-shadow: 0 18px 48px rgba(15, 23, 30, 0.28);
	overflow: hidden;
}

.schema-dialog[open] {
	display: flex;
	flex-direction: column;
}

.schema-dialog::backdrop {
	background: rgba(15, 23, 30, 0.55);
}

.schema-dialog-header {
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 1.25rem 1.5rem 0.75rem;
}

.schema-dialog-hash {
	color: var(--color-accent);
	font-size: 20px;
	font-weight: 700;
}

.schema-dialog-title {
	margin: 0;
	font-size: 20px;
	font-weight: 700;
	color: var(--color-primary);
}

.schema-dialog-count {
	padding: 2px 8px;
	border-radius: 4px;
	border: 1px solid var(--color-accent-border);
	background: var(--color-accent-bg);
	color: var(--color-accent);
	font-family: 'Courier New', monospace;
	font-size: 11px;
}

.schema-dialog-close {
	margin-left: auto;
	width: 28px;
	height: 28px;
	display: flex;
	align-items: center;
	justify-content: center;
	border: none;
	border-radius: 6px;
	background: none;
	color: var(--color-text-muted);
	font-size: 22px;
	line-height: 1;
	cursor: pointer;
}

.schema-dialog-close:hover {
	background: #f3f4f6;
	color: var(--color-primary);
}

.schema-dialog-search {
	position: relative;
	display: flex;
	align-items: center;
	padding: 0 1.5rem 1rem;
}

.schema-dialog-search .search-icon {
	position: absolute;
	left: calc(1.5rem + 10px);
}

.schema-dialog-search .search-input {
	border-radius: 8px;
}

.schema-dialog-body {
	flex: 1;
	min-height: 0;
	overflow-y: auto;
	padding: 0 1.5rem 1.5rem;
	background: #fafbfc;
}

.schema-group {
	margin-bottom: 1.25rem;
}

.schema-group-title {
	font-size: 11px;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.06em;
	color: var(--color-text-muted);
	margin: 1rem 0 0.5rem;
}

.schema-cards {
	border: 1px solid var(--color-border);
	border-radius: 8px;
	background: #fff;
	overflow: hidden;
}

.schema-card {
	padding: 12px 14px;
	border-bottom: 1px solid #f1f3f5;
}

.schema-card:last-child {
	border-bottom: none;
}

.schema-card-head {
	display: flex;
	align-items: center;
	gap: 8px;
	flex-wrap: wrap;
}

.schema-field-name {
	font-family: 'Courier New', monospace;
	font-size: 13px;
	font-weight: 700;
	color: var(--color-primary);
}

.type-pill {
	padding: 1px 7px;
	border-radius: 4px;
	font-family: 'Courier New', monospace;
	font-size: 11px;
	border: 1px solid transparent;
}

.type-string { background: #eef2ff; color: #3730a3; border-color: #c7d2fe; }
.type-boolean { background: #ecfdf5; color: #065f46; border-color: #a7f3d0; }
.type-integer, .type-number { background: #fff7ed; color: #9a3412; border-color: #fed7aa; }
.type-object { background: #f3f4f6; color: #374151; border-color: #e5e7eb; }
.type-null { background: #f9fafb; color: #6b7280; border-color: #e5e7eb; }

.schema-field-desc {
	margin-top: 5px;
	font-size: 13px;
	line-height: 1.5;
	color: var(--color-text);
}

/* Fields of a nested object, indented under the field that carries them. */
.schema-nested {
	margin: 8px 0 0 10px;
	padding-left: 12px;
	border-left: 2px solid var(--color-border);
}

.schema-card-nested {
	padding: 8px 0;
	border-bottom: 1px solid #f1f3f5;
}

.schema-card-nested:last-child {
	border-bottom: none;
}

.schema-nested-count {
	font-size: 11px;
	color: var(--color-text-muted);
}

/* ---------- endpoints ---------- */
.endpoints-section {
	margin-top: 1rem;
}

.endpoints-heading {
	font-size: 16px;
	font-weight: 600;
	color: var(--color-primary);
	margin-bottom: 0.75rem;
}

.endpoints-list {
	display: flex;
	flex-direction: column;
	gap: 8px;
}

.endpoint-card {
	background: #fff;
	border: 1px solid var(--color-border);
	border-radius: 8px;
	overflow: hidden;
}

.endpoint-header {
	width: 100%;
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 12px;
	background: none;
	border: none;
	cursor: pointer;
	text-align: left;
	transition: background-color 0.15s;
	font-family: inherit;
}

.endpoint-header:hover {
	background-color: #f9fafb;
}

.method-badge {
	padding: 4px 10px;
	border-radius: 4px;
	font-size: 11px;
	font-weight: 700;
	flex-shrink: 0;
	font-family: monospace;
}

.method-get { background-color: #d1fae5; color: #065f46; }
.method-post { background-color: #dbeafe; color: #1e40af; }
.method-put { background-color: #fef3c7; color: #92400e; }
.method-patch { background-color: #e0e7ff; color: #3730a3; }
.method-delete { background-color: #fee2e2; color: #991b1b; }
.method-query { background-color: #ede9fe; color: #5b21b6; }

/* GraphQL entity page (ITEC-667) */
.protocol-badge {
	display: inline-block;
	margin-left: 8px;
	padding: 2px 8px;
	border-radius: 10px;
	font-size: 11px;
	font-weight: 600;
	vertical-align: middle;
	background-color: #ede9fe;
	color: #5b21b6;
}
.protocol-badge.protocol-rest {
	background-color: #dcfce7;
	color: #166534;
}
.graphql-type-block { margin-bottom: 20px; }
.graphql-type-name { margin: 16px 0 6px; font-size: 14px; }

.endpoint-path {
	font-family: 'Courier New', monospace;
	font-size: 13px;
	color: var(--color-primary);
	flex: 1;
	min-width: 0;
	overflow: hidden;
	text-overflow: ellipsis;
}

.endpoint-summary {
	font-size: 13px;
	color: var(--color-text-muted);
	flex-shrink: 0;
	max-width: 260px;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.expand-icon {
	color: #9ca3af;
	font-size: 12px;
	flex-shrink: 0;
}

.endpoint-details {
	padding: 1rem;
	border-top: 1px solid var(--color-border);
	background-color: #fafafa;
	font-size: 14px;
	color: var(--color-text);
}

.endpoint-details p.detail-description {
	margin: 0 0 1rem;
	line-height: 1.6;
}

.detail-heading {
	font-size: 12px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.05em;
	color: var(--color-text-muted);
	margin: 1.25rem 0 0.5rem;
}

.detail-heading:first-child {
	margin-top: 0;
}

/* field / parameter tables */
.field-table {
	width: 100%;
	border-collapse: collapse;
	background: #fff;
	border: 1px solid var(--color-border);
	border-radius: 6px;
	overflow: hidden;
	font-size: 13px;
}

.field-table th {
	text-align: left;
	padding: 8px 10px;
	background: #f3f4f6;
	color: var(--color-text-muted);
	font-size: 11px;
	text-transform: uppercase;
	letter-spacing: 0.04em;
	font-weight: 600;
	border-bottom: 1px solid var(--color-border);
}

.field-table td {
	padding: 8px 10px;
	border-bottom: 1px solid #f1f3f5;
	vertical-align: top;
}

.field-table tr:last-child td {
	border-bottom: none;
}

.field-name {
	font-family: 'Courier New', monospace;
	color: var(--color-primary);
	font-weight: 600;
	white-space: nowrap;
}

.field-type {
	font-family: 'Courier New', monospace;
	color: var(--color-accent);
	white-space: nowrap;
}

.type-link {
	color: inherit;
	text-decoration: underline dotted;
}

.field-required {
	display: inline-block;
	margin-left: 6px;
	padding: 1px 5px;
	border-radius: 3px;
	background: #fee2e2;
	color: #991b1b;
	font-size: 10px;
	font-weight: 700;
	font-family: system-ui, sans-serif;
	vertical-align: middle;
}

.field-desc {
	color: var(--color-text);
	line-height: 1.5;
}

.field-empty {
	color: #9ca3af;
	font-size: 13px;
	margin: 0;
}

/* ---------- footer ---------- */
.api-footer {
	margin-top: 3rem;
	padding-top: 1.5rem;
	border-top: 1px solid var(--color-border);
	font-size: 12px;
	color: var(--color-text-muted);
}

.api-footer .footer-highlight {
	font-weight: 500;
	color: var(--color-primary);
}

/* ---------- responsive ---------- */
/* The sidebar is a fixed 256px column, which leaves nothing for content on a phone.
   Below the breakpoint it becomes an off-canvas drawer opened from the header. */

.sidebar-toggle {
	display: none;
	align-items: center;
	justify-content: center;
	width: 32px;
	height: 32px;
	padding: 0;
	border: 1px solid var(--color-border);
	border-radius: 6px;
	background: #fff;
	color: var(--color-primary);
	cursor: pointer;
	flex-shrink: 0;
}

.sidebar-toggle:hover {
	background: #f3f4f6;
}

.sidebar-backdrop {
	display: none;
}

@media (max-width: 1100px) {
	.api-sidebar {
		width: 220px;
	}
}

@media (max-width: 900px) {
	.sidebar-toggle {
		display: inline-flex;
	}

	.api-header .breadcrumb {
		display: none;
	}

	.api-sidebar {
		position: fixed;
		top: var(--header-height);
		bottom: 0;
		left: 0;
		z-index: 60;
		width: 280px;
		max-width: 85vw;
		background: #fff;
		border-right: 1px solid var(--color-border);
		transform: translateX(-100%);
		transition: transform 0.2s ease;
	}

	.sidebar-open .api-sidebar {
		transform: translateX(0);
		box-shadow: 0 8px 32px rgba(15, 23, 30, 0.18);
	}

	.sidebar-open .sidebar-backdrop {
		display: block;
		position: fixed;
		inset: var(--header-height) 0 0 0;
		z-index: 50;
		background: rgba(15, 23, 30, 0.35);
	}

	.main-inner {
		padding: 1.5rem 1.25rem;
	}
}

@media (max-width: 700px) {
	/* Label, count and category pills stop fitting on one row; stack them instead of
	   letting the pills wrap into a tall column beside the label. */
	.schema-toggle {
		flex-wrap: wrap;
		row-gap: 8px;
	}

	.schema-dot {
		display: none;
	}

	.schema-pills {
		flex-basis: 100%;
		order: 3;
	}

	.schema-view {
		margin-left: auto;
	}

	/* The path is what identifies an endpoint; the summary is what gets truncated. */
	.endpoint-summary {
		display: none;
	}

	.main-header {
		flex-wrap: wrap;
	}

	.download-group {
		flex-basis: 100%;
		margin-left: 0;
	}

	/* Field tables have three columns of their own minimum width, so let the table
	   scroll inside the panel rather than crushing the description column. */
	.endpoint-details,
	.schema-dialog-body {
		overflow-x: auto;
	}

	.field-table {
		min-width: 460px;
	}

	.api-header .header-content {
		padding: 0 1rem;
	}

	.admin-center-button {
		padding: 6px 10px;
		font-size: 13px;
	}

	.api-header .header-link {
		display: none;
	}
}

@media (max-width: 420px) {
	.api-header .logo-text {
		display: none;
	}

	.main-inner {
		padding: 1.25rem 1rem;
	}

	.page-title {
		font-size: 20px;
	}

	.schema-dialog {
		max-width: 100%;
		border-radius: 8px;
	}
}
