.composition-figure {
  margin: 0;
  min-width: 0;
}
.composition-bar {
  display: flex;
  width: 100%;
  height: 36px;
  margin: 24px 0 0;
  background: var(--bg);
}
.composition-segment {
  flex-grow: 0;
  flex-shrink: 0;
  min-width: 0;
  background: var(--chart-solo-soft);
  box-shadow: inset -1px 0 var(--bg);
  cursor: pointer;
}
.composition-segment:nth-child(even) {
  background: color-mix(in srgb, var(--chart-s1) 50%, var(--bg));
}
.composition-segment[data-subject="true"] {
  background: var(--chart-s1);
}
.composition-segment[data-muted] {
  background: var(--line-strong);
}
.composition-segment:focus-visible {
  outline-offset: 2px;
  z-index: 1;
}
.composition-axis {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 12px;
  font-size: 13px;
  color: var(--fg-muted);
  padding-top: 12px;
  line-height: 1.4;
  overflow-wrap: anywhere;
}
.composition-axis > :nth-child(2) {
  text-align: center;
}
.composition-axis > :last-child {
  text-align: right;
}
.report .composition-denominator {
  font-size: 13px;
  color: var(--fg-muted);
  margin: 8px 0 16px;
}
.composition-round {
  position: relative;
  width: min(100%, 280px);
  aspect-ratio: 1;
  margin: 16px auto;
}
.composition-round canvas {
  position: absolute;
  inset: 0;
}
.composition-total {
  position: absolute;
  inset: 35%;
  display: grid;
  place-items: center;
  font:
    500 16px/1.4 ui-monospace,
    monospace;
  overflow-wrap: anywhere;
  text-align: center;
  pointer-events: none;
}
.composition-legend {
  display: grid;
  gap: 8px;
  max-width: 560px;
  margin: 16px auto;
}
.composition-key {
  display: grid;
  grid-template-columns: 12px minmax(0, 1fr) auto;
  align-items: baseline;
  gap: 8px;
  min-height: 28px;
  cursor: pointer;
  font-size: 13px;
  overflow-wrap: anywhere;
}
.composition-key i {
  width: 10px;
  height: 10px;
}
.composition-key[data-muted] i {
  background: var(--line-strong) !important;
}
.composition-key[data-subject="true"],
.composition-table tr[data-subject="true"] > th {
  font-weight: 600;
}
.composition-key[data-pointed],
.composition-table tr[data-pointed] > th {
  text-decoration: underline;
}
.composition-table {
  max-height: 540px;
  overflow: auto;
}
.widget .composition-table table {
  width: 100%;
  min-width: 0;
  table-layout: fixed;
}
.composition-table .number {
  text-align: right;
}
.composition-table > table > thead > tr > :first-child {
  width: 36%;
}
.composition-table > table > thead > tr > :nth-child(2) {
  width: 40%;
}
.composition-table caption {
  text-align: left;
  font-size: 13px;
  color: var(--fg-muted);
  padding: 8px 0;
}
.composition-table th,
.composition-table td {
  overflow-wrap: anywhere;
}
.composition-table th[scope="row"] {
  font-weight: 400;
}
.composition-table [data-composition-part] {
  cursor: pointer;
}
.composition-members {
  padding: 8px 0;
  border: 0;
}
.composition-tip,
.chart-detail {
  position: absolute;
  z-index: 90;
  max-width: min(360px, calc(100vw - 16px));
  padding: 10px 12px;
  border: 1px solid var(--tip-line);
  border-radius: 4px;
  background: var(--tip-bg);
  color: var(--tip-fg);
  font-size: 13px;
  line-height: 1.4;
  overflow-wrap: anywhere;
  pointer-events: none;
  scroll-margin-block: 16px;
}
@media print {
  .composition-tip,
  .chart-detail {
    display: none !important;
  }
  .composition-table {
    max-height: none;
    overflow: visible;
  }
  .composition-table tr {
    break-inside: avoid;
  }
  .composition-segment,
  .composition-key i {
    print-color-adjust: exact;
  }
}
