/* Shared shell styling for /dashboard sub-pages. Dark theme to match dashboard. */
@import url('/tokens.css');

/* Dark-only theme layer (QB-07): the sub-pages pin the canonical primitives to
   their dark values and alias the local names to them, rather than forking a
   second palette (B02). The [data-theme='light'] half keeps a globally-chosen
   light theme from half-flipping a surface whose remaining literals are dark. */
:root,
/* Doubled :root is a deliberate specificity bump (0,3,0): the token sheet's own
   [data-theme='light'] block would otherwise win on document order and half-flip
   this dark-only surface. */
:root:root[data-theme='light'] {
	color-scheme: dark;
	--bg-0: #0a0a0a;
	--bg-1: #1a1a1a;
	--ink: #e8e8e8;
	--ink-dim: #888888;

	--accent: #ffffff;
	--accent2: #ffffff;
	--border: var(--bg-1);
	--bg: #000000;
	--panel: #111111;
}
* { box-sizing: border-box; }
body {
	font: 15px/1.55 system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
	color: #eee;
	margin: 0;
	background: var(--bg);
	min-height: 100vh;
}
a { color: #cccccc; text-decoration: none; }
a:hover { text-decoration: underline; }
.dash-shell { max-width: 980px; margin: 0 auto; padding: 28px; }
.dash-back { color: #888; font-size: 13px; margin-bottom: 10px; display: inline-block; }
.dash-back:hover { color: #ccc; }
h1.dash-title { font-size: 22px; margin: 0 0 6px; letter-spacing: -0.01em; }
.dash-sub { color: #888; margin: 4px 0 22px; font-size: 14px; }
.dash-card {
	background: var(--panel);
	border: 1px solid var(--border);
	border-radius: 12px;
	padding: 18px;
	margin-bottom: 14px;
}
.dash-card h2 {
	margin: 0 0 14px;
	font-size: 14px;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	color: #aaa;
}
.dash-btn {
	background: var(--bg-1);
	color: #eee;
	border: 1px solid var(--border);
	border-radius: 8px;
	padding: 8px 14px;
	font-size: 13px;
	cursor: pointer;
}
.dash-btn:hover { background: #2a2a2a; }
.dash-btn:disabled { opacity: 0.5; cursor: not-allowed; }
.dash-btn.primary { background: var(--accent); border-color: var(--accent); color: var(--btn-primary-fg, #0a0a0a); }
.dash-btn.primary:hover { background: var(--ink); }
.dash-btn.danger { color: #ff8a9c; border-color: #3a2530; }
.dash-btn.danger:hover { background: #2a1820; }
.dash-input, .dash-textarea, .dash-select {
	background: var(--bg-0);
	color: #eee;
	border: 1px solid var(--border);
	border-radius: 8px;
	padding: 9px 11px;
	font-size: 13px;
	font-family: inherit;
	width: 100%;
}
.dash-textarea { font-family: ui-monospace, Menlo, Consolas, monospace; min-height: 160px; }
.dash-muted { color: #888; font-size: 13px; }
.dash-err {
	background: rgba(239, 68, 68, 0.1);
	border: 1px solid #ef4444;
	color: #fca5a5;
	padding: 10px 12px;
	border-radius: 6px;
	font-size: 13px;
	margin: 8px 0;
}
.dash-ok {
	background: rgba(34, 197, 94, 0.1);
	border: 1px solid #22c55e;
	color: #86efac;
	padding: 10px 12px;
	border-radius: 6px;
	font-size: 13px;
	margin: 8px 0;
}
.dash-row {
	display: flex;
	gap: 10px;
	align-items: center;
	flex-wrap: wrap;
}
.dash-pill {
	display: inline-block;
	background: rgba(255, 255, 255, 0.08);
	border: 1px solid rgba(255, 255, 255, 0.2);
	border-radius: 6px;
	padding: 3px 10px;
	font-size: 11px;
	color: #cccccc;
}
.dash-mono { font-family: ui-monospace, Menlo, Consolas, monospace; font-size: 12px; color: #aaa; }
.dash-list { list-style: none; padding: 0; margin: 0; }
.dash-list li {
	border-bottom: 1px solid var(--border);
	padding: 12px 0;
}
.dash-list li:last-child { border-bottom: 0; }
.dash-empty {
	text-align: center;
	color: #666;
	padding: 32px 16px;
	font-size: 14px;
}
