.tui-accordion {
	margin: 0.5rem 0;
	border: 1px solid var(--terminal-border);
	border-radius: 6px;
	overflow: hidden;
}

.tui-accordion.inline {
	display: inline-block;
	width: auto;
	min-width: 200px;
	vertical-align: top;
	margin: 0 0.5rem 0 0;
}

.accordion-item {
	border-bottom: 1px solid var(--terminal-border);
}

.accordion-item:last-child {
	border-bottom: none;
}

.accordion-header {
	display: flex;
	align-items: center;
	gap: 0.5rem;
	width: 100%;
	padding: 0.6rem 0.75rem;
	background: transparent;
	border: none;
	color: var(--terminal-text);
	font-family: inherit;
	font-size: 0.85rem;
	font-weight: 500;
	text-align: left;
	cursor: pointer;
	transition: background 0.15s ease;
}

.accordion-header:hover {
	background: rgba(255, 255, 255, 0.03);
}

.accordion-item.open .accordion-header {
	background: rgba(0, 0, 0, 0.1);
	border-bottom: 1px solid var(--terminal-border);
}

:global(.accordion-icon) {
	color: var(--accordion-accent);
	transition: transform 0.2s ease;
}

.accordion-title {
	flex: 1;
}

.accordion-content {
	padding: 0.75rem;
	color: var(--terminal-muted);
	font-size: 0.85rem;
	line-height: 1.6;
	white-space: pre-wrap;
	animation: slideDown 0.2s ease-out;
}

@keyframes slideDown {
	from {
		opacity: 0;
		transform: translateY(-5px);
	}

	to {
		opacity: 1;
		transform: translateY(0);
	}
}