main {
	justify-content: flex-start;
	gap: 16px;
	max-width: 760px;
}

section {
	width: 100%;
	background: rgba(255, 255, 255, 0.55);
	border: 2px solid #173b70;
	border-radius: 14px;
	padding: 16px 20px;
	text-align: left;
}

section h2 {
	color: #173b70;
	font-size: 20px;
	font-weight: 800;
	margin: 0 0 10px;
}

section p {
	margin: 0 0 8px;
	color: #173b70;
	font-size: 15px;
}

section ol,
section ul {
	margin: 0;
	padding-left: 22px;
	color: #173b70;
	font-size: 15px;
	line-height: 1.6;
}

section li+li {
	margin-top: 4px;
}

section code {
	background: #fff;
	border: 1px solid #173b70;
	border-radius: 4px;
	padding: 1px 6px;
	font-size: 13px;
}

.action {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	margin-top: 10px;
}

.action button {
	padding: 10px 16px;
	font-size: 14px;
	font-weight: 700;
	color: #173b70;
	background: #fff;
	border: 2px solid #173b70;
	border-radius: 10px;
	cursor: pointer;
	font-family: inherit;
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
	transition: all 0.2s ease;
}

.action button:hover {
	background: #173b70;
	color: #fff;
}

.action button.main {
	background: #173b70;
	color: #fff;
}

.action button.main:hover {
	background: #0d2446;
}

.preview {
	width: 100%;
	margin: 10px 0 0;
	padding: 12px;
	max-height: 240px;
	overflow: auto;
	background: #fff;
	border: 2px solid #173b70;
	border-radius: 8px;
	font-family: Consolas, "Courier New", monospace;
	font-size: 12px;
	text-align: left;
	color: #000;
	white-space: pre-wrap;
	word-break: break-word;
}

/* ---------- Status badge ---------- */

#status {
	min-height: 32px;
	margin: 8px 0 0;
	display: flex;
	align-items: center;
}

#status .status-badge {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 6px 14px;
	border-radius: 999px;
	font-size: 13px;
	font-weight: 700;
	color: #fff;
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
	animation: badge-in 0.35s cubic-bezier(0.2, 0.9, 0.3, 1.3) both;
}

#status .status-badge.is-ok {
	background: linear-gradient(135deg, #1f9d55, #2ecc71);
}

#status .status-badge.is-error {
	background: linear-gradient(135deg, #b02a2a, #e74c3c);
}

#status .status-badge i {
	font-size: 15px;
	animation: icon-pop 0.5s ease 0.15s both;
}

@keyframes badge-in {
	from {
		opacity: 0;
		transform: translateY(-6px) scale(0.92);
	}

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

@keyframes icon-pop {
	0% {
		transform: scale(0) rotate(-30deg);
	}

	70% {
		transform: scale(1.25) rotate(0deg);
	}

	100% {
		transform: scale(1) rotate(0deg);
	}
}

@media (prefers-reduced-motion: reduce) {

	#status .status-badge,
	#status .status-badge i {
		animation: none;
	}
}

.btn-return {
	display: inline-block;
	align-self: center;
	padding: 10px 20px;
	font-size: 15px;
	font-weight: 700;
	color: #000;
	text-decoration: none;
	background: var(--btn-bg);
	border: 2px solid var(--line);
	border-radius: 8px;
	box-shadow: 1px 1px 0 rgba(0, 0, 0, 0.6);
	font-family: inherit;
}

.btn-return:active {
	box-shadow: none;
	transform: translateY(1px);
}

/* ---------- Code editor preview ---------- */

#preview.code-editor {
	width: 100%;
	margin: 10px 0 0;
	background: #1e1e2e;
	border: 2px solid #0d2446;
	border-radius: 10px;
	overflow: hidden;
	text-align: left;
	box-shadow: 0 8px 20px rgba(0, 0, 0, 0.25);
	font-family: Consolas, "Fira Code", "Courier New", monospace;
}

#preview .editor-bar {
	display: flex;
	align-items: center;
	gap: 6px;
	padding: 8px 12px;
	background: #2a2a3c;
	border-bottom: 1px solid #11111b;
}

#preview .dot {
	width: 10px;
	height: 10px;
	border-radius: 50%;
}

#preview .dot-r {
	background: #ff5f56;
}

#preview .dot-y {
	background: #ffbd2e;
}

#preview .dot-g {
	background: #27c93f;
}

#preview .editor-title {
	margin-left: 10px;
	font-size: 12px;
	color: #bac2de;
	opacity: 0.85;
}

#preview .editor-body {
	max-height: 320px;
	overflow: auto;
	padding: 10px 0;
	counter-reset: line;
	color: #cdd6f4;
	font-size: 13px;
}

#preview .line {
	display: flex;
	line-height: 1.6;
	white-space: pre;
}

#preview .line::before {
	content: counter(line);
	counter-increment: line;
	flex-shrink: 0;
	min-width: 3em;
	padding-right: 12px;
	text-align: right;
	color: #585b70;
	user-select: none;
}

#preview .tok-key {
	color: #89b4fa;
}

#preview .tok-str {
	color: #a6e3a1;
}

#preview .tok-num {
	color: #fab387;
}

#preview .tok-bool {
	color: #cba6f7;
}

#preview .tok-null {
	color: #f38ba8;
}

.action button.btn-send {
    background: #1f9d55;
    border-color: #1f9d55;
    color: #fff;
}

.action button.btn-send:hover {
    background: #17803f;
    border-color: #17803f;
}

.action button.btn-send:disabled {
    opacity: 0.6;
    cursor: wait;
}