/* Proxus portal: the website's tokens (Manrope, ink, paper, steel, signal), light and dark. */
@font-face { font-family: Manrope; src: url('/static/fonts/manrope-proxus.woff2') format('woff2'); font-weight: 400 700; font-display: swap; }
:root {
	--paper: #f7f8f6; --card: #ffffff; --subtle: #f5f6f5; --ink: #1f2321; --ink-soft: #48504c; --ink-mute: #606964;
	--line: #dfe4e0; --line-strong: #b4beb8; --steel: #315b50; --steel-soft: #e8eeeb; --signal: #a63d30; --signal-soft: #e07a66;
	--ok-bg: #e2f0e5; --ok-fg: #1f5a2c; --off-bg: #eceeed; --off-fg: #48504c; --err-bg: #fbe3e6; --err-fg: #9a1830;
	--shell: #1f2321; --shell-2: #2a2f2c; --shell-line: #3a403c; --shell-text: #f4f5f3; --shell-mute: #b9c2bd;
	color-scheme: light;
}
@media (prefers-color-scheme: dark) {
	:root {
		--paper: #161917; --card: #1d211f; --subtle: #222623; --ink: #eef1ef; --ink-soft: #c3cbc6; --ink-mute: #98a29c;
		--line: #343a36; --line-strong: #4a524d; --steel: #8fbcae; --steel-soft: #26302c; --signal: #e07a66;
		--ok-bg: #1f3a27; --ok-fg: #b9dcc1; --off-bg: #2a2f2c; --off-fg: #c3cbc6; --err-bg: #3d1c22; --err-fg: #f1b7c1;
		color-scheme: dark;
	}
}
* { box-sizing: border-box; }
html, body { margin: 0; }
body { font: 15px/1.55 Manrope, ui-sans-serif, system-ui, sans-serif; color: var(--ink); background: var(--paper); letter-spacing: max(calc(0.5714px - 0.0357em), -0.03em); }
a { color: var(--steel); text-underline-offset: 3px; }
a:hover { color: var(--signal); }
h1, h2, h3 { margin: 0; font-weight: 600; text-wrap: balance; }
p { margin: 0; }
code, .mono { font-family: ui-monospace, Menlo, Consolas, monospace; letter-spacing: 0; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Sign-in and sign-up: brand panel + form. */
.auth { min-height: 100vh; display: grid; grid-template-columns: minmax(0, 520px) minmax(0, 1fr); }
.auth-brand { background: var(--shell); color: var(--shell-text); padding: 56px 64px; display: flex; flex-direction: column; justify-content: space-between; gap: 48px; }
.auth-brand .logo { width: 176px; height: 36px; }
.auth-brand .eyebrow { font-size: 13px; font-weight: 600; letter-spacing: 1.5px; color: var(--signal-soft); }
.auth-brand h1 { font-size: 36px; line-height: 1.12; letter-spacing: -0.6px; }
.auth-brand .lead, .auth-brand li { color: var(--shell-mute); font-size: 16px; }
.auth-brand ol { margin: 0; padding-left: 22px; display: grid; gap: 12px; }
.auth-brand .fine { font-size: 13px; color: #8f9a94; }
.auth-brand .fine a { color: var(--shell-mute); }
.auth-main { display: flex; align-items: center; justify-content: center; padding: 48px 24px; }
.auth-card { width: 100%; max-width: 440px; display: grid; gap: 20px; }
.auth-card h2 { font-size: 28px; letter-spacing: -0.4px; }
.muted { color: var(--ink-mute); }
.social { display: grid; gap: 10px; }
.divider { display: flex; align-items: center; gap: 12px; color: var(--ink-mute); font-size: 13px; }
.divider::before, .divider::after { content: ''; flex: 1; height: 1px; background: var(--line); }

/* Forms. */
form { margin: 0; display: grid; gap: 14px; }
label.field { display: grid; gap: 6px; font-size: 13px; font-weight: 600; color: var(--ink-soft); }
label.field small { font-weight: 400; color: var(--ink-mute); font-size: 13px; }
input[type=text], input[type=email], input[type=password] {
	height: 44px; padding: 0 12px; border: 1px solid var(--line-strong); border-radius: 6px; background: var(--card); color: var(--ink);
	font: 400 15px Manrope, ui-sans-serif, system-ui, sans-serif;
}
input.mono { font: 400 14px ui-monospace, Menlo, Consolas, monospace; }
input:focus-visible, button:focus-visible, a:focus-visible { outline: 2px solid var(--signal); outline-offset: 2px; }
label.check { display: flex; gap: 10px; align-items: flex-start; font-size: 13px; line-height: 1.5; color: var(--ink-soft); }
label.check input { margin: 3px 0 0; width: 16px; height: 16px; accent-color: var(--steel); flex-shrink: 0; }
.row-links { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px; font-size: 14px; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 46px; padding: 0 20px; border-radius: 6px; border: 1px solid transparent;
	font: 600 15px Manrope, ui-sans-serif, system-ui, sans-serif; text-decoration: none; cursor: pointer; }
.btn-primary { background: var(--ink); color: var(--paper); }
.btn-primary:hover { background: var(--signal); color: #fff; }
.btn-ghost { background: var(--card); color: var(--ink); border-color: var(--line-strong); }
.btn-ghost:hover { border-color: var(--ink); color: var(--ink); }
.btn-danger { background: var(--card); color: var(--err-fg); border-color: var(--err-fg); }
.btn-link { background: none; border: none; padding: 0; min-height: 0; color: var(--steel); font: 600 14px Manrope, sans-serif; cursor: pointer; }
.btn-link:hover { color: var(--signal); }
.alert { padding: 12px 14px; border-radius: 6px; font-size: 14px; line-height: 1.5; }
.alert-error { background: var(--err-bg); color: var(--err-fg); }
.alert-ok { background: var(--ok-bg); color: var(--ok-fg); }
.turnstile { min-height: 65px; }

/* App shell. */
.topbar { height: 64px; display: flex; align-items: center; gap: 20px; padding: 0 28px; background: var(--shell); color: var(--shell-text); }
.topbar .logo { width: 120px; height: 25px; }
.topbar .sep { width: 1px; height: 28px; background: var(--shell-line); }
.workspace { display: inline-flex; align-items: center; height: 36px; padding: 0 12px; border: 1px solid var(--shell-line); border-radius: 6px; background: var(--shell-2); font-size: 14px; font-weight: 600; }
.topbar .spacer { flex: 1; }
.topbar a.top { color: var(--shell-mute); font-size: 14px; text-decoration: none; }
.topbar a.top:hover { color: #fff; }
.avatar { width: 36px; height: 36px; border-radius: 18px; background: #315b50; color: #fff; display: inline-flex; align-items: center; justify-content: center; font-weight: 700; font-size: 13px; text-decoration: none; }
.app { display: flex; flex-wrap: wrap; min-height: calc(100vh - 64px); }
.sidenav { flex: 1 1 232px; max-width: 232px; border-right: 1px solid var(--line); background: var(--card); padding: 24px 16px; display: flex; flex-direction: column; gap: 4px; }
.sidenav a { display: flex; align-items: center; height: 40px; padding: 0 12px; border-radius: 6px; color: var(--ink-soft); font-size: 14px; text-decoration: none; }
.sidenav a[aria-current=page] { background: var(--steel-soft); color: var(--ink); font-weight: 600; }
.sidenav .grow { flex: 1; }
.sidenav .note { padding: 16px 12px 0; border-top: 1px solid var(--line); font-size: 13px; color: var(--ink-mute); }
.sidenav form button { width: 100%; justify-content: flex-start; height: 40px; padding: 0 12px; }
.content { flex: 999 1 560px; min-width: 0; padding: 40px 48px; display: grid; gap: 28px; align-content: start; }
.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.page-head h1 { font-size: 30px; letter-spacing: -0.5px; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: 10px; }
.card-pad { padding: 24px; display: grid; gap: 10px; align-content: start; }
.card h2 { font-size: 17px; }
.grid-2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 20px; }
.table-wrap { overflow-x: auto; }
table.list { width: 100%; border-collapse: collapse; font-size: 14px; }
table.list th { text-align: left; padding: 14px 12px; background: var(--subtle); color: var(--ink-mute); font-size: 12px; font-weight: 600; letter-spacing: 0.6px; white-space: nowrap; }
table.list td { padding: 16px 12px; border-top: 1px solid var(--line); vertical-align: top; }
table.list th:first-child, table.list td:first-child { padding-left: 20px; }
table.list th:last-child, table.list td:last-child { padding-right: 20px; text-align: right; }
.sub { margin-top: 4px; font-size: 12px; color: var(--ink-mute); }
.num { font-variant-numeric: tabular-nums; }
.badge { display: inline-flex; align-items: center; height: 24px; padding: 0 10px; border-radius: 4px; font-size: 12px; font-weight: 700; white-space: nowrap; }
.badge-active { background: var(--ok-bg); color: var(--ok-fg); }
.badge-expired, .badge-revoked { background: var(--off-bg); color: var(--off-fg); }
.empty { padding: 32px; text-align: center; color: var(--ink-mute); }
.facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); }
.facts > div { padding: 18px 20px; display: grid; gap: 4px; border-left: 1px solid var(--line); }
.facts > div:first-child { border-left: none; }
.facts span { font-size: 12px; font-weight: 600; letter-spacing: 0.6px; color: var(--ink-mute); }
.facts strong { font-size: 17px; font-weight: 600; }
.keybox { padding: 14px 16px; border-radius: 6px; background: var(--subtle); border: 1px solid var(--line); font: 400 12px/1.6 ui-monospace, Menlo, Consolas, monospace; color: var(--ink-soft); word-break: break-all; max-height: 160px; overflow: auto; }
.kv { display: grid; grid-template-columns: 130px minmax(0, 1fr); row-gap: 8px; font-size: 14px; }
.kv dt { color: var(--ink-mute); } .kv dd { margin: 0; word-break: break-all; }
.steps { margin: 0; padding: 0; list-style: none; display: grid; gap: 20px; }
.steps li { display: grid; grid-template-columns: 36px minmax(0, 1fr); gap: 8px; }
.steps .n { font: 600 14px ui-monospace, Menlo, monospace; color: var(--signal); }
.steps h2 { font-size: 17px; }
.cmd { display: block; padding: 12px 14px; border-radius: 6px; background: var(--shell); color: var(--shell-text); font-size: 13px; overflow-x: auto; white-space: nowrap; }
.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 420px); gap: 40px; align-items: start; }

@media (max-width: 900px) {
	.auth { grid-template-columns: 1fr; }
	.auth-brand { padding: 32px 24px; gap: 24px; }
	.auth-brand h1 { font-size: 28px; }
	.auth-brand .hide-sm { display: none; }
	.sidenav { max-width: none; flex-basis: 100%; flex-direction: row; flex-wrap: wrap; border-right: none; border-bottom: 1px solid var(--line); padding: 12px 16px; }
	.sidenav .grow, .sidenav .note { display: none; }
	.content { padding: 28px 16px; }
	.split { grid-template-columns: 1fr; }
	.topbar { padding: 0 16px; gap: 12px; }
	.topbar a.top, .topbar .sep { display: none; }
}
