:root {
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: #eeeef0;
  background: #101213;
  font-synthesis: none;
  --accent: #bef482;
  --muted: #a5adaf;
  --line: #303537;
  --panel: #191c1e;
}
* { box-sizing: border-box; }
body { margin: 0; }
a { color: inherit; }
button, input, textarea, select { font: inherit; }
button, a, input, textarea, select, summary { -webkit-tap-highlight-color: transparent; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 4px; }
button { cursor: pointer; }
button:disabled { cursor: wait; opacity: .55; }
img { max-width: 100%; display: block; }
h1, h2, h3, p { margin-top: 0; }
h1 { font-size: clamp(34px, 4.2vw, 52px); font-weight: 600; line-height: 1.12; letter-spacing: -1.8px; margin-bottom: 16px; }
h2 { font-size: 21px; line-height: 1.35; font-weight: 600; letter-spacing: -.5px; margin-bottom: 12px; }
h3 { font-size: 16px; line-height: 1.45; font-weight: 600; margin-bottom: 12px; }
p, li { line-height: 1.65; }
p { margin-bottom: 16px; }
.shell { width: min(1240px, 100%); min-height: 100svh; padding: 0 40px; margin: auto; display: flex; flex-direction: column; }
.skip-link { position: fixed; top: -80px; left: 20px; z-index: 5; background: var(--accent); color: #182112; padding: 12px 20px; border-radius: 6px; }
.skip-link:focus { top: 12px; }
.site-header { display: flex; align-items: center; gap: 22px; min-height: 94px; border-bottom: 1px solid var(--line); }
.wordmark { font-size: 23px; font-weight: 700; letter-spacing: -1px; text-decoration: none; white-space: nowrap; }
.accent { color: var(--accent); }
.wordmark .accent { margin-left: 3px; }
.primary-nav { display: flex; gap: 6px; margin-left: auto; }
.primary-nav a { padding: 9px 14px; color: var(--muted); font-size: 14px; text-decoration: none; border-radius: 6px; }
.primary-nav a:hover { color: #fff; background: #1d2224; }
.primary-nav a[aria-current="page"] { color: var(--accent); background: #23301e; }
.language-switch { display: flex; gap: 10px; font-size: 12px; white-space: nowrap; }
.language-switch a { color: var(--muted); text-decoration: none; }
.language-switch a:hover, .language-switch a[aria-current="true"] { color: var(--accent); }
.homelab-link { color: var(--muted); font-size: 13px; text-decoration: none; padding-left: 26px; border-left: 1px solid var(--line); }
.homelab-link:hover, .text-link:hover, .site-footer a:hover { color: var(--accent); }
.workspace-bar { display: flex; align-items: center; justify-content: space-between; gap: 14px 28px; padding: 19px 0; border-bottom: 1px solid #23282a; font-size: 12px; }
.scope { display: inline-flex; align-items: center; gap: 9px; flex-wrap: wrap; color: #c5cccf; }
.status-dot { height: 6px; width: 6px; background: var(--accent); border-radius: 50%; }
.separator { color: #576163; margin: 0 4px; }
.schedule { color: var(--muted); white-space: nowrap; }
main { flex: 1; padding: 58px 0 72px; }
.page-heading, .detail-heading { display: flex; justify-content: space-between; align-items: center; gap: 24px; margin-bottom: 36px; }
.eyebrow { font: 11px/1.5 ui-monospace, monospace; letter-spacing: 1.5px; color: var(--accent); margin: 0 0 14px; }
.intro { font-size: 16px; color: var(--muted); margin-bottom: 0; max-width: 650px; }
.button { display: inline-flex; align-items: center; justify-content: center; gap: 11px; padding: 12px 18px; min-height: 45px; background: #222729; border: 1px solid #3a4345; color: #eeeef0; font-size: 13px; font-weight: 600; line-height: 1.4; text-decoration: none; border-radius: 7px; white-space: nowrap; }
.button:hover { background: #2b3335; border-color: #647272; }
.button--primary { color: #172111; background: var(--accent); border-color: var(--accent); }
.button--primary:hover { background: #cfff9b; border-color: #cfff9b; }
.button--small { padding: 9px 13px; min-height: 38px; font-size: 12px; }
.full-width { width: 100%; }
.stats { display: grid; grid-template-columns: repeat(4, 1fr); border: 1px solid var(--line); background: #15191a; border-radius: 10px; margin-bottom: 43px; }
.stats--public { grid-template-columns: repeat(3, 1fr); }
.stat { padding: 23px 26px; border-right: 1px solid var(--line); }
.stat:last-child { border: 0; }
.stat-number { display: block; font-size: 33px; font-weight: 500; line-height: 1.2; letter-spacing: -1px; margin-bottom: 9px; }
.stat-label { font-size: 12px; color: var(--muted); }
.section-heading { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin-bottom: 20px; }
.section-heading h2, .section-heading h3 { margin-bottom: 0; }
.section-heading .eyebrow { margin-bottom: 8px; }
.text-link { text-decoration: none; color: #c6cecf; font-size: 12px; white-space: nowrap; }
.count { color: var(--muted); font-weight: 400; font-size: 14px; margin-left: 9px; }
.filters { display: grid; grid-template-columns: minmax(170px, 1.6fr) repeat(3, minmax(120px, 1fr)); gap: 17px; background: var(--panel); border: 1px solid var(--line); border-radius: 10px; padding: 21px; margin-bottom: 26px; }
label { display: block; min-width: 0; }
label > span, .notes-label { display: block; color: #c3cbcd; font-size: 12px; margin-bottom: 8px; font-weight: 500; }
input:not([type="checkbox"]), select, textarea { display: block; width: 100%; border: 1px solid #3a4345; border-radius: 6px; background: #111516; color: #e4e9e9; padding: 11px 12px; font-size: 13px; min-height: 43px; }
select { cursor: pointer; padding-right: 26px; }
input::placeholder, textarea::placeholder { color: #889496; opacity: 1; }
textarea { resize: vertical; line-height: 1.6; min-height: 120px; }
input[type="checkbox"] { accent-color: var(--accent); width: 16px; height: 16px; margin: 0; flex-shrink: 0; }
.checkbox-label { display: inline-flex; align-items: center; gap: 10px; color: #cbd1d2; font-size: 13px; cursor: pointer; }
.filter-actions { grid-column: 1 / -1; display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 18px; padding-top: 2px; }
.engine-filter { flex: 1 1 300px; max-width: 540px; }
.engine-filter-note { font-size: 12px; color: #becbbb; margin: -8px 0 24px; }
.engine-card-evidence { margin: 0 0 16px; }
.engine-card-evidence .badge { white-space: normal; }
.engine-card-evidence p { font-size: 10px; color: #bccbb5; margin: 7px 0 0; overflow-wrap: anywhere; }
.engine-card-evidence p:last-child { color: var(--muted); }
.engine-reasons { padding-left: 20px; margin: 22px 0; font-size: 12px; color: #c7d0cd; }
.engine-reasons li { margin-bottom: 8px; }
.filter-actions .button { min-height: 37px; padding: 8px 14px; font-size: 12px; }
.listing-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; }
.listing-card { background: var(--panel); border: 1px solid var(--line); border-radius: 11px; overflow: hidden; display: flex; flex-direction: column; }
.listing-card:hover { border-color: #5b6b59; }
.listing-image { aspect-ratio: 16 / 10; position: relative; background: #1c2522; display: flex; align-items: center; justify-content: center; text-decoration: none; overflow: hidden; }
.listing-image img { width: 100%; height: 100%; object-fit: cover; }
.car-placeholder { width: 68%; max-width: 310px; color: #7d9b6a; }
.image-source { position: absolute; left: 13px; bottom: 13px; font-size: 10px; padding: 5px 8px; border-radius: 4px; background: #101213e8; color: #dce4e2; }
.image-favorite { position: absolute; right: 13px; top: 13px; background: #101213e8; color: var(--accent); font-size: 17px; border-radius: 50%; width: 31px; height: 31px; display: grid; place-items: center; }
.listing-body { display: flex; flex-direction: column; padding: 21px; flex: 1; }
.listing-price-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 10px; }
.listing-price { font-size: 23px; letter-spacing: -.6px; font-weight: 600; }
.listing-card h2 { font-size: 16px; line-height: 1.5; margin-bottom: 13px; letter-spacing: -.1px; }
.listing-card h2 a { text-decoration: none; }
.listing-card h2 a:hover { color: var(--accent); }
.listing-specs { display: flex; flex-wrap: wrap; gap: 6px 12px; font-size: 11px; color: #d1d7d7; margin-bottom: 8px; }
.listing-specs span + span { border-left: 1px solid #485251; padding-left: 12px; }
.listing-location { color: var(--muted); font-size: 11px; margin-bottom: 17px; }
.listing-summary { color: #bec6c7; font-size: 12px; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 3; overflow: hidden; margin-bottom: 17px; }
.listing-footer { display: flex; justify-content: space-between; align-items: center; gap: 14px; border-top: 1px solid var(--line); padding-top: 15px; margin-top: auto; font-size: 10px; }
.listing-footer > span { color: var(--muted); }
.listing-footer a { color: var(--accent); font-size: 12px; text-decoration: none; white-space: nowrap; }
.duplicate-hint { margin: 12px 0 0; color: var(--muted); font-size: 10px; }
.listing-card--removed .listing-image { opacity: .65; }
.badge { display: inline-flex; align-items: center; border: 1px solid #424b4c; background: #22282a; color: #c5cece; padding: 4px 8px; border-radius: 5px; font-size: 10px; line-height: 1.4; white-space: nowrap; font-weight: 500; }
.badge--healthy, .badge--new, .badge--returned, .badge--shortlist { background: #26361f; color: #bef482; border-color: #3f5933; }
.badge--removed { background: #302221; color: #f1aa9d; border-color: #593a35; }
.badge--warning, .badge--price_changed, .badge--changed, .badge--updated { background: #322d1e; color: #e2cd93; border-color: #5e5031; }
.sources-section { margin-top: 54px; padding-top: 34px; border-top: 1px solid var(--line); }
.latest-run { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px 18px; padding: 14px 17px; margin-bottom: 16px; border: 1px solid var(--line); border-radius: 7px; background: #15191a; font-size: 11px; line-height: 1.7; }
.latest-run strong { font-weight: 500; color: #d6dfd8; }
.delivery-error { color: #edb294; overflow-wrap: anywhere; }
.source-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.source-card { padding: 20px; border: 1px solid var(--line); border-radius: 9px; background: #15191a; }
.source-top { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin-bottom: 11px; }
.source-top a { font-size: 14px; font-weight: 500; text-decoration: none; }
.source-top a span { color: var(--muted); margin-left: 5px; }
.source-top a:hover { color: var(--accent); }
.source-card > p { color: var(--muted); font-size: 12px; margin-bottom: 3px; }
.source-time { font-size: 10px; color: #929fa1; }
.source-card > .source-error, .source-error { font-size: 12px; color: #edb294; line-height: 1.65; overflow-wrap: anywhere; }
.source-card > .source-error { padding-top: 13px; margin-top: 13px; border-top: 1px solid #343a35; }
.coverage-note { color: #98a3a4; font-size: 11px; line-height: 1.75; margin: 21px 0 0; max-width: 920px; }
.notice { border: 1px solid #4b5c37; color: #d2e3bd; background: #202a1b; font-size: 13px; line-height: 1.65; padding: 14px 18px; border-radius: 7px; margin-bottom: 25px; overflow-wrap: anywhere; }
.notice--progress { display: flex; align-items: center; gap: 12px; background: #18272d; color: #bfdae5; border-color: #34515b; }
.notice--subtle { margin-top: 24px; background: #1f2424; border-color: #424e49; color: #bccdc6; font-size: 12px; }
.spinner { border: 2px solid #476777; border-top-color: #c3e3ef; height: 15px; width: 15px; border-radius: 50%; animation: spin 1s linear infinite; flex-shrink: 0; }
@keyframes spin { to { transform: rotate(360deg); } }
.empty-state { padding: 56px 28px; border: 1px dashed #3d4948; border-radius: 10px; text-align: center; background: #141819; }
.empty-state h2, .empty-state h3 { font-size: 22px; letter-spacing: -.5px; margin-bottom: 13px; }
.empty-state p { max-width: 510px; color: var(--muted); font-size: 14px; margin: 0 auto 24px; }
.empty-symbol { font-size: 43px; color: var(--accent); margin-bottom: 20px; font-weight: 300; line-height: 1; }
.muted { color: var(--muted); }
.small { font-size: 11px; line-height: 1.65; }
.site-footer { display: flex; align-items: center; justify-content: space-between; gap: 16px; border-top: 1px solid var(--line); padding: 25px 0; color: #96a2a3; font-size: 11px; }
.site-footer > div { display: flex; flex-wrap: wrap; gap: 11px; }
.site-footer a { text-decoration: none; }
.footer-separator { color: #566261; }
.back-link { display: inline-block; font-size: 12px; color: var(--muted); text-decoration: none; margin-bottom: 28px; }
.back-link:hover { color: var(--accent); }
.detail-heading { align-items: flex-end; }
.detail-heading h1 { font-size: clamp(28px, 3.2vw, 40px); max-width: 780px; letter-spacing: -1.1px; }
.detail-subtitle { display: flex; align-items: center; flex-wrap: wrap; gap: 12px; }
.detail-price { font-size: 27px; font-weight: 500; letter-spacing: -.6px; margin-right: 4px; }
.detail-layout { display: grid; grid-template-columns: minmax(0, 1fr) 294px; gap: 25px; align-items: start; }
.detail-layout.detail-layout--public { grid-template-columns: minmax(0, 1fr); }
.detail-main, .detail-sidebar { min-width: 0; }
.detail-image { width: 100%; max-height: 480px; aspect-ratio: 16 / 9; background: #1c2522; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; display: flex; flex-direction: column; align-items: center; justify-content: center; margin-bottom: 23px; }
.detail-image img { width: 100%; height: 100%; object-fit: contain; }
.detail-image > span { color: #9eafa6; font-size: 12px; margin-top: 10px; }
.panel { padding: 26px; background: var(--panel); border: 1px solid var(--line); border-radius: 10px; margin-bottom: 23px; overflow-wrap: anywhere; }
.panel > :last-child { margin-bottom: 0; }
.facts-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 25px 28px; margin: 28px 0 0; }
dt { color: var(--muted); font-size: 11px; line-height: 1.6; }
dd { margin: 5px 0 0; line-height: 1.6; font-size: 14px; }
.license-plate { font: 600 13px/1.5 ui-monospace, monospace; color: #222415; background: #e9cc55; border: 1px solid #f4e58e; border-radius: 3px; display: inline-block; padding: 2px 8px; letter-spacing: 1px; }
details { font-size: 12px; color: #c6cecc; }
summary { cursor: pointer; line-height: 1.6; color: #c8d0cf; }
.additional-details { margin-top: 25px; border-top: 1px solid var(--line); padding-top: 17px; }
.attribute-list { margin: 20px 0 0; }
.attribute-list > div { display: grid; grid-template-columns: minmax(130px, 1fr) 1.6fr; gap: 18px; padding: 11px 0; border-top: 1px solid var(--line); }
.attribute-list dd { margin-top: 0; font-size: 12px; }
.research-summary { font-size: 16px; color: #dde5df; line-height: 1.75; margin-bottom: 15px; }
.model-overview { color: #b8c4bc; font-size: 13px; }
.model-references { display: flex; flex-wrap: wrap; gap: 9px 18px; margin: 0 0 21px; }
.model-references a { color: var(--accent); font-size: 11px; text-decoration: none; }
.model-references a:hover { text-decoration: underline; text-underline-offset: 3px; }
.research-columns { display: grid; grid-template-columns: 1fr 1fr; gap: 25px; margin-top: 28px; }
.research-group { margin-bottom: 25px; font-size: 13px; }
.research-group h3 { font-size: 14px; }
.research-group ul { margin: 0; padding-left: 19px; color: #c7d0cd; }
.research-group li { padding-left: 3px; margin-bottom: 10px; }
.research-group li:last-child { margin-bottom: 0; }
.research-group--positive h3 { color: var(--accent); }
.research-group--concern h3 { color: #edc18f; }
.research-group p { font-size: 12px; }
.rdw-section, .ai-section { padding-top: 25px; margin-top: 6px; border-top: 1px solid var(--line); }
.rdw-section { margin-bottom: 25px; }
.ai-section > p { font-size: 13px; }
.ai-section > .small { font-size: 11px; }
.ai-section .research-columns { margin-top: 22px; }
.research-time { color: #92a09a; font-size: 10px; padding-top: 21px; border-top: 1px solid var(--line); margin: 8px 0 0; }
.research-empty { padding-top: 8px; }
.research-empty p { color: var(--muted); font-size: 13px; }
.seller-description { font-size: 13px; line-height: 1.9; color: #c0c9c7; white-space: pre-line; }
.shortlist-checkbox { margin: 8px 0 24px; }
.notes-panel { padding: 23px; }
.notes-panel form > p { margin: 11px 0 19px; font-size: 10px; }
.plate-label > span { font-size: 11px; }
.notes-panel .eyebrow { font-size: 10px; }
.notes-panel h2, .tracking-panel h2 { font-size: 18px; }
.tracking-panel { padding: 23px; }
.tracking-dates { margin: 20px 0; }
.tracking-dates > div + div { margin-top: 15px; }
.tracking-dates dd { font-size: 12px; }
.timeline { list-style: none; margin: 23px 0 0; padding: 0 0 0 13px; border-left: 1px solid #435140; }
.timeline li { position: relative; padding: 0 0 24px 10px; }
.timeline li:last-child { padding-bottom: 0; }
.timeline li::before { content: ""; position: absolute; left: -17px; top: 8px; width: 7px; height: 7px; border-radius: 50%; background: #91b278; box-shadow: 0 0 0 4px var(--panel); }
.timeline p { color: #c3ccca; font-size: 11px; margin: 10px 0 4px; }
.timeline time { color: #91a09b; font-size: 10px; }
.related-listings { margin-top: 20px; }
.related-listings > a { display: flex; justify-content: space-between; align-items: center; gap: 18px; text-decoration: none; padding: 16px 0; border-top: 1px solid var(--line); font-size: 12px; }
.related-listings strong { display: block; font-size: 13px; font-weight: 500; }
.related-listings small { display: block; color: var(--muted); margin-top: 6px; }
.related-listings > a:hover strong { color: var(--accent); }
.related-listings > a > span:last-child { white-space: nowrap; color: var(--accent); }
.delivery-note { display: flex; align-items: center; gap: 15px; padding: 18px 22px; background: #18221b; border: 1px solid #334834; border-radius: 8px; margin-bottom: 28px; }
.delivery-icon { font-size: 24px; color: var(--accent); }
.delivery-note p { color: #bbccbe; font-size: 12px; margin: 0; }
.delivery-note a { color: var(--accent); text-underline-offset: 3px; }
.change-list { border: 1px solid var(--line); background: var(--panel); border-radius: 10px; overflow: hidden; }
.change-row { display: grid; grid-template-columns: 122px minmax(0, 1fr) 155px; gap: 18px; padding: 25px; border-bottom: 1px solid var(--line); }
.change-row:last-child { border-bottom: 0; }
.change-type { padding-top: 2px; }
.change-content h2 { font-size: 15px; margin-bottom: 8px; letter-spacing: -.1px; }
.change-content h2 a { text-decoration: none; }
.change-content h2 a:hover { color: var(--accent); }
.change-content p { font-size: 12px; color: #bdc8c6; margin-bottom: 9px; }
.change-row time { text-align: right; font-size: 11px; color: var(--muted); line-height: 1.6; padding-top: 4px; }
.settings-layout { display: grid; grid-template-columns: minmax(0, 1fr) 292px; gap: 26px; max-width: 1080px; }
.settings-form .panel { padding: 30px; margin-bottom: 22px; }
.settings-form .panel > .muted { font-size: 13px; margin-bottom: 25px; }
.settings-form .section-heading + .muted { font-size: 13px; }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 23px; }
.wide-field { grid-column: 1 / -1; max-width: 310px; }
.schedule-field { max-width: 225px; }
.field-hint { color: #96a5a1; font-size: 11px; line-height: 1.7; margin-top: 11px; margin-bottom: 0; }
.setup-details { margin-top: 19px; }
.setup-details ol { padding-left: 20px; margin-bottom: 0; color: var(--muted); font-size: 12px; }
.setup-details li { margin-bottom: 8px; padding-left: 3px; }
.setup-details strong { color: #c5d2cb; font-weight: 500; }
.disconnect-checkbox { margin-top: 21px; color: #d8b7ab; font-size: 12px; }
.model-boundary { border-top: 1px solid var(--line); padding-top: 18px; margin-top: 21px; color: #b5c3bc; font-size: 12px; }
.settings-save { display: flex; align-items: center; gap: 18px; padding-top: 4px; }
.settings-sidebar .panel { padding: 25px; }
.settings-sidebar h2 { font-size: 17px; }
.settings-sidebar p { font-size: 12px; }
.aside-symbol { display: block; width: 38px; height: 38px; border-radius: 9px; background: #2b3a23; color: var(--accent); font-size: 26px; line-height: 38px; text-align: center; margin-bottom: 19px; }
.workflow-list { list-style: none; padding: 0; margin: 23px 0 0; counter-reset: workflow; }
.workflow-list li { position: relative; padding-left: 33px; margin-bottom: 23px; counter-increment: workflow; }
.workflow-list li:last-child { margin-bottom: 0; }
.workflow-list li::before { content: counter(workflow); position: absolute; left: 0; top: 2px; border: 1px solid #43533c; border-radius: 50%; font-size: 10px; color: var(--accent); width: 21px; height: 21px; text-align: center; line-height: 19px; }
.workflow-list strong { display: block; font-size: 12px; font-weight: 500; color: #dce4de; }
.workflow-list span { display: block; font-size: 11px; color: var(--muted); line-height: 1.65; margin-top: 4px; }
.sidebar-feed { display: block; margin-top: 14px; }
@media (min-width: 1000px) { .detail-sidebar, .settings-sidebar { position: sticky; top: 24px; } }
@media (max-width: 1000px) {
  .site-header { flex-wrap: wrap; gap: 18px; padding: 20px 0; }
  .primary-nav { order: 3; width: 100%; margin-left: 0; flex-wrap: wrap; }
  .language-switch { margin-left: auto; }
  .shell { padding: 0 28px; }
  .listing-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .detail-layout, .settings-layout { grid-template-columns: minmax(0, 1fr) 265px; gap: 20px; }
  .stat { padding: 22px 20px; }
  .detail-heading { align-items: flex-start; }
  .detail-heading .button { margin-top: 27px; }
  .research-columns { grid-template-columns: 1fr; gap: 0; }
  .detail-main .panel { padding: 23px; }
}
@media (max-width: 760px) {
  .site-header { flex-wrap: wrap; padding: 23px 0 17px; gap: 22px 16px; min-height: 0; }
  .wordmark { font-size: 21px; }
  .homelab-link { margin-left: auto; padding: 0; border: 0; }
  .primary-nav { order: 3; width: 100%; margin: 0; gap: 8px; }
  .primary-nav a { padding: 8px 14px; }
  .workspace-bar { align-items: flex-start; flex-direction: column; gap: 10px; font-size: 11px; padding: 16px 0; }
  .schedule { font-size: 10px; padding-left: 15px; }
  main { padding-top: 38px; }
  .page-heading { align-items: flex-start; }
  .page-heading h1 { font-size: 35px; }
  .page-heading .button { padding: 11px 13px; font-size: 12px; }
  .intro { font-size: 14px; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .stat:nth-child(2) { border-right: 0; }
  .stat:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .stats--public .stat:last-child { grid-column: 1 / -1; }
  .stat { padding: 21px; }
  .stat-number { font-size: 30px; }
  .filters { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 17px 14px; }
  .detail-heading { flex-direction: column; gap: 20px; }
  .detail-heading .button { margin: 0; }
  .detail-layout, .settings-layout { grid-template-columns: 1fr; }
  .detail-sidebar { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; align-items: start; }
  .settings-sidebar { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; align-items: start; }
  .settings-sidebar .panel { margin: 0; }
  .change-row { grid-template-columns: 106px minmax(0, 1fr); gap: 13px; padding: 22px; }
  .change-row time { grid-column: 2; text-align: left; padding-top: 0; }
  .research-columns { grid-template-columns: 1fr 1fr; gap: 24px; }
  .site-footer { align-items: flex-start; flex-direction: column; }
}
@media (max-width: 520px) {
  .shell { padding: 0 20px; }
  .scope { gap: 6px; font-size: 10px; }
  .separator { margin: 0; }
  .eyebrow { font-size: 9px; letter-spacing: 1.2px; }
  .page-heading { flex-direction: column; gap: 22px; margin-bottom: 27px; }
  .page-heading h1 { font-size: 33px; letter-spacing: -1.2px; }
  .stat-label { font-size: 11px; }
  .stat { padding: 20px 17px; }
  .stats { margin-bottom: 34px; }
  .section-heading h2 { font-size: 19px; }
  .section-heading { align-items: flex-start; gap: 12px; }
  .section-heading > .small { max-width: 90px; text-align: right; font-size: 10px; }
  .filters { padding: 18px; gap: 16px 12px; }
  .search-field { grid-column: 1 / -1; }
  .filter-actions { gap: 14px; flex-wrap: wrap; }
  .engine-filter { flex-basis: 100%; max-width: none; }
  .filter-actions .checkbox-label { font-size: 12px; }
  .listing-grid, .source-grid, .detail-sidebar, .settings-sidebar, .research-columns { grid-template-columns: 1fr; }
  .listing-body { padding: 22px; }
  .listing-card h2 { font-size: 17px; }
  .listing-footer { font-size: 11px; }
  .source-top { gap: 8px; }
  .sources-section { margin-top: 38px; }
  .panel, .settings-form .panel, .detail-main .panel { padding: 23px 20px; }
  .facts-grid { gap: 23px 17px; }
  .facts-grid dd { font-size: 13px; }
  .detail-sidebar { gap: 0; }
  .detail-image { aspect-ratio: 4 / 3; }
  .detail-heading h1 { font-size: 29px; }
  .research-panel > .section-heading { flex-direction: column; gap: 18px; }
  .research-columns { gap: 0; }
  .attribute-list > div { grid-template-columns: 1fr 1.2fr; gap: 15px; }
  .panel > .section-heading > .badge { white-space: normal; }
  .change-row { grid-template-columns: 1fr; gap: 12px; }
  .change-row time { grid-column: 1; }
  .delivery-note { padding: 17px; align-items: flex-start; gap: 12px; }
  .form-grid { grid-template-columns: 1fr; gap: 20px; }
  .wide-field { max-width: none; }
  .settings-save { flex-wrap: wrap; gap: 13px; }
  .settings-sidebar { gap: 20px; }
  .empty-state { padding: 45px 20px; }
  .empty-state h2, .empty-state h3 { font-size: 20px; }
  .empty-state p { font-size: 13px; }
}
@media (prefers-reduced-motion: reduce) { .spinner { animation: none; } }
