.cm7 {
  --cm7-text: var(--speed-ink, var(--text, #d5e9dd));
  --cm7-muted: var(--speed-muted, var(--text-2, #819d8e));
  --cm7-line: var(--speed-line, var(--line, #193c2a));
  --cm7-accent: var(--speed-bright, var(--accent, #30f799));
  color: var(--cm7-text);
  margin: 22px 0;
  min-width: 0;
  font: inherit;
  font-variant-numeric: tabular-nums;
}

.cm7, .cm7 * { box-sizing: border-box; }
.cm7 .cm7-title { margin: 0 0 6px; font-size: 1.1rem; line-height: 1.4; }
.cm7 :is(.cm7-meta, .cm7-hint, .cm7-status, .cm7-note) {
  margin: 5px 0;
  color: var(--cm7-muted);
  font-size: .75rem;
  line-height: 1.55;
}
.cm7 .cm7-hint { margin-top: 10px; }
.cm7 .cm7-status:empty { display: none; }
.cm7[data-state=stale] .cm7-status { color: var(--warn, #ba8938); }

.cm7-table {
  width: 100%;
  margin: 10px 0 0;
  border: 1px solid var(--cm7-line);
  border-spacing: 0;
  border-radius: 6px;
  table-layout: fixed;
  overflow: hidden;
}
.cm7-table th, .cm7-table td {
  padding: 12px clamp(5px, 1vw, 16px);
  text-align: left;
  overflow-wrap: anywhere;
}
.cm7-table thead th {
  background: color-mix(in srgb, var(--cm7-accent) 5%, transparent);
  font-size: .8rem;
  font-weight: 650;
}
.cm7-table thead th:first-child { width: 24%; }
.cm7-table tbody :is(th, td) { border-top: 1px solid var(--cm7-line); vertical-align: top; }
.cm7-table tr > :not(:first-child) { border-inline-start: 1px solid var(--cm7-line); }
.cm7-model { font-size: .9rem; font-weight: 700; }
.cm7-metric > * { display: block; line-height: 1.35; }
.cm7-metric .cm7-ratio { font-size: clamp(1rem, 2vw, 1.45rem); font-weight: 750; }
.cm7-metric:not(.cm7-missing)[data-mode=ultrafast] .cm7-ratio { color: var(--cm7-accent); }
.cm7-metric .cm7-speed { margin: 3px 0; font-size: .78rem; }
.cm7-samples { color: var(--cm7-muted); font-size: .71rem; }
.cm7-missing { color: var(--cm7-muted); }
.cm7-low { margin-top: 3px; color: var(--warn, #bc8b30); font-size: .68rem; }
.cm7-details { margin-top: 8px; color: var(--cm7-muted); font-size: .75rem; line-height: 1.7; }
.cm7-details summary { cursor: pointer; min-height: 30px; padding: 4px 0; }
.cm7-details a { color: inherit; text-underline-offset: 3px; }
.cm7-details :is(summary, a):focus-visible { outline: 2px solid var(--cm7-accent); outline-offset: 3px; }

.cm7[data-compact=true] { margin: 18px 0 4px; padding-top: 14px; border-top: 1px solid var(--cm7-line); }
.cm7[data-compact=true] .cm7-title { font-size: .87rem; }
.cm7[data-compact=true] .cm7-table :is(th, td) { padding: 9px 5px; }
.cm7[data-compact=true] .cm7-table thead th,
.cm7[data-compact=true] .cm7-model,
.cm7[data-compact=true] .cm7-speed { font-size: .72rem; }
.cm7[data-compact=true] .cm7-ratio { font-size: 1.03rem; }
.cm7[data-compact=true] :is(.cm7-meta, .cm7-hint, .cm7-note, .cm7-samples) { font-size: .66rem; }

@media (max-width: 520px) {
  .cm7-table :is(th, td) { padding: 9px 5px; }
  .cm7-table thead th:first-child { width: 26%; }
  .cm7-table thead th, .cm7-model { font-size: .72rem; }
  .cm7-metric .cm7-speed, .cm7-samples { font-size: .68rem; }
}
