/* Shared styles — Connect AI pages */
h1, h2, p{
	text-wrap: pretty;
}

.text-wrap-pretty{
	text-wrap: pretty;
}

.text-wrap-balance{
	text-wrap: balance;
}

.code-snippet{
	font-family: var(--font-eyebrow);
	font-size: var(--label-s);
	color: var(--text-fill-1);
	line-height: 1.2;
	display: block;
}

/* mcp-gateway "fit check" answer boxes — pinned to a shared min-height by
   scripts.js; centered so the extra room lands evenly, not just below the text. */
.gw-fit-box {
	display: flex;
	flex-direction: column;
	justify-content: center;
	box-sizing: border-box;
}

/* mcp-gateway "Tool structure" panel — toolkits management table mockup */
.gw-toolkit-panel {
	background: var(--surface-fill-1);
	border: 1px solid var(--surface-fill-4);
	border-radius: 10px;
	overflow: hidden;
	box-shadow: 0 10px 30px rgba(21,21,28,0.06);
	margin: var(--space-16) 0;
}

.gw-toolkit-panel__chrome {
	display: flex;
	align-items: center;
	gap: 7px;
	padding: var(--space-16) var(--space-20);
}

.gw-toolkit-panel__chrome span {
	width: 11px;
	height: 11px;
	border-radius: 50%;
	background: var(--surface-fill-4);
}

.gw-toolkit-panel__body {
	border-top: 1px solid var(--surface-fill-4);
	padding: var(--space-16);
	display: flex;
	flex-direction: column;
	gap: var(--space-16);
}

.gw-toolkit-panel__toolbar {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: var(--space-12);
	flex-wrap: wrap;
}

.gw-toolkit-panel__search {
	flex: 1 1 auto;
	min-width: 160px;
	max-width: 320px;
	display: flex;
	align-items: center;
	gap: var(--space-8);
	height: 38px;
	padding: 0 14px;
	border: 1px solid var(--surface-fill-3);
	border-radius: 999px;
	background: var(--surface-fill-1);
	color: var(--text-fill-3);
	font-size: var(--label-s);
	white-space: nowrap;
	overflow: hidden;
}

.gw-toolkit-panel__btn {
	display: inline-flex;
	align-items: center;
	gap: var(--space-8);
	height: 34px;
	padding: 0 14px;
	border: 1px solid var(--surface-fill-3);
	background: var(--surface-fill-1);
	color: var(--text-fill-2);
	font-size: var(--label-s);
	font-family: inherit;
	white-space: nowrap;
	cursor: default;
}

.gw-toolkit-panel__btn--primary {
	border-color: var(--brand-resolve);
	background: var(--brand-resolve);
	color: var(--gray-1);
	font-weight: 700;
}

.gw-toolkit-panel__head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding-bottom: var(--space-8);
	border-bottom: 1px solid var(--surface-fill-4);
	font-family: var(--font-eyebrow);
	font-size: var(--label-s);
	letter-spacing: 0.06em;
	text-transform: uppercase;
	color: var(--text-fill-3);
}

.gw-toolkit-row {
	display: flex;
	align-items: center;
	gap: var(--space-12);
	padding: 12px 4px;
	border-bottom: 1px solid var(--surface-fill-4);
}

.gw-toolkit-row:last-child {
	border-bottom: none;
}

.gw-toolkit-row__check {
	width: 16px;
	height: 16px;
	border: 1.5px solid var(--surface-fill-4);
	border-radius: 3px;
	flex-shrink: 0;
}

.gw-toolkit-row > i.fa-folder {
	color: var(--text-fill-3);
	font-size: 18px;
	flex-shrink: 0;
}

.gw-toolkit-row__name {
	flex: 1 1 auto;
	min-width: 0;
	display: flex;
	flex-direction: column;
}

.gw-toolkit-row__name span:first-child {
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

/* shared overlapping circular icon avatars — toolkit rows, workspace cards */
.gw-avatar-stack {
	display: flex;
	align-items: center;
	flex-shrink: 0;
}

.gw-avatar-stack img {
	width: 26px;
	height: 26px;
	border-radius: 50%;
	background: var(--surface-fill-1);
	box-shadow: 0 0 0 1px var(--surface-fill-4);
	object-fit: contain;
	padding: 5px;
	box-sizing: border-box;
}

.gw-avatar-stack img + img {
	margin-left: -7px;
}

.gw-toolkit-row__copy {
	flex-shrink: 0;
	white-space: nowrap;
	height: 30px;
	padding: 0 12px;
	border: 1px solid var(--brand-resolve);
	background: transparent;
	color: var(--brand-resolve);
	font-size: var(--label-s);
	font-weight: 600;
	font-family: inherit;
	cursor: default;
}

@media (max-width: 575px) {
	.gw-toolkit-row__copy { display: none; }
}

/* mcp-gateway "Scoped access" panel — Sales/Marketing workspace card mockup */
.gw-workspace-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
	gap: var(--space-16);
	margin: var(--space-16) 0;
}

.gw-workspace-card {
	background: var(--surface-fill-1);
	border: 1px solid var(--surface-fill-4);
	border-radius: 10px;
	box-shadow: 0 10px 30px rgba(21,21,28,0.06);
	overflow: hidden;
}

.gw-workspace-card__head {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: var(--space-12);
	padding: var(--space-16) var(--space-20);
	border-bottom: 1px solid var(--surface-fill-4);
}

.gw-workspace-card__name {
	display: block;
	font-weight: 700;
	color: var(--text-fill-1);
}

.gw-workspace-card__eyebrow {
	display: block;
	margin-top: 2px;
	font-family: var(--font-eyebrow);
	font-size: var(--label-s);
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: var(--text-fill-3);
}

.gw-workspace-row {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: var(--space-12);
	padding: 9px var(--space-20);
	border-bottom: 1px solid var(--surface-fill-4);
	font-family: var(--font-eyebrow);
	font-size: var(--label-s);
	color: var(--text-fill-1);
}

.gw-workspace-row:last-child {
	border-bottom: none;
}

.gw-workspace-row--off {
	color: var(--text-fill-3);
}

/* shared active-status dot — workspace rows, identity rows */
.gw-status-dot {
	width: 8px;
	height: 8px;
	border-radius: 50%;
	background: var(--brand-agility);
	box-shadow: 0 0 0 1px color-mix(in srgb, var(--brand-agility), black 20%);
	flex-shrink: 0;
}

.gw-workspace-row__off {
	font-size: var(--label-s);
	letter-spacing: 0.08em;
	color: var(--text-fill-3);
}

/* mcp-gateway "Identity" panel — single request trace card mockup */
.gw-identity-card {
	max-width: 420px;
	width: 100%;
	margin: var(--space-16) auto;
	background: var(--surface-fill-1);
	border: 1px solid var(--surface-fill-4);
	border-radius: 10px;
	box-shadow: 0 10px 30px rgba(21,21,28,0.06);
	overflow: hidden;
}

.gw-identity-card__head {
	display: flex;
	align-items: center;
	gap: var(--space-12);
	padding: var(--space-16) var(--space-20);
	border-bottom: 1px solid var(--surface-fill-4);
}

.gw-identity-avatar {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 32px;
	height: 32px;
	border-radius: 50%;
	background: var(--surface-fill-2);
	box-shadow: 0 0 0 1px var(--surface-fill-4);
	font-size: var(--label-s);
	font-weight: 700;
	color: var(--text-fill-2);
	flex-shrink: 0;
}

.gw-identity-row {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: var(--space-12);
	padding: 11px var(--space-20);
	border-bottom: 1px solid var(--surface-fill-4);
}

.gw-identity-row:last-child {
	border-bottom: none;
}

.gw-identity-row__label {
	display: inline-flex;
	align-items: center;
	gap: var(--space-8);
	font-family: var(--font-eyebrow);
	font-size: var(--label-s);
	color: var(--text-fill-1);
	flex-shrink: 0;
}

.gw-identity-row__icon {
	width: 26px;
	height: 26px;
	border-radius: 50%;
	background: var(--surface-fill-1);
	box-shadow: 0 0 0 1px var(--surface-fill-4);
	object-fit: contain;
	padding: 5px;
	box-sizing: border-box;
}

.gw-identity-row__prompt {
	font-family: var(--font-eyebrow);
	font-size: var(--label-s);
	color: var(--text-fill-2);
}

.gw-identity-row__tag {
	font-family: var(--font-eyebrow);
	font-size: 10px;
	letter-spacing: 0.1em;
	color: var(--text-fill-3);
	flex-shrink: 0;
}

.gw-identity-row__value {
	font-size: var(--label-s);
	color: var(--text-fill-2);
	text-align: right;
}

.gw-identity-row__value--ok {
	color: #1B7F4D;
}

.gw-identity-row__value--muted {
	color: var(--text-fill-3);
}

.gw-identity-row--indent .gw-identity-row__label {
	padding-left: var(--space-20);
}

.gw-identity-row--indent2 .gw-identity-row__label {
	padding-left: 40px;
}

.gw-identity-avatar--sm {
	width: 22px;
	height: 22px;
	font-size: 9px;
}

/* model-gateway "Manage routing, budgets, and failover" — budget scope bar */
.gw-budget-scope-row {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	gap: var(--space-12);
	padding: var(--space-16) var(--space-20) 0;
	font-family: var(--font-eyebrow);
	font-size: var(--label-s);
}

.gw-budget-scope-row span:last-child {
	font-family: inherit;
	color: var(--text-fill-2);
}

.gw-budget-bar {
	display: flex;
	margin: var(--space-12) var(--space-20) 0;
	height: 64px;
	border-radius: 8px;
	overflow: hidden;
	box-shadow: 0 0 0 1px var(--surface-fill-4);
}

.gw-budget-bar__seg {
	display: flex;
	flex-direction: column;
	justify-content: center;
	align-items: center;
	gap: 2px;
	padding: 0 12px;
	min-width: 0;
	border-left: 1px solid var(--surface-fill-4);
}

.gw-budget-bar__seg:first-child {
	border-left: none;
}

.gw-budget-bar__seg--a { flex: 46 1 0; background: var(--brand-agility); align-items: flex-start; }
.gw-budget-bar__seg--b { flex: 30 1 0; background: color-mix(in srgb, var(--brand-agility), white 55%); align-items: flex-start; }
.gw-budget-bar__seg--c { flex: 10 1 0; background: var(--surface-fill-2); }
.gw-budget-bar__seg--d { flex: 14 1 0; background: var(--surface-fill-1); border-left-style: dashed; }

.gw-budget-bar__label {
	font-size: 11px;
	font-weight: 700;
	color: var(--text-fill-1);
	white-space: nowrap;
}

.gw-budget-bar__value {
	font-size: 10px;
	color: var(--text-fill-2);
	white-space: nowrap;
}

.gw-budget-bar__unspent {
	font-size: var(--label-s);
	color: var(--text-fill-3);
	white-space: nowrap;
}

/* model-gateway "Failover policy" — reroute diagram */
.gw-reroute__caption {
	text-align: center;
	font-family: var(--font-eyebrow);
	font-size: var(--label-s);
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: var(--text-fill-2);
	margin-bottom: var(--space-20);
}

.gw-reroute__grid {
	display: grid;
	grid-template-columns: 1fr auto 1fr;
	gap: var(--space-12);
	align-items: center;
}

.gw-reroute__request {
	display: flex;
	align-items: center;
	gap: var(--space-8);
	background: var(--surface-fill-1);
	border: 1px solid var(--surface-fill-4);
	border-radius: 10px;
	box-shadow: 0 10px 30px rgba(21,21,28,0.06);
	padding: 14px var(--space-16);
}

.gw-reroute__request-title {
	display: block;
	font-weight: 700;
	font-size: var(--label-s);
	color: var(--text-fill-1);
}

.gw-reroute__request-sub {
	display: block;
	margin-top: 2px;
	font-family: var(--font-eyebrow);
	font-size: 10px;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	color: var(--text-fill-3);
}

.gw-reroute__connectors {
	display: flex;
	flex-direction: column;
	gap: var(--space-16);
	align-items: center;
}

.gw-reroute__connector {
	display: flex;
	align-items: center;
	gap: var(--space-8);
	color: var(--text-fill-2);
}

.gw-reroute__connector-line {
	display: block;
	width: 36px;
	height: 0;
	border-top: 2px solid;
}

.gw-reroute__connector--failed .gw-reroute__connector-line {
	border-top-color: #E0B4B0;
	border-top-style: dashed;
}

.gw-reroute__connector--ok .gw-reroute__connector-line {
	border-top-color: color-mix(in srgb, var(--brand-agility), black 20%);
}

.gw-reroute__connector-x {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 22px;
	height: 22px;
	border-radius: 50%;
	background: var(--surface-fill-1);
	box-shadow: 0 0 0 1px var(--surface-fill-4);
	color: #C0392B;
	font-size: 10px;
}

.gw-reroute__providers {
	display: flex;
	flex-direction: column;
	gap: var(--space-8);
}

.gw-reroute__provider {
	display: flex;
	align-items: center;
	gap: var(--space-8);
	background: var(--surface-fill-1);
	border: 1px solid var(--surface-fill-4);
	border-radius: 10px;
	box-shadow: 0 10px 30px rgba(21,21,28,0.06);
	padding: 12px var(--space-16);
}

.gw-reroute__provider--degraded {
	opacity: 0.6;
	box-shadow: none;
}

.gw-reroute__provider-name {
	flex: 1 1 auto;
	min-width: 0;
	font-family: var(--font-eyebrow);
	font-size: var(--label-s);
	color: var(--text-fill-1);
}

.gw-reroute__provider--degraded .gw-reroute__provider-name {
	color: var(--text-fill-3);
	text-decoration: line-through;
}

.gw-reroute__provider-tag {
	display: inline-flex;
	align-items: center;
	gap: var(--space-8);
	flex-shrink: 0;
	font-size: 11px;
	font-weight: 700;
	color: var(--text-fill-2);
	white-space: nowrap;
}

.gw-reroute__provider-tag--bad {
	color: #C0392B;
}

@media (max-width: 767px) {
	.gw-reroute__grid {
		grid-template-columns: 1fr;
	}

	.gw-reroute__connectors {
		flex-direction: row;
		justify-content: center;
	}

	.gw-reroute__connector-line {
		width: 24px;
	}
}

/* fit-check "Exploratory / Deterministic" range line — arrowheads drawn from
   the line's own pseudo-elements so they sit flush against it, instead of
   icon glyphs that leave a sliver of whitespace no matter how tight the gap. */
.gw-range-line {
	position: relative;
	height: 1.5px;
	background: currentColor;
}

.gw-range-line::before,
.gw-range-line::after {
	content: "";
	position: absolute;
	top: 50%;
	width: 0;
	height: 0;
	border-top: 5px solid transparent;
	border-bottom: 5px solid transparent;
	transform: translateY(-50%);
}

.gw-range-line::before {
	left: 0;
	border-right: 7px solid currentColor;
}

.gw-range-line::after {
	right: 0;
	border-left: 7px solid currentColor;
}

.panel-btns {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: var(--space-8);
	border-top: 1px solid var(--surface-fill-4);
	padding-top: var(--space-16);
}

@media (max-width:575px){
	.panel-btns{
		flex-direction: column;
	}
}

.panel-btn {
	display: inline-flex;
	align-items: center;
	gap: var(--space-8);
	padding: var(--space-12) var(--space-16);
	border: 1px solid var(--surface-fill-4);
	border-radius: 2px;
	background-color: var(--surface-fill-1);
	color: var(--text-fill-1);
	font-family: inherit;
	font-size: var(--label-m);
	font-weight: 500;
	white-space: nowrap;
	cursor: pointer;
	transition: background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease;
	flex: 1;
}

[data-theme="dark"] .panel-btn {
	background-color: color-mix(in srgb, var(--gray-1) 10%, transparent);
	border-color: color-mix(in srgb, var(--gray-1) 20%, transparent);
	color: var(--text-fill-1);
}

[data-theme="dark"] .panel-btn:hover {
	border-color: color-mix(in srgb, var(--gray-1) 40%, transparent);
}

[data-theme="dark"] .panel-btn.active {
	background-color: var(--brand-agility);
	color: var(--brand-depth);
	border-color: var(--brand-agility);
}

.panel-btn:hover {
	border-color: var(--text-fill-1);
}

.panel-btn.active {
	background-color: var(--text-fill-1);
	color: var(--surface-fill-1);
	border-color: var(--text-fill-1);
}

.gw-tab-panel {
	margin-top: var(--space-48);
}

.gw-graphic-box {
	border: 1px solid var(--surface-fill-4);
	background: var(--surface-fill-2);
	padding: var(--space-40);
	display: flex;
	flex-direction: column;
	justify-content: center;
}

.auto-tab .sequenceIndicator {
	background-color: var(--brand-balance);
}

.auto-tab.is-active {
	background: var(--surface-fill-1);
}

.auto-tab.is-active .sequenceIndicator {
	background-color: var(--brand-resolve);
}

.auto-tab-indicator {
	position: absolute;
	left: 0;
	top: 0;
	width: 4px;
	height: 100%;
	background: var(--surface-fill-4);
}

/* MCP / Model Catalog hero: the column is wide so the h1 stays on one line;
   the subhead keeps a readable measure */
.catalog-hero-sub {
	max-width: 820px;
	margin-left: auto;
	margin-right: auto;
}

.server-tile {
	position: relative;
	border: 1px solid var(--surface-fill-3);
	background-color: var(--surface-fill-1);
	padding: var(--space-24) var(--space-16);
	display: flex;
	flex-direction: column;
	gap: var(--space-20);
	height: 100%;
	transition: all 0.2s ease-in-out;
}

.server-tile:hover {
	border-color: var(--gray-12);
}

.server-tile img {
	width: 36px;
	height: 36px;
	object-fit: contain;
}

.server-name {
	font-weight: 500;
	display: block;
	line-height: var(--line-height-110);
	font-size: var(--body-m);
}

.server-tag {
	color: var(--text-fill-3);
	font-family: var(--font-eyebrow);
	font-size: var(--eyebrow-s);
	text-transform: capitalize;
}

.panel-search-wrap {
	position: relative;
	flex: 1 1 240px;
	min-width: 200px;
}

.panel-search-input {
	width: 100%;
	border: 1px solid var(--surface-fill-4);
	border-radius: 2px;
	background-color: var(--surface-fill-1);
	color: var(--text-fill-1);
	font-family: inherit;
	font-size: var(--label-m);
	padding: var(--space-12) var(--space-32) var(--space-12) var(--space-16);
}

.panel-search-input:focus {
	outline: none;
	border-color: var(--text-fill-1);
}

.panel-search-wrap .profile-search-clear {
	position: absolute;
	right: var(--space-8);
	top: 50%;
	transform: translateY(-50%);
	width: 24px;
	height: 24px;
	display: none;
	align-items: center;
	justify-content: center;
	padding: 0;
	background: transparent;
	border: 0;
	color: var(--text-fill-3);
	cursor: pointer;
	font-size: var(--label-s);
	border-radius: 2px;
	transition: color 0.15s ease, background-color 0.15s ease;
}

.panel-search-wrap .profile-search-clear:hover,
.panel-search-wrap .profile-search-clear:focus {
	color: var(--text-fill-1);
	background: var(--surface-fill-2);
	outline: none;
}

.panel-search-wrap.has-value .profile-search-clear {
	display: flex;
}

.profile-search-empty {
	margin: var(--space-24) 0;
	color: var(--text-fill-3);
	font-family: var(--font-body);
	font-size: var(--body-m);
	background-color: var(--surface-fill-1);
	border: 1px solid var(--surface-fill-3);
	padding: var(--space-24);
	text-align: center;
}


/* auto-tabs (matches token-optimization pattern) */
@keyframes mcp-tab-fill {
	from {
		height: 0;
	}

	to {
		height: 100%;
	}
}

.auto-tabs {
	border-top: 1px solid var(--surface-fill-4);
	display: flex;
	flex-direction: column;
	height: 100%;
}

.auto-tab {
	position: relative;
	display: flex;
	flex: 1 1 auto;
	flex-direction: column;
	gap: var(--space-8);
	padding: var(--space-32) 20px var(--space-32) 24px;
	background: transparent;
	cursor: pointer;
	text-align: left;
	width: 100%;
	transition: background 200ms cubic-bezier(0.2, 0, 0, 1);
	font-family: inherit;
	border-width: 0 1px 1px 1px;
	border-style: solid;
	border-color: var(--surface-fill-4);
	justify-content: center;
	outline: none;
}

.auto-tab:hover{
	background: color-mix(in srgb, var(--surface-fill-1), transparent 50%);
}

.auto-tab h4 {
	margin: 0;
}

.auto-tab-desc {
	overflow: hidden;
	height: 0;
	opacity: 0;
	margin-top: var(--space-8);
	transition: transform 400ms cubic-bezier(0.2, 0, 0, 1), opacity 280ms ease;
	transform: translateY(12px);
	
}

/* Every open description reserves the tallest one's height (measured into
   --auto-tab-desc-h), so the tab that closes gives back exactly what the tab
   that opens takes. A plain max-height would only cap each description at its
   own natural height, and the difference between them shifted the page below. */
.auto-tab.is-active .auto-tab-desc {
	height: var(--auto-tab-desc-h, auto);
	opacity: 1;
	transform:none;
}

.auto-tab-indicator-fill {
	display: block;
	width: 100%;
	height: 0;
	background: var(--brand-agility);
	transition: height 200ms ease;
}

.auto-tab.is-active .auto-tab-indicator-fill {
	height: 100%;
}

/* Every panel occupies the same grid cell, so the wrapper always measures the
   tallest one. Inactive panels stay hidden but keep their space, so switching
   tabs can't change the wrapper's height and reflow the page below it. */
.auto-tab-panel-wrapper {
	position: relative;
	display: grid;
	background-color: var(--surface-fill-3);
	border-radius: 2px;
	border: 1px solid var(--surface-fill-4);
}

.auto-tab-panel {
	grid-area: 1 / 1;
	display: flex;
	flex-direction: column;
	gap: 16px;
	padding: var(--space-32);
	opacity: 0;
	visibility: hidden;
	transform: translateY(10px);
	transition: opacity 400ms ease, transform 400ms ease, visibility 0s 400ms;
}

.auto-tab-panel .gw-graphic-box {
	height: 100%;
}

.auto-tab-panel.is-active {
	opacity: 1;
	visibility: visible;
	transform: none;
	transition-delay: 0s;
}

/* "Expand all" mode — every tab's description shows at once; the right-side
   graphic panel stays pinned to the first tab rather than stacking all 5. */
.auto-tabs.is-expanded .auto-tab-desc {
	height: auto;
	opacity: 1;
	transform: none;
}

.gw-expand-all-btn {
	display: block;
	margin-top: var(--space-16);
	background: none;
	border: none;
	padding: 0;
	cursor: pointer;
	font-family: var(--font-eyebrow);
	font-size: var(--eyebrow-s);
	letter-spacing: 0.08em;
	color: var(--text-fill-3);
	text-decoration: underline;
	transition: color 200ms;
}

.gw-expand-all-btn:hover,
.gw-expand-all-btn.active {
	color: var(--text-fill-1);
}

/* "Expand all" sits above the tab list, inside the tab column so the per-group
   handler in scripts.js still finds it. The wrapper has a fixed height so the
   graphic column beside it can be offset by the same amount and both columns
   start level on desktop. */
:root {
	--gw-expand-all-h: 20px;
}

.gw-expand-all-wrap {
	height: var(--gw-expand-all-h);
	align-items: center;
	margin-bottom: var(--space-16);
}

.gw-expand-all-wrap .gw-expand-all-btn {
	margin-top: 0;
}

@media (min-width: 992px) {
	/* The tab column's height:100% auto-tabs used to ignore this wrap's own
	   space, overflowing its column by exactly the wrap's height + margin.
	   Making the column a column flexbox and letting auto-tabs grow into the
	   remaining space keeps it flush with the graphic column instead. */
	[class*="cols-"]:has(> .gw-expand-all-wrap) {
		display: flex;
		flex-direction: column;
	}
	[class*="cols-"]:has(> .gw-expand-all-wrap) > .auto-tabs {
		height: auto;
		flex: 1 1 auto;
		min-height: 0;
	}
	[class*="cols-"]:has(> .gw-expand-all-wrap) + [class*="cols-"] {
		padding-top: calc(var(--gw-expand-all-h) + var(--space-16));
	}
}

@media (min-width: 992px) {
	.auto-tab-panel-wrapper {
		height: 100%;
	}
}

/* trusted brands / logo ticker grid */
.trusted-brands-grid {
	display: grid;
	gap: var(--space-20);
	place-items: center;
}

.tag {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	background-color: var(--surface-fill-1);
	border: 1px solid var(--surface-fill-3);
	border-radius: 2px;
	color: var(--text-fill-2);
	font-size: var(--label-s);
	gap: var(--space-8);
	padding: var(--space-8);
	font-family: var(--font-eyebrow);
	line-height: var(--line-height-140);
}

@media (min-width:768px) {
	.trusted-brands-grid {
		grid-auto-flow: column;
		grid-auto-columns: 1fr;
	}
}

@media (max-width:991px) {
	.trusted-brands-grid {
		display: flex;
		flex-wrap: wrap;
		justify-content: center;
		align-items: center;
		gap: var(--space-20) var(--space-32);
	}

	.trusted-brands-grid>div {
		width: calc(25% - var(--space-32));
		display: flex;
		align-items: center;
		justify-content: center;
		flex: 0 0 auto;
	}
}

@media (max-width:420px) {
	.trusted-brands-grid>div {
		width: calc(50% - var(--space-32));
	}
}

/* team budget mock */
.gw-budget-mock {
	border: 1px solid var(--surface-fill-4);
	border-radius: 2px;
	overflow: hidden;
}

.gw-budget-mock__head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: var(--space-12) var(--space-16);
	background: var(--surface-fill-3);
	border-bottom: 1px solid var(--surface-fill-4);
}

.gw-budget-mock__title {
	display: flex;
	align-items: center;
	gap: var(--space-8);
	font-size: var(--label-m);
	font-weight: 500;
	color: var(--text-fill-1);
}

.gw-budget-mock__tag {
	font-family: var(--font-eyebrow);
	font-size: var(--eyebrow-s);
	letter-spacing: 0.08em;
	color: var(--text-fill-3);
	border: 1px solid var(--surface-fill-4);
	border-radius: 2px;
	padding: 3px 8px;
	background: var(--surface-fill-1);
	line-height: 1.5;
}

.gw-budget-mock__body {
	background: var(--surface-fill-1);
	padding: 0 var(--space-16);
}

.gw-budget-mock__col-head {
	display: grid;
	grid-template-columns: 1fr 1fr 44px;
	gap: var(--space-8);
	padding: var(--space-8) 0;
	border-bottom: 1px solid var(--surface-fill-3);
	font-family: var(--font-eyebrow);
	font-size: var(--eyebrow-s);
	letter-spacing: 0.08em;
	color: var(--text-fill-3);
}

.gw-budget-mock__row {
	display: grid;
	grid-template-columns: 1fr 1fr 44px;
	gap: var(--space-8);
	align-items: center;
	padding: var(--space-12) 0;
	border-bottom: 1px solid var(--surface-fill-3);
}

.gw-budget-mock__row:last-child { border-bottom: none; }

.gw-budget-mock__label {
	font-size: var(--label-m);
	color: var(--text-fill-2);
}

.gw-budget-mock__toggle {
	width: 34px;
	height: 19px;
	border-radius: 999px;
	position: relative;
	background: var(--surface-fill-4);
	flex-shrink: 0;
}

.gw-budget-mock__toggle::after {
	content: '';
	position: absolute;
	top: 2px;
	left: 2px;
	width: 15px;
	height: 15px;
	border-radius: 50%;
	background: var(--surface-fill-1);
	transition: left 150ms ease;
}

.gw-budget-mock__toggle.on { background: var(--brand-resolve); }

.gw-budget-mock__toggle.on::after { left: 17px; }

.gw-budget-mock__foot {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: var(--space-8) var(--space-16);
	background: var(--surface-fill-3);
	border-top: 1px solid var(--surface-fill-4);
	font-family: var(--font-eyebrow);
	font-size: var(--eyebrow-s);
	letter-spacing: 0.06em;
	color: var(--text-fill-3);
}

.gw-budget-mock__field {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	padding: 13px 0;
	border-bottom: 1px solid var(--surface-fill-3);
}

.gw-budget-mock__field:last-child { border-bottom: none; }

.gw-budget-mock__fk {
	font-family: var(--font-eyebrow);
	font-size: var(--eyebrow-s);
	letter-spacing: 0.06em;
	color: var(--text-fill-3);
	flex-shrink: 0;
}

.gw-budget-mock__fv {
	display: flex;
	gap: 6px;
	align-items: center;
	flex-wrap: wrap;
	justify-content: flex-end;
	color: var(--text-fill-1);
}

.gw-budget-mock__chip {
	font-family: var(--font-eyebrow);
	font-size: var(--eyebrow-s);
	color: var(--text-fill-1);
	border: 1px solid var(--surface-fill-4);
	border-radius: 2px;
	padding: var(--space-4) var(--space-8);
	background: var(--surface-fill-2);
}

.gw-budget-mock__chip--budget {
	background: var(--brand-agility);
	border-color: var(--text-fill-1);
}

.gw-budget-mock__mline {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	margin-top: var(--space-12);
}

.gw-budget-mock__mk {
	font-family: var(--font-eyebrow);
	font-size: var(--eyebrow-s);
	letter-spacing: 0.06em;
	color: var(--text-fill-3);
}

.gw-budget-mock__mv {
	font-family: var(--font-eyebrow);
	font-size: var(--eyebrow-s);
	color: var(--text-fill-1);
}

/* chart panel shared */
.gw-fviz__title {
	font-family: var(--font-eyebrow);
	font-size: var(--eyebrow-s);
	letter-spacing: 0.06em;
	color: var(--text-fill-3);
	margin-bottom: 16px;
}

.gw-fviz__bars { display: flex; flex-direction: column; gap: 10px; }

.gw-fviz__bar-track {
	height: 16px;
	background: var(--surface-fill-3);
	border-radius: 1px;
	overflow: hidden;
}

.gw-fviz__bar-fill { height: 100%; background: var(--surface-fill-4); }

.gw-fviz__bar-row--lo .gw-fviz__bar-fill { background: var(--brand-agility); }

.gw-fviz__bar-value {
	font-family: var(--font-eyebrow);
	font-size: var(--eyebrow-s);
	color: var(--text-fill-3);
}

.gw-fviz__bar-row--lo .gw-fviz__bar-label,
.gw-fviz__bar-row--lo .gw-fviz__bar-value { color: var(--text-fill-1); font-weight: 600; }

.gw-fviz__same {
	display: flex;
	align-items: center;
	gap: 8px;
	margin-top: var(--space-16);
	padding-top: var(--space-12);
	border-top: 1px solid var(--surface-fill-3);
}

.gw-fviz__same i { color: var(--text-fill-2); font-size: var(--eyebrow-s); flex-shrink: 0; margin-top: 2px; }

.gw-fviz__same span { font-family: var(--font-eyebrow); font-size: var(--eyebrow-s); color: var(--text-fill-2); }

/* agentic workload / provider status mocks */
.gw-budget-mock__status {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	font-family: var(--font-eyebrow);
	font-size: var(--eyebrow-s);
	padding: var(--space-8) var(--space-12);
	border-radius: 2px;
	background: var(--brand-agility);
	color: var(--text-fill-1);
	margin-bottom: var(--space-12);
}

.gw-budget-mock__stepper { display: flex; flex-direction: column; gap: 1px; }

.gw-budget-mock__stepper i { font-size: 8px; color: var(--text-fill-3); line-height: 1; }

.gw-budget-mock__bar-wrap {
	width: 90px;
	height: 12px;
	background: var(--surface-fill-3);
	border-radius: 1px;
	overflow: hidden;
}

.gw-budget-mock__bar-fill {
	display: block;
	height: 100%;
	background: var(--text-fill-2);
}

.gw-budget-mock__big {
	font-family: var(--font-display, inherit);
	font-size: var(--headline-m);
	color: var(--text-fill-1);
	letter-spacing: -0.01em;
	line-height: 1;
}

.gw-budget-mock__tspend {
	display: flex;
	align-items: flex-end;
	gap: 6px;
	height: 88px;
}

.gw-budget-mock__tcol {
	flex: 1;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: flex-end;
	gap: 5px;
	height: 100%;
}

.gw-budget-mock__tbar {
	width: 100%;
	background: var(--brand-resolve);
	border-radius: 1px 1px 0 0;
}

.gw-budget-mock__tcol--retry .gw-budget-mock__tbar { background: var(--brand-agility); }

.gw-budget-mock__tcol--blocked .gw-budget-mock__tbar {
	background: none;
	border: 1px dashed var(--surface-fill-4);
	min-height: 14px;
}

.gw-budget-mock__tstep {
	font-family: var(--font-eyebrow);
	font-size: 10px;
	color: var(--text-fill-3);
}

.gw-budget-mock__tcol--retry .gw-budget-mock__tstep { color: var(--text-fill-1); font-weight: 500; }

.gw-budget-mock__tlegend { display: flex; gap: 16px; }

.gw-budget-mock__tlg {
	display: flex;
	align-items: center;
	gap: 5px;
	font-family: var(--font-eyebrow);
	font-size: 10px;
	color: var(--text-fill-3);
}

.gw-budget-mock__sw { width: 10px; height: 10px; border-radius: 1px; }

.gw-budget-mock__retries-bar {
	height: 12px;
	background: var(--surface-fill-3);
	border-radius: 1px;
	overflow: hidden;
}

.gw-budget-mock__retries-fill { display: block; height: 100%; background: var(--brand-agility); }

.gw-budget-mock__body--workload {
	display: flex;
	flex-direction: column;
	gap: 12px;
}

/* spend dashboard chart */
.gw-dash__tabs { display: flex; gap: 4px; }

.gw-dash__tab {
	font-family: var(--font-eyebrow);
	font-size: var(--eyebrow-s);
	padding: 3px 10px;
	border: 1px solid var(--surface-fill-4);
	border-radius: 2px;
	color: var(--text-fill-3);
	background: var(--surface-fill-1);
}

.gw-dash__tab--active {
	background: var(--text-fill-1);
	color: var(--surface-fill-1);
	border-color: var(--text-fill-1);
}

.gw-dash__row {
	display: grid;
	grid-template-columns: 76px 1fr 56px;
	gap: 10px;
	align-items: center;
	padding: 11px 0;
	border-bottom: 1px solid var(--surface-fill-3);
}

.gw-dash__row:last-child { border-bottom: none; }

.gw-dash__label { font-family: var(--font-eyebrow); font-size: var(--eyebrow-s); color: var(--text-fill-2); line-height: var(--line-height-130); }

.gw-dash__bar { height: 14px; background: var(--surface-fill-3); border-radius: 1px; overflow: hidden; }

.gw-dash__bar-fill { display: block; height: 100%; background: var(--brand-resolve); }

.gw-dash__amt { font-family: var(--font-eyebrow); font-size: var(--eyebrow-s); color: var(--text-fill-1); text-align: right; }

/* model routing mock */
.gw-routing__tier {
	display: inline-block;
	font-family: var(--font-eyebrow);
	font-size: 10px;
	letter-spacing: 0.06em;
	color: var(--text-fill-3);
	border: 1px solid var(--surface-fill-4);
	border-radius: 2px;
	padding: 1px 5px;
	margin-right: 6px;
	vertical-align: middle;
}

.gw-routing__child {
	padding-left: 18px;
	position: relative;
}

.gw-routing__child::before {
	content: "↳";
	position: absolute;
	left: 0;
	color: var(--text-fill-3);
}

.gw-routing__model {
	font-family: var(--font-eyebrow);
	font-size: var(--eyebrow-s);
	color: var(--text-fill-1);
	border: 1px solid var(--surface-fill-4);
	border-radius: 2px;
	padding: 5px 9px;
	background: var(--surface-fill-2);
	display: inline-flex;
	align-items: center;
	justify-content: center;
}

.gw-routing__model--active {
	background: var(--brand-agility);
	border-color: var(--text-fill-1);
}

.gw-routing__model--muted {
	color: var(--text-fill-3);
	border-style: dashed;
	background: transparent;
}

/* spend-by-scope rows */
.gw-budget-mock__row--spend {
	grid-template-columns: 1fr 1.2fr 60px;
}

.gw-budget-mock__row--spend .gw-budget-mock__bar-wrap {
	width: 100%;
	height: 14px;
}

.gw-budget-mock__row--spend .gw-budget-mock__bar-fill {
	background: var(--brand-resolve);
}

.gw-budget-mock__row--spend.gw-budget-mock__row--warn .gw-budget-mock__bar-fill {
	background: var(--brand-agility);
}

.gw-budget-mock__amt {
	font-family: var(--font-eyebrow);
	font-size: var(--eyebrow-s);
	color: var(--text-fill-1);
	text-align: right;
}

.gw-budget-mock__row--warn .gw-budget-mock__amt {
	font-weight: 600;
}

/* provider health rows */
.gw-failover__row {
	display: grid;
	grid-template-columns: 14px 1fr auto;
	gap: 10px;
	align-items: center;
	padding: 10px 0;
	border-bottom: 1px solid var(--surface-fill-3);
}

.gw-failover__dot {
	width: 9px;
	height: 9px;
	border-radius: 50%;
	background: var(--brand-resolve);
	justify-self: center;
}

.gw-failover__row--down .gw-failover__dot {
	background: var(--surface-fill-4);
}

.gw-failover__row--down .gw-budget-mock__label {
	color: var(--text-fill-3);
}

.gw-failover__status {
	font-family: var(--font-eyebrow);
	font-size: var(--eyebrow-s);
	letter-spacing: 0.04em;
	color: var(--text-fill-3);
}

.gw-failover__row--down .gw-failover__status {
	color: var(--text-fill-1);
	font-weight: 500;
}

.gw-failover__note {
	display: flex;
	align-items: center;
	gap: 8px;
	margin-top: var(--space-8);
	padding-top: var(--space-12);
	padding-bottom: var(--space-12);
	border-top: 1px solid var(--surface-fill-3);
}

.gw-failover__note i {
	color: var(--text-fill-2);
	font-size: 12px;
	flex-shrink: 0;
}

.gw-failover__note span {
	font-size: var(--label-s);
	color: var(--text-fill-2);
}

/* prompt routing table */
.gw-rt-col-head,
.gw-rt-row {
	display: grid;
	grid-template-columns: 2fr 1fr 1fr;
	gap: var(--space-8);
	align-items: center;
}

.gw-rt-col-head {
	padding: var(--space-8) 0;
	border-bottom: 1px solid var(--surface-fill-3);
	font-family: var(--font-eyebrow);
	font-size: var(--eyebrow-s);
	letter-spacing: 0.08em;
	color: var(--text-fill-3);
}

.gw-rt-row {
	padding: var(--space-12) 0;
	border-bottom: 1px solid var(--surface-fill-3);
}

.gw-rt-row:last-child { border-bottom: none; }

.gw-rt-rq {
	font-size: var(--label-m);
	color: var(--text-fill-2);
}

.gw-rt-fit {
	font-family: var(--font-eyebrow);
	font-size: var(--eyebrow-s);
	color: var(--text-fill-3);
}

.gw-rt-model {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	font-family: var(--font-eyebrow);
	font-size: var(--eyebrow-s);
	color: var(--text-fill-1);
	border: 1px solid var(--text-fill-1);
	border-radius: 2px;
	padding: 4px 8px;
	background: var(--brand-agility);
}

/* auth-point divider — connectivity, governance-observability, mcp-gateway, security, self-learning-loop, virtual-data-layer */
.gw-auth-point {
	border-top: 1px solid var(--surface-fill-3);
	padding-top: var(--space-16);
}

/* PAT/OAuth/service-account flow steps — connectivity, mcp-gateway, security, self-learning-loop, virtual-data-layer
   (context-engine uses a visually distinct variant with a connecting line and stays local) */
.gw-budget-mock__flow {
	display: flex;
	flex-direction: column;
	gap: 8px;
	margin-top: var(--space-12);
}

.gw-budget-mock__flow-step {
	display: flex;
	align-items: center;
	gap: var(--space-8);
	border: 1px solid var(--surface-fill-4);
	border-radius: 2px;
	padding: var(--space-8) var(--space-12);
	background: var(--surface-fill-2);
}

.gw-budget-mock__flow-step.hi {
	background: var(--brand-agility);
	border-color: var(--text-fill-1);
}

.gw-budget-mock__flow-step i {
	color: var(--text-fill-2);
	font-size: var(--eyebrow-s);
	flex-shrink: 0;
}

.gw-budget-mock__flow-t {
	font-family: var(--font-eyebrow);
	font-size: var(--eyebrow-s);
	color: var(--text-fill-1);
	flex: 1;
}

/* shared by the flow variant above AND context-engine's variant */
.gw-budget-mock__flow-step.hi i {
	color: var(--text-fill-1);
}

.gw-budget-mock__flow-s {
	font-family: var(--font-eyebrow);
	font-size: var(--eyebrow-s);
	color: var(--text-fill-3);
	flex-shrink: 0;
}

/* auth-flow banner/chip graphic — connectivity, security, self-learning-loop, virtual-data-layer */
.gw-authflow {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 14px;
	padding: var(--space-32);
	background: color-mix(in srgb, var(--surface-fill-1) 40%, transparent);
	border: 1px solid var(--surface-fill-4);
	border-radius: 2px;
}

.gw-authflow__banner {
	display: flex;
	align-items: center;
	justify-content: center;
	text-align: center;
	border: 2px solid var(--brand-agility);
	background: rgba(255, 229, 0, 0.08);
	border-radius: 2px;
	padding: var(--space-12) var(--space-20);
	font-family: var(--font-eyebrow);
	font-size: var(--eyebrow-s);
	letter-spacing: 0.1em;
	color: var(--text-fill-1);
	width: 100%;
}

.gw-authflow__arrow {
	color: var(--text-fill-3);
	font-size: var(--label-m);
}

.gw-authflow__chips {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 10px;
	width: 100%;
}

.gw-authflow__chip {
	border: 1px solid var(--surface-fill-4);
	border-radius: 2px;
	padding: var(--space-8) var(--space-12);
	font-family: var(--font-eyebrow);
	font-size: var(--eyebrow-s);
	color: var(--text-fill-2);
	background: var(--surface-fill-2);
}

/* sequence pill — context-engine, model-gateway */
.sequencePill {
	--sequencePillBg: var(--surface-fill-1);

	display: inline-flex;
	align-items: center;
	justify-content: center;
	background-color: var(--sequencePillBg);
	border: 1px solid var(--surface-fill-3);
	border-radius: 32px;
	color: var(--text-fill-1);
	font-size: var(--label-s);
	gap: var(--space-8);
	padding: var(--space-8) var(--space-16);
	font-family: var(--font-eyebrow);
	line-height: var(--line-height-140);
}

.sequencePill.agility {
	--sequencePillBg: var(--brand-agility);
}

/* source/server tile grid — connectivity ("Sources — connect any AI to every system") and mcp-gateway (MCP Catalog first/third-party buckets) */
.gw-src-card {
	display: flex;
	flex-direction: column;
	border: 1px solid var(--surface-fill-3);
	border-radius: 2px;
	background: var(--surface-fill-1);
	padding: var(--space-24);
	height: 100%;
}

.gw-src-card__label {
	font-family: var(--font-eyebrow);
	font-size: var(--eyebrow-s);

	text-transform: capitalize;
	color: var(--text-fill-3);
	margin-bottom: var(--space-8);
}

.gw-src-card__desc {
	margin-bottom: var(--space-20);
	font-weight: 500;
}

.gw-src-card__grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: var(--space-12);
	margin-top: auto;
	max-height: 300px;
	overflow: hidden;
	-webkit-mask-image: linear-gradient(to bottom, black 55%, transparent 100%);
	mask-image: linear-gradient(to bottom, black 55%, transparent 100%);
}

.gw-src-tile {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 4px;
	/* height: 72px; */
	border: 1px solid var(--surface-fill-3);
	border-radius: 2px;
	background: var(--surface-fill-2);
	padding: 8px;
	text-align: center;
}

.gw-src-tile img {
	height: 40px;
	width: auto;
	max-width: 70%;
	object-fit: contain;
}

.gw-src-tile span {
	font-family: var(--font-eyebrow);
	font-size: var(--eyebrow-s);
	color: var(--text-fill-3);
}

/* context layer diagram */
.gw-ctx-models {
	display: flex;
	gap: 8px;
	justify-content: space-between;
	margin-bottom: var(--space-12);
}

.gw-ctx-m {
	flex: 1;
	text-align: center;
	border: 1px solid var(--surface-fill-4);
	border-radius: 3px;
	padding: 10px 6px;
	font-family: var(--font-eyebrow);
	font-size: var(--eyebrow-s);
	color: var(--text-fill-1);
	background: var(--surface-fill-2);
}

.gw-ctx-m__tag {
	display: block;
	font-size: 10px;
	letter-spacing: 0.03em;
	margin-top: 5px;
	color: var(--text-fill-3);
}

.gw-ctx-m--off {
	border-style: dashed;
	color: var(--text-fill-3);
	background: transparent;
}

.gw-ctx-m--off .gw-ctx-m__tag { color: var(--text-fill-3); }

.gw-ctx-m--new {
	border-color: var(--text-fill-1);
	background: var(--brand-agility);
}

.gw-ctx-flow {
	display: flex;
	justify-content: center;
	gap: 6px;
	color: var(--text-fill-3);
	font-size: 14px;
	margin: var(--space-12) 0;
}

.gw-ctx-layer {
	border: 1px solid var(--text-fill-1);
	border-radius: 3px;
	background: var(--surface-fill-2);
	padding: var(--space-16) var(--space-20);
	display: flex;
	align-items: center;
	gap: var(--space-12);
}

.gw-ctx-layer > i {
	color: var(--text-fill-1);
	font-size: 16px;
	flex-shrink: 0;
}

.gw-ctx-layer__title {
	font-size: var(--label-m);
	font-weight: 500;
	color: var(--text-fill-1);
}

.gw-ctx-layer__sub {
	font-family: var(--font-eyebrow);
	font-size: var(--eyebrow-s);
	color: var(--text-fill-3);
	margin-top: 2px;
}

.gw-ctx-note {
	font-size: var(--label-s);
	color: var(--text-fill-3);
	margin-top: var(--space-16);
	line-height: 1.4;
}