:root {
  --blue: #1b8cff;
  --blue-soft: #5cb9ff;
  --cyan-2: #21d4f7;
  --surface: #0a1019;
  --surface-2: #0d1521;
  --surface-3: #111c2a;
  --line-strong: rgba(147, 186, 227, .17);
  --text-soft: #a4b2c5;
  --text-faint: #637187;
  --success: #4ee0a5;
  --warning: #f0bd69;
  --danger: #ff7f91;
}

body {
  min-width: 320px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

::selection { background: #5bdaf0; color: #031015; }
button, input, select, textarea { font: inherit; }
button, select { cursor: pointer; }
:focus-visible { outline: 2px solid var(--cyan-2); outline-offset: 3px; }

.site-header {
  position: sticky;
  top: 0;
  background: rgba(6, 10, 16, .84);
  border-bottom-color: rgba(152, 188, 228, .12);
}

.brand-name { display: grid; gap: 2px; }
.brand-name small { color: #607085; font-size: 8px; font-weight: 700; letter-spacing: .13em; text-transform: uppercase; }
.desktop-nav a { position: relative; padding: 27px 0; }
.desktop-nav a::after { position: absolute; right: 0; bottom: 19px; left: 0; height: 1px; content: ""; background: var(--cyan-2); transform: scaleX(0); transition: transform .2s; }
.desktop-nav a:hover::after { transform: scaleX(1); }
.footer-status { display: inline-flex; align-items: center; justify-content: flex-end; gap: 8px; }
.footer-status i { width: 6px; height: 6px; border-radius: 50%; background: var(--success); box-shadow: 0 0 14px rgba(78, 224, 165, .65); }
.toast-stack { position: fixed; z-index: 100; top: 85px; right: 22px; display: grid; gap: 8px; }
.toast { padding: 13px 16px; border: 1px solid var(--line-strong); border-radius: 9px; background: #101926; box-shadow: 0 18px 50px rgba(0, 0, 0, .4); color: #dfe8f4; font-size: 12px; }

.page-header {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(circle at 78% 20%, rgba(15, 127, 255, .13), transparent 35%),
    linear-gradient(rgba(105, 154, 205, .026) 1px, transparent 1px),
    linear-gradient(90deg, rgba(105, 154, 205, .026) 1px, transparent 1px);
  background-size: auto, 42px 42px, 42px 42px;
}
.page-header::after { position: absolute; right: -160px; bottom: -260px; width: 570px; height: 570px; content: ""; border: 1px solid rgba(47, 155, 255, .08); border-radius: 50%; box-shadow: 0 0 0 75px rgba(47, 155, 255, .025), 0 0 0 150px rgba(47, 155, 255, .018); pointer-events: none; }
.page-header-compact { padding: 88px 0 74px; }
.page-header-grid { position: relative; z-index: 1; display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(360px, .72fr); align-items: end; gap: 90px; }
.page-header h1 { max-width: 760px; margin-top: 24px; font-size: clamp(3rem, 6vw, 5.4rem); line-height: .94; }
.page-header .page-lead { max-width: 680px; }

.header-stat-grid { display: grid; grid-template-columns: repeat(3, 1fr); border: 1px solid var(--line-strong); border-radius: 14px; background: rgba(10, 16, 25, .72); box-shadow: 0 24px 80px rgba(0, 0, 0, .2); backdrop-filter: blur(12px); }
.header-stat-grid div { min-height: 118px; display: flex; flex-direction: column; justify-content: flex-end; gap: 10px; padding: 20px; border-right: 1px solid var(--line); }
.header-stat-grid div:last-child { border: 0; }
.header-stat-grid strong { font-size: 19px; line-height: 1; letter-spacing: -.04em; }
.header-stat-grid span { color: var(--text-faint); font-size: 9px; line-height: 1.4; letter-spacing: .1em; text-transform: uppercase; }

.registry-page { padding: 34px 0 100px; }
.filter-bar-modern { position: relative; z-index: 3; grid-template-columns: minmax(260px, 1.4fr) minmax(170px, .65fr) minmax(150px, .5fr) auto; align-items: end; margin-top: -61px; padding: 18px; border-color: var(--line-strong); background: rgba(10, 16, 25, .96); box-shadow: 0 26px 80px rgba(0, 0, 0, .32); backdrop-filter: blur(20px); }
.filter-bar-modern label > span { margin-left: 2px; color: #8290a4; }
.filter-bar-modern input, .filter-bar-modern select { height: 48px; border-color: rgba(155, 189, 225, .14); background: #0c1420; transition: border-color .2s, box-shadow .2s; }
.filter-bar-modern input:focus, .filter-bar-modern select:focus { border-color: rgba(33, 212, 247, .55); outline: 0; box-shadow: 0 0 0 3px rgba(33, 212, 247, .08); }
.filter-bar-modern .button { height: 48px; min-height: 48px; }
.search-field > div { position: relative; }
.search-field b { position: absolute; z-index: 1; top: 50%; left: 14px; color: #5e6c80; font-size: 20px; font-weight: 400; transform: translateY(-50%); }
.search-field input { padding-left: 43px; }
.results-toolbar { min-height: 68px; display: flex; align-items: center; justify-content: space-between; gap: 20px; color: #6e7c91; font-size: 11px; }
.results-toolbar p { margin: 0; }
.results-toolbar strong { color: #e9f0f8; }
.results-toolbar a { color: var(--cyan); }
.results-toolbar kbd { padding: 2px 6px; border: 1px solid var(--line-strong); border-radius: 4px; background: #0d1520; color: #aab5c5; font: 10px monospace; }

.registry-cards-modern { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-top: 0; }
.registry-cards-modern article { display: flex; min-height: 390px; flex-direction: column; gap: 0; padding: 0; border-color: rgba(148, 184, 220, .11); border-radius: 14px; background: linear-gradient(145deg, #0b111a, #090e16); box-shadow: inset 0 1px rgba(255, 255, 255, .025); transition: transform .22s, border-color .22s, box-shadow .22s; }
.registry-cards-modern article:hover { border-color: rgba(58, 202, 239, .26); box-shadow: 0 24px 65px rgba(0, 0, 0, .28), inset 0 1px rgba(255, 255, 255, .035); transform: translateY(-3px); }
.driver-card > header { display: flex; align-items: center; gap: 14px; padding: 20px 21px; border-bottom: 1px solid var(--line); }
.driver-card > header > div { min-width: 0; display: flex; flex: 1; align-items: center; justify-content: space-between; gap: 12px; }
.driver-card > header small { min-width: 0; overflow: hidden; color: #5f6d82; font: 9px ui-monospace, monospace; text-overflow: ellipsis; white-space: nowrap; }
.driver-card .driver-glyph { flex: none; background: linear-gradient(145deg, rgba(30, 142, 255, .17), rgba(33, 212, 247, .07)); color: #68dcf0; }
.status-chip { display: inline-flex; align-items: center; gap: 7px; padding: 5px 8px; border: 1px solid rgba(78, 224, 165, .15); border-radius: 999px; background: rgba(78, 224, 165, .06); color: #6ce4b3; font-size: 8px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.status-chip i { width: 5px; height: 5px; border-radius: 50%; background: currentColor; box-shadow: 0 0 10px currentColor; }
.status-validated { color: #62dff0; border-color: rgba(98, 223, 240, .16); background: rgba(98, 223, 240, .05); }
.driver-card-body { padding: 27px 25px 20px; }
.card-kicker { min-height: 16px; margin: 0 0 12px !important; color: #4eaece !important; font-size: 9px !important; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; }
.registry-cards .driver-card h2 { margin: 0; font-size: 24px; line-height: 1.15; letter-spacing: -.045em; }
.registry-cards .driver-card-body > p:last-child { min-height: 67px; margin: 15px 0 0; color: #8290a4; font-size: 12px; line-height: 1.8; }
.driver-card-metrics { display: grid; grid-template-columns: repeat(3, 1fr); margin: 0 25px; border-block: 1px solid var(--line); }
.driver-card-metrics span { display: grid; gap: 6px; padding: 14px 8px 14px 0; color: #5d6b7f; font-size: 8px; letter-spacing: .08em; text-transform: uppercase; }
.driver-card-metrics strong { color: #c9d3df; font-size: 10px; font-weight: 600; letter-spacing: 0; text-transform: none; }
.driver-card .tags { min-height: 50px; padding: 13px 25px 0; }
.driver-card > footer { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-top: auto; padding: 18px 25px; border-top: 1px solid var(--line); color: #5d6a7d; font-size: 9px; }
.driver-card > footer a { margin: 0; color: #cdd7e4; font-size: 10px; font-weight: 700; }
.driver-card > footer a b { margin-left: 6px; color: var(--cyan); }

.modern-empty { min-height: 360px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; }
.modern-empty p { max-width: 430px; margin: 0 0 8px; color: #748196; line-height: 1.7; }
.empty-glyph { width: 54px; height: 54px; display: grid; place-items: center; margin-bottom: 6px; border: 1px solid var(--line-strong); border-radius: 14px; background: #0d1621; color: #4fbfd8; font-size: 28px; }
.pagination { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; margin-top: 34px; padding: 14px; border: 1px solid var(--line); border-radius: 10px; color: #657286; font-size: 11px; }
.pagination a:last-child, .pagination span:last-child { justify-self: end; }
.pagination a { color: #c6d0dd; }
.pagination p { margin: 0; }

.breadcrumb { display: flex; flex-wrap: wrap; gap: 9px; margin-bottom: 54px; color: #5e6c80; font: 10px ui-monospace, monospace; }
.breadcrumb a { color: #8b9ab0; }
.breadcrumb strong { color: #b7c4d4; }
.driver-hero { padding: 55px 0 75px; }
.driver-hero-grid { position: relative; z-index: 1; display: grid; grid-template-columns: 1fr 220px; align-items: end; gap: 80px; }
.driver-hero h1 { max-width: 870px; font-size: clamp(3.2rem, 6.5vw, 6.6rem); }
.detail-badges { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.detail-badges > span:not(.status-chip) { padding: 6px 9px; border: 1px solid var(--line); border-radius: 999px; color: #8795a8; font-size: 8px; font-weight: 700; letter-spacing: .09em; text-transform: uppercase; }
.trust-score { padding: 23px; border: 1px solid rgba(79, 206, 234, .2); border-radius: 15px; background: linear-gradient(145deg, rgba(27, 140, 255, .09), rgba(33, 212, 247, .025)); }
.trust-score > span { color: #62bfd6; font-size: 9px; font-weight: 700; letter-spacing: .13em; text-transform: uppercase; }
.trust-score strong { display: block; margin-top: 18px; font-size: 45px; line-height: 1; letter-spacing: -.06em; }
.trust-score strong small { color: #64758a; font-size: 15px; }
.trust-score p { margin: 11px 0 0; color: #75859a; font-size: 10px; }

.detail-layout { display: grid; grid-template-columns: minmax(0, 1fr) 350px; gap: 15px; padding: 35px 0 100px; }
.detail-main, .detail-sidebar { display: grid; align-content: start; gap: 15px; }
.detail-card { padding: 0; border-color: rgba(147, 185, 223, .11); border-radius: 14px; background: #0a1019; overflow: hidden; }
.card-heading { min-height: 88px; display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 20px 23px; border-bottom: 1px solid var(--line); }
.card-heading h2 { margin: 8px 0 0; font-size: 20px; letter-spacing: -.035em; }
.card-heading > span { color: #637187; font-size: 9px; letter-spacing: .1em; text-transform: uppercase; }
.capability-list { padding: 0 23px; }
.capability-row-modern { display: grid; grid-template-columns: 85px minmax(0, 1fr) auto; gap: 20px; align-items: start; padding: 22px 0; border-bottom: 1px solid var(--line); }
.capability-row-modern:last-child { border: 0; }
.kind { display: inline-flex; width: max-content; padding: 6px 8px; border-radius: 5px; background: rgba(33, 212, 247, .07); color: #64d7eb; font: 8px ui-monospace, monospace; letter-spacing: .12em; }
.kind-write, .kind-procedure { background: rgba(240, 189, 105, .08); color: #e6b76a; }
.capability-row-modern b { color: #e5ebf3; font: 12px ui-monospace, monospace; }
.capability-row-modern p { margin: 7px 0 0; color: #758398; font-size: 11px; line-height: 1.65; }
.capability-row-modern small { display: block; margin-top: 8px; color: #4ca4bb; font-size: 8px; text-transform: uppercase; letter-spacing: .08em; }
.risk { padding: 5px 7px; border: 1px solid var(--line); border-radius: 5px; color: #7f8da1; font-size: 8px; font-style: normal; text-transform: uppercase; letter-spacing: .08em; }
.risk-high, .risk-elevated { color: #e0ad67; border-color: rgba(224, 173, 103, .18); }
.empty-inline { padding: 30px 0; color: #748196; font-size: 12px; }
.manifest-viewer pre { max-height: 580px; margin: 0; padding: 26px; overflow: auto; background: #070c12; color: #89dbe9; font: 11px/1.8 ui-monospace, SFMono-Regular, Consolas, monospace; tab-size: 2; white-space: pre-wrap; overflow-wrap: anywhere; }
.copy-button { min-height: 34px; padding: 0 11px; border: 1px solid var(--line-strong); border-radius: 7px; background: #0e1722; color: #9eabbc; font-size: 9px; font-weight: 700; }
.copy-button:hover { border-color: rgba(64, 205, 237, .35); color: white; }
.copy-button.full { width: 100%; margin-top: 17px; }
.metadata-list { display: grid; grid-template-columns: 1fr 1.4fr; gap: 15px 12px; margin: 0; padding: 23px; }
.metadata-list dt { color: #5d6a7d; font-size: 9px; text-transform: uppercase; letter-spacing: .08em; }
.metadata-list dd { margin: 0; color: #bec8d5; font-size: 10px; overflow-wrap: anywhere; }
.mini-chip { display: inline-block; margin: 0 3px 3px 0; padding: 4px 6px; border: 1px solid var(--line); border-radius: 4px; color: #8796aa; font-size: 8px; }
.digest-card { padding-bottom: 20px; }
.digest-card .hash { display: block; padding: 20px 23px 0; color: #65cade; font-size: 9px; line-height: 1.7; overflow-wrap: anywhere; }
.digest-card .copy-button { width: calc(100% - 46px); margin-inline: 23px; }
.safety-callout { padding: 25px; border: 1px solid rgba(240, 189, 105, .15); border-radius: 14px; background: linear-gradient(145deg, rgba(240, 189, 105, .07), rgba(10, 16, 25, .8)); }
.safety-callout > span { color: #c99858; font-size: 8px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; }
.safety-callout strong { display: block; margin-top: 12px; font-size: 15px; line-height: 1.45; }
.safety-callout p { margin: 10px 0 18px; color: #7c899b; font-size: 10px; line-height: 1.7; }
.safety-callout a { color: #d5a965; font-size: 10px; }

.privacy-note { padding: 22px; border: 1px solid rgba(79, 206, 234, .17); border-radius: 14px; background: rgba(12, 21, 32, .75); }
.privacy-note > span { color: #51b9cf; font-size: 8px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; }
.privacy-note strong { display: block; margin-top: 12px; font-size: 17px; }
.privacy-note p { margin: 7px 0 0; color: #77869a; font-size: 10px; line-height: 1.7; }
.workbench-page { padding: 34px 0 100px; }
.workbench-grid { display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(380px, .72fr); gap: 13px; }
.editor-panel, .analysis-panel { min-width: 0; border: 1px solid var(--line-strong); border-radius: 15px; background: #0a1019; box-shadow: 0 25px 75px rgba(0, 0, 0, .22); overflow: hidden; }
.editor-panel > header { min-height: 50px; display: flex; align-items: center; justify-content: space-between; padding: 0 16px; border-bottom: 1px solid var(--line); background: #0c131e; color: #647286; font-size: 9px; }
.editor-panel > header div { display: flex; align-items: center; gap: 7px; }
.editor-panel > header strong { margin-left: 7px; color: #a7b3c2; font: 10px ui-monospace, monospace; }
.editor-dot { width: 7px; height: 7px; border-radius: 50%; background: #384457; }
.editor-dot.red { background: #d16f80; }.editor-dot.amber { background: #d9a75f; }.editor-dot.green { background: #58c995; }
.editor-toolbar { min-height: 48px; display: flex; align-items: center; gap: 7px; padding: 8px 13px; border-bottom: 1px solid var(--line); }
.editor-toolbar button, .file-button { min-height: 30px; display: inline-flex; align-items: center; padding: 0 10px; border: 1px solid var(--line); border-radius: 6px; background: #0e1722; color: #8290a4; font-size: 9px; }
.file-button input { position: absolute; width: 1px; height: 1px; overflow: hidden; opacity: 0; }
.editor-field textarea { width: 100%; height: 540px; display: block; resize: vertical; padding: 23px; border: 0; outline: 0; background: #070c12; color: #b7d7df; font: 11px/1.75 ui-monospace, SFMono-Regular, Consolas, monospace; tab-size: 2; }
.editor-field textarea:focus { background: #080e15; box-shadow: inset 3px 0 var(--cyan-2); }
.form-errors { padding: 12px 18px; border-top: 1px solid rgba(255, 127, 145, .18); background: rgba(255, 127, 145, .06); color: #f2a4af; font-size: 10px; }
.form-errors p { margin: 0; }
.editor-panel > footer { min-height: 70px; display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 12px 14px 12px 18px; border-top: 1px solid var(--line); }
.editor-panel > footer p { margin: 0; color: #506075; font-size: 8px; line-height: 1.5; }
.editor-panel > footer .button { flex: none; min-height: 43px; }
.analysis-panel { padding: 22px; }
.analysis-result { display: flex; gap: 15px; padding: 20px; border: 1px solid rgba(78, 224, 165, .16); border-radius: 12px; background: rgba(78, 224, 165, .055); }
.analysis-result > span { width: 38px; height: 38px; display: grid; place-items: center; flex: none; border-radius: 10px; background: rgba(78, 224, 165, .1); color: var(--success); font-weight: 900; }
.analysis-result.is-invalid { border-color: rgba(255, 127, 145, .16); background: rgba(255, 127, 145, .055); }
.analysis-result.is-invalid > span { background: rgba(255, 127, 145, .1); color: var(--danger); }
.analysis-result small, .analysis-placeholder > small { color: #637187; font-size: 8px; font-weight: 800; letter-spacing: .13em; text-transform: uppercase; }
.analysis-result h2 { margin: 6px 0; font-size: 22px; letter-spacing: -.04em; }
.analysis-result p { margin: 0; color: #8290a4; font-size: 10px; line-height: 1.65; }
.analysis-metrics { display: grid; grid-template-columns: repeat(3, 1fr); margin-top: 12px; border: 1px solid var(--line); border-radius: 10px; }
.analysis-metrics div { min-width: 0; display: grid; gap: 7px; padding: 15px; border-right: 1px solid var(--line); }
.analysis-metrics div:last-child { border: 0; }
.analysis-metrics strong { overflow: hidden; font-size: 14px; text-overflow: ellipsis; white-space: nowrap; }
.analysis-metrics span { color: #59677a; font-size: 7px; text-transform: uppercase; letter-spacing: .1em; }
.check-list { display: grid; gap: 7px; margin-top: 12px; }
.check-row { display: flex; gap: 12px; padding: 14px; border: 1px solid var(--line); border-radius: 9px; background: rgba(255, 255, 255, .012); }
.check-row > span { width: 24px; height: 24px; display: grid; place-items: center; flex: none; border-radius: 6px; background: rgba(78, 224, 165, .08); color: var(--success); font-size: 10px; }
.check-fail > span { background: rgba(255, 127, 145, .08); color: var(--danger); }
.check-row strong { font-size: 11px; }
.check-row p { margin: 5px 0 0; color: #718095; font-size: 9px; line-height: 1.55; }
.check-row code { color: #5dcade; }
.digest-output { margin-top: 12px; padding: 15px; border: 1px solid var(--line); border-radius: 9px; background: #070c12; }
.digest-output span { display: block; color: #59677a; font-size: 7px; font-weight: 800; letter-spacing: .11em; text-transform: uppercase; }
.digest-output code { display: block; margin-top: 8px; color: #5ec9dc; font-size: 8px; line-height: 1.6; overflow-wrap: anywhere; }
.analysis-placeholder { min-height: 640px; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 40px; text-align: center; }
.scan-orbit { position: relative; width: 120px; height: 120px; margin-bottom: 28px; border: 1px solid rgba(33, 212, 247, .14); border-radius: 50%; box-shadow: 0 0 0 20px rgba(33, 212, 247, .025), 0 0 0 40px rgba(33, 212, 247, .012); }
.scan-orbit::before, .scan-orbit::after { position: absolute; content: ""; background: rgba(33, 212, 247, .15); }
.scan-orbit::before { top: 50%; right: 12px; left: 12px; height: 1px; }
.scan-orbit::after { top: 12px; bottom: 12px; left: 50%; width: 1px; }
.scan-orbit span { position: absolute; inset: 30%; border: 1px solid rgba(33, 212, 247, .28); border-radius: 50%; background: rgba(33, 212, 247, .04); }
.scan-orbit i { position: absolute; top: -4px; left: 50%; width: 8px; height: 8px; border-radius: 50%; background: var(--cyan-2); box-shadow: 0 0 18px var(--cyan-2); }
.analysis-placeholder h2 { margin: 10px 0; font-size: 25px; letter-spacing: -.045em; }
.analysis-placeholder p { max-width: 350px; margin: 0; color: #738196; font-size: 11px; line-height: 1.75; }
.analysis-placeholder ul { display: grid; gap: 10px; margin: 24px 0 0; padding: 0; color: #8d9aac; font-size: 9px; text-align: left; list-style: none; }
.analysis-placeholder li::before { margin-right: 8px; color: var(--success); content: "✓"; }

@media (max-width: 1050px) {
  .page-header-grid { grid-template-columns: 1fr; gap: 40px; }
  .filter-bar-modern { grid-template-columns: 1fr 1fr; margin-top: -54px; }
  .search-field { grid-column: 1 / -1; }
  .workbench-grid { grid-template-columns: 1fr; }
  .analysis-placeholder { min-height: 440px; }
  .detail-layout { grid-template-columns: 1fr 310px; }
}

@media (max-width: 850px) {
  .site-header { position: relative; }
  .registry-cards-modern { grid-template-columns: 1fr; }
  .driver-hero-grid { grid-template-columns: 1fr; gap: 35px; }
  .trust-score { max-width: 320px; }
  .detail-layout { grid-template-columns: 1fr; }
  .detail-sidebar { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .detail-sidebar .safety-callout { grid-column: 1 / -1; }
}

@media (max-width: 620px) {
  .brand-name small { display: none; }
  .page-header-compact { padding: 65px 0 76px; }
  .page-header h1 { font-size: 3.25rem; }
  .page-header-grid { gap: 32px; }
  .header-stat-grid { grid-template-columns: 1fr; }
  .header-stat-grid div { min-height: 78px; border-right: 0; border-bottom: 1px solid var(--line); }
  .filter-bar-modern { grid-template-columns: 1fr; margin-top: -48px; }
  .search-field { grid-column: auto; }
  .results-toolbar { align-items: flex-start; flex-direction: column; justify-content: center; }
  .driver-card > header > div { align-items: flex-start; flex-direction: column; }
  .driver-card-metrics { grid-template-columns: 1fr; }
  .driver-card-metrics span { grid-template-columns: 1fr 1fr; border-bottom: 1px solid var(--line); }
  .driver-card-metrics span:last-child { border: 0; }
  .pagination { grid-template-columns: 1fr 1fr; }
  .pagination p { grid-column: 1 / -1; grid-row: 1; margin-bottom: 12px; text-align: center; }
  .breadcrumb { margin-bottom: 38px; }
  .driver-hero { padding-top: 38px; }
  .capability-row-modern { grid-template-columns: 1fr; gap: 10px; }
  .risk { width: max-content; }
  .detail-sidebar { grid-template-columns: 1fr; }
  .detail-sidebar .safety-callout { grid-column: auto; }
  .metadata-list { grid-template-columns: 1fr; }
  .editor-toolbar { flex-wrap: wrap; }
  .editor-field textarea { height: 430px; padding: 17px; }
  .editor-panel > footer { align-items: stretch; flex-direction: column; }
  .analysis-panel { padding: 13px; }
  .analysis-metrics { grid-template-columns: 1fr; }
  .analysis-metrics div { border-right: 0; border-bottom: 1px solid var(--line); }
  .analysis-metrics div:last-child { border: 0; }
  .analysis-placeholder { min-height: 390px; padding: 28px 15px; }
}

@media (prefers-reduced-motion: reduce) {
  .registry-cards-modern article { transition: none; }
  .desktop-nav a::after { transition: none; }
}
