.cm-share-chart {
  display: flex;
  flex-direction: column;
  min-height: 283px;
}
.cm-share-body { flex: 1; display: flex; flex-direction: column; min-width: 0; }
.cm-share-visual {
  flex: 1;
  display: grid;
  grid-template-columns: minmax(0, .9fr) minmax(130px, 1.15fr);
  align-items: center;
  gap: 9px;
  min-width: 0;
  margin-block: 8px 6px;
}
.cm-share-ring { position: relative; width: min(100%, 172px); aspect-ratio: 1; margin-inline: auto; }
.cm-share-ring svg { display: block; width: 100%; height: auto; }
.cm-share-track { stroke: #edf2f7; }
.cm-share-arc { transition: opacity .16s ease; }
.cm-share-arc.is-muted { opacity: .28; }
.cm-share-center {
  position: absolute;
  inset: 0;
  display: grid;
  align-content: center;
  justify-items: center;
  gap: 3px;
  line-height: 1.1;
}
.cm-share-center strong { color: var(--cm-ink); font-size: 1.55rem; font-weight: 720; letter-spacing: -.025em; }
.cm-share-center strong.cm-share-long { font-size: .9rem; }
.cm-share-center span { color: var(--cm-muted); font-size: .75rem; }
.cm-share-legend { display: grid; align-content: center; min-width: 0; }
.cm-page .cm-share-legend-item {
  display: grid;
  grid-template-columns: 8px minmax(0, 1fr) max-content max-content;
  align-items: center;
  justify-content: stretch;
  gap: 5px;
  width: 100%;
  min-width: 0;
  min-height: 27px;
  padding: 4px 3px;
  border: 0;
  border-block-end: 1px solid #e9eef5;
  border-radius: 0;
  color: var(--cm-ink);
  background: transparent;
  font: inherit;
  font-size: .75rem;
  line-height: 1.4;
  text-align: left;
}
.cm-page .cm-share-legend-item:last-child { border-block-end-color: transparent; }
.cm-page .cm-share-legend-item:is(:hover, [aria-pressed=true]) { background: #eef4fc; }
.cm-share-dot { width: 8px; height: 8px; border-radius: 2px; }
.cm-share-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
.cm-share-count { color: var(--cm-muted); text-align: end; }
.cm-share-value { min-inline-size: 4ch; font-weight: 650; text-align: end; }
.cm-share-body .cm-share-empty { flex: 1; }
.cm-share-footer {
  position: relative;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 6px 9px;
  flex-wrap: wrap;
  margin-top: auto;
  color: var(--cm-muted);
  font-size: .75rem;
}
.cm-share-footer .cm-share-all { margin: 0; }
.cm-share-footer .cm-share-all[open] { flex-basis: 100%; }
.cm-share-all > summary { padding: 3px 0; color: var(--cm-blue); }
.cm-share-note { margin: 0; }
.cm-share-table-wrap {
  overflow: auto;
  max-height: 196px;
  margin-block: 6px 4px;
  border: 1px solid var(--cm-line);
  border-radius: 6px;
}
.cm-share-table { inline-size: 100%; border-collapse: collapse; }
.cm-share-table :is(th, td) { padding: 5px 7px; border-block-end: 1px solid var(--cm-line); font-size: .76rem; }
.cm-share-table th { font-weight: 550; text-align: start; }
.cm-share-table thead { position: sticky; top: 0; z-index: 1; background: var(--cm-soft); }
.cm-share-table :is(th, td):not(:first-child) { color: var(--cm-ink); text-align: end; }
.cm-share-table tbody tr:last-child :is(th, td) { border-block-end: 0; }
@media (max-width: 820px) { .cm-share-chart { min-height: 0; } }
@media (max-width: 580px) { .cm-page .cm-share-legend-item { min-height: 33px; } }
@media (max-width: 390px) {
  .cm-share-visual { grid-template-columns: minmax(73px, .75fr) minmax(142px, 1.25fr); gap: 7px; }
  .cm-share-center strong { font-size: 1.15rem; }
  .cm-share-center span { font-size: .72rem; }
}
@media (prefers-reduced-motion: reduce) { .cm-share-arc { transition: none; } }
