/* Base styles. Colours only from the theme tokens (static/themes/*.css); sizes in rem. */
*, *::before, *::after { box-sizing: border-box; }
html { font-size: 100%; }
body {
	margin: 0;
	background: var(--bg);
	color: var(--ink);
	font-family: system-ui, -apple-system, "Segoe UI", sans-serif;
	line-height: 1.5;
}
h1, h2, h3 { font-family: var(--display-family, system-ui); line-height: 1.2; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }

/* Forms and panels (sign-in, pairing, parent area). */
.panel { max-width: 28rem; margin: 2rem auto; padding: 1.5rem; background: var(--card); border-radius: 1rem;
	box-shadow: 0 0 0 1px var(--hairline); }
.panel h1 { margin-top: 0; font-size: 1.6rem; }
.panel p { margin: 0.5rem 0 1rem; }
.soft { color: var(--ink-soft); }
.small { font-size: 0.875rem; }
label.field { display: block; margin: 1rem 0; font-weight: 600; }
label.field input, label.field select { display: block; width: 100%; margin-top: 0.35rem; padding: 0.7rem 0.8rem;
	font: inherit; font-weight: 400; color: var(--ink); background: var(--bg); border: 1px solid var(--hairline);
	border-radius: 0.6rem; }
input.code { font-size: 1.6rem; letter-spacing: 0.4rem; text-align: center; font-variant-numeric: tabular-nums; }
button { font: inherit; cursor: pointer; }
button:disabled { opacity: 0.55; cursor: default; }
.btn { display: block; width: 100%; margin-top: 0.75rem; padding: 0.8rem 1rem; border: 0; border-radius: 0.75rem;
	font-weight: 700; background: var(--accent-fill); color: var(--on-accent); text-align: center; text-decoration: none; }
.btn.quiet { background: transparent; color: var(--accent); box-shadow: inset 0 0 0 1px var(--hairline); }
.linkish { background: none; border: 0; padding: 0; color: var(--accent); text-decoration: underline; }
.problem { margin-top: 1rem; padding: 0.6rem 0.8rem; border-left: 4px solid var(--accent); background: var(--accent-wash);
	border-radius: 0.4rem; font-weight: 600; }
.notice { padding: 0.8rem 1rem; background: var(--teach-wash); border-radius: 0.6rem; }
.notice p { margin: 0 0 0.6rem; }
