dtx-ai-mcp {
	display: flex;
	height: 100vh;
	padding: 80px 2px 0 12px;
}

dtx-ai-mcp-details {
	dialog-body { width: 700px; }

	#input-params {
		display: flex;
		gap: 12px;
		flex-wrap: wrap;
		padding: 0 0 12px 12px;
		border-radius: 12px;
		border: 1px solid var(--border);

		h2 {
			display: flex;
			align-items: center;
			justify-content: space-between;
			width: 100%;
			margin-bottom: -12px;
			padding-left: 4px;
			transition: opacity .2s;
		}

		&[inert] h2 { opacity: 0; }
	}

	.param {
		display: inline-flex;
		align-items: center;
		border-radius: 12px;
		background: var(--border);
		overflow: hidden;

		input {
			field-sizing: content;
			min-width: 32px;
			height: 40px;
			padding: 0 12px;
			border: none;
			background: transparent;
			outline: none;
			transition: .2s;
		}

		dtx-select {
			width: fit-content;
			min-height: 0;

			label { display: none; }
			.trigger {
				position: static;
				width: fit-content;
				padding: 8px 12px;
			}
			select-picker {
				width: max-content;
				margin-top: 8px;
			}
			&::after { display: none; }
		}
		dtx-select.field .trigger { padding-right: 0; }
		dtx-select.operator * { color: var(--text-light); }
		dtx-select .trigger:empty::before { content: '. . .'; }

		input[type="checkbox"] {
			all: unset;
			appearance: none;
			padding: 4px 8px;
			border-radius: 50px;
			border: 1px solid var(--background-light);;
			color: var(--background-light);
			font-size: 12px;
			transition: .2s;
			cursor: pointer;

			&::before {
				all: unset;
				content: 'required';
				transition: .2s;
			}

			&:checked {
				color: var(--border);
				background: var(--background-light);

				&::before { color: var(--text); }
			}
		}

		dtx-button {
			width: 40px;
			color: var(--background-light);
			outline-offset: -2px;
		}
	}

	#info-sources {
		display: flex;
		flex-direction: column;
		border: 1px solid var(--border);
		border-radius: 12px;
		overflow: hidden;

		h2 { padding: 18px 16px; }

		item {
			display: flex;
			flex-direction: column;
			min-width: 300px;
			border-bottom: 1px solid var(--border);
		}

		[icon="swap_vert"] { cursor: grab; }

		dtx-switch[type="switch"] {
			border: none;
			label { padding-left: 0; }
		}
		dtx-switch[type="checkbox"] {
			padding-left: 16px;
			label { gap: 16px; }
		}

		dtx-chips-input {
			display: none;
			min-height: 0;
			height: 0;
			padding: 0 8px 0 48px;
			border: none;
			background: transparent;
			overflow: hidden;
			transition: .3s allow-discrete;
		}

		item:has(input:checked) dtx-chips-input {
			display: flex;
			height: auto;
			margin-top: -16px;
			padding-block: 8px;

			@starting-style {
				height: 0;
				margin-top: 0;
				padding-block: 0;
			}
		}

		&:has(item.dragging) item:not(.dragging) {
			outline: 2px dashed var(--accent-light);
			outline-offset: -4px;
		}

		dtx-switch { border: none; }
		.chip { background: var(--border); }
	}

	#test-params {
		display: flex;
		flex-direction: column;
		gap: 12px;
		width: calc(100% + 32px);
		max-height: 500px;
		margin: 0 -16px;
		padding: 0 16px;
		overflow: auto;
	}
}
