:root, [data-theme="dark"] {
	--bg: #06080f;
	--bg-glow: radial-gradient(ellipse 80% 50% at 50% -15%, rgba(0,229,255,0.16), rgba(213,0,249,0.06) 45%, transparent 75%), #06080f;
	--gate-bg: rgba(11, 14, 20, 0.95);
	--card-bg: rgba(17, 22, 34, 0.82);
	--step-bg: rgba(10, 14, 22, 0.88);
	--hdr-bg: #111622;
	--sub-bg: #0d1117;
	--input-bg: #0d1117;
	--code-bg: #05070b;
	--border: rgba(255, 255, 255, 0.1);
	--border-strong: #30363d;
	--text: #f0f6fc;
	--muted: #8b949e;
	--accent: #00e5ff;
	--purple: #d500f9;
	--green: #00e676;
	--danger: #ff5252;
	--title-grad: linear-gradient(90deg, #ffffff, #a5d6ff);
	--shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
}
[data-theme="light"] {
	--bg: #f4f6fb;
	--bg-glow: radial-gradient(ellipse 80% 50% at 50% -15%, rgba(9,105,218,0.12), rgba(130,80,223,0.06) 45%, transparent 75%), #f4f6fb;
	--gate-bg: rgba(244, 246, 251, 0.95);
	--card-bg: rgba(255, 255, 255, 0.92);
	--step-bg: #f8fafd;
	--hdr-bg: #ffffff;
	--sub-bg: #f0f3f9;
	--input-bg: #ffffff;
	--code-bg: #eef2f9;
	--border: rgba(31, 35, 40, 0.12);
	--border-strong: #d0d7de;
	--text: #1f2328;
	--muted: #57606a;
	--accent: #0969da;
	--purple: #8250df;
	--green: #1a7f37;
	--danger: #cf222e;
	--title-grad: linear-gradient(90deg, #1f2328, #0969da);
	--shadow: 0 12px 32px rgba(31, 35, 40, 0.08);
}
* { box-sizing: border-box; }
body {
	margin: 0;
	background: var(--bg-glow);
	color: var(--text);
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
	-webkit-font-smoothing: antialiased;
	transition: background 0.2s, color 0.2s;
}
body.console-body {
	width: 100%;
	height: 100dvh;
	display: flex;
	flex-direction: column;
	overflow: hidden;
	font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
}
body.launch-body {
	min-height: 100vh;
	padding: 36px 20px;
}
#loginCard {
	position: fixed;
	inset: 0;
	background: var(--gate-bg);
	display: flex;
	align-items: center;
	justify-content: center;
	z-index: 100;
	padding: 16px;
	backdrop-filter: blur(14px);
}
.gate-box {
	max-width: 460px;
	width: 100%;
	background: var(--card-bg);
	border: 1px solid var(--border-strong);
	border-radius: 16px;
	padding: 28px 24px;
	text-align: center;
	box-shadow: var(--shadow);
}
.gate-box h1 {
	font-size: 18px;
	margin: 0 0 10px;
	color: var(--text);
	background: none;
	-webkit-text-fill-color: var(--text);
}
.desc {
	font-size: 13px;
	color: var(--muted);
	line-height: 1.55;
	margin: 0 0 16px;
}
.wrap { max-width: 680px; margin: 0 auto; }
.top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 24px; flex-wrap: wrap; gap: 10px; }
.brand { display: flex; align-items: center; gap: 12px; }
.orb {
	width: 38px;
	height: 38px;
	border-radius: 10px;
	background: linear-gradient(135deg, #00e5ff, #d500f9);
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 20px;
	box-shadow: 0 0 20px rgba(0, 229, 255, 0.3);
}
h1.title {
	margin: 0;
	font-size: 22px;
	font-weight: 700;
	letter-spacing: -0.02em;
	background: var(--title-grad);
	-webkit-background-clip: text;
	-webkit-text-fill-color: transparent;
}
.sub { font-size: 12px; color: var(--muted); margin-top: 2px; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; }
.nav-lnk {
	color: var(--muted);
	font-size: 12.5px;
	text-decoration: none;
	padding: 7px 12px;
	border: 1px solid var(--border-strong);
	border-radius: 8px;
	background: var(--card-bg);
	cursor: pointer;
	font-weight: 600;
	transition: all 0.15s;
}
.nav-lnk:hover { color: var(--text); border-color: var(--accent); }
.card {
	background: var(--card-bg);
	backdrop-filter: blur(16px);
	border: 1px solid var(--border);
	border-radius: 16px;
	padding: 28px;
	box-shadow: var(--shadow);
}
.lead { margin: 0 0 20px; color: var(--muted); font-size: 14px; line-height: 1.6; }
.pill {
	display: inline-block;
	padding: 2px 8px;
	border-radius: 99px;
	background: rgba(0, 229, 255, 0.12);
	border: 1px solid var(--accent);
	color: var(--accent);
	font-family: ui-monospace, SFMono-Regular, monospace;
	font-size: 11px;
}
.step {
	margin-top: 18px;
	padding: 20px;
	background: var(--step-bg);
	border: 1px solid var(--border);
	border-radius: 12px;
}
.shdr { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; }
.num {
	width: 24px;
	height: 24px;
	border-radius: 50%;
	background: linear-gradient(135deg, #00e5ff, #7928ca);
	color: #fff;
	font-size: 12px;
	font-weight: 700;
	display: flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
}
.step h3 { margin: 0; font-size: 15px; font-weight: 600; color: var(--text); }
label { font-size: 12px; font-weight: 600; color: var(--muted); display: block; margin: 12px 0 6px; text-align: left; }
input, select {
	width: 100%;
	background: var(--input-bg);
	color: var(--text);
	border: 1px solid var(--border-strong);
	border-radius: 8px;
	padding: 10px 13px;
	font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
	font-size: 13px;
	outline: none;
}
input:focus, select:focus { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(0, 229, 255, 0.15); }
button, .btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	background: linear-gradient(135deg, #238636, #2ea043);
	color: #fff;
	border: 1px solid rgba(255, 255, 255, 0.12);
	border-radius: 8px;
	padding: 10px 16px;
	font-family: inherit;
	font-size: 13px;
	font-weight: 600;
	cursor: pointer;
	text-decoration: none;
}
button:disabled { opacity: 0.5; cursor: not-allowed; }
.btn-blue { background: linear-gradient(135deg, #1f6feb, #388bfd); }
.btn-purp { background: linear-gradient(135deg, #7928ca, #8957e5); }
.row { display: flex; gap: 10px; margin-top: 10px; flex-wrap: wrap; }
pre {
	background: var(--code-bg);
	border: 1px solid var(--green);
	border-radius: 10px;
	padding: 14px;
	color: var(--green);
	overflow-x: auto;
	font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
	font-size: 12.5px;
	line-height: 1.5;
	white-space: pre-wrap;
	word-break: break-all;
	margin: 12px 0;
}
.status-bar { margin-top: 12px; font-size: 13px; color: var(--accent); display: flex; align-items: center; gap: 8px; justify-content: center; }
@keyframes spin { to { transform: rotate(360deg); } }
.spin {
	width: 14px;
	height: 14px;
	border: 2px solid rgba(0, 229, 255, 0.25);
	border-top-color: var(--accent);
	border-radius: 50%;
	animation: spin 0.8s linear infinite;
	display: inline-block;
	flex-shrink: 0;
}
#hdr {
	padding: 10px 14px;
	background: var(--hdr-bg);
	border-bottom: 1px solid var(--border);
	display: flex;
	justify-content: space-between;
	align-items: center;
	font-size: 13px;
	flex-shrink: 0;
	flex-wrap: wrap;
	gap: 8px;
}
#usrBar {
	padding: 8px 14px;
	background: var(--sub-bg);
	border-bottom: 1px solid var(--border);
	display: flex;
	align-items: center;
	gap: 8px;
	font-size: 12px;
	flex-shrink: 0;
	flex-wrap: wrap;
}
#log { flex: 1; padding: 14px; overflow-y: auto; white-space: pre-wrap; word-break: break-word; font-size: 13px; line-height: 1.45; }
#bar { padding: 10px; background: var(--hdr-bg); border-top: 1px solid var(--border); display: flex; gap: 8px; flex-shrink: 0; }
.cyan { color: var(--accent); }
.purp { color: var(--purple); }
.grn { color: var(--green); }
.hide { display: none !important; }

button.sec { background: var(--sub-bg); color: var(--text); border: 1px solid var(--border-strong); }
button.sec:hover { border-color: var(--accent); }
.cost-bar { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 10px; padding-bottom: 10px; border-bottom: 1px solid var(--border); }
.cost-pill { flex: 1; min-width: 140px; padding: 8px 10px; border-radius: 8px; background: var(--sub-bg); border: 1px solid var(--border-strong); }
.cost-lbl { font-size: 10.5px; text-transform: uppercase; letter-spacing: 0.04em; color: var(--muted); }
.cost-val { font-size: 14px; font-weight: 700; color: var(--text); margin-top: 2px; font-family: ui-monospace, SFMono-Regular, monospace; }
.sec-det { margin-top: 12px; border: 1px solid var(--border-strong); border-radius: 10px; background: var(--sub-bg); overflow: hidden; }
.sec-sum { cursor: pointer; font-weight: 600; font-size: 12.5px; color: var(--text); padding: 10px 14px; user-select: none; background: var(--hdr-bg); display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid transparent; transition: background 0.15s; }
.sec-det[open] .sec-sum { border-bottom-color: var(--border); }
.sec-sum:hover { color: var(--accent); }
.vm-tbl-wrap { width: 100%; overflow-x: auto; }
.vm-tbl { width: 100%; border-collapse: collapse; font-size: 12px; }
.vm-tbl th { text-align: left; padding: 9px 12px; color: var(--muted); background: rgba(128,128,128,0.04); border-bottom: 1px solid var(--border-strong); font-size: 10.5px; text-transform: uppercase; letter-spacing: 0.04em; white-space: nowrap; transition: color 0.15s, background 0.15s; }
.vm-tbl th:hover { color: var(--accent); background: rgba(88,166,255,0.08); }
.vm-tbl td { padding: 10px 12px; border-bottom: 1px solid var(--border); color: var(--text); vertical-align: middle; line-height: 1.4; }
.vm-tbl tbody tr:last-child td { border-bottom: none; }
.vm-tbl tbody tr:hover td { background: rgba(88,166,255,0.04); }
.st-badge { display: inline-flex; align-items: center; gap: 5px; padding: 2px 8px; border-radius: 999px; font-size: 10.5px; font-weight: 700; letter-spacing: 0.03em; font-family: ui-monospace, SFMono-Regular, monospace; }
.st-run { background: rgba(46, 160, 67, 0.15); color: var(--green); border: 1px solid rgba(46, 160, 67, 0.35); }
.st-stop { background: rgba(88, 166, 255, 0.12); color: var(--accent); border: 1px solid rgba(88, 166, 255, 0.28); }
.mono-sub { font-family: ui-monospace, SFMono-Regular, monospace; font-size: 11px; color: var(--muted); }
.btn-sm { padding: 5px 10px; font-size: 11px; border-radius: 6px; font-weight: 600; white-space: nowrap; display: inline-flex; align-items: center; gap: 4px; }
.btn-stop { background: linear-gradient(135deg, #cf222e, #a40e26); color: #fff; }
.btn-start { background: linear-gradient(135deg, #1a7f37, #2da44e); color: #fff; }
