@charset "UTF-8";

/* V1 layout adapter for the original Steward design system in brand/. */
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; color: var(--st-text); background: var(--st-bg); font: 14px/1.5 var(--font-sans); font-synthesis: none; -webkit-font-smoothing: antialiased; font-variant-numeric: tabular-nums; }
::selection { color: var(--st-on-mark); background: var(--st-mark); }
[hidden] { display: none !important; }
button, input, textarea, select { font: inherit; }
button, a, input, textarea, select { -webkit-tap-highlight-color: transparent; }
button { cursor: pointer; }
button:disabled { cursor: wait; opacity: .6; }
button:focus-visible, a:focus-visible, input:focus-visible, textarea:focus-visible, select:focus-visible, summary:focus-visible { outline: var(--st-focus-width) solid var(--st-focus); outline-offset: var(--st-focus-offset); }
a { color: var(--st-text); text-underline-offset: 3px; }
h1, h2, h3, h4, p { margin: 0; }
h1, h2, h3, h4 { color: var(--st-text); font-weight: 600; line-height: 1.25; }
h1 { font-size: clamp(25px, 2.5vw, 32px); letter-spacing: -.02em; text-wrap: balance; }
h2 { font-size: 18px; }
h3 { font-size: 15px; }
h4 { font-size: 14px; }
label { display: block; font-size: 13px; font-weight: 550; margin-bottom: 6px; }
input, textarea, select { width: 100%; min-width: 0; min-height: 40px; padding: 9px 10px; color: var(--st-text); background: var(--st-surface); border: 1px solid var(--st-line-strong); border-radius: var(--st-radius-sm); }
textarea { resize: vertical; line-height: 1.6; }
select { padding-right: 28px; }
input::placeholder, textarea::placeholder { color: var(--st-text-3); }
input:focus, textarea:focus, select:focus { border-color: var(--st-focus); }
label + input, label + textarea, label + select { margin-bottom: 18px; }
code, pre, .card-id, .card-meta, .nav-count, .record-footer, .record-topic { font-family: var(--font-mono); font-variant-ligatures: none; }
code { font-size: .92em; }
.muted { color: var(--st-text-2); }
.eyebrow, .small-label { font-size: 10px; font-weight: 650; letter-spacing: .11em; }
.eyebrow { color: var(--st-text-2); margin-bottom: 9px; }
.small-label { color: var(--st-text-3); }
.form-note { margin-top: 12px; color: var(--st-text-2); font-size: 12px; line-height: 1.6; }
.error-text, .danger-text { color: var(--st-blocked); }
.form-message { margin: 12px 0 18px; font-size: 13px; }

.button { display: inline-flex; align-items: center; justify-content: center; gap: 9px; min-height: 38px; padding: 8px 13px; border: 1px solid var(--st-line-strong); border-radius: var(--st-radius-sm); font-size: 13px; font-weight: 550; line-height: 20px; text-decoration: none; }
.primary { color: var(--st-on-action); background: var(--st-action); border-color: var(--st-action); }
.primary:hover:not(:disabled) { background: var(--st-action-hover); border-color: var(--st-action-hover); }
.secondary { color: var(--st-text); background: var(--st-surface); border-color: var(--st-line-2); }
.secondary:hover:not(:disabled) { background: var(--st-bg-subtle); border-color: var(--st-line-strong); }
.danger { color: var(--st-blocked); background: var(--st-surface); border-color: var(--st-blocked); }
.danger:hover:not(:disabled) { background: var(--st-blocked-bg); }
.full-width { width: 100%; justify-content: space-between; }
.text-button { padding: 0; border: 0; background: none; color: var(--st-text); font-size: 12px; font-weight: 550; text-decoration: underline; text-underline-offset: 3px; }
.text-button:hover { color: var(--st-text-2); }
.text-button.danger-text { color: var(--st-blocked); }
.brand { display: inline-flex; flex: none; color: var(--st-text); text-decoration: none; }
.brand .st-lockup { display: block; width: 164px; height: 34px; overflow: visible; }
.brand .st-lockup polygon { fill: var(--st-brand-mark); }
.brand .st-lockup .st-logo-overlay { stroke: var(--st-on-mark); }
.skip-link { position: absolute; top: -60px; left: 16px; z-index: 1000; padding: 10px 14px; color: var(--st-on-mark); background: var(--st-mark); border: 1px solid var(--st-on-mark); }
.skip-link:focus { top: 10px; }
.visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }

/* Account entry */
.login-screen { display: grid; grid-template-columns: 1.08fr 1fr; min-height: 100svh; }
.login-intro { position: relative; display: flex; flex-direction: column; justify-content: space-between; padding: 48px clamp(32px, 6vw, 92px); background: var(--st-bg-sunken); border-right: 1px solid var(--st-line); }
.login-intro::before { content: ""; position: absolute; top: 0; left: 0; width: 100%; height: 6px; background: var(--st-mark); }
.login-copy { max-width: 500px; margin: 84px 0; }
.login-copy h1 { font-size: clamp(40px, 4.8vw, 64px); line-height: 1.03; font-weight: 650; letter-spacing: -.035em; font-variation-settings: "wdth" 108; }
.login-copy > p:not(.eyebrow) { max-width: 400px; margin-top: 25px; color: var(--st-text-2); font-size: 16px; line-height: 1.65; }
.login-process { display: flex; gap: 24px; flex-wrap: wrap; margin-top: 34px; color: var(--st-text-2); font: 11px/1.5 var(--font-mono); }
.login-process span { border-top: 2px solid var(--st-mark); padding-top: 9px; }
.login-footnote { color: var(--st-text-3); font-size: 12px; }
.login-form-area { display: grid; place-items: center; padding: 48px 32px; }
.login-form { width: 100%; max-width: 360px; }
.login-form h2 { font-size: 26px; letter-spacing: -.02em; }
.login-form > .muted { margin: 12px 0 28px; line-height: 1.6; }
.login-form .button { margin-top: 8px; }
.login-form .form-note { margin: 6px 0 14px; }
.login-switch { margin-top: 20px; color: var(--st-text-2); font-size: 13px; line-height: 1.6; }
.link-button { padding: 0; border: 0; background: none; color: var(--st-text); font: inherit; font-weight: 550; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; cursor: pointer; }
.link-button:hover { text-decoration-color: var(--st-mark); text-decoration-thickness: 3px; }
.link-button:focus-visible { outline: 2px solid var(--st-focus); outline-offset: 2px; border-radius: var(--st-radius-xs); }

/* Central registry shell */
.app-shell { display: grid; grid-template-columns: var(--st-sidebar-w) minmax(0,1fr); min-height: 100svh; }
.sidebar { position: sticky; top: 0; height: 100svh; overflow-y: auto; align-self: start; display: flex; flex-direction: column; padding: 24px 16px 20px; background: var(--st-sidebar); border-right: 1px solid var(--st-line); }
.sidebar .brand { margin: 0 9px 28px; }
.project-label { display: flex; flex-direction: column; gap: 7px; border-top: 1px solid var(--st-line); padding: 20px 8px; }
.project-label strong { font-size: 13px; line-height: 1.5; overflow-wrap: anywhere; }
.main-nav { display: flex; flex-direction: column; gap: 4px; }
.nav-item { display: flex; align-items: center; gap: 9px; min-height: 38px; width: 100%; padding: 8px 10px; border: 1px solid transparent; border-radius: var(--st-radius-sm); background: none; color: var(--st-text-2); text-align: left; font-size: 13px; font-weight: 500; }
.nav-item:hover { color: var(--st-text); background: var(--st-bg-subtle); }
.nav-item.active { color: var(--st-text); background: var(--st-surface); border-color: var(--st-line-2); font-weight: 600; }
.nav-item.active::before { content: ""; width: 3px; height: 17px; margin-left: -11px; background: var(--st-mark); }
.nav-icon { display: inline-flex; justify-content: center; align-items: center; width: 18px; font-size: 18px; line-height: 18px; }
.nav-count { margin-left: auto; min-width: 18px; text-align: center; font-size: 11px; color: var(--st-text-3); }
[data-view="returns"] .nav-count:not(:empty) { color: var(--st-human); }
.sidebar-note { margin-top: auto; padding: 36px 8px 22px; }
.sidebar-note p { margin-top: 10px; color: var(--st-text-2); font-size: 12px; line-height: 1.6; }
.account { display: flex; align-items: center; gap: 10px; border-top: 1px solid var(--st-line); padding: 18px 8px 0; }
.account-avatar { display: grid; place-items: center; flex: none; width: 30px; height: 30px; color: var(--st-text); background: var(--st-bg-subtle); border: 1px solid var(--st-line-2); border-radius: var(--st-radius-sm); font-family: var(--font-mono); font-size: 12px; }
.account-info { min-width: 0; }
.account-info strong { display: block; font-size: 12px; overflow-wrap: anywhere; }
.account-info button { padding: 0; color: var(--st-text-3); background: none; border: 0; font-size: 11px; }
.account-info button:hover { color: var(--st-text); text-decoration: underline; }
.main-content { min-width: 0; padding: 0 clamp(22px, 3vw, 48px); max-width: 1400px; outline: none; }
.topbar { display: flex; align-items: center; justify-content: space-between; gap: 18px; min-height: 64px; margin-bottom: 30px; border-bottom: 1px solid var(--st-line); }
.breadcrumb { color: var(--st-text-2); font-size: 12px; }
.breadcrumb span[aria-hidden] { color: var(--st-text-3); margin: 0 9px; }
#breadcrumb-current { color: var(--st-text); }
.header-tools { display: flex; align-items: center; gap: 18px; }
.provider-status { display: flex; align-items: center; gap: 7px; color: var(--st-text-2); font-size: 11px; }
.status-dot { flex: none; width: 6px; height: 6px; border-radius: 50%; border: 1px solid var(--st-text-3); }
.theme-control { display: inline-flex; align-items: center; gap: 7px; flex: none; }
.theme-control label { margin: 0; color: var(--st-text-3); font-size: 11px; }
.theme-control select { min-height: 30px; padding: 4px 22px 4px 7px; margin: 0; font-size: 11px; width: auto; border-color: var(--st-line-2); }
.page-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin-bottom: 24px; }
.page-heading > div { min-width: 0; }
.page-subtitle { max-width: 68ch; margin-top: 10px; color: var(--st-text-2); font-size: 14px; line-height: 1.6; }
.page-heading > .button { flex: none; }
.section-heading { display: flex; justify-content: space-between; align-items: center; gap: 14px; margin-bottom: 14px; }
.section-heading h2 { font-size: 16px; }
.section-heading > .muted { font-size: 12px; }
.panel { min-width: 0; padding: 22px; background: var(--st-surface); border: 1px solid var(--st-line-2); border-radius: var(--st-radius-md); }
.panel-heading { display: flex; align-items: center; justify-content: space-between; margin-bottom: 20px; }
.panel-heading h2 { font-size: 17px; }
.stats-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); margin-bottom: 22px; background: var(--st-surface); border: 1px solid var(--st-line-2); border-radius: var(--st-radius-md); }
.stat-card { display: flex; flex-direction: column; gap: 5px; min-width: 0; padding: 18px 20px; }
.stat-card + .stat-card { border-left: 1px solid var(--st-line); }
.stat-label { color: var(--st-text-2); font-size: 12px; }
.stat-card strong { font-size: 30px; font-weight: 550; line-height: 1.2; letter-spacing: -.02em; }
.stat-caption { color: var(--st-text-3); font-size: 11px; }
.inline-note { display: flex; align-items: flex-start; gap: 10px; padding: 12px 14px; margin-bottom: 22px; color: var(--st-text-2); background: var(--st-bg-sunken); border: 1px solid var(--st-line); border-radius: var(--st-radius-sm); }
.inline-note p { font-size: 12px; line-height: 1.65; }
.note-icon { flex: none; display: grid; place-items: center; width: 16px; height: 16px; margin-top: 1px; border: 1px solid var(--st-text-3); border-radius: 50%; font-size: 10px; }
.notice { display: flex; align-items: flex-start; justify-content: space-between; gap: 15px; margin-bottom: 24px; padding: 12px 14px; color: var(--st-record); background: var(--st-record-bg); border: 1px solid currentColor; border-radius: var(--st-radius-sm); font-size: 13px; overflow-wrap: anywhere; }
.notice.error { color: var(--st-blocked); background: var(--st-blocked-bg); }
.notice button { flex: none; padding: 0; border: 0; background: none; color: inherit; font-size: 21px; line-height: 1; }
.page-footer { display: flex; justify-content: space-between; gap: 16px; margin-top: 36px; padding: 18px 0 24px; border-top: 1px solid var(--st-line); color: var(--st-text-3); font-size: 11px; }

/* Read-only records, sources and verdict history */
.records-toolbar { display: flex; align-items: flex-end; flex-wrap: wrap; gap: 12px; margin-bottom: 16px; }
.records-toolbar > div { flex: 0 1 190px; min-width: 140px; }
.records-toolbar label { margin-bottom: 5px; font-size: 10px; }
.records-toolbar select { margin-bottom: 0; min-height: 36px; padding: 7px 9px; font-size: 13px; }
.records-toolbar > p { margin: 0 0 8px auto; color: var(--st-text-3); font: 11px/1.5 var(--font-mono); }
.card-list { display: flex; flex-direction: column; gap: 12px; }
.source-card, .record-card, .brief-card { min-width: 0; padding: 18px 20px; background: var(--st-surface); border: 1px solid var(--st-line-2); border-radius: var(--st-radius-sm); }
.record-card { position: relative; }
.record-card:focus { outline: 2px solid var(--st-focus); outline-offset: 3px; }
.record-card:has(.st-stamp--clarify), .record-card:has(.st-stamp--escalated) { border-left: 3px solid var(--st-human); }
.record-card:has(.st-stamp--quarantined) { border-left: 3px solid var(--st-blocked); }
.card-topline { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-bottom: 12px; }
.card-id { display: inline-flex; align-items: center; min-height: 20px; padding: 1px 6px; border: 1px solid var(--st-line-2); border-radius: var(--st-radius-xs); color: var(--st-text-2); background: var(--st-bg-sunken); font-size: 11px; white-space: nowrap; }
.card-meta { margin-left: auto; color: var(--st-text-3); font-size: 11px; overflow-wrap: anywhere; }
.record-topic { color: var(--st-text-2); font-size: 11px; overflow-wrap: anywhere; }
.record-kind { margin-left: auto; color: var(--st-text-3); font-size: 12px; }
.record-meaning { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; }
.claim-label, .verdict-label, .trust-label { color: var(--st-text-2); font-size: 11px; line-height: 1.5; }
.claim-label { display: inline-flex; padding: 2px 6px; border: 1px solid var(--st-line); border-radius: var(--st-radius-xs); background: var(--st-bg-sunken); }
.claim-hypothesis { color: var(--st-human); border-color: var(--st-human); background: var(--st-human-bg); }
.claim-confirmed { color: var(--st-text); }
.badge { display: inline-flex; align-items: center; min-height: 20px; padding: 1px 6px; border: 1.5px solid currentColor; border-radius: var(--st-radius-xs); font-size: 10px; font-weight: 650; letter-spacing: .04em; line-height: 16px; }
.badge-proposed { color: var(--st-human); background: var(--st-human-bg); }
.badge-validated { color: var(--st-record); background: var(--st-record-bg); }
.badge-superseded, .badge-rejected, .badge-neutral { color: var(--st-neutral); background: var(--st-neutral-bg); }
.record-content { margin: 13px 0; font-size: 15px; line-height: 1.65; white-space: pre-wrap; overflow-wrap: anywhere; }
.record-content.st-strike { color: var(--st-text-3); }
.source-citation { margin: 0; padding: 10px 12px; border-left: 2px solid var(--st-line-strong); background: var(--st-bg-sunken); }
.source-citation blockquote { margin: 0; color: var(--st-text-2); font-size: 12px; line-height: 1.65; white-space: pre-wrap; overflow-wrap: anywhere; }
.source-citation figcaption { margin-top: 6px; color: var(--st-text-3); font: 11px/1.5 var(--font-mono); }
.record-footer { display: flex; flex-wrap: wrap; gap: 6px 18px; margin-top: 12px; color: var(--st-text-3); font-size: 10px; line-height: 1.7; }
.history-link { font-family: var(--font-mono); font-size: 10px; color: var(--st-text-2); }
.readonly-hint { margin-bottom: 0; padding-top: 12px; border-top: 1px solid var(--st-line); }
.source-card h3 { margin-bottom: 12px; overflow-wrap: anywhere; }
.source-card details { margin-top: 8px; }
.source-card summary { color: var(--st-text-2); font-size: 12px; cursor: pointer; }
.source-full { max-height: 340px; overflow: auto; margin: 12px 0 0; padding: 13px; color: var(--st-text-2); background: var(--st-bg-sunken); border: 1px solid var(--st-line); border-radius: var(--st-radius-xs); font-size: 12px; line-height: 1.7; white-space: pre-wrap; overflow-wrap: anywhere; }
.empty-state { padding: 28px 22px; background: var(--st-bg-sunken); border: 1px dashed var(--st-line-strong); border-radius: var(--st-radius-sm); color: var(--st-text-2); }
.empty-symbol { display: inline-grid; place-items: center; min-width: 26px; height: 26px; margin-bottom: 12px; border: 1px solid var(--st-line-2); border-radius: var(--st-radius-xs); font-size: 18px; color: var(--st-text-3); }
.empty-state h3 { margin-bottom: 6px; font-size: 15px; }
.empty-state p { max-width: 64ch; color: var(--st-text-2); font-size: 13px; line-height: 1.6; }
.escalations-section, .contribution-section { margin-top: 28px; }
.arbitration-help { margin: -3px 0 15px; font-size: 13px; line-height: 1.6; }
.arbitration-reason { color: var(--st-text-2); font-size: 13px; line-height: 1.6; overflow-wrap: anywhere; }
.arbitration-quote { margin: 14px 0 0; padding: 10px 12px; color: var(--st-text-2); background: var(--st-bg-sunken); border-left: 2px solid var(--st-line-strong); font-size: 12px; line-height: 1.6; white-space: pre-wrap; overflow-wrap: anywhere; }
.ai-request { margin-top: 16px; padding-top: 13px; border-top: 1px solid var(--st-line); }
.ai-request > summary { color: var(--st-human); font-size: 12px; font-weight: 550; cursor: pointer; }
.ai-request .button { min-height: 34px; font-size: 12px; }

/* Onboarding is the only browser authoring surface. */
.onboarding-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 20px; align-items: start; }
.onboarding-help { margin-bottom: 18px; font-size: 13px; line-height: 1.6; }
.onboarding-grid textarea { min-height: 96px; }
.topics-fieldset { min-width: 0; margin: 20px 0; padding: 0; border: 0; }
.topics-fieldset legend { margin-bottom: 9px; font-size: 13px; font-weight: 550; }
.topic-checkboxes { display: flex; flex-wrap: wrap; gap: 7px; }
.topic-checkbox { display: inline-flex; align-items: center; gap: 7px; margin: 0; padding: 6px 9px; color: var(--st-text-2); background: var(--st-surface); border: 1px solid var(--st-line-2); border-radius: var(--st-radius-sm); font-size: 12px; cursor: pointer; }
.topic-checkbox:has(input:checked) { color: var(--st-text); border-color: var(--st-line-strong); background: var(--st-bg-subtle); }
.topic-checkbox:has(input:focus-visible) { outline: 2px solid var(--st-focus); outline-offset: 2px; }
.topic-checkbox input { flex: none; appearance: auto; width: 14px; min-height: 0; height: 14px; padding: 0; margin: 0; accent-color: var(--st-action); }
.topic-checkbox span { overflow-wrap: anywhere; }
.form-row { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 14px; }
.connection-setup { margin-top: 20px; }
.connection-url-row { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin-bottom: 12px; padding: 12px 14px; background: var(--st-bg-sunken); border: 1px solid var(--st-line-2); border-radius: var(--st-radius-sm); }
.connection-url-row code { min-width: 0; color: var(--st-text); font-size: 12px; overflow-wrap: anywhere; }
.connection-url-row .button { flex: none; }
.connection-setup > label { margin-top: 22px; }
.connection-setup > select { max-width: 440px; }
.connection-guide { margin: 18px 0 24px; }
.connection-guide ol { margin: 0 0 14px; padding-left: 20px; color: var(--st-text-2); font-size: 13px; line-height: 1.7; }
.connection-guide li + li { margin-top: 7px; }
.connection-check, .issued-token { padding: 17px; background: var(--st-bg-sunken); border: 1px solid var(--st-line-2); border-radius: var(--st-radius-sm); }
.connection-check > strong, .issued-token > strong { color: var(--st-text); font-size: 14px; font-weight: 600; }
.connection-check > p, .issued-token > p { margin: 8px 0 12px; color: var(--st-text-2); font-size: 12px; line-height: 1.6; }
.connection-code { margin: 12px 0; padding: 12px 13px; color: var(--st-text-2); background: var(--st-surface); border: 1px solid var(--st-line); border-radius: var(--st-radius-xs); font: 11px/1.75 var(--font-mono); white-space: pre-wrap; overflow-wrap: anywhere; }
.issued-token { margin-top: 20px; border-color: var(--st-line-strong); }
.token-list-details { margin-top: 22px; padding-top: 14px; border-top: 1px solid var(--st-line); }
.token-list-details > summary { color: var(--st-text-2); font-size: 12px; cursor: pointer; }
.token-list { margin-top: 12px; }
.token-row { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--st-line); }
.token-row:last-child { border-bottom: 0; }
.token-row > div { min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.token-row strong { font-size: 12px; font-weight: 550; overflow-wrap: anywhere; }
.token-row span { color: var(--st-text-3); font: 10px/1.6 var(--font-mono); }
.token-row button { font-size: 11px; }
.onboarding-note { margin-top: 20px; }

/* Existing generated documents remain accessible as read-only archives. */
.brief-card { padding: 0; }
.brief-card > summary { display: flex; align-items: center; justify-content: space-between; padding: 18px 20px; cursor: pointer; list-style: none; }
.brief-card > summary::-webkit-details-marker { display: none; }
.brief-card > summary::after { content: "+"; color: var(--st-text-3); font: 18px/1 var(--font-mono); }
.brief-card[open] > summary::after { content: "−"; }
.brief-card summary h3 { margin: 9px 0; }
.brief-card .card-meta { margin-left: 0; }
.brief-body { padding: 20px; border-top: 1px solid var(--st-line); }
.brief-summary { color: var(--st-text-2); line-height: 1.7; }
.slide-list { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 14px; padding-left: 22px; margin: 22px 0 0; }
.slide-card { min-width: 0; padding: 12px; border: 1px solid var(--st-line); border-radius: var(--st-radius-sm); }
.slide-card h4 { margin-bottom: 10px; }
.slide-card ul { padding-left: 18px; color: var(--st-text-2); font-size: 13px; line-height: 1.6; }
.record-references { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.stale-note { margin-bottom: 16px; padding: 11px 13px; color: var(--st-human); background: var(--st-human-bg); border: 1px solid var(--st-human); border-radius: var(--st-radius-sm); font-size: 12px; }
.archive-download { margin-top: 22px; }

@media (max-width: 1100px) {
  .onboarding-grid { grid-template-columns: minmax(0,1fr); }
  .main-content { padding-inline: 24px; }
  .login-intro { padding-inline: 38px; }
  .login-copy h1 { font-size: 48px; }
}
@media (max-width: 800px) {
  .app-shell { display: block; }
  .sidebar { position: static; display: grid; grid-template-columns: minmax(0,1fr) auto; gap: 16px; height: auto; padding: 18px 20px 14px; border-right: 0; border-bottom: 1px solid var(--st-line); }
  .sidebar .brand { margin: 0; }
  .sidebar .brand .st-lockup { width: 145px; height: 30px; }
  .project-label, .sidebar-note { display: none; }
  .account { grid-column: 2; grid-row: 1; padding: 0; border: 0; }
  .account-avatar { width: 27px; height: 27px; }
  .account-info strong { max-width: 110px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .main-nav { grid-column: 1/-1; display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 4px; }
  .nav-item { min-width: 0; }
  #archives-nav { grid-column: 1/-1; }
  .main-content { padding-inline: 20px; }
  .topbar { min-height: 56px; margin-bottom: 24px; }
  .header-tools { gap: 10px; }
  .provider-status { display: none; }
  .theme-control label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); }
  .page-heading { align-items: flex-start; }
  .page-heading h1 { font-size: 26px; }
  .page-subtitle { font-size: 13px; }
  .page-heading > .button { min-height: 34px; padding: 6px 9px; font-size: 11px; }
  .stat-card { padding: 14px 13px; }
  .stat-card strong { font-size: 27px; }
  .stat-label { font-size: 11px; }
  .stat-caption { font-size: 10px; }
  .panel, .source-card, .record-card { padding: 17px; }
  .card-meta, .record-kind { margin-left: 0; }
  .record-kind { flex-basis: 100%; font-size: 11px; }
  .record-content { font-size: 14px; }
  .records-toolbar > div { flex: 1 1 calc(50% - 6px); min-width: 0; }
  .records-toolbar > .topic-filter { flex-basis: 100%; }
  .records-toolbar > p { width: 100%; text-align: right; margin: 0; }
  .connection-url-row { align-items: stretch; flex-direction: column; }
  .connection-url-row .button { align-self: flex-start; }
  .form-row { grid-template-columns: minmax(0,1fr); gap: 0; }
  .connection-check, .issued-token { padding: 14px; }
  .connection-code { font-size: 10px; padding: 10px; }
  .token-row { align-items: flex-start; }
  .token-row button { max-width: 110px; text-align: right; }
  .slide-list { grid-template-columns: minmax(0,1fr); }
  .page-footer { font-size: 10px; }
  .login-screen { grid-template-columns: minmax(0,1fr); }
  .login-intro { border-right: 0; border-bottom: 1px solid var(--st-line); padding: 28px; }
  .login-copy { margin: 40px 0 12px; }
  .login-copy h1 { font-size: 42px; }
  .login-copy > p:not(.eyebrow) { font-size: 14px; max-width: 52ch; margin-top: 18px; }
  .login-process { gap: 22px; margin-top: 22px; }
  .login-footnote { display: none; }
  .login-form-area { padding: 32px 28px 40px; }
  .login-form { max-width: none; }
}
@media (max-width: 380px) {
  .account-avatar { display: none; }
  .main-content { padding-inline: 14px; }
  .sidebar { padding-inline: 14px; }
  .stats-grid { grid-template-columns: minmax(0,1fr); }
  .stat-card + .stat-card { border-left: 0; border-top: 1px solid var(--st-line); }
  .stat-card { display: grid; grid-template-columns: 1fr auto; gap: 3px 10px; }
  .stat-card strong { grid-column: 2; grid-row: 1/3; align-self: center; }
  .stat-caption { grid-column: 1; }
  .page-footer { flex-direction: column; gap: 5px; }
}
@media (prefers-reduced-motion: no-preference) {
  button, a, input, textarea, select { transition: color var(--st-dur-fast), background-color var(--st-dur-fast), border-color var(--st-dur-fast); }
}
