:root {
	color-scheme: light;
	--bg: #f4f6f8;
	--surface: #ffffff;
	--surface-muted: #f8fafc;
	--border: #d9e0e7;
	--text: #18212b;
	--muted: #637282;
	--accent: #1f4f82;
	--accent-soft: #e9f1f9;
	--success: #1f6a45;
	--success-soft: #e9f5ee;
	--danger: #a33b32;
	--danger-soft: #fbeceb;
	--shadow: 0 10px 24px rgba(15, 23, 42, 0.06);
	--radius: 14px;
	--ansi-black: #0f172a;
	--ansi-red: #ef4444;
	--ansi-green: #22c55e;
	--ansi-yellow: #f59e0b;
	--ansi-blue: #60a5fa;
	--ansi-magenta: #c084fc;
	--ansi-cyan: #22d3ee;
	--ansi-white: #e2e8f0;
	--ansi-bright-black: #64748b;
	--ansi-bright-red: #f87171;
	--ansi-bright-green: #4ade80;
	--ansi-bright-yellow: #fbbf24;
	--ansi-bright-blue: #93c5fd;
	--ansi-bright-magenta: #d8b4fe;
	--ansi-bright-cyan: #67e8f9;
	--ansi-bright-white: #f8fafc;
}

* {
	box-sizing: border-box;
}

body {
	margin: 0;
	font-family: "Segoe UI", "Helvetica Neue", Arial, sans-serif;
	background: var(--bg);
	color: var(--text);
}

a {
	color: var(--accent);
	text-decoration: none;
}

button,
input {
	font: inherit;
}

.shell {
	max-width: 1320px;
	margin: 0 auto;
	padding: 32px 24px 48px;
}

.page-header {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: 20px;
	margin-bottom: 24px;
}

.eyebrow {
	margin: 0 0 8px;
	font-size: 12px;
	font-weight: 700;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: var(--muted);
}

h1,
h2 {
	margin: 0;
}

h1 {
	font-size: clamp(28px, 5vw, 40px);
	letter-spacing: -0.03em;
}

h2 {
	font-size: 18px;
}

.subtitle,
.panel-note,
.muted {
	color: var(--muted);
}

.subtitle {
	max-width: 760px;
	margin: 10px 0 0;
	line-height: 1.5;
}

.summary-grid,
.details-grid {
	display: grid;
	gap: 16px;
	margin-bottom: 24px;
}

.summary-grid {
	grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
}

.details-grid {
	grid-template-columns: minmax(300px, 420px) minmax(0, 1fr);
	align-items: start;
}

.summary-card,
.panel {
	background: var(--surface);
	border: 1px solid var(--border);
	border-radius: var(--radius);
	box-shadow: var(--shadow);
}

.summary-card {
	padding: 18px 20px;
}

.summary-card strong {
	display: block;
	margin-top: 10px;
	font-size: 30px;
	letter-spacing: -0.03em;
}

.summary-label {
	font-size: 13px;
	color: var(--muted);
	text-transform: uppercase;
	letter-spacing: 0.08em;
}

.panel {
	padding: 20px;
}

.panel-header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	margin-bottom: 18px;
}

.table-wrap {
	overflow-x: auto;
}

table {
	width: 100%;
	border-collapse: collapse;
	min-width: 900px;
}

th,
td {
	padding: 14px 12px;
	border-bottom: 1px solid var(--border);
	text-align: left;
	vertical-align: top;
}

th {
	font-size: 12px;
	font-weight: 700;
	color: var(--muted);
	text-transform: uppercase;
	letter-spacing: 0.08em;
}

tbody tr:hover {
	background: var(--surface-muted);
}

.server-link,
.table-action,
.secondary-link {
	font-weight: 600;
}

.badge {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 7px 11px;
	border-radius: 999px;
	font-size: 13px;
	font-weight: 700;
	border: 1px solid transparent;
	white-space: nowrap;
}

.badge.running {
	background: var(--success-soft);
	border-color: #cfe8d8;
	color: var(--success);
}

.badge.stopped {
	background: #f1f4f7;
	border-color: var(--border);
	color: #526170;
}

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

.button {
	padding: 11px 16px;
	border-radius: 10px;
	border: 1px solid #c8d2dc;
	background: #fff;
	color: var(--text);
	cursor: pointer;
	transition: background-color 120ms ease, border-color 120ms ease;
}

.button:hover {
	background: var(--surface-muted);
	border-color: #b7c4d0;
}

.button.danger {
	color: var(--danger);
	border-color: #e6c3c0;
	background: var(--danger-soft);
}

.button:disabled,
input:disabled {
	cursor: not-allowed;
	opacity: 0.65;
}

.details-list {
	display: grid;
	gap: 14px;
	margin: 18px 0 0;
}

.details-list div {
	padding-bottom: 14px;
	border-bottom: 1px solid var(--border);
}

dt {
	margin-bottom: 6px;
	font-size: 12px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.08em;
	color: var(--muted);
}

dd {
	margin: 0;
}

.wrap {
	word-break: break-word;
}

.command-form {
	display: flex;
	gap: 10px;
	margin: 16px 0;
}

.command-form input {
	flex: 1;
	min-width: 0;
	padding: 11px 14px;
	border-radius: 10px;
	border: 1px solid var(--border);
	background: #fff;
}

.console-meta {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
	margin-bottom: 12px;
	font-size: 13px;
	color: var(--muted);
}

.console-output {
	min-height: 460px;
	max-height: 65vh;
	margin: 0;
	padding: 18px;
	overflow: auto;
	border-radius: 12px;
	border: 1px solid #d6dde5;
	background: #0b111b;
	color: #e5edf5;
	font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
	font-size: 13px;
	line-height: 1.55;
	white-space: pre-wrap;
	word-break: break-word;
	font-variant-ligatures: none;
	tab-size: 4;
}

.feedback {
	margin-bottom: 12px;
	padding: 12px 14px;
	border-radius: 10px;
	font-size: 14px;
}

.feedback.success {
	background: var(--success-soft);
	color: var(--success);
	border: 1px solid #cfe8d8;
}

.feedback.error {
	background: var(--danger-soft);
	color: var(--danger);
	border: 1px solid #efc8c5;
}

.empty-state {
	padding: 32px 12px;
	text-align: center;
	color: var(--muted);
}

code {
	font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
	font-size: 13px;
}

@media (max-width: 920px) {
	.shell {
		padding: 20px 16px 36px;
	}

	.page-header,
	.details-grid,
	.command-form {
		grid-template-columns: 1fr;
		display: grid;
	}

	.action-group {
		width: 100%;
	}

	.action-group .button {
		flex: 1 1 140px;
	}
}
