#regression-table table {
	border-collapse: collapse;
	width: 100%;
}
#regression-table th, #regression-table td {
	border-left: 1px solid var(--border);
	border-right: 1px solid var(--border);
}
#regression-table th:first-child, #regression-table td:first-child {
	border-left: none;
}
#regression-table th:last-child, #regression-table td:last-child {
	border-right: none;
}
input.singleline-input {
	width: 100%;
	text-align: left;
	height: 38px;
	line-height: 38px;
	border-radius: 8px;
	border: 1px solid var(--border);
	background: #0b1220;
	color: var(--text);
	font-size: 1rem;
	font-family: inherit;
	padding: 0 12px;
	box-sizing: border-box;
	display: block;
	transition: border-color 0.2s, box-shadow 0.2s;
}

/* Style select like our inputs */
select.singleline-input {
	width: auto;
	min-width: 220px;
	height: 38px;
	line-height: 38px;
	border-radius: 8px;
	border: 1px solid var(--border);
	background: #0b1220;
	color: var(--text);
	font-size: 1rem;
	font-family: inherit;
	padding: 0 36px 0 12px; /* leave room for arrow */
	box-sizing: border-box;
	display: inline-block;
	appearance: none;
	background-image: linear-gradient(45deg, transparent 50%, #9ca3af 50%),
		linear-gradient(135deg, #9ca3af 50%, transparent 50%),
		linear-gradient(to right, #0b1220, #0b1220);
	background-position: calc(100% - 18px) calc(50% - 3px),
		calc(100% - 12px) calc(50% - 3px),
		100% 0;
	background-size: 6px 6px, 6px 6px, 2.5rem 100%;
	background-repeat: no-repeat;
}

select.singleline-input:focus {
	outline: none;
	border-color: var(--accent);
	box-shadow: 0 0 0 3px rgba(96, 165, 250, 0.3);
}

input.singleline-input:focus {
	outline: none;
	border-color: var(--accent);
	box-shadow: 0 0 0 3px rgba(96, 165, 250, 0.3);
}

input.singleline-input::placeholder {
	color: #6b7280;
	text-align: left;
}
:root {
	--bg: #0b101c;
	--card: #111827;
	--text: #e5e7eb;
	--muted: #9ca3af;
	--accent: #60a5fa;
	--border: #1f2937;
}

* {
	box-sizing: border-box;
}

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

.container {
	max-width: 960px;
	margin: 0 auto;
	padding: 24px;
}

header {
	margin-bottom: 18px;
	display: flex;
	align-items: center;
	gap: 20px;
}

#header-logo {
	flex-shrink: 0;
}

#header-logo img {
	height: 60px;
	width: auto;
	display: block;
}

header > div:last-child {
	flex: 1;
	display: flex;
	flex-direction: column;
	justify-content: center;
}

h1 {
	margin: 0 0 6px;
	font-size: 1.75rem;
}

p.subtitle {
	margin: 0;
	color: var(--muted);
}

.card {
	background: var(--card);
	border: 1px solid var(--border);
	border-radius: 12px;
	padding: 16px;
	box-shadow: 0 1px 2px rgba(0, 0, 0, 0.25);
}

.cardLabel {
	font-weight: 600;
	font-size: 0.875rem;
	color: var(--muted);
	text-transform: uppercase;
	letter-spacing: 0.05em;
	margin-bottom: 8px;
}

/* Chart sizing: full-width, fixed height */
#chart {
		display: block;
		width: 100%;
		max-height: 240px;
		height: 240px;
}

table {
	width: 100%;
	border-collapse: collapse;
}

thead th {
	text-align: left;
	font-weight: 600;
	padding: 12px;
	border-bottom: 1px solid var(--border);
	color: var(--muted);
}

tbody td {
	padding: 12px;
	vertical-align: top;
	border-bottom: 1px solid var(--border);
}

label {
	display: inline-block;
	font-weight: 600;
}

textarea {
	width: 100%;
	height: 30px;
	line-height: 30px;
	display: block;
	resize: none;
	border-radius: 8px;
	border: 1px solid var(--border);
	background: #0b1220;
	color: var(--text);
	font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas,
		"Liberation Mono", "Courier New", monospace;
}

textarea::placeholder {
	color: #6b7280;
}

.hint {
	margin-top: 6px;
	font-size: 0.875rem;
	color: var(--muted);
}

.actions {
	display: flex;
	gap: 12px;
	margin-top: 16px;
}

button {
	appearance: none;
	border: 1px solid var(--border);
	background: #0b1220;
	color: var(--text);
	padding: 10px 14px;
	border-radius: 8px;
	font-weight: 600;
	cursor: pointer;
	transition: background 0.2s, border-color 0.2s;
}

button.primary {
	background: var(--accent);
	color: #0b1220;
}

@media (max-width: 640px) {
	thead {
		display: none;
	}

	table,
	tbody,
	tr,
	td {
		display: block;
		width: 100%;
	}

	tbody td {
		border-bottom: none;
		padding: 8px 0;
	}

	.row {
		border-bottom: 1px solid var(--border);
		padding: 8px 0;
	}
}