:root {
  font-family: 'Avenir Next', Avenir, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  color: #20231f;
  background: #f2f0e9;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
  --ink: #20231f;
  --muted: #6d7168;
  --paper: #fbfaf6;
  --line: #dcd9cf;
  --line-soft: #e9e6dd;
  --green: #23684b;
  --green-light: #d8e8df;
  --lime: #bed95a;
  --coral: #e5684b;
  --coral-light: #fae0d8;
  --amber: #ad7624;
  --amber-light: #f5e9c7;
  --purple: #6c59b8;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; min-width: 320px; min-height: 100vh; background: #f2f0e9; }
button, input, select { font: inherit; }
button { cursor: pointer; }
button:focus-visible, input:focus-visible, select:focus-visible, a:focus-visible { outline: 3px solid rgba(35,104,75,.25); outline-offset: 2px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }

.app-shell { min-height: 100vh; }
.topbar { height: 64px; padding: 0 max(24px, calc((100vw - 1440px) / 2)); background: #20231f; color: #f9f8f3; display: flex; align-items: center; justify-content: space-between; position: sticky; top: 0; z-index: 20; border-bottom: 1px solid #393c37; }
.brand { color: inherit; text-decoration: none; font: 600 13px/1 'DM Mono', monospace; letter-spacing: .14em; display: flex; align-items: center; gap: 10px; }
.brand-mark { width: 32px; height: 32px; border-radius: 8px; color: #20231f; background: var(--lime); display: inline-flex; align-items: center; justify-content: center; }
.brand-mark.small { width: 26px; height: 26px; border-radius: 6px; }
.topbar-actions { display: flex; align-items: center; gap: 12px; }
.source-pill { border: 1px solid #4c5149; border-radius: 999px; padding: 6px 10px; display: flex; align-items: center; gap: 7px; font-size: 11px; font-weight: 600; color: #dfe3da; }
.status-dot { width: 7px; height: 7px; border-radius: 50%; background: #6ed09d; box-shadow: 0 0 0 3px rgba(110,208,157,.12); }
.source-pill.demo .status-dot { background: #e2b15b; box-shadow: 0 0 0 3px rgba(226,177,91,.12); }
.last-updated { color: #999f95; font-size: 11px; }
.icon-button { width: 32px; height: 32px; border: 1px solid #464a44; border-radius: 7px; color: #dfe3da; background: transparent; display: grid; place-items: center; }
.icon-button:hover { background: #31352f; }
.connection-banner { max-width: 1440px; margin: 16px auto -8px; padding: 9px 14px; border: 1px solid #dec991; color: #745516; background: #faf2d8; border-radius: 8px; display: flex; align-items: center; gap: 8px; font-size: 12px; }
.connection-detail { margin-left: auto; color: #987b41; max-width: 36%; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }

main { max-width: 1440px; margin: 0 auto; padding: 44px 24px 64px; }
.hero { display: flex; align-items: center; justify-content: space-between; margin-bottom: 30px; }
.release-line { text-transform: uppercase; font: 500 11px/1 'DM Mono', monospace; letter-spacing: .1em; color: var(--green); display: flex; align-items: center; gap: 8px; margin-bottom: 12px; }
.release-line a { color: var(--ink-muted); text-decoration: underline; text-underline-offset: 3px; }
.release-dot { width: 7px; height: 7px; border-radius: 2px; transform: rotate(45deg); background: var(--green); }
h1, h2, p { margin-top: 0; }
h1 { margin-bottom: 8px; font-size: clamp(32px, 4vw, 50px); line-height: .98; letter-spacing: -.045em; font-weight: 600; }
.hero p { color: var(--muted); font-size: 14px; margin: 0; }
.health-ring { --health: 93%; width: 108px; height: 108px; border-radius: 50%; padding: 8px; background: conic-gradient(var(--green) var(--health), #dfe0d8 0); position: relative; }
.health-ring::after { content: ''; position: absolute; inset: 8px; background: #f2f0e9; border-radius: 50%; }
.health-ring > span { position: relative; z-index: 1; height: 100%; display: flex; flex-direction: column; justify-content: center; align-items: center; color: var(--green); }
.health-ring b { font: 500 18px/1.2 'DM Mono', monospace; color: var(--ink); margin-top: 3px; }
.health-ring small { font-size: 8px; color: var(--muted); white-space: nowrap; }

.metric-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 10px; margin-bottom: 18px; }
.metric-card { min-width: 0; min-height: 142px; padding: 18px; background: var(--paper); border: 1px solid var(--line); border-radius: 10px; display: flex; flex-direction: column; }
.metric-card.accent { background: #282d27; color: #f9f8f4; border-color: #282d27; }
.metric-card.good { background: #e8f0e9; border-color: #ccdbce; }
.metric-heading { color: var(--muted); display: flex; align-items: center; gap: 8px; font-size: 11px; font-weight: 600; }
.metric-icon { display: inline-flex; }
.metric-card.accent .metric-heading { color: #c0c8bd; }
.metric-card > strong { font: 500 clamp(25px, 2.2vw, 34px)/1 'DM Mono', monospace; margin: auto 0 9px; letter-spacing: -.04em; }
.metric-card.accent > strong { color: var(--lime); }
.metric-detail { font-size: 10px; color: var(--muted); }
.metric-detail b { color: var(--ink); }
.metric-card.accent .metric-detail, .metric-card.accent .metric-detail b { color: #c0c8bd; }
.good-detail { color: var(--green); font-weight: 600; display: flex; gap: 3px; align-items: center; }

.panel { background: var(--paper); border: 1px solid var(--line); border-radius: 12px; margin-bottom: 18px; overflow: hidden; }
.panel-header { padding: 25px 26px 20px; display: flex; align-items: flex-start; justify-content: space-between; gap: 24px; }
.panel-header.compact { padding-bottom: 15px; }
.eyebrow { color: var(--green); text-transform: uppercase; font: 500 10px/1 'DM Mono', monospace; letter-spacing: .11em; display: flex; align-items: center; gap: 6px; margin-bottom: 10px; }
.panel h2 { font-size: 20px; line-height: 1.25; letter-spacing: -.025em; margin-bottom: 6px; font-weight: 600; }
.panel-header p { color: var(--muted); font-size: 11px; line-height: 1.5; margin: 0; }
.composition-count { flex: 0 0 auto; border-left: 1px solid var(--line); padding-left: 22px; display: flex; flex-direction: column; align-items: flex-end; }
.composition-count strong { font: 500 27px/1.2 'DM Mono', monospace; }
.composition-count span { color: var(--muted); font-size: 9px; }

.spec-grid { border-top: 1px solid var(--line-soft); border-bottom: 1px solid var(--line-soft); display: grid; grid-template-columns: repeat(9, 1fr); min-height: 178px; }
.spec-column { padding: 16px 11px 14px; border-right: 1px solid var(--line-soft); display: grid; grid-template-columns: 20px 1fr auto; grid-template-rows: 1fr auto; column-gap: 9px; align-items: end; min-width: 0; }
.spec-column:last-child { border-right: 0; }
.spec-index { align-self: start; color: #aaa99f; font: 400 9px/1 'DM Mono', monospace; }
.variant-stack { display: flex; flex-direction: column-reverse; justify-content: flex-start; gap: 5px; height: 85px; align-self: start; padding-top: 5px; }
.variant-stack i { display: block; height: 12px; background: var(--green); border-radius: 2px; }
.spec-column b { color: var(--green); font: 500 19px/1 'DM Mono', monospace; align-self: end; }
.spec-column > span:last-child { grid-column: 1 / -1; font-size: 9px; line-height: 1.25; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; margin-top: 9px; }
.explain-flow { min-height: 84px; display: flex; align-items: center; justify-content: center; gap: clamp(10px, 2vw, 30px); padding: 13px 20px; background: #f7f5ef; color: #91958c; }
.explain-flow > div { display: flex; align-items: center; gap: 9px; }
.flow-icon { width: 32px; height: 32px; background: #e8ebe4; color: #5d655c; display: grid; place-items: center; border-radius: 50%; }
.flow-icon.hot { color: var(--coral); background: var(--coral-light); }
.flow-icon.safe { color: var(--green); background: var(--green-light); }
.explain-flow p { margin: 0; display: flex; flex-direction: column; }
.explain-flow b { color: var(--ink); font-size: 10px; }
.explain-flow small { font-size: 8px; color: var(--muted); }

.two-column { display: grid; grid-template-columns: .9fr 1.1fr; gap: 18px; }
.two-column > .panel { min-width: 0; }
.text-button { color: var(--green); background: none; border: 0; font-size: 10px; font-weight: 600; display: flex; align-items: center; gap: 5px; }
.distribution-list { padding: 0 26px 8px; }
.distribution-row { display: grid; grid-template-columns: 7px minmax(145px, 1.2fr) minmax(80px, 1fr) 38px; align-items: center; gap: 10px; padding: 11px 0; border-top: 1px solid var(--line-soft); }
.composition-swatch { width: 7px; height: 24px; border-radius: 2px; background: var(--green); }
.swatch-2 { background: #4c8a6c; }.swatch-3 { background: #77aa8b; }.swatch-4 { background: #a6c7af; }.swatch-5 { background: #d4d8cf; }
.distribution-name { display: flex; flex-direction: column; min-width: 0; }
.distribution-name b { font-size: 10px; white-space: nowrap; text-overflow: ellipsis; overflow: hidden; }
.distribution-name span { color: var(--muted); font-size: 8px; margin-top: 2px; }
.distribution-bar { height: 6px; background: #e8e7df; border-radius: 99px; overflow: hidden; }
.distribution-bar i { display: block; height: 100%; background: var(--green); border-radius: inherit; }
.distribution-row > strong { text-align: right; font: 500 10px/1 'DM Mono', monospace; }
.panel-note { margin: 0; border-top: 1px solid var(--line-soft); background: #f7f5ef; color: var(--muted); display: flex; align-items: center; gap: 8px; padding: 11px 26px; font-size: 9px; }

.interaction-list { padding: 0 26px 22px; }
.interaction { display: grid; grid-template-columns: 28px 1fr 1.3fr 56px; gap: 12px; align-items: center; padding: 12px 0; border-top: 1px solid var(--line-soft); }
.interaction-rank { color: #a7a99f; font: 400 9px/1 'DM Mono', monospace; }
.pair { display: flex; align-items: center; gap: 5px; }
.pair span { padding: 4px 6px; background: #f0eee7; border: 1px solid #e1ded3; border-radius: 4px; font: 500 9px/1 'DM Mono', monospace; }
.pair svg { color: var(--coral); }
.interaction-bar { height: 7px; background: #ebe8e0; border-radius: 99px; overflow: hidden; }
.interaction-bar i { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, #ebb172, var(--coral)); }
.interaction-stat { display: flex; flex-direction: column; text-align: right; }
.interaction-stat b { color: var(--coral); font: 500 14px/1.2 'DM Mono', monospace; }
.interaction-stat span { color: var(--muted); font-size: 8px; }
.interaction-meta { grid-column: 2 / -1; display: flex; gap: 14px; color: var(--muted); font-size: 8px; margin-top: -7px; }

.implementations-panel { overflow: hidden; }
.table-heading { align-items: flex-end; }
.table-tools { display: flex; align-items: center; gap: 7px; }
.search-box, .select-box { min-height: 34px; border: 1px solid var(--line); background: #f7f5f0; border-radius: 7px; display: flex; align-items: center; color: var(--muted); }
.search-box { gap: 7px; padding: 0 10px; }
.search-box input { width: 110px; border: 0; outline: none; background: transparent; font-size: 10px; }
.select-box { position: relative; padding-right: 7px; }
.select-box select { appearance: none; padding: 0 24px 0 10px; height: 32px; border: 0; outline: 0; background: transparent; font-size: 10px; color: var(--ink); }
.select-box svg { position: absolute; right: 8px; pointer-events: none; }
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; min-width: 1080px; font-size: 10px; }
thead th { padding: 10px 13px; border-top: 1px solid var(--line-soft); border-bottom: 1px solid var(--line); background: #f6f4ee; color: #81847d; font-size: 8px; text-transform: uppercase; letter-spacing: .06em; font-weight: 600; text-align: right; white-space: nowrap; }
thead th:first-child { text-align: left; padding-left: 26px; }
tbody td { border-bottom: 1px solid var(--line-soft); padding: 11px 13px; text-align: right; white-space: nowrap; }
tbody tr:last-child td { border-bottom: 0; }
tbody tr:hover { background: #faf9f5; }
tbody td:first-child { text-align: left; padding-left: 26px; display: flex; gap: 10px; align-items: center; }
tbody td:first-child > div { display: flex; flex-direction: column; }
tbody td:first-child b { font-size: 9px; }
tbody td:first-child small { color: var(--muted); font: 400 8px/1.4 'DM Mono', monospace; }
.controlled-fault-row { background: #fff8f3; }
.controlled-fault-badge { display: inline-flex; margin-left: 7px; border-radius: 99px; padding: 2px 5px; background: var(--coral-light); color: #a34834; font: 600 7px/1.2 Inter, sans-serif; text-transform: uppercase; letter-spacing: .04em; }
.variant-chip { width: 30px; height: 30px; border: 1px solid #d6d8cf; border-radius: 6px; background: #f0f2ec; display: grid; place-items: center; color: var(--green); font: 500 10px/1 'DM Mono', monospace; }
.danger-text { color: var(--coral); }
.risk-meter { min-width: 80px; position: relative; height: 18px; background: #efeee8; border-radius: 3px; overflow: hidden; }
.risk-meter i { display: block; height: 100%; background: #efb798; }
.risk-meter span { position: absolute; right: 5px; top: 3px; z-index: 1; font: 500 9px/1.3 'DM Mono', monospace; }
.risk-badge { display: inline-flex; align-items: center; gap: 5px; border-radius: 99px; padding: 4px 7px; font-size: 8px; font-weight: 600; }
.risk-badge > span { width: 5px; height: 5px; border-radius: 50%; }
.risk-badge.healthy { background: var(--green-light); color: var(--green); }.risk-badge.healthy > span { background: var(--green); }
.risk-badge.watch { background: var(--amber-light); color: #875d19; }.risk-badge.watch > span { background: var(--amber); }
.risk-badge.quarantined { background: var(--coral-light); color: #a34834; }.risk-badge.quarantined > span { background: var(--coral); }
.muted-row { color: #7e817b; background: #faf8f5; }
.row-action { border: 1px solid #dba08f; background: #fff8f5; color: #a54a37; border-radius: 5px; padding: 5px 7px; font-size: 8px; font-weight: 600; }
.source-action { display: inline-block; border-color: var(--line); background: var(--paper); color: var(--green); text-decoration: none; margin-right: 5px; }
.row-action:hover { background: var(--coral-light); }
.restore-action { border-color: #8da99a; background: #f2f8f3; color: var(--green); }
.restore-action:hover { background: var(--green-light); }
.empty-state { padding: 30px; color: var(--muted); text-align: center; font-size: 11px; }
.method-note { border-top: 1px solid var(--line-soft); background: #f7f5ef; color: var(--muted); padding: 12px 26px; font-size: 9px; display: flex; align-items: center; gap: 8px; }
.method-note svg { color: var(--green); flex: 0 0 auto; }
.method-note b { color: var(--ink); }

.quarantine-panel { background: #242923; color: #f6f5f0; border-color: #242923; }
.quarantine-panel .eyebrow { color: var(--lime); }
.quarantine-panel .panel-header p { color: #abb1a7; }
.recovery-stat { display: grid; grid-template-columns: auto auto; grid-template-rows: 1fr 1fr; column-gap: 5px; color: var(--lime); align-items: center; }
.recovery-stat svg { grid-row: 1 / 3; }
.recovery-stat b { font: 500 22px/1 'DM Mono', monospace; }
.recovery-stat span { color: #aeb4aa; font-size: 8px; }
.trend-chart { display: grid; grid-template-columns: 34px 1fr; min-height: 190px; padding: 8px 26px 0; overflow-x: auto; }
.y-labels { display: flex; flex-direction: column; justify-content: space-between; align-items: flex-end; padding: 0 8px 24px 0; color: #788078; font: 400 8px/1 'DM Mono', monospace; }
.trend-plot { position: relative; }
.grid-line { position: absolute; left: 0; right: 0; height: 1px; background: #3a4039; }
.grid-line.top { top: 0; }.grid-line.mid { top: 50%; }.grid-line.bottom { bottom: 24px; }
.trend-bars { position: absolute; inset: 0 0 0 0; padding-bottom: 34px; display: flex; align-items: flex-end; gap: 12px; }
.trend-column { height: 100%; flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: flex-end; min-width: 76px; }
.trend-column i { width: min(24px, 65%); min-height: 3px; background: var(--coral); opacity: .88; border-radius: 3px 3px 0 0; z-index: 1; }
.trend-column i.after { background: var(--lime); opacity: .92; }
.trend-column span { height: 34px; padding-top: 6px; color: #b7bcb4; font: 500 8px/1 'DM Mono', monospace; text-align: center; }
.trend-column span small { display: block; margin-top: 4px; color: #80867e; font: 400 7px/1 'DM Mono', monospace; }
.quarantine-marker { position: absolute; left: 56%; top: -6px; bottom: 24px; border-left: 1px dashed var(--lime); }
.quarantine-marker span { position: absolute; top: 0; left: 7px; color: var(--lime); font: 500 8px/1 'DM Mono', monospace; white-space: nowrap; }
.before-after { border-top: 1px solid #3c423b; padding: 17px 26px; display: flex; align-items: center; gap: 18px; }
.before-after > div:not(.recompose-progress) { display: grid; grid-template-columns: auto auto; column-gap: 9px; }
.before-after span, .before-after small { color: #9fa59c; font-size: 8px; }
.before-after b { grid-row: 1 / 3; grid-column: 2; align-self: center; font: 500 20px/1 'DM Mono', monospace; }
.before-after .after b { color: var(--lime); }
.before-after > svg { color: #6f756d; }
.recompose-progress { margin-left: auto; width: min(320px, 35%); }
.recompose-progress > span { display: flex; margin-bottom: 6px; justify-content: flex-end; }
.recompose-progress b { font: inherit; color: #dde1da; margin-right: 3px; }
.recompose-progress > div { height: 5px; background: #3c423b; border-radius: 99px; overflow: hidden; }
.recompose-progress i { display: block; height: 100%; background: var(--lime); border-radius: inherit; }

.telemetry-heading { align-items: flex-end; }
.filter-tabs { display: flex; border: 1px solid var(--line); border-radius: 7px; overflow: hidden; background: #f5f3ed; }
.filter-tabs button { border: 0; border-right: 1px solid var(--line); color: var(--muted); background: transparent; padding: 7px 9px; font-size: 8px; text-transform: capitalize; }
.filter-tabs button:last-child { border-right: 0; }
.filter-tabs button.active { background: var(--ink); color: white; }
.event-list { margin: 0; padding: 0; list-style: none; }
.event-row { display: grid; grid-template-columns: 30px 1fr auto; gap: 12px; align-items: flex-start; padding: 13px 26px; border-top: 1px solid var(--line-soft); }
.event-icon { width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; }
.event-icon.warning { background: var(--amber-light); color: var(--amber); }.event-icon.critical { background: var(--coral-light); color: var(--coral); }.event-icon.success { background: var(--green-light); color: var(--green); }.event-icon.info { background: #e7e5f2; color: var(--purple); }
.event-main > div:first-child { display: flex; align-items: center; gap: 8px; }
.event-main b { font-size: 10px; }
.event-kind { border-radius: 3px; padding: 3px 5px; background: #eeece5; color: var(--muted); text-transform: uppercase; font: 500 7px/1 'DM Mono', monospace; }
.event-kind.critical { background: var(--coral-light); color: #a64c39; }.event-kind.success { background: var(--green-light); color: var(--green); }
.event-main p { display: flex; gap: 11px; margin: 4px 0 0; color: var(--muted); font: 400 8px/1.4 'DM Mono', monospace; }
.event-main p span + span::before { content: '·'; margin-right: 11px; color: #c3c2bb; }
.call-chain { display: flex; align-items: center; gap: 5px; margin-top: 7px; }
.call-chain span { display: flex; align-items: center; gap: 5px; color: #7f837b; font: 400 7px/1 'DM Mono', monospace; background: #f1efe9; padding: 3px 5px; border-radius: 3px; }
.call-chain span:not(:first-child) { background: transparent; padding-left: 0; }
.event-row time { color: var(--muted); font: 400 8px/1.5 'DM Mono', monospace; }

footer { max-width: 1440px; margin: 0 auto; padding: 0 24px 30px; display: flex; justify-content: space-between; align-items: center; color: var(--muted); font-size: 9px; }
footer > div { display: flex; align-items: center; gap: 8px; }
footer b { color: var(--ink); text-transform: uppercase; letter-spacing: .08em; font-size: 9px; }
.loading-label { color: var(--green); }

.dialog-backdrop { position: fixed; inset: 0; z-index: 50; background: rgba(24,27,23,.58); backdrop-filter: blur(3px); display: grid; place-items: center; padding: 18px; }
.dialog { width: min(460px, 100%); background: var(--paper); border: 1px solid var(--line); border-radius: 13px; padding: 28px; box-shadow: 0 28px 80px rgba(20,25,20,.24); position: relative; }
.dialog-close { position: absolute; top: 14px; right: 14px; width: 30px; height: 30px; border: 1px solid var(--line); background: white; color: var(--muted); border-radius: 6px; display: grid; place-items: center; }
.dialog-icon { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 9px; color: var(--coral); background: var(--coral-light); margin-bottom: 19px; }
.dialog h2 { font-size: 22px; margin-bottom: 9px; }
.dialog > p { color: var(--muted); line-height: 1.6; font-size: 11px; }
.dialog-evidence { display: flex; gap: 10px; margin: 19px 0; }
.dialog-evidence span { flex: 1; border: 1px solid var(--line); border-radius: 7px; padding: 11px; display: flex; justify-content: space-between; color: var(--muted); font-size: 9px; }
.dialog-evidence b { color: var(--ink); }
.dialog-actions { display: flex; justify-content: flex-end; gap: 8px; }
.button { border-radius: 7px; padding: 9px 13px; font-size: 10px; font-weight: 600; }
.button.secondary { border: 1px solid var(--line); color: var(--ink); background: white; }
.button.danger { border: 1px solid #b6533c; color: white; background: #b6533c; }
.button:disabled { opacity: .55; cursor: wait; }
.toast { position: fixed; z-index: 60; right: 22px; bottom: 22px; max-width: 380px; display: flex; align-items: center; gap: 8px; border-radius: 8px; padding: 12px 14px; color: white; background: #29352c; box-shadow: 0 12px 36px rgba(20,25,20,.2); font-size: 10px; }
.toast svg { color: var(--lime); }

@media (max-width: 1050px) {
  .metric-grid { grid-template-columns: repeat(3, 1fr); }
  .metric-card:nth-child(4), .metric-card:nth-child(5) { grid-column: span 1; }
  .spec-grid { grid-template-columns: repeat(5, 1fr); }
  .spec-column:nth-child(5) { border-right: 0; }
  .spec-column:nth-child(n+6) { border-top: 1px solid var(--line-soft); }
  .two-column { grid-template-columns: 1fr; }
}

@media (max-width: 720px) {
  .topbar { padding: 0 16px; }
  .last-updated { display: none; }
  .source-pill { font-size: 0; padding: 7px; }
  .source-pill .status-dot { margin: 0; }
  .connection-banner { margin: 10px 12px -2px; align-items: flex-start; }
  .connection-detail { display: none; }
  main { padding: 30px 14px 45px; }
  .hero { align-items: flex-end; }
  .hero-status { display: none; }
  h1 { font-size: 37px; }
  .metric-grid { grid-template-columns: repeat(2, 1fr); }
  .metric-card { min-height: 126px; padding: 14px; }
  .metric-card:nth-child(3) { grid-column: span 2; }
  .metric-card > strong { font-size: 28px; }
  .panel-header { padding: 20px 18px 15px; }
  .composition-count { display: none; }
  .spec-grid { grid-template-columns: repeat(3, 1fr); }
  .spec-column, .spec-column:nth-child(5) { border-right: 1px solid var(--line-soft); border-top: 1px solid var(--line-soft); }
  .spec-column:nth-child(-n+3) { border-top: 0; }
  .spec-column:nth-child(3n) { border-right: 0; }
  .explain-flow { justify-content: flex-start; overflow-x: auto; }
  .explain-flow > svg { flex: 0 0 auto; }
  .explain-flow > div { min-width: 112px; }
  .distribution-list, .interaction-list { padding-left: 18px; padding-right: 18px; }
  .distribution-row { grid-template-columns: 7px 1fr 42px; }
  .distribution-bar { display: none; }
  .interaction { grid-template-columns: 24px 1fr 50px; }
  .interaction-bar { display: none; }
  .interaction-meta { grid-column: 2 / -1; }
  .table-heading, .telemetry-heading { align-items: stretch; flex-direction: column; }
  .table-tools { justify-content: stretch; }
  .search-box { flex: 1; }
  .search-box input { width: 100%; }
  .before-after { flex-wrap: wrap; }
  .recompose-progress { margin-left: 0; width: 100%; }
  .trend-chart { padding-left: 18px; padding-right: 18px; }
  .event-row { padding: 13px 18px; grid-template-columns: 28px 1fr; }
  .event-row time { display: none; }
  .event-main p { flex-wrap: wrap; row-gap: 2px; }
  .filter-tabs { width: max-content; max-width: 100%; }
  footer { padding: 0 14px 25px; }
  footer > div:first-child > span:last-child, footer > div:last-child { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; animation: none !important; }
}
