.aits-wrapper {
	max-width: 900px;
	margin: 20px auto;
	padding: 24px;
	background: #ffffff;
	border: 1px solid #e2e2e2;
	border-radius: 12px;
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

.aits-header h2 {
	margin: 0 0 4px;
	font-size: 24px;
	color: #1a1a2e;
}

.aits-header p {
	margin: 0 0 20px;
	color: #666;
	font-size: 14px;
}

.aits-columns {
	display: flex;
	gap: 16px;
	flex-wrap: wrap;
}

.aits-col {
	flex: 1 1 300px;
	min-width: 260px;
}

#aits-input {
	width: 100%;
	min-height: 220px;
	padding: 14px;
	border: 1px solid #d0d0d8;
	border-radius: 8px;
	font-size: 14px;
	resize: vertical;
	box-sizing: border-box;
}

#aits-input:focus {
	outline: none;
	border-color: #6c5ce7;
}

.aits-word-count {
	margin-top: 6px;
	font-size: 12px;
	color: #999;
	text-align: right;
}

.aits-output {
	min-height: 220px;
	padding: 14px;
	border: 1px solid #d0d0d8;
	border-radius: 8px;
	background: #fafafa;
	font-size: 14px;
	line-height: 1.6;
	white-space: pre-wrap;
	box-sizing: border-box;
}

.aits-placeholder {
	color: #aaa;
}

.aits-controls {
	display: flex;
	align-items: center;
	gap: 20px;
	flex-wrap: wrap;
	margin-top: 18px;
}

.aits-control-group {
	display: flex;
	flex-direction: column;
	font-size: 13px;
	color: #444;
	gap: 4px;
}

.aits-control-group select,
.aits-control-group input[type="range"] {
	padding: 6px;
}

.aits-length-group {
	min-width: 200px;
}

.aits-length-buttons {
	display: flex;
	border: 1px solid #d0d0d8;
	border-radius: 8px;
	overflow: hidden;
}

.aits-length-btn {
	flex: 1;
	padding: 8px 10px;
	background: #fff;
	border: none;
	border-right: 1px solid #d0d0d8;
	font-size: 13px;
	color: #444;
	cursor: pointer;
	transition: background 0.15s ease, color 0.15s ease;
}

.aits-length-btn:last-child {
	border-right: none;
}

.aits-length-btn:hover {
	background: #f2f0ff;
}

.aits-length-btn.active {
	background: #6c5ce7;
	color: #fff;
	font-weight: 600;
}

.aits-btn {
	margin-left: auto;
	background: #6c5ce7;
	color: #fff;
	border: none;
	padding: 12px 28px;
	border-radius: 8px;
	font-size: 15px;
	font-weight: 600;
	cursor: pointer;
	transition: background 0.2s ease;
}

.aits-btn:hover {
	background: #5a4bd6;
}

.aits-btn:disabled {
	background: #b3aef0;
	cursor: not-allowed;
}

.aits-error {
	margin-top: 14px;
	padding: 10px 14px;
	background: #fdecea;
	color: #b3261e;
	border-radius: 6px;
	font-size: 13px;
}

@media (max-width: 600px) {
	.aits-btn {
		margin-left: 0;
		width: 100%;
	}
}
