:root {
	--bg: #0f1115;
	--panel: #171a21;
	--panel2: #1f2330;
	--text: #e6e9ef;
	--muted: #9aa3b2;
	--accent: #5b8cff;
	--border: #2b3140;
}

* {
	box-sizing: border-box;
}

body {
	margin: 0;
	background: var(--bg);
	color: var(--text);
	font-family:
		system-ui,
		-apple-system,
		Segoe UI,
		Roboto,
		Ubuntu,
		sans-serif;
}

.container {
	max-width: 1100px;
	margin: auto;
	padding: 40px 20px;
}

.header {
	font-size: 28px;
	font-weight: 700;
	margin-bottom: 30px;
	letter-spacing: 0.5px;
}

.card {
	background: var(--panel);
	border: 1px solid var(--border);
	border-radius: 10px;
	padding: 20px;
	margin-bottom: 20px;
}

.row {
	display: flex;
	gap: 32px;
	flex-wrap: wrap;
	align-items: center;
	margin-bottom: 20px;
}

.callbackBlock {
	margin-top: 18px;
	padding-top: 18px;
	border-top: 1px solid var(--border);
}

.callbackTitle {
	font-size: 14px;
	font-weight: 600;
	margin-bottom: 12px;
	color: var(--muted);
}

select,
textarea {
	width: 100%;
	padding: 10px 12px;
	background: var(--panel2);
	border: 1px solid var(--border);
	border-radius: 6px;
	color: var(--text);
	font: inherit;
	outline: none;
}

textarea {
	min-height: 90px;
	resize: vertical;
}

input[type='text'] {
	flex: 1;
	padding: 10px 12px;
	background: var(--panel2);
	border: 1px solid var(--border);
	border-radius: 6px;
	color: var(--text);
	outline: none;
}

button {
	background: var(--accent);
	border: none;
	color: white;
	padding: 10px 16px;
	border-radius: 6px;
	cursor: pointer;
	font-weight: 600;
}

button.secondary {
	background: #2d3445;
}

button:disabled {
	opacity: 0.4;
	cursor: not-allowed;
}

.actions {
	display: flex;
	gap: 10px;
	margin-bottom: 20px;
}

.errorText {
	color: #ff5c5c;
	font-size: 13px;
	margin-top: 6px;
}

pre {
	margin: 0;
	background: #0b0d12;
	border-radius: 6px;
	padding: 14px;
	overflow: auto;
	font-size: 13px;
	line-height: 1.4;
	color: #d7dae0;
}

.platformTitle {
	font-size: 16px;
	font-weight: 600;
	margin-bottom: 10px;
}

.meta {
	font-size: 13px;
	color: var(--muted);
	margin-bottom: 10px;
}

details {
	margin-top: 12px;
	border: 1px solid var(--border);
	border-radius: 8px;
	padding: 10px 12px;
	background: var(--panel2);
}

summary {
	cursor: pointer;
	font-size: 14px;
	font-weight: 600;
	color: var(--text);
}

details pre {
	margin-top: 12px;
}

.scrollTopBtn {
	position: fixed;
	right: 20px;
	bottom: 20px;
	width: 44px;
	height: 44px;
	border-radius: 50%;
	border: none;
	background: #111;
	color: #fff;
	font-size: 18px;
	cursor: pointer;
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);

	display: flex;
	align-items: center;
	justify-content: center;

	opacity: 0;
	pointer-events: none;
	transform: translateY(10px);
	transition: all 0.2s ease;
}

.scrollTopBtn.visible {
	opacity: 1;
	pointer-events: auto;
	transform: translateY(0);
}

.scrollTopBtn:hover {
	background: #000;
	transform: translateY(-2px);
}

.logDots {
	margin-top: 10px;
	font-size: 13px;
	opacity: 0.8;
	font-family: monospace;
	white-space: pre-wrap;
}
