  .tracking-embed, .tracking-embed * { box-sizing: border-box; }

  .tracking-embed {
    --page: #f9f9f7;
    --surface: #fcfcfb;
    --ink: #0b0b0b;
    --ink-soft: #52514e;
    --ink-mute: #6f6e69;
    --gridline: #e1e0d9;
    --baseline: #c3c2b7;
    --border: rgba(11,11,11,0.10);
    --series-1: #2a78d6;
    --series-2: #eb6834;
    --series-3: #1baf7a;
    --diff-bg: #fbf7ec;
    --diff-border: #ecdfb8;
    --diff-date: #8a6d1f;
    --row-alt: #f4f4f2;
    --thead-bg: #2d3b4e;
    --thead-ink: #ffffff;
    --tooltip-bg: #16181c;
    --tooltip-ink: #ffffff;
  }

  .tracking-embed {
    background: transparent;
    color: var(--ink);
    font-family: system-ui, -apple-system, "Segoe UI", "Microsoft JhengHei", sans-serif;
    max-width: 1180px;
    margin: 0 auto;
    padding: 6px 20px 28px;
  }
  .tracking-embed .card { background: transparent; border: 1px solid var(--border); border-radius: 6px; padding: 34px 34px 28px; }

  .tracking-embed .eyebrow { font-size: .7647rem; font-weight: 600; letter-spacing: 0.06em; color: var(--accent, #1a67c2); text-transform: uppercase; margin: 0 0 12px; }
  .tracking-embed h2 { font-size: 1.5294rem; font-weight: 600; margin: 0 0 12px; line-height: 1.3; text-wrap: balance; }
  .tracking-embed .subtitle { font-size: .9706rem; color: var(--ink-soft); margin: 0 0 28px; line-height: 1.7; max-width: 70ch; }
  .tracking-embed .subtitle b { color: var(--ink); font-weight: 600; }
  .tracking-embed svg { display: block !important; width: 100% !important; height: auto !important; max-width: none !important; overflow: visible; }
  .tracking-embed svg text { font-family: system-ui, -apple-system, "Segoe UI", "Microsoft JhengHei", sans-serif; }
  .tracking-embed .chart-shell { position: relative; }
  .tracking-embed .hint { display: flex; justify-content: center; align-items: center; gap: 6px; font-size: .7353rem; color: var(--ink-mute); margin-top: 6px; }

  .tracking-embed .tracking-caption { font-size: .7353rem; line-height: 1.6; color: var(--ink-mute); margin: 6px 0 0; text-align: right; text-wrap: balance; }
  .tracking-embed .legend { display: flex; justify-content: center; column-gap: 24px; row-gap: 8px; align-items: center; margin-top: 8px; flex-wrap: wrap; }
  .tracking-embed .legend-item { display: flex; align-items: center; gap: 9px; font-size: .8529rem; color: var(--ink-soft); }
  .tracking-embed .legend-swatch { width: 14px; height: 14px; flex: 0 0 auto; }
  .tracking-embed .table-scroll { overflow-x: auto; }

  .tracking-embed table { display: table; border-collapse: collapse; width: auto; min-width: 360px; margin: 0 auto; }
  .tracking-embed thead th { background: var(--thead-bg); color: var(--thead-ink); font-size: .8235rem; font-weight: 600; text-align: left; padding: 11px 13px; white-space: nowrap; }
  .tracking-embed thead th:first-child { border-radius: 6px 0 0 0; }
  .tracking-embed thead th:last-child { border-radius: 0 6px 0 0; }
  .tracking-embed tbody td { font-size: .8235rem; padding: 10px 13px; border-bottom: 1px solid var(--gridline); color: var(--ink); }
  .tracking-embed tbody tr:nth-child(even) td { background: var(--row-alt); }
  .tracking-embed td.no { color: var(--ink-mute); font-variant-numeric: tabular-nums; width: 34px; }
  .tracking-embed td.date { font-variant-numeric: tabular-nums; white-space: nowrap; }
  .tracking-embed td.result-detected { font-weight: 600; }
  .tracking-embed td.result-neg { color: var(--ink-mute); }
  .tracking-embed .dot { display: inline-block; width: 9px; height: 9px; border-radius: 50%; margin-right: 8px; }
  .tracking-embed td[data-col="type"] { white-space: nowrap; }

  .tracking-embed .table-card .eyebrow { margin-bottom: 8px; text-align: center; }

  @media (max-width: 560px) {

    .tracking-embed { padding: 6px 14px 24px; }
    .tracking-embed .card { padding: 24px 16px 20px; }
    .tracking-embed .table-scroll { overflow-x: visible; }
    .tracking-embed table { display: block; min-width: 0; width: 100%; }
    .tracking-embed thead { display: none; }
    .tracking-embed tbody { display: block; width: 100%; }
    .tracking-embed tr { display: flex; align-items: baseline; gap: 6px; border: 1px solid var(--gridline); border-radius: 6px; padding: 10px 9px; margin-bottom: 8px; }
    .tracking-embed tr:nth-child(even) { background: var(--row-alt); }
    .tracking-embed tbody td { display: block; padding: 0; border-bottom: none; background: transparent !important; }
    .tracking-embed td.no { display: none; }
    .tracking-embed td.date { flex: 0 0 auto; font-weight: 600; font-size: .625rem; white-space: nowrap; font-variant-numeric: tabular-nums; }
    .tracking-embed td[data-col="type"] { flex: 0 0 auto; font-size: .625rem; color: var(--ink-soft); white-space: nowrap; display: flex; align-items: center; }
    .tracking-embed td[data-col="type"] .dot { width: 7px; height: 7px; margin-right: 5px; }
    .tracking-embed td.result-detected, .tracking-embed td.result-neg { flex: 1 1 auto; min-width: 0; text-align: right; font-size: .65rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

    .tracking-embed .tracking-caption { display: none; }
    .tracking-embed .chart-strip-svg { margin-top: 8px; }

    .tracking-embed .legend { display: grid; grid-template-columns: repeat(2, auto); justify-content: center; column-gap: 14px; row-gap: 10px; }
    .tracking-embed .legend-item { font-size: .625rem; gap: 7px; }
    .tracking-embed .legend-swatch { width: 12px; height: 12px; }
  }

  .tracking-embed .diff-cards { display: flex; gap: 20px; flex-wrap: wrap; margin-top: 4px; }
  .tracking-embed .diff-card { flex: 1 1 320px; }
  .tracking-embed .diff-card:not(:first-child) { margin-top: 24px; }
  .tracking-embed .diff-date { font-size: .7941rem; font-weight: 600; color: var(--ink-soft); font-variant-numeric: tabular-nums; margin-bottom: 10px; padding-bottom: 8px; border-bottom: 1px solid var(--border); }
  .tracking-embed .diff-label { font-size: .6765rem; font-weight: 600; letter-spacing: 0.05em; text-transform: uppercase; color: var(--ink-mute); opacity: 0.85; margin: 12px 0 4px; }
  .tracking-embed .diff-label:first-of-type { margin-top: 0; }
  .tracking-embed .diff-text { font-size: .8235rem; line-height: 1.7; color: var(--ink); }
  .tracking-embed .editor-note { display: block; margin-top: 8px; font-size: .7647rem; font-style: italic; color: var(--ink-mute); }

  .tracking-embed .footnote { margin-top: 22px; font-size: .7941rem; line-height: 1.75; color: var(--ink-mute); border-top: 1px solid var(--gridline); padding-top: 16px; }

  .tracking-embed .hit { fill: transparent; cursor: pointer; }
  .tracking-embed .mk { cursor: pointer; }
  .tracking-embed .tooltip {
    position: absolute; pointer-events: none;
    background: var(--tooltip-bg); color: var(--tooltip-ink);
    font-size: .7647rem; line-height: 1.55; padding: 8px 12px; border-radius: 6px;
    box-shadow: 0 6px 20px rgba(0,0,0,0.18);
    opacity: 0; transform: translate(-50%, -100%) translateY(-10px);
    transition: opacity 0.1s ease; white-space: nowrap; z-index: 5;
  }
  .tracking-embed .tooltip.show { opacity: 1; }
  .tracking-embed .tooltip b { font-weight: 600; }

.prose #stage-eus .diff-cards{
  display:flex; flex-wrap:nowrap; gap:18px; margin-top:4px;
  overflow-x:auto; scroll-snap-type:x mandatory;
  -webkit-overflow-scrolling:touch; scrollbar-width:none;
}
.prose #stage-eus .diff-cards::-webkit-scrollbar{display:none}
.prose #stage-eus .diff-card{
  flex:0 0 100%; scroll-snap-align:center; margin-top:0;
  background:var(--surface, #fcfcfb); border:1px solid var(--border, rgba(11,11,11,.10));
  border-radius:6px; padding:16px 18px 18px;
}

.prose #stage-eus .eus-nav{
  display:flex; align-items:center; justify-content:center; gap:14px;
  margin:.9rem 0 0; font-family:var(--sans);
}
.prose #stage-eus .eus-btn{
  width:2rem; height:2rem; flex:0 0 auto; cursor:pointer;
  display:inline-flex; align-items:center; justify-content:center;
  font:inherit; font-size:1rem; line-height:1;
  color:var(--ink-soft, #52514e); background:var(--surface, #fcfcfb);
  border:1px solid var(--border, rgba(11,11,11,.10)); border-radius:999px;
  transition:background .15s ease, color .15s ease;
}

@media (hover:hover){
  .prose #stage-eus .eus-btn:hover:not(:disabled){background:var(--row-alt, #f4f4f2); color:var(--ink, #0b0b0b)}
}
.prose #stage-eus .eus-btn:disabled{opacity:.35; cursor:default}
.prose #stage-eus .eus-label{
  font-size:.7647rem; letter-spacing:.03em; color:var(--ink-mute, #6f6e69);
  font-variant-numeric:tabular-nums; min-width:11em; text-align:center;
}

.prose #stage-table .eyebrow{margin-bottom:8px}

@media (max-width:620px){

  .prose #stage-chart h2{
    font-size:clamp(.6rem, 4.4vw, 1.1rem);
    white-space:nowrap; line-height:1.35; letter-spacing:-.01em;
  }

  .prose #stage-eus .diff-date{font-size:.75rem}
  .prose #stage-eus .diff-label{font-size:.625rem}
  .prose #stage-eus .diff-text{font-size:.775rem; line-height:1.75}
  .prose #stage-eus .editor-note{font-size:.7rem}
}
