/* Shared palette follows CodexProxy management-webui themes.scss. */
:root {
  color-scheme: light;
  --bg: #faf9f5;
  --surface: #f0eee8;
  --surface-hover: #e9e6df;
  --input: #fffdf9;
  --text: #2d2a26;
  --muted: #6d6760;
  --faint: #706a62;
  --border: #e3e1db;
  --input-border: #d5d2cb;
  --accent: #8b8680;
  --button: #726d67;
  --button-hover: #625d57;
  --button-text: #fff;
  --focus: #8b868048;
  --warning: #8c5c17;
  --warning-bg: #e0aa1412;
  --danger: #a14335;
  --danger-bg: #c6574610;
  --shadow: 0 1px 2px #2d2a2605;
  font: 14px/1.65 -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Helvetica Neue', Arial, sans-serif;
  color: var(--text);
  background: var(--bg);
}
[data-theme='white'] { --bg: #fff; --surface: #fff; --surface-hover: #f5f4f2; --input: #fff; --border: #e5e5e5; --input-border: #d9d9d9; }
[data-theme='dark'] {
  color-scheme: dark;
  --bg: #151412;
  --surface: #1d1b18;
  --surface-hover: #262320;
  --input: #191714;
  --text: #f6f4f1;
  --muted: #c9c3bb;
  --faint: #a7a098;
  --border: #3a3530;
  --input-border: #4a453f;
  --button: #b9b1a8;
  --button-hover: #cbc3b9;
  --button-text: #1d1b18;
  --warning: #e4bd7a;
  --warning-bg: #f59e0b12;
  --danger: #f1b0a6;
  --danger-bg: #c657461c;
  --shadow: 0 1px 2px #00000012;
}
* { box-sizing: border-box; }
body { margin: 0; min-width: 320px; }
button, input, select, textarea { font: inherit; }
button, a, input, select, textarea, summary { -webkit-tap-highlight-color: transparent; }
button, input, select, textarea { transition: border-color 160ms ease, box-shadow 160ms ease; }
h1, h2, h3, p { margin: 0; }
h1 { font-size: 28px; font-weight: 650; line-height: 1.35; letter-spacing: -.045em; }
h2 { font-size: 17px; font-weight: 620; letter-spacing: -.02em; line-height: 1.5; }
h3 { font-size: 16px; font-weight: 600; }
p { color: var(--muted); }
a { color: inherit; text-underline-offset: 4px; }
svg { width: 19px; height: 19px; flex-shrink: 0; fill: none; stroke: currentColor; stroke-width: 1.65; stroke-linecap: round; stroke-linejoin: round; }
img { display: block; object-fit: contain; flex-shrink: 0; }
button { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 40px; padding: 9px 15px; border: 1px solid transparent; border-radius: 8px; background: var(--button); color: var(--button-text); font-size: 13px; font-weight: 550; line-height: 1.5; cursor: pointer; }
button:hover { background: var(--button-hover); }
button:active { transform: translateY(1px); }
button:disabled { opacity: .48; cursor: not-allowed; transform: none; }
button svg { width: 16px; height: 16px; }
button.secondary { border-color: var(--input-border); background: transparent; color: var(--text); }
button.secondary:hover { background: var(--surface-hover); border-color: var(--accent); }
button.text-button { background: transparent; color: var(--muted); padding-inline: 10px; }
button.text-button:hover { background: var(--surface-hover); color: var(--text); }
button.danger { background: transparent; color: var(--danger); border-color: color-mix(in srgb, var(--danger) 30%, transparent); }
button.danger:hover { background: var(--danger-bg); border-color: var(--danger); }
button.icon-button { width: 34px; min-height: 34px; padding: 7px; background: transparent; color: var(--muted); }
button.icon-button:hover { background: var(--surface-hover); color: var(--text); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
label { display: block; color: var(--text); font-size: 13px; font-weight: 550; }
input, select, textarea { display: block; width: 100%; min-width: 0; color: var(--text); background: var(--input); border: 1px solid var(--input-border); border-radius: 8px; padding: 10px 12px; font-size: 13px; line-height: 1.55; }
input, select { min-height: 42px; }
label > input, label > select { margin-top: 8px; }
input::placeholder, textarea::placeholder { color: var(--faint); opacity: 1; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--focus); }
input[readonly] { color: var(--muted); }
textarea { resize: vertical; min-height: 120px; }
.mono, pre { font-family: ui-monospace, 'SF Mono', Menlo, Consolas, monospace; font-size: 12px; }
.muted { color: var(--muted); font-weight: 400; }
.eyebrow { color: var(--faint); font-size: 11px; font-weight: 600; letter-spacing: .09em; margin-bottom: 8px; }
.full-width { width: 100%; }
.wide { grid-column: 1 / -1; }
[hidden] { display: none !important; }
.visually-hidden, .skip-link:not(:focus) { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip-link:focus { position: fixed; top: 12px; left: 12px; padding: 8px 16px; background: var(--input); z-index: 100; }
/* Application shell */
.sidebar { display: none; position: fixed; inset: 0 auto 0 0; width: 216px; padding: 29px 16px 18px; background: var(--surface); border-right: 1px solid var(--border); flex-direction: column; z-index: 20; }
.signed-in .sidebar { display: flex; }
.sidebar-brand { display: flex; align-items: center; gap: 10px; padding: 0 8px 39px; }
.sidebar-brand strong { display: block; font-size: 16px; font-weight: 650; letter-spacing: -.025em; }
.sidebar-brand span { display: block; color: var(--faint); font-size: 9px; letter-spacing: .18em; margin-top: 1px; }
.nav-caption { padding: 0 12px 12px; color: var(--faint); font-size: 11px; }
.workspace-nav { display: flex; flex-direction: column; gap: 5px; }
button.nav-item { justify-content: flex-start; width: 100%; gap: 11px; padding: 11px 12px; color: var(--muted); background: transparent; border: 1px solid transparent; font-weight: 500; white-space: nowrap; }
button.nav-item svg { width: 18px; height: 18px; }
button.nav-item:hover { background: var(--surface-hover); color: var(--text); }
button.nav-item.active { background: var(--surface-hover); border-color: var(--border); color: var(--text); font-weight: 600; }
.workspace-nav::-webkit-scrollbar { height: 3px; }
.workspace-nav::-webkit-scrollbar-thumb { background: var(--input-border); border-radius: 3px; }
.nav-count { margin-left: auto; font-size: 11px; font-weight: 500; min-width: 21px; padding: 0 5px; border-radius: 4px; background: var(--input); color: var(--muted); }
.app-main { min-height: 100vh; }
.signed-in .app-main { margin-left: 216px; }
.topbar { display: flex; align-items: center; justify-content: space-between; min-height: 76px; padding: 0 36px; border-bottom: 1px solid var(--border); gap: 18px; }
.topbar-brand { display: flex; align-items: center; gap: 10px; font-weight: 600; font-size: 13px; letter-spacing: -.015em; }
.signed-in .topbar-brand img { display: none; }
.topbar-actions { display: flex; align-items: center; gap: 14px; }
.content { max-width: 1380px; margin: 0 auto; padding: 32px 36px 20px; }
.page-heading { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-bottom: 25px; }
.page-heading p { margin-top: 8px; font-size: 13px; }
.page-heading .eyebrow { margin-bottom: 6px; font-size: 10px; letter-spacing: .025em; }
.page-heading button { flex-shrink: 0; }
.notice:not(:empty) { margin-bottom: 24px; padding: 12px 16px; border: 1px solid color-mix(in srgb, var(--danger) 25%, var(--border)); border-radius: 8px; color: var(--danger); background: var(--danger-bg); white-space: pre-wrap; overflow-wrap: anywhere; font-size: 13px; }
.notice[data-tone='info']:not(:empty) { color: var(--muted); border-color: var(--input-border); background: var(--surface); }
/* Login follows CodexProxy's brand and form panels. */
.admin-page:not(.signed-in) .topbar { display: none; }
.admin-page:not(.signed-in) .content { max-width: none; padding: 0; }
.login-screen { min-height: 100svh; display: grid; grid-template-columns: 1fr 1fr; }
.login-brand { display: flex; flex-direction: column; justify-content: center; align-items: flex-end; background: #000; padding: 40px; overflow: hidden; }
.login-brand span { font-size: clamp(72px, 12vw, 220px); font-weight: 900; color: #f2f2f2; letter-spacing: -.045em; line-height: .88; text-transform: uppercase; }
.login-brand span + span { color: #b3b3b3; }
.login-panel { min-height: 100svh; display: flex; align-items: center; justify-content: center; padding: 48px 32px; }
.login-content { width: 100%; max-width: 420px; display: flex; flex-direction: column; align-items: center; gap: 32px; }
.login-logo { width: 80px; height: 80px; border: 3px solid var(--border); border-radius: 12px; object-fit: cover; box-shadow: 0 10px 18px -3px #0000001a; }
.login-card { width: 100%; padding: 32px; background: var(--surface); border: 1px solid var(--border); border-radius: 12px; box-shadow: 0 10px 18px -3px #0000000d; }
.login-card h1 { font-size: 22px; font-weight: 750; text-align: center; margin-bottom: 28px; letter-spacing: -.025em; }
.login-card input { min-height: 46px; margin: 8px 0 24px; }
.login-card .primary { min-height: 44px; justify-content: center; }
.login-card .notice:not(:empty) { margin: 20px 0 0; }
.invite-layout { max-width: 840px; }
/* Panels and forms */
.panel { min-width: 0; padding: 24px; border: 1px solid var(--border); border-radius: 12px; background: var(--surface); box-shadow: var(--shadow); }
.panel + .panel { margin-top: 20px; }
.panel-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; margin-bottom: 22px; }
.panel-heading p { margin-top: 5px; font-size: 12px; }
.panel-heading button { flex-shrink: 0; }
.panel-heading .subtle-tag { margin-top: 3px; }
.subtle-tag, .badge { display: inline-flex; align-items: center; gap: 5px; border-radius: 5px; padding: 3px 8px; background: var(--surface-hover); color: var(--muted); font-size: 10px; font-weight: 500; line-height: 1.6; white-space: nowrap; }
.badge[data-tone='attention'] { background: var(--warning-bg); color: var(--warning); border: 1px solid color-mix(in srgb, var(--warning) 24%, transparent); padding: 2px 7px; }
.badge[data-tone='danger'] { background: var(--danger-bg); color: var(--danger); }
.badge[data-tone='active'] { color: var(--text); background: color-mix(in srgb, var(--accent) 17%, transparent); }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 21px 20px; }
.label-optional { font-weight: 400; color: var(--faint); font-size: 11px; margin-left: 7px; }
.form-footer { display: flex; align-items: center; justify-content: space-between; border-top: 1px solid var(--border); padding-top: 20px; gap: 16px; margin-top: 3px; }
.form-footer > span { font-size: 11px; color: var(--faint); }
.form-footer > button { flex-shrink: 0; }
.form-panel { max-width: 940px; }
.setup-panel { margin-top: 20px; }
summary { display: flex; align-items: center; justify-content: space-between; gap: 16px; cursor: pointer; list-style: none; }
summary::-webkit-details-marker { display: none; }
summary strong { font-size: 14px; font-weight: 600; }
.summary-help { color: var(--muted); font-size: 12px; margin-left: 16px; }
details[open] summary { margin-bottom: 24px; }
details[open] summary > svg { transform: rotate(180deg); }
.inline-note { padding: 12px 15px; border: 1px solid var(--input-border); border-radius: 7px; margin-bottom: 24px; color: var(--muted); background: var(--bg); font-size: 12px; }
.actions { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
/* Overview and records */
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-bottom: 23px; }
.stat-card { background: var(--surface); border: 1px solid var(--border); padding: 19px 20px 17px; border-radius: 10px; min-width: 0; }
.stat-card > span { display: block; font-size: 12px; color: var(--muted); }
.stat-card > strong { display: block; font-size: 31px; line-height: 1.25; margin: 12px 0 8px; font-weight: 550; letter-spacing: -.045em; font-variant-numeric: tabular-nums; }
.stat-card > small { font-size: 10px; color: var(--faint); }
.records-panel { padding-bottom: 0; }
.record-toolbar { display: grid; grid-template-columns: minmax(180px, 1fr) 135px 135px; gap: 10px; margin-bottom: 20px; }
.search-field { position: relative; }
.search-field input { padding-left: 37px; margin: 0; }
.search-field svg { position: absolute; left: 12px; top: 13px; width: 16px; height: 16px; color: var(--faint); }
.records-list { display: flex; flex-direction: column; gap: 12px; }
.record-card { padding: 20px; background: var(--bg); border: 1px solid var(--border); border-radius: 9px; min-width: 0; }
.record-header { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; }
.account-heading { display: flex; gap: 12px; align-items: center; min-width: 0; }
.provider-icon { display: flex; align-items: center; justify-content: center; width: 39px; height: 39px; flex-shrink: 0; background: var(--surface-hover); color: var(--text); border-radius: 9px; font-family: ui-monospace, monospace; font-size: 16px; }
.provider-icon.claude { color: #b56343; background: #c7795310; }
.account-heading h3 { font-size: 14px; overflow-wrap: anywhere; line-height: 1.5; }
.account-heading .provider-name { font-size: 10px; color: var(--faint); letter-spacing: .05em; margin-top: 1px; }
.record-badges { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 5px; }
.record-facts { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 10px; padding: 17px 0; margin-top: 4px; }
.fact { min-width: 0; }
.fact dt { color: var(--faint); font-size: 10px; margin-bottom: 4px; }
.fact dd { margin: 0; color: var(--muted); font-size: 12px; overflow-wrap: anywhere; }
.record-detail { display: flex; justify-content: space-between; align-items: center; gap: 12px; font-size: 10px; color: var(--faint); padding: 12px 0 0; border-top: 1px solid var(--border); }
.record-detail code { font-size: 10px; overflow-wrap: anywhere; }
.record-detail > span { flex-shrink: 0; }
.record-card .actions { padding-top: 16px; }
.record-card .actions select { width: auto; min-width: 130px; max-width: 250px; min-height: 35px; padding-block: 6px; font-size: 12px; }
.record-card .actions button { min-height: 35px; padding: 7px 11px; font-size: 11px; }
.record-warning { padding: 10px 12px; margin-bottom: 14px; font-size: 11px; border-radius: 6px; color: var(--warning); background: var(--warning-bg); }
.panel-footer { display: flex; justify-content: space-between; gap: 12px; padding: 17px 0; color: var(--faint); font-size: 10px; }
.empty-state { padding: 44px 24px; border: 1px dashed var(--input-border); border-radius: 8px; display: flex; flex-direction: column; align-items: center; text-align: center; color: var(--muted); }
.empty-state > svg { width: 29px; height: 29px; color: var(--faint); margin-bottom: 14px; }
.empty-state h3 { font-size: 14px; color: var(--text); margin-bottom: 6px; }
.empty-state p { font-size: 12px; max-width: 400px; }
.empty-state button { margin-top: 17px; }
/* Nodes and invitation */
.node-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.node-grid > .empty-state { grid-column: 1 / -1; }
.node-card { border: 1px solid var(--border); border-radius: 9px; padding: 20px; background: var(--bg); }
.node-header { display: flex; align-items: center; justify-content: space-between; gap: 14px; }
.node-header h3 { font-size: 14px; }
.node-id { color: var(--faint); font-size: 11px; margin: 7px 0 20px; overflow-wrap: anywhere; }
.node-metrics { display: flex; gap: 28px; }
.node-metrics strong { display: block; font-size: 22px; font-weight: 550; line-height: 1.4; }
.node-metrics span { color: var(--faint); font-size: 10px; }
.node-note { border-top: 1px solid var(--border); margin-top: 18px; padding-top: 12px; color: var(--muted); font-size: 11px; }
.node-note.warning { color: var(--warning); }
.split-layout { display: grid; grid-template-columns: minmax(0, 1fr) 270px; align-items: start; gap: 22px; }
.invitation-result { border-top: 1px solid var(--border); margin-top: 25px; padding-top: 22px; }
.result-heading { display: flex; align-items: center; gap: 10px; }
.result-heading strong { font-size: 13px; font-weight: 600; }
.invitation-result p { font-size: 11px; margin: 9px 0 12px; }
.invitation-result .actions { margin-top: 12px; }
.query-form { display: flex; gap: 10px; }
.query-form button { flex-shrink: 0; }
.receipt { margin: 22px 0 0; padding: 22px; min-height: 180px; border: 1px solid var(--border); background: var(--bg); color: var(--muted); border-radius: 8px; white-space: pre-wrap; overflow-wrap: anywhere; line-height: 1.8; }
.is-busy #refresh svg { animation: spin 1s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
/* Public enrollment */
.public-topbar { display: flex; align-items: center; justify-content: space-between; gap: 20px; max-width: 1200px; margin: 0 auto; padding: 25px 32px; }
.public { max-width: 700px; padding: 0 24px 35px; margin: 35px auto 0; }
.public-intro { text-align: center; margin-bottom: 30px; }
.public-intro .eyebrow { margin-bottom: 13px; font-size: 11px; letter-spacing: .08em; }
.public-intro h1 { font-size: 32px; }
.public-intro p { margin: 15px 0 20px; font-size: 13px; line-height: 1.9; }
.progress-steps { display: flex; justify-content: center; gap: 27px; padding: 0; list-style: none; margin: 31px 0 25px; }
.progress-steps li { display: flex; align-items: center; gap: 8px; color: var(--faint); font-size: 12px; }
.progress-steps li > span { display: flex; align-items: center; justify-content: center; border: 1px solid var(--input-border); border-radius: 50%; width: 23px; height: 23px; font-size: 10px; }
.progress-steps li[aria-current='step'] { color: var(--text); font-weight: 550; }
.progress-steps li[aria-current='step'] > span { background: var(--button); color: var(--button-text); border-color: var(--button); }
.enrollment-card { padding: 28px 30px; }
.public-card-heading { display: flex; gap: 12px; align-items: center; margin-bottom: 22px; }
.public-card-heading h2 { font-size: 16px; }
.public-card-heading p { font-size: 11px; margin-top: 3px; }
.shield-tile { display: flex; align-items: center; justify-content: center; width: 40px; height: 40px; background: var(--surface-hover); border-radius: 9px; color: var(--muted); flex-shrink: 0; }
.authorization-status { padding: 13px 15px; border-radius: 7px; border: 1px solid var(--input-border); background: var(--bg); font-size: 12px; color: var(--muted); }
.authorization-status[data-tone='error'] { color: var(--danger); background: var(--danger-bg); border-color: color-mix(in srgb, var(--danger) 24%, var(--border)); }
.authorization-status[data-tone='success'] { color: var(--text); background: var(--surface-hover); }
.consent { display: flex; gap: 12px; align-items: flex-start; font-size: 12px; color: var(--muted); font-weight: 400; line-height: 1.9; margin: 23px 0; }
.consent input { width: 17px; height: 17px; min-height: 0; padding: 0; margin: 4px 0 0; accent-color: var(--button); flex-shrink: 0; }
.consent strong { font-weight: 550; color: var(--text); }
.public-actions { display: flex; gap: 10px; }
.public-actions #start { flex: 1; }
.public-card-footer { display: flex; gap: 8px; padding-top: 20px; margin-top: 23px; border-top: 1px solid var(--border); color: var(--faint); font-size: 10px; line-height: 1.8; }
.public-card-footer svg { width: 14px; height: 14px; margin-top: 2px; }
.callback-help { padding: 15px; margin-top: 22px; background: var(--bg); border-radius: 8px; border: 1px solid var(--border); font-size: 12px; }
.callback-help strong { font-weight: 550; }
.callback-help p { margin-top: 5px; font-size: 11px; line-height: 1.9; }
.callback-help a { display: block; margin: 3px 0 8px; overflow-wrap: anywhere; }
.callback-form { margin-top: 20px; }
.callback-form textarea { margin: 9px 0 13px; font-family: ui-monospace, monospace; font-size: 12px; }
@media (min-width: 1600px) { .content { padding-top: 42px; } }
@media (max-width: 1150px) { .content { padding: 28px 24px 20px; } .topbar { padding-inline: 24px; } .split-layout { grid-template-columns: minmax(0, 1fr) 230px; gap: 16px; } .stats-grid { gap: 12px; } .stat-card { padding: 17px 16px; } }
@media (max-width: 950px) {
  .sidebar { position: sticky; top: 0; width: 100%; padding: 10px 20px; border-right: 0; border-bottom: 1px solid var(--border); background: var(--bg); }
  .sidebar-brand, .nav-caption { display: none; }
  .workspace-nav { flex-direction: row; overflow-x: auto; gap: 5px; scrollbar-width: thin; }
  button.nav-item { width: auto; flex-shrink: 0; font-size: 12px; gap: 7px; padding: 9px 11px; min-height: 36px; }
  .nav-count { margin-left: 2px; }
  .signed-in .app-main { margin-left: 0; }
  .signed-in .topbar-brand img { display: block; }
  .topbar { min-height: 68px; }
  .split-layout { grid-template-columns: minmax(0, 1fr) 250px; }
}
@media (max-width: 700px) {
  .login-screen { grid-template-columns: 1fr; }
  .login-brand { display: none; }
  .login-panel { padding: 32px 24px; }
  .login-card { padding: 24px; box-shadow: none; }
  .login-logo { width: 64px; height: 64px; }
  .login-card h1 { font-size: 21px; }
  .theme-preview { width: 48px; }

  .topbar, .public-topbar { padding: 17px 18px; min-height: 64px; }
  .topbar-brand { font-size: 12px; gap: 7px; }
  .topbar-brand img { width: 27px; height: 27px; }
  .topbar-actions { gap: 6px; }
  .session-label, .signed-in .session-label { display: none; }
  .content { padding: 23px 18px 14px; }
  .sidebar { padding: 8px 12px; }
  .page-heading { align-items: flex-end; gap: 12px; margin-bottom: 21px; }
  h1 { font-size: 24px; }
  .page-heading p { font-size: 12px; max-width: 265px; }
  .page-heading button { padding: 8px 10px; font-size: 11px; gap: 5px; min-height: 36px; }
  .page-heading button svg { width: 14px; height: 14px; }
  .stats-grid { grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 16px; }
  .stat-card { padding: 16px 15px; }
  .stat-card strong { font-size: 28px; margin: 10px 0 7px; }
  .stat-card small { font-size: 10px; }
  .panel { padding: 20px 17px; border-radius: 10px; }
  .panel-heading { margin-bottom: 18px; gap: 12px; }
  .panel-heading button { padding-inline: 10px; font-size: 11px; }
  .panel-heading h2 { font-size: 16px; }
  .panel-heading p { font-size: 11px; }
  .record-toolbar { grid-template-columns: 1fr 1fr; }
  .search-field { grid-column: 1 / -1; }
  .records-panel { padding-bottom: 0; }
  .record-card { padding: 16px 14px; }
  .record-header { flex-wrap: wrap; gap: 10px; }
  .record-badges { justify-content: flex-start; }
  .record-facts { gap: 8px; }
  .record-facts dd { font-size: 11px; }
  .record-detail { flex-wrap: wrap; gap: 4px; }
  .record-detail > span { font-size: 9px; }
  .record-card .actions { gap: 7px; }
  .record-card .actions select { width: 100%; max-width: none; }
  .record-card .actions button { flex-grow: 1; }
  .record-card .actions button.text-button { flex-grow: 0; }
  .node-grid, .form-grid { grid-template-columns: 1fr; }
  .node-metrics { gap: 38px; }
  .summary-help { display: block; margin: 4px 0 0; }
  .form-footer { flex-wrap: wrap; }
  .form-footer button { margin-left: auto; }
  .public { margin-top: 25px; padding-inline: 18px; }
  .public-intro h1 { font-size: 28px; }
  .public-intro p { font-size: 12px; }
  .progress-steps { gap: 18px; margin-top: 26px; }
  .progress-steps li { font-size: 11px; gap: 6px; }
  .enrollment-card { padding: 23px 20px; }
  .public-card-heading p { font-size: 10px; }
  .public-actions { flex-wrap: wrap; }
  .public-actions #start { flex-basis: 100%; }
  .public-actions #check { width: 100%; }
  .query-form { flex-wrap: wrap; }
  .query-form button { width: 100%; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; } }

.language-picker{display:inline-flex;align-items:center;gap:6px;white-space:nowrap;color:var(--text-secondary,#777);font-size:14px}.language-picker select{width:auto;max-width:140px;padding:7px 10px;min-height:34px}.login-title-row{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap}.login-title-row h1{font-size:21px}.roster-forms{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:20px}.roster-forms .panel{margin:0 0 20px}.checkbox-label{display:flex;align-items:center;gap:8px}.checkbox-label input{width:auto}select[multiple]{min-height:100px}.roster-user-card{padding:16px;border:1px solid var(--border,#ddd);border-radius:12px}.roster-user-card p{margin:8px 0}.roster-user-card button{margin-top:10px}[data-panel="roster"]>.panel{margin-bottom:20px}.public-topbar{gap:14px}.public-topbar>.topbar-brand{margin-right:auto}@media(max-width:850px){.roster-forms{grid-template-columns:1fr}.public-topbar{flex-wrap:wrap}.login-title-row{align-items:flex-start}.language-picker select{max-width:120px}}

/* Keep the same header preferences available on the login screen. */
.admin-page:not(.signed-in) .topbar { display: flex; position: absolute; top: 18px; right: 24px; z-index: 30; min-height: 38px; padding: 0; border: 0; }
.admin-page:not(.signed-in) .topbar-brand, .admin-page:not(.signed-in) .session-action { display: none; }
.login-title-row { display: block; }
.login-title-row h1 { font-size: 22px; }
@media (max-width: 600px) { .admin-page:not(.signed-in) .topbar { top: 14px; right: 18px; } }
