/* The admin's frame and login (KB design/admin-ux.md §1, §2). Open without a session: nothing in it is private;
   the pages behind the login add kit.css.
   Colours by prefers-color-scheme only; the system font stack (CSP 'self': no external fonts). */
:root {
	--text: #1A1A1A; --muted: #5F6368; --bg: #FFFFFF; --surface: #F5F5F5; --border: #DADCE0;
	--fine: #1E7A34; --attention: #8A5300; --failing: #B3261E; --unknown: #5F6368;
	color-scheme: light dark;
}
@media (prefers-color-scheme: dark) {
	:root {
		--text: #EDEDED; --muted: #B0B4B8; --bg: #121212; --surface: #1E1E1E; --border: #3C4043;
		--fine: #7BD88F; --attention: #F2B84B; --failing: #FF8A80; --unknown: #B0B4B8;
	}
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
	margin: 0; background: var(--bg); color: var(--text);
	font: 16px/1.4 system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}
a { color: inherit; }
:focus-visible { outline: 2px solid var(--text); outline-offset: 2px; }
.muted { color: var(--muted); }
h1 { font-size: 24px; line-height: 1.25; margin: 0 0 8px; }

/* Header: name left; switcher and logout wrap to a second line on a phone */
.top {
	display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 4px 16px;
	padding: 8px 16px; border-bottom: 1px solid var(--border);
}
.brand { font-weight: 700; text-decoration: none; min-height: 44px; display: inline-flex; align-items: center; }
.tools { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 16px; margin-left: auto; }
.langs { display: flex; gap: 4px; }
.langs a {
	min-height: 44px; min-width: 44px; padding: 0 8px; display: inline-flex; align-items: center;
	justify-content: center; text-decoration: none; color: var(--muted);
}
.langs a.current { color: var(--text); font-weight: 700; text-decoration: underline; }
.logout { margin: 0; }
.logout button {
	min-height: 44px; padding: 0 12px; font: inherit; color: var(--text); background: transparent;
	border: 1px solid var(--border); border-radius: 8px; cursor: pointer;
}

/* Login card: full width on a phone; 400 px, centred, 96 px from the top on a desktop */
.login { margin: 24px 16px; padding: 24px 16px; background: var(--surface); border: 1px solid var(--border);
	border-radius: 12px; }
.login form { display: flex; flex-direction: column; margin-top: 16px; }
.login label { margin: 12px 0 4px; font-weight: 600; }
.login input {
	font: inherit; min-height: 48px; padding: 8px 12px; color: var(--text); background: var(--bg);
	border: 1px solid var(--border); border-radius: 8px;
}
.login button {
	margin-top: 24px; min-height: 48px; font: inherit; font-weight: 700; color: var(--bg); background: var(--text);
	border: 0; border-radius: 8px; cursor: pointer;
}
.login input:disabled, .login button:disabled { opacity: .5; cursor: not-allowed; }
.notice {
	display: flex; gap: 12px; align-items: flex-start; margin-top: 16px; padding: 12px;
	border: 1px solid var(--border); border-radius: 8px; background: var(--bg);
}
.shape {
	flex: none; width: 20px; height: 20px; border: 2px solid currentColor; border-radius: 50%;
	display: inline-flex; align-items: center; justify-content: center; font-size: 12px; font-weight: 700;
	line-height: 1;
}
@media (min-width: 900px) {
	.top { padding: 8px 32px; }
	.login { width: 400px; margin: 96px auto 32px; }
}
