/* 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: background 160ms ease, 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); }
.sidebar-note { margin: auto 8px 24px; padding-top: 35px; }
.sidebar-note svg { color: var(--faint); margin-bottom: 9px; }
.sidebar-note strong { display: block; font-size: 12px; font-weight: 550; }
.sidebar-note p { font-size: 11px; margin-top: 6px; line-height: 1.9; }
.sidebar-footer { border-top: 1px solid var(--border); padding: 15px 8px 0; color: var(--faint); font-size: 11px; }
.sidebar-footer span { display: block; font-size: 10px; margin-top: 3px; }
.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; }
.session-label { display: none; align-items: center; gap: 6px; color: var(--muted); font-size: 11px; }
.session-action { display: none !important; }
.signed-in .session-label { display: inline-flex; }
.signed-in .session-action { display: inline-flex !important; }
.status-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--accent); flex-shrink: 0; }
.theme-control { display: inline-flex; align-items: center; gap: 8px; color: var(--faint); font-size: 11px; font-weight: 400; }
.theme-control select { width: 74px; min-height: 32px; padding: 4px 7px; border-color: var(--border); background: transparent; font-size: 12px; }
.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; }
.content-footer { color: var(--faint); font-size: 10px; text-align: center; padding: 28px 0 6px; }
.content-footer span { margin: 0 8px; }
.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 */
.login-screen { max-width: 940px; min-height: 480px; display: grid; grid-template-columns: 1.05fr 1fr; overflow: hidden; border-radius: 16px; border: 1px solid var(--border); margin: clamp(24px, 8vh, 90px) auto 50px; background: var(--surface); box-shadow: 0 14px 50px #29221a07; }
.login-story { padding: 45px 38px 28px; background: #23211e; color: #f6f4ee; display: flex; flex-direction: column; align-items: flex-start; }
.login-story img { margin-bottom: 28px; }
.login-story .eyebrow { color: #aaa398; font-size: 10px; }
.login-story h1 { font-size: 30px; margin: 8px 0 18px; line-height: 1.55; letter-spacing: -.045em; }
.login-story p { color: #bfb8ad; font-size: 12px; line-height: 1.9; }
.login-principles { display: flex; gap: 8px; flex-wrap: wrap; margin: 28px 0; }
.login-principles span { border: 1px solid #514a42; border-radius: 5px; color: #d3ccc1; padding: 4px 8px; font-size: 10px; }
.story-footer { color: #aaa398; font-size: 10px; border-top: 1px solid #484138; margin-top: auto; padding-top: 20px; width: 100%; }
.login-panel { padding: 54px 40px 36px; align-self: center; }
.login-panel h2 { font-size: 25px; margin-bottom: 8px; }
.login-panel > p { font-size: 13px; }
.login-panel form { margin-top: 30px; }
.login-panel input { margin: 8px 0 18px; min-height: 46px; }
.login-panel .primary { min-height: 44px; justify-content: space-between; }
.login-hint { display: flex; align-items: flex-start; gap: 10px; margin-top: 26px; padding-top: 24px; border-top: 1px solid var(--border); color: var(--muted); font-size: 11px; line-height: 1.8; }
.login-hint svg { width: 16px; height: 16px; margin-top: 3px; }
/* 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; }
.guide-card { padding: 23px 22px; background: var(--surface); border: 1px solid var(--border); border-radius: 12px; }
.guide-card h3 { margin: 0 0 26px; font-size: 16px; }
.guide-steps { list-style: none; margin: 0; padding: 0; }
.guide-steps li { display: flex; gap: 12px; padding-bottom: 26px; position: relative; }
.guide-steps li:not(:last-child)::before { content: ''; position: absolute; width: 1px; height: calc(100% - 30px); top: 32px; left: 12px; background: var(--input-border); }
.guide-steps li > span { display: flex; align-items: center; justify-content: center; width: 25px; height: 25px; border: 1px solid var(--input-border); border-radius: 50%; flex-shrink: 0; font-size: 10px; color: var(--muted); }
.guide-steps strong { display: block; font-size: 12px; font-weight: 550; padding-top: 2px; }
.guide-steps p { font-size: 11px; line-height: 1.8; margin-top: 5px; }
.guide-note { border-top: 1px solid var(--border); padding-top: 18px; font-size: 11px; line-height: 1.8; }
.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; }
.provider-chips { display: flex; justify-content: center; gap: 8px; }
.provider-chips span { padding: 3px 13px; border: 1px solid var(--input-border); border-radius: 5px; color: var(--muted); font-size: 11px; background: var(--surface); }
.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; }
.public-footer { text-align: center; color: var(--faint); margin-top: 25px; font-size: 10px; }
.public-footer p { color: var(--faint); font-size: 11px; margin-bottom: 7px; }
@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, .sidebar-note, .sidebar-footer { 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; }
  .login-screen { margin-top: 35px; }
}
@media (max-width: 700px) {
  .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; }
  .theme-control { gap: 5px; }
  .theme-control select { width: 66px; }
  .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, .split-layout { grid-template-columns: 1fr; }
  .node-metrics { gap: 38px; }
  .guide-card { padding: 22px; }
  .guide-steps li { padding-bottom: 21px; }
  .summary-help { display: block; margin: 4px 0 0; }
  .form-footer { flex-wrap: wrap; }
  .form-footer button { margin-left: auto; }
  .login-screen { display: block; margin: 25px auto 20px; max-width: 440px; }
  .login-story { padding: 27px 25px; }
  .login-story img { width: 44px; height: 44px; margin-bottom: 18px; }
  .login-story h1 { font-size: 25px; margin-bottom: 11px; }
  .login-story > p, .story-footer { display: none; }
  .login-principles { margin: 10px 0 0; }
  .login-panel { padding: 28px 25px; }
  .login-panel h2 { font-size: 22px; }
  .content-footer { font-size: 9px; padding-top: 23px; }
  .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; } }
