.ml-app { --ml-ink: #173852; --ml-stroke: #c8d5df; --ml-slate: #476276; --ml-fix: #32665a; border: 1px solid var(--line-strong); border-radius: .75rem; overflow: hidden; background: #fff; color: var(--navy); }
.ml-app * { min-width: 0; }
.ml-app h2, .ml-app h3, .ml-app p { margin: 0; }
.ml-header { display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap; background: var(--navy); padding: 1rem clamp(1rem, 3vw, 1.5rem); }
.ml-header h2 { color: #fff; font-size: clamp(1.25rem, 3vw, 1.7rem); }
.ml-header p, .ml-case-id { color: #e6edf4; }
.ml-header p { font-size: .93rem; margin-top: .16rem; }
.ml-case-id, .ml-inspect-head code, .ml-bar-row small, .ml-diff span { font: 500 .75rem/1.45 var(--mono); }
.ml-overview { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); align-items: center; gap: clamp(1rem, 4vw, 3rem); padding: 1.15rem clamp(1rem, 3vw, 1.5rem); border-bottom: 1px solid var(--ml-stroke); }
.ml-app h3 { color: var(--ml-ink); font-size: 1.05rem; line-height: 1.35; }
.ml-chart-rows { display: grid; gap: .55rem; margin-top: .68rem; }
.ml-bar-row { display: grid; align-items: center; grid-template-columns: minmax(7.2rem,auto) minmax(3rem,1fr) 3.3rem 2.2rem; gap: .55rem; font-size: .85rem; }
.ml-bar-row strong, .ml-bar-row small { text-align: right; font-variant-numeric: tabular-nums; }
.ml-bar-row small, .ml-app .ml-fine { color: var(--ml-slate); }
.ml-track { background: #e8edf1; border-radius: .18rem; overflow: hidden; height: .55rem; }
.ml-fill { display: block; height: 100%; background: #647f92; }
.ml-bar-row[data-series="reported"] .ml-fill { background: #997245; }
.ml-bar-row[data-series="replay"] .ml-fill { background: var(--ml-fix); }
@media (prefers-reduced-motion: no-preference) {
  .ml-bar-row[data-series="replay"] .ml-fill { transform-origin: left; animation: ml-restore .45s ease-out both; }
  @keyframes ml-restore { from { transform: scaleX(0); } to { transform: scaleX(1); } }
}
.ml-outcome { border-left: 2px solid var(--ml-stroke); padding-left: 1rem; display: grid; gap: .1rem .65rem; grid-template-columns: 1fr auto; align-items: baseline; }
.ml-outcome span { font-weight: 650; font-size: .88rem; }
.ml-outcome strong { color: var(--ml-ink); font-size: clamp(1.15rem, 2.8vw, 1.65rem); font-variant-numeric: tabular-nums; }
.ml-outcome p { grid-column: 1/-1; font-size: .86rem; line-height: 1.5; }
.ml-trail { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 1.15rem; padding: 1rem clamp(1rem, 3vw, 1.5rem); border-bottom: 1px solid var(--ml-stroke); background: #f0f4f7; }
.ml-app button { cursor: pointer; font-family: inherit; }
.ml-app :is(button,select,input):focus-visible { outline: 3px solid #1f68a1; outline-offset: 2px; }
.ml-node { position: relative; display: grid; align-content: center; justify-items: start; text-align: left; padding: .55rem .7rem; border: 1px solid #aebfcb; border-radius: .4rem; background: #fff; color: var(--ml-ink); line-height: 1.25; }
.ml-node small { color: var(--ml-slate); font-size: .72rem; }
.ml-node strong { font-size: .94rem; margin-top: .16rem; }
.ml-node:not(:last-child)::after { position: absolute; left: calc(100% + 1px); width: 1.05rem; text-align: center; content: "\2192"; color: #657d8d; font-weight: 700; }
.ml-node[aria-pressed="true"] { background: #e1edf5; border-color: #416b88; box-shadow: inset 0 -2px #416b88; }
.ml-layout { display: grid; grid-template-columns: minmax(0, 2.15fr) minmax(12.4rem, 1fr); }
.ml-inspector, .ml-checks { padding: 1rem clamp(1rem, 3vw, 1.5rem); }
.ml-inspect-head { display: flex; justify-content: space-between; align-items: baseline; gap: .3rem 1rem; flex-wrap: wrap; margin-bottom: .55rem; }
.ml-inspect-head code { color: var(--ml-slate); overflow-wrap: anywhere; }
.ml-inspector p, .ml-checks p { font-size: .88rem; line-height: 1.5; }
.ml-diff { border: 1px solid var(--ml-stroke); border-radius: .35rem; overflow: hidden; margin: .7rem 0 .3rem; }
.ml-diff > div { display: grid; align-items: baseline; grid-template-columns: 8rem 1fr; gap: .2rem .65rem; padding: .55rem .7rem; background: #f7f9fa; }
.ml-diff .ml-added { background: #eaf3ef; border-top: 1px solid #d2e5dc; }
.ml-diff code { font: 500 .82rem/1.45 var(--mono); overflow-wrap: anywhere; }
.ml-inline { padding: .25rem 0; font-size: .85rem; color: #205b87; background: none; border: none; text-decoration: underline; text-underline-offset: .18rem; }
.ml-replay-controls { display: flex; align-items: center; gap: .45rem .75rem; flex-wrap: wrap; margin-top: .85rem; }
.ml-replay { padding: .5rem .85rem; border-radius: .35rem; background: var(--ml-ink); color: #fff; border: 1px solid var(--ml-ink); font-weight: 650; font-size: .87rem; }
.ml-app .ml-fine { font-size: .8rem; }
.ml-checks { display: grid; align-content: start; gap: .42rem; background: #f7f9fa; border-left: 1px solid var(--ml-stroke); }
.ml-check { text-align: left; border: 1px solid #c5d2da; border-radius: .3rem; background: #fff; color: var(--ml-ink); padding: .45rem .65rem; font-size: .86rem; }
.ml-check[aria-pressed="true"] { border-color: #63869e; background: #e5eff5; }
.ml-check-note { padding-left: .55rem; border-left: 2px solid #789aae; }
.ml-record-filters { display: flex; align-items: center; flex-wrap: wrap; gap: .25rem .8rem; margin: .65rem 0; font-size: .8rem; }
.ml-record-filters label { display: flex; align-items: center; gap: .28rem; }
.ml-record-filters select { color: var(--ml-ink); padding: .25rem; font: inherit; border-radius: .3rem; border: 1px solid #9fb3c2; background: #fff; }
.ml-record-filters input { accent-color: #39627d; }
.ml-table-wrap { overflow: auto; max-height: 18rem; margin: .5rem 0; border: 1px solid #d5dfe5; border-radius: .3rem; }
.ml-table-wrap table { border-collapse: collapse; width: 100%; font-size: .8rem; line-height: 1.35; text-align: left; }
.ml-table-wrap :is(th,td) { border-bottom: 1px solid #d5dfe5; padding: .46rem .55rem; }
.ml-table-wrap thead th { position: sticky; top: 0; background: #f0f4f6; }
.ml-table-wrap tbody th { font-weight: 600; }
.ml-table-wrap tr:last-child > * { border-bottom: 0; }
.ml-empty { padding: .7rem; background: #f5f8fa; }
@media (max-width: 760px) {
  .ml-layout { grid-template-columns: 1fr; }
  .ml-checks { border-left: 0; border-top: 1px solid var(--ml-stroke); }
  .ml-trail { gap: .65rem; }
  .ml-node:not(:last-child)::after { width: .58rem; font-size: .74rem; }
}
@media (max-width: 570px) {
  .ml-overview { grid-template-columns: 1fr; gap: .85rem; }
  .ml-trail { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ml-node:nth-child(2)::after { display: none; }
  .ml-diff > div { grid-template-columns: 1fr; }
  .ml-bar-row { grid-template-columns: 6.4rem minmax(2rem,1fr) 2.9rem 2rem; gap: .35rem; }
  .ml-header { gap: .5rem; }
}
