/* Metron agent capabilities. Every rule is scoped under .mlive.
   Product tokens match the Tabula stage (Blueprint-derived, slate accent).
   Site chrome (step tabs) uses Host Grotesk. */

.mlive {
  --ml-canvas: #f5f6f8;
  --ml-surface: #ffffff;
  --ml-subtle: #eef1f4;
  --ml-text: #1c2127;
  --ml-muted: #5c6674;
  --ml-line: #dce0e5;
  --ml-line-soft: #e8ebee;
  --ml-control-line: #7d8795;
  --ml-accent: #455566;
  --ml-accent-hover: #36434f;
  --ml-accent-soft: #eaf0f4;
  --ml-success: #236342;
  --ml-success-soft: #eaf4ed;
  --ml-warning: #80550d;
  --ml-warning-soft: #fff4dd;
  --ml-danger: #a82e36;
  --ml-info: #465ab7;
  --ml-info-soft: #edf0fc;
  --ml-font: -apple-system, BlinkMacSystemFont, "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  --ml-mono: ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
  --ml-site-font: "Host Grotesk", -apple-system, BlinkMacSystemFont, "Helvetica Neue", Arial, sans-serif;
  --ml-site-ink: #141414;
  --ml-site-quiet: #8a8985;
  --ml-site-rule: #e2e0db;

  display: block;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  font-family: var(--ml-site-font);
  color: var(--ml-site-ink);
  -webkit-font-smoothing: antialiased;
}

.mlive *,
.mlive *::before,
.mlive *::after { box-sizing: border-box; }

.mlive [hidden] { display: none !important; }

.mlive h2, .mlive h3, .mlive p, .mlive ol, .mlive dl, .mlive dd { margin: 0; padding: 0; }
.mlive ol { list-style: none; }

/* ---------- Step tabs (site chrome, hidden when notes drive the stage) ---------- */

.mlive .ml-tabs {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 20px;
  margin: 0 0 28px;
}

.mlive .ml-tab {
  position: relative;
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin: 0;
  padding: 14px 0 0;
  border: 0;
  border-top: 1px solid var(--ml-site-rule);
  background: none;
  font: 400 14px/1.35 var(--ml-site-font);
  color: var(--ml-site-quiet);
  text-align: left;
  cursor: pointer;
}

.mlive .ml-tab.is-active { color: var(--ml-site-ink); }

.mlive .ml-tab-bar {
  position: absolute;
  left: 0;
  top: -1px;
  width: 100%;
  height: 1px;
  background: var(--ml-site-ink);
  transform: scaleX(0);
  transform-origin: 0 50%;
}

/* ---------- Stage and window ---------- */

.mlive .ml-stage {
  position: relative;
  width: 100%;
  height: 680px;
}

.mlive .ml-win {
  position: absolute;
  top: 0;
  left: 0;
  width: 1200px;
  height: 680px;
  transform-origin: 0 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--ml-line);
  border-radius: 10px;
  background: var(--ml-canvas);
  box-shadow: 0 1px 2px rgb(20 20 20 / 4%), 0 24px 60px -28px rgb(20 20 20 / 28%);
  font-family: var(--ml-font);
  font-size: 13px;
  line-height: 1.45;
  color: var(--ml-text);
  text-align: left;
  user-select: none;
  -webkit-user-select: none;
}

.mlive .ml-ico { display: block; flex: 0 0 auto; fill: currentColor; }

/* Top bar */
.mlive .ml-top {
  flex: 0 0 48px;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0 16px;
  background: var(--ml-surface);
  border-bottom: 1px solid var(--ml-line);
  position: relative;
  z-index: 2;
}

.mlive .ml-brand { font-weight: 600; font-size: 16px; letter-spacing: -0.015em; }

.mlive .ml-ws {
  display: flex;
  align-items: center;
  gap: 8px;
  height: 28px;
  padding-left: 12px;
  border-left: 1px solid var(--ml-line);
  font-weight: 500;
}

.mlive .ml-ws-name { display: flex; align-items: center; gap: 6px; padding: 0 6px; }
.mlive .ml-role { color: var(--ml-muted); font-size: 12px; }
.mlive .ml-top-right { margin-left: auto; display: flex; align-items: center; gap: 4px; }
.mlive .ml-tbtn { display: flex; align-items: center; gap: 8px; height: 32px; padding: 0 10px; border-radius: 3px; }
.mlive .ml-kbd { color: var(--ml-muted); font-size: 12px; margin: 0 10px 0 6px; }

/* Sidebar */
.mlive .ml-body { flex: 1; display: flex; min-height: 0; }

.mlive .ml-side {
  flex: 0 0 208px;
  width: 208px;
  padding: 6px 0;
  overflow: hidden;
  background: var(--ml-surface);
  border-right: 1px solid var(--ml-line);
}

.mlive .ml-ngroup { padding: 4px 12px; }

.mlive .ml-nlabel {
  height: 28px;
  padding: 7px 0 0;
  color: var(--ml-muted);
  font-size: 12px;
  white-space: nowrap;
}

.mlive .ml-nitem {
  display: flex;
  align-items: center;
  gap: 12px;
  height: 32px;
  padding: 0 12px;
  border-radius: 3px;
  white-space: nowrap;
  overflow: hidden;
  transition: background-color 0.25s ease, color 0.25s ease;
}

.mlive .ml-nitem.is-sel { background: var(--ml-accent-soft); color: var(--ml-accent); font-weight: 500; }

.mlive .ml-ncount {
  margin-left: auto;
  padding: 0 7px;
  border-radius: 3px;
  background: var(--ml-subtle);
  color: var(--ml-muted);
  font-size: 12px;
  font-weight: 400;
  font-variant-numeric: tabular-nums;
}

/* ---------- Main area and shared product parts ---------- */

.mlive .ml-main { flex: 1; min-width: 0; display: flex; position: relative; overflow: hidden; }
.mlive .ml-scene { flex: 1; min-width: 0; display: flex; animation: ml-fade 0.35s ease both; }

.mlive .ml-page {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 16px 20px 20px;
}

.mlive .ml-head {
  flex: 0 0 auto;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  min-height: 48px;
}

.mlive .ml-crumb { color: var(--ml-muted); font-size: 12px; margin-bottom: 2px; }
.mlive .ml-h1 { font-size: 24px; font-weight: 600; letter-spacing: -0.012em; line-height: 1.2; }
.mlive .ml-actions { display: flex; align-items: center; gap: 8px; position: relative; }

.mlive .ml-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 32px;
  padding: 0 10px;
  border-radius: 3px;
  background: var(--ml-surface);
  box-shadow: inset 0 0 0 1px var(--ml-control-line);
  white-space: nowrap;
  transition: transform 0.12s ease, background-color 0.2s ease;
}

.mlive .ml-btn.is-primary { background: var(--ml-accent); color: #fff; box-shadow: none; font-weight: 500; }
.mlive .ml-btn.is-busy { background: var(--ml-accent-hover); }
.mlive .is-press { transform: scale(0.97); }

.mlive .ml-select {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 32px;
  padding: 0 8px;
  border-radius: 3px;
  box-shadow: inset 0 0 0 1px var(--ml-control-line);
  background: var(--ml-surface);
  white-space: nowrap;
}

.mlive .ml-panel {
  background: var(--ml-surface);
  border: 1px solid var(--ml-line);
  min-width: 0;
  min-height: 0;
}

.mlive .ml-panel-h {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  height: 40px;
  padding: 0 12px;
  border-bottom: 1px solid var(--ml-line);
  font-weight: 600;
  white-space: nowrap;
}

.mlive .ml-ph-l { display: flex; align-items: center; gap: 8px; }
.mlive .ml-ph-l .ml-muted { font-weight: 400; font-size: 12px; margin-left: 2px; }
.mlive .ml-count { color: var(--ml-muted); font-size: 12px; font-weight: 400; white-space: nowrap; font-variant-numeric: tabular-nums; }
.mlive .ml-col { display: flex; flex-direction: column; gap: 16px; min-width: 0; min-height: 0; }

.mlive .ml-thead,
.mlive .ml-tr { display: grid; align-items: center; }
.mlive .ml-thead { height: 36px; background: var(--ml-subtle); color: var(--ml-muted); font-weight: 500; }
.mlive .ml-thead > div,
.mlive .ml-tr > div { padding: 0 12px; min-width: 0; }
.mlive .ml-tr { min-height: 50px; padding: 7px 0; border-bottom: 1px solid var(--ml-line); }
.mlive .ml-r { text-align: right; justify-self: end; }
.mlive .ml-num { font-variant-numeric: tabular-nums; white-space: nowrap; }
.mlive .ml-strong { font-weight: 500; }
.mlive .ml-sub { color: var(--ml-muted); font-size: 12px; line-height: 1.35; margin-top: 1px; }
.mlive .ml-muted { color: var(--ml-muted); }
.mlive .ml-eyebrow { color: var(--ml-muted); font-size: 12px; }
.mlive code,
.mlive .ml-mono { font-family: var(--ml-mono); font-size: 11.5px; color: var(--ml-muted); background: none; }

.mlive .ml-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 20px;
  padding: 0 6px;
  border-radius: 3px;
  background: var(--ml-subtle);
  color: var(--ml-muted);
  font-size: 12px;
  font-weight: 400;
  line-height: 1;
  white-space: nowrap;
  vertical-align: middle;
}

.mlive .ml-tag.t-ok { color: var(--ml-success); background: var(--ml-success-soft); }
.mlive .ml-tag.t-warn { color: var(--ml-warning); background: var(--ml-warning-soft); }
.mlive .ml-tag.t-info { color: var(--ml-info); background: var(--ml-info-soft); }
.mlive .ml-tag .ml-ico { width: 12px; height: 12px; }

.mlive .ml-spin {
  display: inline-block;
  flex: 0 0 auto;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: 1.5px solid currentColor;
  border-right-color: transparent;
  animation: ml-rot 0.75s linear infinite;
}

.mlive .ml-dot { width: 6px; height: 6px; border-radius: 50%; background: currentColor; animation: ml-blink 1.6s ease-in-out infinite; }

.mlive .ml-src {
  display: inline-flex;
  align-items: center;
  height: 18px;
  padding: 0 5px;
  border: 1px solid var(--ml-line);
  border-radius: 3px;
  background: var(--ml-surface);
  color: var(--ml-muted);
  font-size: 10.5px;
  font-weight: 500;
  line-height: 1;
  letter-spacing: 0.01em;
  white-space: nowrap;
}

.mlive .ml-chips { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 6px; }

.mlive .ml-cite {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 16px;
  height: 16px;
  padding: 0 3px;
  border-radius: 3px;
  background: var(--ml-subtle);
  color: var(--ml-accent);
  font-size: 10px;
  font-weight: 600;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}

.mlive .ml-skel,
.mlive .ml-skelbar {
  display: block;
  height: 8px;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--ml-subtle) 0%, #f6f7f9 50%, var(--ml-subtle) 100%);
  background-size: 200% 100%;
  animation: ml-shimmer 1.6s linear infinite;
}

.mlive .ml-skel { width: 88px; margin: 3px 0; }
.mlive .ml-skelbar + .ml-skelbar { margin-top: 10px; }

.mlive .ml-caret {
  display: inline-block;
  width: 1px;
  height: 15px;
  margin-left: 1px;
  background: var(--ml-text);
  vertical-align: -3px;
  animation: ml-blink 1s steps(1) infinite;
}

.mlive .ml-in { animation: ml-in 0.42s cubic-bezier(0.2, 0.7, 0.2, 1) both; }
.mlive .ml-pop { animation: ml-pop 0.5s cubic-bezier(0.2, 0.7, 0.2, 1) both; }
.mlive .ml-flash { animation: ml-flash 1.1s ease both; }

.mlive .ml-av {
  flex: 0 0 auto;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--ml-accent);
  color: #fff;
  font-size: 12px;
  font-weight: 600;
}

.mlive .ml-av-s { width: 26px; height: 26px; font-size: 10.5px; background: var(--ml-subtle); color: var(--ml-accent); }
.mlive .ml-av-more { background: var(--ml-surface); box-shadow: inset 0 0 0 1px var(--ml-line); }

/* Record fields (label, value) */
.mlive .ml-fields { display: flex; flex-direction: column; }

.mlive .ml-field {
  display: grid;
  grid-template-columns: 146px minmax(0, 1fr);
  align-items: center;
  min-height: 40px;
  padding: 0 14px;
  border-bottom: 1px solid var(--ml-line-soft);
}

.mlive .ml-field:last-child { border-bottom: 0; }
.mlive .ml-field > span { color: var(--ml-muted); }
.mlive .ml-field > b { font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* Step list */
.mlive .ml-steps { padding: 8px 0; }

.mlive .ml-step {
  position: relative;
  display: grid;
  grid-template-columns: 22px minmax(0, 1fr);
  gap: 10px;
  padding: 8px 14px;
  color: var(--ml-muted);
  transition: color 0.3s ease;
}

.mlive .ml-step::before {
  content: "";
  position: absolute;
  left: 24.5px;
  top: 30px;
  bottom: -8px;
  width: 1px;
  background: var(--ml-line);
}

.mlive .ml-step:last-child::before { display: none; }
.mlive .ml-step-t { font-weight: 500; }
.mlive .ml-step-sub { font-size: 12px; color: var(--ml-muted); font-variant-numeric: tabular-nums; }

.mlive .ml-step-i {
  position: relative;
  z-index: 1;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--ml-surface);
  box-shadow: inset 0 0 0 1.5px var(--ml-line);
  color: var(--ml-muted);
  transition: background-color 0.3s ease, box-shadow 0.3s ease, color 0.3s ease;
}

.mlive [data-s="active"],
.mlive [data-s="done"],
.mlive [data-s="hold"] { color: var(--ml-text); }
.mlive [data-s="active"] .ml-step-i { box-shadow: inset 0 0 0 1.5px var(--ml-info); color: var(--ml-info); background: var(--ml-info-soft); }
.mlive [data-s="done"] .ml-step-i { box-shadow: none; background: var(--ml-success-soft); color: var(--ml-success); }
.mlive [data-s="hold"] .ml-step-i { box-shadow: none; background: var(--ml-warning-soft); color: var(--ml-warning); }
.mlive .ml-step-i .ml-ico { width: 12px; height: 12px; }

/* ---------- Scene 1: Voice note ingestion ---------- */

.mlive .ml-s1 {
  flex: 1;
  min-height: 0;
  display: grid;
  grid-template-columns: 268px minmax(0, 1fr) 300px;
  gap: 16px;
}

.mlive .ml-phone { display: flex; flex-direction: column; overflow: hidden; }

.mlive .ml-ph-h {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-bottom: 1px solid var(--ml-line);
}

.mlive .ml-ph-h .ml-tag { margin-left: auto; }

.mlive .ml-ph-body {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 8px;
  padding: 12px;
  background: var(--ml-canvas);
  overflow: hidden;
}

.mlive .ml-day {
  align-self: center;
  margin-bottom: auto;
  padding: 2px 8px;
  border-radius: 3px;
  background: var(--ml-surface);
  color: var(--ml-muted);
  font-size: 11px;
}

.mlive .ml-bub {
  flex: 0 0 auto;
  max-width: 92%;
  padding: 7px 10px 5px;
  border-radius: 10px 10px 10px 3px;
  background: var(--ml-surface);
  box-shadow: 0 0 0 1px var(--ml-line);
  font-size: 12.5px;
  line-height: 1.4;
}

.mlive .ml-bub em {
  display: block;
  margin-top: 1px;
  text-align: right;
  font-style: normal;
  font-size: 10.5px;
  color: var(--ml-muted);
}

.mlive .ml-bub-out {
  align-self: flex-end;
  border-radius: 10px 10px 3px 10px;
  background: var(--ml-accent-soft);
  box-shadow: 0 0 0 1px #d5dfe7;
}

.mlive .ml-bub-t { display: flex; align-items: center; gap: 6px; font-weight: 500; color: var(--ml-success); }
.mlive .ml-bub-out .ml-sub { margin-top: 2px; }

.mlive .ml-voice {
  display: grid;
  grid-template-columns: 26px minmax(0, 1fr) auto;
  align-items: center;
  column-gap: 8px;
  width: 92%;
  padding: 8px 10px 5px;
}

.mlive .ml-voice em { grid-column: 1 / -1; }

.mlive .ml-play {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--ml-accent);
  color: #fff;
}

.mlive .ml-play .ml-ico { margin-left: 2px; }
.mlive .ml-voice.is-play .ml-play { animation: ml-pulse 1.2s ease-in-out infinite; }

.mlive .ml-wave { display: flex; align-items: center; gap: 2px; height: 24px; overflow: hidden; }
.mlive .ml-wave i { flex: 0 0 2px; width: 2px; border-radius: 1px; background: #c3cad3; transition: background-color 0.15s linear; }
.mlive .ml-wave i.is-on { background: var(--ml-accent); }
.mlive .ml-dur { font-size: 11px; color: var(--ml-muted); font-variant-numeric: tabular-nums; min-width: 26px; text-align: right; }

.mlive .ml-ph-comp {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 12px;
  border-top: 1px solid var(--ml-line);
}

.mlive .ml-ph-input {
  flex: 1;
  height: 30px;
  display: flex;
  align-items: center;
  padding: 0 10px;
  border-radius: 15px;
  box-shadow: inset 0 0 0 1px var(--ml-line);
  color: var(--ml-muted);
}

.mlive .ml-mic { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; background: var(--ml-subtle); color: var(--ml-accent); }

.mlive .ml-trans { display: flex; flex-direction: column; }
.mlive .ml-tlines { flex: 1; min-height: 0; padding: 6px 0; overflow: hidden; }
.mlive .ml-tempty { padding: 16px 14px; }

.mlive .ml-tline {
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr);
  gap: 8px;
  padding: 9px 14px;
  border-bottom: 1px solid var(--ml-line-soft);
}

.mlive .ml-tline .ml-mono { padding-top: 2px; }
.mlive .ml-tline p { line-height: 1.5; }

.mlive .ml-mark {
  background: transparent;
  color: inherit;
  border-radius: 2px;
  padding: 0 1px;
  box-shadow: inset 0 -1px 0 transparent;
  transition: background-color 0.5s ease, box-shadow 0.5s ease;
}

.mlive .ml-mark.is-hit { background: var(--ml-accent-soft); box-shadow: inset 0 -1.5px 0 var(--ml-accent); }

.mlive .ml-rec { display: flex; flex-direction: column; }

.mlive .ml-rec-h {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
  padding: 12px 14px;
  border-bottom: 1px solid var(--ml-line);
}

.mlive .ml-rec-title { font-size: 17px; font-weight: 600; letter-spacing: -0.01em; margin-top: 2px; min-height: 25px; }
.mlive .ml-rec-title .ml-skel { width: 140px; height: 10px; margin-top: 8px; }

/* ---------- Scene 2: Computer use ---------- */

.mlive .ml-s2 {
  flex: 1;
  min-height: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 16px;
}

.mlive .ml-remote { display: flex; flex-direction: column; }
.mlive .ml-live { font-weight: 400; }

.mlive .ml-remote-body {
  flex: 1;
  min-height: 0;
  padding: 16px;
  background: #e4e8ec;
  background-image: radial-gradient(rgb(69 85 102 / 9%) 1px, transparent 1px);
  background-size: 12px 12px;
}

.mlive .ml-erp {
  display: flex;
  flex-direction: column;
  border: 1px solid #8e98a3;
  border-radius: 4px;
  overflow: visible;
  background: #ececea;
  box-shadow: 0 10px 28px -14px rgb(20 28 38 / 45%);
  font: 12px/1.35 Tahoma, Verdana, "Segoe UI", sans-serif;
  color: #1d1d1d;
}

.mlive .ml-erp-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 26px;
  padding: 0 8px;
  border-radius: 3px 3px 0 0;
  background: linear-gradient(#6f7f90, #5a6a7b);
  color: #fff;
  font-weight: 700;
  font-size: 11.5px;
}

.mlive .ml-erp-wc { display: flex; gap: 5px; }
.mlive .ml-erp-wc i { width: 12px; height: 11px; border: 1px solid rgb(255 255 255 / 70%); border-radius: 2px; }
.mlive .ml-erp-menu { display: flex; gap: 16px; height: 22px; align-items: center; padding: 0 10px; border-bottom: 1px solid #c9c9c4; font-size: 11.5px; }

.mlive .ml-erp-form {
  display: grid;
  grid-template-columns: 86px minmax(0, 1fr) 86px minmax(0, 1fr);
  gap: 6px 10px;
  align-items: center;
  padding: 10px 12px;
  border-bottom: 1px solid #c9c9c4;
}

.mlive .ml-erp-form label { color: #3d3d3d; text-align: right; }

.mlive .ml-erp-in {
  position: relative;
  display: flex;
  align-items: center;
  height: 22px;
  padding: 0 6px;
  background: #fff;
  border: 1px solid #8f969c;
  border-top-color: #6d7379;
  white-space: nowrap;
}

.mlive .ml-erp-in.is-ro { background: #f3f3f1; color: #444; }
.mlive .ml-erp-in.is-focus { outline: 2px solid var(--ml-accent); outline-offset: -1px; }
.mlive .ml-erp-typed em,
.mlive .ml-erp-opt em { font-style: normal; color: #6a6a6a; margin-left: 8px; }

.mlive .ml-erp-drop {
  position: absolute;
  left: -1px;
  right: -1px;
  top: 21px;
  z-index: 5;
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid #6d7379;
  box-shadow: 0 4px 10px rgb(0 0 0 / 18%);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.12s ease, visibility 0s linear 0.12s;
}

.mlive .ml-erp-drop.is-open { opacity: 1; visibility: visible; transition: opacity 0.12s ease, visibility 0s; }
.mlive .ml-erp-opt { display: flex; justify-content: space-between; height: 22px; align-items: center; padding: 0 6px; }
.mlive .ml-erp-opt.is-hot { background: #d6dee7; }

.mlive .ml-erp-grid { margin: 10px 12px 0; border: 1px solid #8f969c; background: #fff; }

.mlive .ml-erp-th,
.mlive .ml-erp-tr {
  display: grid;
  grid-template-columns: 28px 84px minmax(0, 1fr) 88px 110px;
  align-items: center;
  height: 24px;
}

.mlive .ml-erp-th { background: #dcdcd8; border-bottom: 1px solid #a9a9a4; font-weight: 700; font-size: 11px; color: #333; }
.mlive .ml-erp-th span,
.mlive .ml-erp-tr span { padding: 0 6px; border-right: 1px solid #d9d9d5; height: 100%; display: flex; align-items: center; white-space: nowrap; overflow: hidden; }
.mlive .ml-erp-th span:last-child,
.mlive .ml-erp-tr span:last-child { border-right: 0; justify-content: flex-end; }
.mlive .ml-erp-th span:nth-child(4),
.mlive .ml-erp-tr span:nth-child(4) { justify-content: flex-end; }
.mlive .ml-erp-tr { border-bottom: 1px solid #ecece8; color: #1d1d1d; }
.mlive .ml-erp-tr span:first-child { color: #8a8a86; background: #f3f3f1; justify-content: center; }
.mlive .ml-erp-tr:last-child { border-bottom: 0; }
.mlive .ml-erp-tr.ml-flash { animation-name: ml-flash-erp; }

.mlive .ml-erp-foot { display: flex; align-items: center; gap: 8px; padding: 10px 12px; }
.mlive .ml-erp-tot { margin-left: auto; margin-right: 8px; color: #3d3d3d; }
.mlive .ml-erp-tot b { color: #111; margin-left: 6px; font-variant-numeric: tabular-nums; }

.mlive .ml-erp-b {
  display: inline-flex;
  align-items: center;
  height: 24px;
  padding: 0 12px;
  border: 1px solid #7e858b;
  border-radius: 3px;
  background: linear-gradient(#fdfdfc, #e2e2de);
  transition: transform 0.1s ease;
}

.mlive .ml-erp-b.is-off { color: #a0a09b; border-color: #b9b9b4; }
.mlive .ml-erp-b.is-press { background: linear-gradient(#d9d9d5, #ececea); }
.mlive .ml-erp-status { height: 22px; display: flex; align-items: center; padding: 0 10px; border-top: 1px solid #c9c9c4; font-size: 11px; color: #4b4b4b; background: #e3e3df; border-radius: 0 0 3px 3px; }

.mlive .ml-run { display: flex; flex-direction: column; }

.mlive .ml-appr {
  margin: 4px 12px 12px;
  padding: 10px 12px 12px;
  border: 1px solid var(--ml-line);
  border-left: 3px solid var(--ml-warning);
  border-radius: 3px;
}

.mlive .ml-appr-h { display: flex; align-items: center; justify-content: space-between; gap: 8px; font-weight: 600; }
.mlive .ml-appr-m { display: grid; grid-template-columns: 64px minmax(0, 1fr); row-gap: 2px; margin-top: 8px; font-size: 12px; }
.mlive .ml-appr-m dt { color: var(--ml-muted); }

/* ---------- Scene 3: Data retrieval ---------- */

.mlive .ml-askrow { flex: 0 0 auto; display: flex; gap: 8px; }

.mlive .ml-ask {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 10px;
  height: 40px;
  padding: 0 12px;
  border-radius: 3px;
  background: var(--ml-surface);
  box-shadow: inset 0 0 0 1px var(--ml-control-line);
  color: var(--ml-text);
  font-size: 14px;
  transition: box-shadow 0.2s ease;
}

.mlive .ml-ask > .ml-ico { color: var(--ml-muted); }
.mlive .ml-ask.is-focus { box-shadow: inset 0 0 0 2px var(--ml-accent); }
.mlive .ml-ask-text { white-space: nowrap; }
.mlive .ml-ask-ph { color: var(--ml-muted); }
.mlive .ml-ask .ml-caret + .ml-ask-ph { margin-left: -9px; }

.mlive .ml-send {
  flex: 0 0 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border-radius: 3px;
  background: var(--ml-accent);
  color: #fff;
  transition: transform 0.12s ease;
}

.mlive .ml-send.is-busy { background: var(--ml-accent-hover); }

.mlive .ml-s3 {
  flex: 1;
  min-height: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 16px;
}

.mlive .ml-cols-ar { grid-template-columns: minmax(0, 1fr) 132px 78px 140px 96px; }
.mlive .ml-res { display: flex; flex-direction: column; }
.mlive .ml-res-empty { padding: 18px 12px; }
.mlive .ml-cites { display: flex; gap: 4px; }
.mlive .ml-total { background: #fafbfc; border-bottom: 1px solid var(--ml-line); min-height: 44px; }
.mlive .ml-citelist { padding: 10px 12px; display: grid; gap: 6px; }
.mlive .ml-citelist li { display: flex; align-items: center; gap: 8px; font-size: 12px; }

.mlive .ml-qsrcs { display: flex; flex-direction: column; }

.mlive .ml-qsrc {
  display: grid;
  grid-template-columns: 32px minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  padding: 12px;
  border-bottom: 1px solid var(--ml-line-soft);
  transition: background-color 0.3s ease;
}

.mlive .ml-qsrc-i {
  width: 32px;
  height: 32px;
  border-radius: 4px;
  display: grid;
  place-items: center;
  background: var(--ml-subtle);
  color: var(--ml-muted);
  transition: background-color 0.3s ease, color 0.3s ease;
}

.mlive .ml-qsrc.is-q { background: #f8f9fb; }
.mlive .ml-qsrc.is-q .ml-qsrc-i { background: var(--ml-info-soft); color: var(--ml-info); }
.mlive .ml-qsrc.is-done .ml-qsrc-i { background: var(--ml-accent-soft); color: var(--ml-accent); }

/* ---------- Scene 4: Document extraction ---------- */

.mlive .ml-s4 {
  flex: 1;
  min-height: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 16px;
}

.mlive .ml-docv { display: flex; flex-direction: column; }

.mlive .ml-docv-body {
  flex: 1;
  min-height: 0;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  padding: 18px 0;
  background: #e4e8ec;
  overflow: hidden;
}

.mlive .ml-paper {
  position: relative;
  width: 420px;
  padding: 26px 28px 22px;
  background: #fff;
  box-shadow: 0 1px 2px rgb(20 28 38 / 12%), 0 12px 30px -16px rgb(20 28 38 / 35%);
  font-size: 10.5px;
  line-height: 1.45;
  color: #2a2f35;
}

.mlive .ml-inv-top { display: flex; justify-content: space-between; align-items: flex-start; }
.mlive .ml-inv-from { display: flex; flex-direction: column; }
.mlive .ml-inv-from b { font-size: 14px; font-weight: 700; color: #111; margin-bottom: 2px; }
.mlive .ml-inv-ttl { font-size: 17px; letter-spacing: 0.18em; font-weight: 600; color: #3a4552; }
.mlive .ml-inv-meta { display: flex; justify-content: space-between; margin-top: 20px; }
.mlive .ml-inv-to { display: flex; flex-direction: column; }
.mlive .ml-inv-to b { font-weight: 600; color: #111; }
.mlive .ml-inv-k { font-size: 9.5px; text-transform: uppercase; letter-spacing: 0.08em; color: #7a8390; margin-bottom: 2px; }
.mlive .ml-inv-meta dl { display: grid; grid-template-columns: auto auto; gap: 1px 14px; }
.mlive .ml-inv-meta dt { color: #7a8390; }
.mlive .ml-inv-meta dd { font-weight: 600; color: #111; justify-self: start; }
.mlive .ml-inv-lines { margin-top: 18px; }

.mlive .ml-inv-th,
.mlive .ml-inv-tr { display: grid; grid-template-columns: minmax(0, 1fr) 74px 84px; padding: 4px 0; border-bottom: 1px solid #e6e9ec; }
.mlive .ml-inv-th { font-size: 9.5px; text-transform: uppercase; letter-spacing: 0.06em; color: #7a8390; border-bottom-color: #c9d0d7; }
.mlive .ml-inv-th span:nth-child(n+2),
.mlive .ml-inv-tr span:nth-child(n+2) { text-align: right; }
.mlive .ml-inv-sum { display: flex; justify-content: flex-end; align-items: baseline; gap: 18px; margin-top: 10px; font-size: 11px; }
.mlive .ml-inv-sum b { font-size: 13px; color: #111; }
.mlive .ml-inv-pay { margin-top: 22px; }
.mlive .ml-inv-pay .ml-skelbar { animation: none; background: #edf0f2; height: 6px; }

.mlive .ml-scanline {
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 2px;
  background: var(--ml-accent);
  box-shadow: 0 0 14px 4px rgb(69 85 102 / 30%);
  opacity: 0;
  pointer-events: none;
}

.mlive .ml-hl {
  position: absolute;
  left: 0;
  top: 0;
  width: 10px;
  height: 10px;
  border-radius: 3px;
  background: rgb(69 85 102 / 8%);
  box-shadow: inset 0 0 0 1.5px var(--ml-accent);
  opacity: 0;
  pointer-events: none;
  transition: transform 0.45s cubic-bezier(0.45, 0, 0.2, 1), width 0.45s cubic-bezier(0.45, 0, 0.2, 1), height 0.45s cubic-bezier(0.45, 0, 0.2, 1), opacity 0.3s ease;
}

.mlive .ml-hl.is-on { opacity: 1; }
.mlive .ml-ext { flex: 0 0 auto; }
.mlive .ml-match { flex: 0 0 auto; }
.mlive .ml-match .ml-panel-h .ml-tag { font-weight: 500; }

.mlive .ml-chk {
  display: grid;
  grid-template-columns: 16px 132px minmax(0, 1fr);
  align-items: center;
  gap: 8px;
  height: 34px;
  padding: 0 14px;
  color: var(--ml-muted);
  border-bottom: 1px solid var(--ml-line-soft);
}

.mlive .ml-chk:last-child { border-bottom: 0; }
.mlive .ml-chk .ml-ico { opacity: 0; transform: scale(0.6); transition: opacity 0.25s ease, transform 0.3s cubic-bezier(0.2, 0.7, 0.2, 1.4); }
.mlive .ml-chk.is-ok { color: var(--ml-text); }
.mlive .ml-chk.is-ok .ml-ico { opacity: 1; transform: none; color: var(--ml-success); }

.mlive .ml-fly {
  position: absolute;
  left: 0;
  top: 0;
  z-index: 38;
  height: 22px;
  display: flex;
  align-items: center;
  padding: 0 7px;
  border-radius: 3px;
  background: var(--ml-surface);
  box-shadow: 0 0 0 1px var(--ml-accent), 0 6px 16px -4px rgb(28 33 39 / 30%);
  color: var(--ml-text);
  font-weight: 500;
  white-space: nowrap;
  pointer-events: none;
  opacity: 0;
  transition-property: transform, opacity;
  transition-duration: 0.56s, 0.2s;
  transition-timing-function: cubic-bezier(0.45, 0, 0.2, 1), ease;
}

/* ---------- Scene 5: Scheduled briefings ---------- */

.mlive .ml-s5 {
  flex: 1;
  min-height: 0;
  display: grid;
  grid-template-columns: 250px minmax(0, 1fr) 300px;
  gap: 16px;
}

.mlive .ml-clock { display: flex; flex-direction: column; gap: 4px; padding: 16px 14px 18px; }
.mlive .ml-clock-t { font-size: 34px; font-weight: 500; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; line-height: 1.1; }

.mlive .ml-bsrc {
  display: grid;
  grid-template-columns: 22px 64px minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  height: 42px;
  padding: 0 12px;
  border-bottom: 1px solid var(--ml-line-soft);
  color: var(--ml-muted);
}

.mlive .ml-bsrc:last-child { border-bottom: 0; }
.mlive .ml-bsrc .ml-strong { color: var(--ml-text); }

.mlive .ml-brief { display: flex; flex-direction: column; }
.mlive .ml-brief-h { padding: 14px 16px; border-bottom: 1px solid var(--ml-line); }
.mlive .ml-blist { padding: 6px 0; }

.mlive .ml-blist li {
  display: grid;
  grid-template-columns: 8px minmax(0, 1fr) auto;
  align-items: start;
  gap: 12px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--ml-line-soft);
  font-size: 13.5px;
  line-height: 1.45;
}

.mlive .ml-blist .ml-src { margin-top: 1px; }
.mlive .ml-bdot { width: 8px; height: 8px; border-radius: 50%; margin-top: 6px; background: var(--ml-muted); }
.mlive .ml-bdot.t-warn { background: #c48a1b; }
.mlive .ml-bdot.t-ok { background: #3b8a5f; }
.mlive .ml-btext { min-height: 20px; }
.mlive .ml-brief-empty { padding: 18px 16px; }

.mlive .ml-brief-f {
  margin-top: auto;
  display: flex;
  justify-content: space-between;
  padding: 10px 16px;
  border-top: 1px solid var(--ml-line);
  color: var(--ml-muted);
  font-size: 12px;
}

.mlive .ml-deliv { display: flex; flex-direction: column; }
.mlive .ml-chans { display: flex; gap: 6px; padding: 8px 12px; border-bottom: 1px solid var(--ml-line-soft); }
.mlive .ml-chans span { display: inline-flex; align-items: center; gap: 6px; height: 22px; padding: 0 7px; border-radius: 3px; background: var(--ml-subtle); color: var(--ml-muted); font-size: 12px; }

.mlive .ml-rcp {
  display: grid;
  grid-template-columns: 26px minmax(0, 1fr) 14px 18px;
  align-items: center;
  gap: 10px;
  height: 46px;
  padding: 0 12px;
  border-bottom: 1px solid var(--ml-line-soft);
}

.mlive .ml-rcp:last-child { border-bottom: 0; }
.mlive .ml-rcp .ml-sub { margin-top: 0; }
.mlive .ml-rcp-ch { color: var(--ml-muted); }
.mlive .ml-rcp-st { display: grid; place-items: center; width: 18px; height: 18px; border-radius: 50%; color: var(--ml-success); }
.mlive .ml-rcp.is-ok .ml-rcp-st { background: var(--ml-success-soft); animation: ml-pop 0.35s cubic-bezier(0.2, 0.7, 0.2, 1) both; }
.mlive .ml-pend { width: 6px; height: 6px; border-radius: 50%; background: var(--ml-line); }

/* ---------- Scene 6: Report generation ---------- */

.mlive .ml-s6 {
  flex: 1;
  min-height: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 16px;
}

.mlive .ml-prev { flex: 1; display: flex; flex-direction: column; }
.mlive .ml-prog { height: 2px; background: var(--ml-subtle); }
.mlive .ml-prog i { display: block; height: 100%; background: var(--ml-accent); transform: scaleX(0); transform-origin: 0 50%; transition: transform 0.3s ease; }

.mlive .ml-prev-body {
  flex: 1;
  min-height: 0;
  display: grid;
  place-items: center;
  background: #e4e8ec;
}

.mlive .ml-sheet {
  width: 576px;
  height: 324px;
  background: #fff;
  box-shadow: 0 1px 2px rgb(20 28 38 / 12%), 0 14px 32px -16px rgb(20 28 38 / 35%);
  overflow: hidden;
}

.mlive .ml-sheet-empty { padding: 40px 36px; }
.mlive .ml-pg { height: 100%; padding: 22px 26px 18px; display: flex; flex-direction: column; }
.mlive .ml-pg-t { font-size: 15px; font-weight: 600; letter-spacing: -0.01em; display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.mlive .ml-pg-t span { font-size: 11px; font-weight: 400; color: var(--ml-muted); }

.mlive .ml-pg-cover { justify-content: space-between; background: #2b3540; color: #fff; }
.mlive .ml-pg-brand { font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; color: #b9c3cd; }
.mlive .ml-pg-big { font-size: 28px; font-weight: 500; letter-spacing: -0.02em; line-height: 1.15; animation: ml-in 0.6s 0.15s cubic-bezier(0.2, 0.7, 0.2, 1) both; }
.mlive .ml-pg-subt { margin-top: 6px; color: #b9c3cd; font-size: 14px; animation: ml-in 0.6s 0.35s cubic-bezier(0.2, 0.7, 0.2, 1) both; }
.mlive .ml-pg-foot { font-size: 11px; color: #8e9aa6; }

.mlive .ml-bars { flex: 1; display: flex; align-items: flex-end; gap: 18px; padding: 10px 6px 0; border-bottom: 1px solid #c9d0d7; }
.mlive .ml-barc { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: flex-end; height: 100%; }
.mlive .ml-bar { position: relative; width: 100%; height: 0; background: #8a99a8; border-radius: 2px 2px 0 0; }
.mlive .ml-barc:nth-child(1) .ml-bar { background: var(--ml-accent); }
.mlive .ml-bar em { position: absolute; left: 0; right: 0; top: -17px; text-align: center; font-style: normal; font-size: 10.5px; color: var(--ml-muted); opacity: 0; transition: opacity 0.3s ease; }
.mlive .ml-bar.is-done em { opacity: 1; }
.mlive .ml-bar-l { position: absolute; transform: translateY(18px); font-size: 10.5px; color: var(--ml-muted); white-space: nowrap; }
.mlive .ml-barc { position: relative; }
.mlive .ml-pg .ml-bars { margin-bottom: 20px; }

.mlive .ml-pgtab { margin-top: 14px; display: flex; flex-direction: column; }
.mlive .ml-pgtr { display: flex; justify-content: space-between; padding: 9px 2px; border-bottom: 1px solid #e6e9ec; font-size: 12.5px; }
.mlive .ml-pgtr span:last-child { font-weight: 500; font-variant-numeric: tabular-nums; }

.mlive .ml-line { flex: 1; width: 100%; margin-top: 14px; overflow: visible; }
.mlive .ml-axis { stroke: #c9d0d7; stroke-width: 1; }
.mlive .ml-grid { stroke: #e6e9ec; stroke-width: 1; stroke-dasharray: 3 3; }
.mlive .ml-path { fill: none; stroke: var(--ml-accent); stroke-width: 2.2; stroke-linejoin: round; stroke-linecap: round; vector-effect: non-scaling-stroke; }
.mlive .ml-line-l { display: flex; justify-content: space-between; font-size: 10.5px; color: var(--ml-muted); margin-top: 4px; }

.mlive .ml-pdf {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 16px;
}

.mlive .ml-pdf-i {
  flex: 0 0 auto;
  width: 40px;
  height: 50px;
  display: grid;
  place-items: end center;
  padding-bottom: 7px;
  border-radius: 2px 10px 2px 2px;
  background: var(--ml-accent);
  color: #fff;
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.mlive .ml-pdf-m { flex: 1; min-width: 0; }

.mlive .ml-pages { display: flex; flex-direction: column; }
.mlive .ml-thumbs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 9px; padding: 12px; }

.mlive .ml-th {
  position: relative;
  height: 50px;
  border-radius: 2px;
  background: var(--ml-canvas);
  box-shadow: inset 0 0 0 1px var(--ml-line-soft);
  padding: 6px 7px;
  display: flex;
  flex-direction: column;
  gap: 3px;
  transition: box-shadow 0.25s ease, background-color 0.25s ease;
}

.mlive .ml-th i { display: block; height: 3px; border-radius: 1px; background: transparent; }
.mlive .ml-th span { position: absolute; right: 4px; bottom: 2px; font-size: 9px; color: #9aa3ad; font-variant-numeric: tabular-nums; }
.mlive .ml-th.is-on { background: #fff; box-shadow: inset 0 0 0 1px var(--ml-line); animation: ml-pop 0.35s cubic-bezier(0.2, 0.7, 0.2, 1) both; }
.mlive .ml-th.is-cur { box-shadow: inset 0 0 0 1.5px var(--ml-accent); }
.mlive .ml-th.is-on i { background: #d5dbe1; }
.mlive .ml-th.is-on i:first-child { width: 58%; background: #8f9aa6; }
.mlive .ml-th.is-on i:nth-child(2) { width: 82%; }
.mlive .ml-th.is-on i:nth-child(3) { width: 70%; }
.mlive .ml-th.is-on i:nth-child(4) { width: 44%; }
.mlive .ml-th.k-cover.is-on { background: #2b3540; }
.mlive .ml-th.k-cover.is-on i { background: #6d7c8b; }
.mlive .ml-th.k-cover.is-on i:first-child { background: #c7d0d9; margin-top: 12px; }
.mlive .ml-th.k-bars.is-on i:nth-child(n+2) { display: none; }
.mlive .ml-th.k-bars.is-on::after { content: ""; position: absolute; left: 8px; right: 18px; bottom: 7px; height: 22px; background: linear-gradient(90deg, #455566 0 14%, transparent 14% 22%, #a3afbb 22% 36%, transparent 36% 44%, #a3afbb 44% 58%, transparent 58% 66%, #a3afbb 66% 80%, transparent 80% 88%, #a3afbb 88%); clip-path: polygon(0 20%, 14% 20%, 14% 100%, 22% 100%, 22% 45%, 36% 45%, 36% 100%, 44% 100%, 44% 30%, 58% 30%, 58% 100%, 66% 100%, 66% 60%, 80% 60%, 80% 100%, 88% 100%, 88% 40%, 100% 40%, 100% 100%, 0 100%); }
.mlive .ml-th.k-line.is-on i:nth-child(n+2) { display: none; }
.mlive .ml-th.k-line.is-on::after { content: ""; position: absolute; left: 8px; right: 18px; bottom: 8px; height: 22px; border-bottom: 1px solid #c9d0d7; background: linear-gradient(160deg, transparent 46%, #455566 47% 53%, transparent 54%); }

/* ---------- Cursor ---------- */

.mlive .ml-cursor {
  position: absolute;
  left: 0;
  top: 0;
  z-index: 40;
  width: 17px;
  height: 22px;
  pointer-events: none;
  opacity: 0;
  transition-property: transform, opacity;
  transition-duration: 0.5s, 0.3s;
  transition-timing-function: cubic-bezier(0.45, 0, 0.2, 1), ease;
  filter: drop-shadow(0 1px 1.5px rgb(0 0 0 / 22%));
}

.mlive .ml-cursor svg { display: block; }

.mlive .ml-ripple {
  position: absolute;
  z-index: 39;
  width: 26px;
  height: 26px;
  margin: -13px 0 0 -13px;
  border-radius: 50%;
  border: 1.5px solid rgb(69 85 102 / 55%);
  pointer-events: none;
  animation: ml-ripple 0.55s ease-out forwards;
}

/* ---------- Motion ---------- */

@keyframes ml-fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes ml-in { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: none; } }
@keyframes ml-pop { from { opacity: 0; transform: translateY(6px) scale(0.985); } to { opacity: 1; transform: none; } }
@keyframes ml-rot { to { transform: rotate(360deg); } }
@keyframes ml-ripple { from { opacity: 1; transform: scale(0.4); } to { opacity: 0; transform: scale(1.25); } }
@keyframes ml-blink { 50% { opacity: 0; } }
@keyframes ml-shimmer { from { background-position: 100% 0; } to { background-position: -100% 0; } }
@keyframes ml-flash { 0% { background-color: #dde6ee; } 100% { background-color: transparent; } }
@keyframes ml-flash-erp { 0% { background-color: #d6dee7; } 100% { background-color: #fff; } }
@keyframes ml-pulse { 0%, 100% { box-shadow: 0 0 0 0 rgb(69 85 102 / 35%); } 50% { box-shadow: 0 0 0 5px rgb(69 85 102 / 0%); } }

/* ---------- Narrow screens ---------- */

@media (max-width: 720px) {
  .mlive .ml-win { border-radius: 8px; }
}

@media (prefers-reduced-motion: reduce) {
  .mlive *,
  .mlive *::before,
  .mlive *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .mlive .ml-scene { animation: ml-fade 0.6s ease both !important; }
  .mlive .ml-spin,
  .mlive .ml-skel,
  .mlive .ml-skelbar { animation: none !important; }
}

/* ---------- Additions: answer, briefing chart, recent runs ---------- */

.mlive .ml-answer {
  padding: 12px 12px 12px 14px;
  border-bottom: 1px solid var(--ml-line);
  border-left: 3px solid var(--ml-accent);
  font-size: 13.5px;
  line-height: 1.5;
}

.mlive .ml-answer b { font-weight: 600; }
.mlive .ml-answer .ml-cite { margin-left: 4px; vertical-align: 1px; }
.mlive .ml-answer .ml-cite + .ml-cite { margin-left: 3px; }

.mlive .ml-bchart { padding: 14px 16px 10px; }
.mlive .ml-bchart-t { display: flex; justify-content: space-between; font-weight: 500; font-size: 12.5px; }
.mlive .ml-bchart-t span { color: var(--ml-muted); font-weight: 400; font-size: 12px; }
.mlive .ml-bchart-b { position: relative; display: flex; align-items: flex-end; gap: 10px; height: 100px; margin-top: 10px; padding-bottom: 18px; border-bottom: 0; }
.mlive .ml-bc { position: relative; flex: 1; height: 100%; display: flex; align-items: flex-end; justify-content: center; border-bottom: 1px solid #c9d0d7; }
.mlive .ml-bc-bar { display: block; width: 100%; height: 0; border-radius: 2px 2px 0 0; background: #b3bdc7; }
.mlive .ml-bc-bar.is-over { background: #c48a1b; }
.mlive .ml-bc-l { position: absolute; bottom: -17px; font-size: 10.5px; color: var(--ml-muted); }
.mlive .ml-bc-limit { position: absolute; left: 0; right: 0; bottom: 60px; border-top: 1px dashed #8f9aa6; }
.mlive .ml-bc-limit em { position: absolute; right: 0; top: -15px; font-style: normal; font-size: 10px; color: var(--ml-muted); background: #fff; padding-left: 4px; }

.mlive .ml-bruns { flex: 1; overflow: hidden; }
.mlive .ml-brun { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; align-items: center; gap: 10px; height: 36px; padding: 0 12px; border-bottom: 1px solid var(--ml-line-soft); }
.mlive .ml-brun:last-child { border-bottom: 0; }

.mlive .ml-ncount.ml-bump { animation: ml-bump 1.2s ease; }
@keyframes ml-bump { 0% { background: var(--ml-warning-soft); color: var(--ml-warning); transform: scale(1.15); } 30% { transform: none; } 100% { background: var(--ml-subtle); color: var(--ml-muted); } }

.mlive .ml-sec-h { padding: 14px 12px 6px; color: var(--ml-muted); font-size: 12px; font-weight: 500; }
.mlive .ml-filt { display: flex; justify-content: space-between; gap: 10px; align-items: center; height: 34px; margin: 0 12px; border-bottom: 1px solid var(--ml-line-soft); }
.mlive .ml-filt:last-child { border-bottom: 0; }
.mlive .ml-filt b { font-weight: 500; }
