:root {
	--bg: #0d1117;
	--bg-elev: #161b22;
	--bg-elev-2: #21262d;
	--border: #30363d;
	--fg: #e6edf3;
	--fg-muted: #8b949e;
	--accent: #2f81f7;
	--accent-fg: #ffffff;
	--danger: #f85149;
	--ok: #3fb950;
	--radius: 10px;
	color-scheme: dark;
}

* {
	box-sizing: border-box;
}

html,
body {
	margin: 0;
	padding: 0;
	height: 100%;
}

body {
	background: var(--bg);
	color: var(--fg);
	font-family:
		system-ui,
		-apple-system,
		'Segoe UI',
		sans-serif;
	font-size: 16px;
	line-height: 1.45;
	/* Respect the notch / home indicator on phones. */
	padding: env(safe-area-inset-top) env(safe-area-inset-right) env(safe-area-inset-bottom) env(safe-area-inset-left);
}

#app {
	max-width: 720px;
	margin: 0 auto;
	min-height: 100%;
}

h1,
h2,
h3 {
	font-weight: 600;
	line-height: 1.2;
}

button {
	font: inherit;
	cursor: pointer;
	border: 1px solid var(--border);
	background: var(--bg-elev-2);
	color: var(--fg);
	border-radius: var(--radius);
	padding: 0.6rem 0.9rem;
	min-height: 44px;
}

button.primary {
	background: var(--accent);
	border-color: var(--accent);
	color: var(--accent-fg);
}

button.ghost {
	background: transparent;
}

button:disabled {
	opacity: 0.5;
	cursor: default;
}

input {
	font: inherit;
	background: var(--bg-elev);
	color: var(--fg);
	border: 1px solid var(--border);
	border-radius: var(--radius);
	padding: 0.6rem 0.7rem;
	width: 100%;
	min-height: 44px;
}

a {
	color: var(--accent);
}

.muted {
	color: var(--fg-muted);
}

.error {
	color: var(--danger);
}

.screen {
	padding: 1.25rem;
	display: flex;
	flex-direction: column;
	gap: 1rem;
}

.card {
	background: var(--bg-elev);
	border: 1px solid var(--border);
	border-radius: var(--radius);
	padding: 1rem;
}

.row {
	display: flex;
	align-items: center;
	gap: 0.75rem;
}

.list {
	display: flex;
	flex-direction: column;
	gap: 0.5rem;
}

.list-item {
	width: 100%;
	text-align: left;
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 0.2rem;
}

.pip {
	display: inline-block;
	width: 8px;
	height: 8px;
	border-radius: 50%;
	background: var(--fg-muted);
}

.pip.live {
	background: var(--ok);
}

/* Coordinator (orchestrator) mode badge — ADR 0030. Small pill
   before the session title so an orchestrator session is visually
   distinct from a hand-started one on the phone. Mirrors the
   desktop panel's `.session-mode-badge`. */
.badge {
	display: inline-flex;
	flex: none;
	align-items: center;
	padding: 0 0.4rem;
	border-radius: 999px;
	background: var(--accent);
	color: var(--bg);
	font-size: 0.65rem;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.06em;
	vertical-align: middle;
}
