.armp {
  --armp-card: var(--ar-bg, #fff);
  --armp-text: var(--ar-text, #19304b);
  --armp-muted: var(--ar-sub, #728197);
  --armp-border: var(--ar-border, #e2e9f3);
  --armp-soft: var(--ar-soft, #f6f8fc);
  --armp-band: #f5f7fc;
  --armp-band-alt: #fbfcfe;
  --armp-selection: #f0f4fc;
  --armp-positive: #16824f;
  --armp-negative: #c7434f;
  position: relative;
  background: var(--armp-card);
  border: 1px solid var(--armp-border);
  border-radius: 10px;
  margin-bottom: 28px;
  color: var(--armp-text);
  min-width: 0;
}
:root[data-theme="dark"] .armp {
  --armp-card: #1d293b;
  --armp-text: #e5edf8;
  --armp-muted: #b6c6dd;
  --armp-border: #465b78;
  --armp-soft: #22344f;
  --armp-band: #233148;
  --armp-band-alt: #1e2c40;
  --armp-selection: #2b3e59;
  --armp-positive: #77d6a2;
  --armp-negative: #ff959b;
}
.armp button {
  font: inherit;
  border: 1px solid var(--armp-border);
  border-radius: 6px;
  color: var(--armp-text);
  background: var(--armp-card);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
}
.armp button:hover {
  background: var(--armp-soft);
}
.armp button:focus-visible,
.armp input:focus-visible {
  outline: 2px solid #769bd3;
  outline-offset: 3px;
}
.armp-heading {
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 22px 24px 18px;
  flex-wrap: wrap;
}
.armp-heading > div:first-child {
  flex: 1;
}
.armp .armp-heading h2 {
  font-size: 18px;
  line-height: 1.5;
  margin: 0;
}
.armp .armp-heading p {
  margin: 5px 0 0;
  font-size: 13px;
  color: var(--armp-muted);
}
.armp-summary {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 4px;
}
.armp-summary > span {
  font-size: 13px;
  color: var(--armp-muted);
}
.armp-summary > strong {
  font-size: 30px;
  line-height: 1.3;
  letter-spacing: -0.5px;
}
.armp-summary small {
  font-size: 13px;
  font-weight: 400;
  color: var(--armp-muted);
  margin-left: 6px;
}
.armp-metric {
  display: flex;
  padding: 3px;
  gap: 0;
  background: var(--armp-soft);
  border: 1px solid var(--armp-border);
  border-radius: 6px;
}
.armp-metric button {
  font-size: 13px;
  height: 34px;
  padding: 0 12px;
  border: 0;
  background: transparent;
  white-space: nowrap;
}
.armp-metric button[aria-pressed="true"] {
  background: var(--armp-card);
  font-weight: 650;
  box-shadow: 0 1px 4px #152f4514;
}
.armp-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  padding: 0 24px 13px;
}
.armp-legend {
  display: flex;
  gap: 7px;
  flex-wrap: wrap;
}
.armp-legend button {
  font-size: 13px;
  padding: 6px 9px;
  background: var(--armp-soft);
  border: 0;
  white-space: nowrap;
}
.armp-legend button.is-off {
  color: var(--armp-muted);
  background: transparent;
}
.armp-legend button.is-off i {
  opacity: 0.35;
}
.armp i {
  display: inline-block;
  width: 9px;
  height: 9px;
  border-radius: 2px;
  flex-shrink: 0;
}
.armp-menu {
  position: relative;
  flex-shrink: 0;
}
.armp-menu > button {
  font-size: 14px;
  font-weight: 600;
  height: 40px;
  padding: 0 13px;
}
.armp-popover {
  position: absolute;
  right: 0;
  top: 46px;
  z-index: 15;
  background: var(--armp-card);
  border: 1px solid var(--armp-border);
  border-radius: 8px;
  box-shadow: 0 10px 30px #152f4529;
  width: 250px;
  padding: 15px;
}
.armp-popover > strong {
  font-size: 14px;
}
.armp .armp-popover label {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 8px;
  padding: 8px 0;
  font-size: 14px;
  color: var(--armp-text);
  font-weight: 400;
}
.armp-popover input {
  accent-color: #6486bc;
}
.armp-popover > button {
  height: 36px;
  width: 100%;
  font-size: 13px;
  margin-top: 8px;
}
.armp-scroll {
  overflow-x: auto;
  min-width: 0;
  padding: 0 15px;
}
.armp-svg {
  display: block;
  width: 100%;
  height: auto;
  max-height: 430px;
  overflow: visible;
}
.armp-frame {
  pointer-events: none;
}
.armp-band-odd {
  fill: var(--armp-band);
}
.armp-band-even {
  fill: var(--armp-band-alt);
}
.armp-band-selected {
  fill: var(--armp-selection);
  stroke: #b4c5e3;
  stroke-width: 1;
}
.armp-grid {
  stroke: var(--armp-border);
  stroke-width: 1;
}
.armp-axis,
.armp-axis-unit,
.armp-axis-year {
  font-size: 12px;
  fill: var(--armp-muted);
}
.armp-axis-unit {
  font-size: 11px;
}
.armp-axis-year {
  font-size: 11px;
}
.armp-month {
  fill: var(--armp-text);
  font-size: 13px;
  font-weight: 600;
}
.armp-bar-target {
  cursor: pointer;
}
.armp-bar-target:hover .armp-bar {
  filter: brightness(0.95);
}
.armp-bar-target:focus {
  outline: none;
}
.armp-bar-target:focus-visible .armp-bar,
.armp-bar-target:focus-visible .armp-zero {
  stroke: var(--armp-text);
  stroke-width: 1.5;
}
.armp-detail {
  padding: 16px 24px;
  display: grid;
  grid-template-columns: 65px repeat(var(--armp-count), minmax(0, 1fr)) minmax(
      100px,
      0.8fr
    );
  gap: 15px;
  border-top: 1px solid var(--armp-border);
  background: var(--armp-soft);
  border-radius: 0 0 10px 10px;
}
.armp-detail > div {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}
.armp-detail span {
  font-size: 11px;
  color: var(--armp-muted);
  display: flex;
  align-items: center;
  gap: 5px;
}
.armp-detail strong {
  font-size: 16px;
}
.armp-picked strong {
  font-size: 19px;
}
.armp-detail-total {
  border-left: 1px solid var(--armp-border);
  padding-left: 13px;
}
.armp-detail-total strong {
  color: var(--armp-positive);
}
.armp-empty {
  padding: 30px 24px;
  font-size: 14px;
  color: var(--armp-muted);
}
.armp-tooltip {
  position: fixed;
  z-index: 600;
  pointer-events: none;
  background: var(--armp-card);
  color: var(--armp-text);
  border: 1px solid var(--armp-border);
  border-radius: 12px;
  box-shadow: 0 12px 40px #18304d2b;
  padding: 18px 20px;
  font-size: 13px;
  line-height: 1.5;
}
.armp-tip-month {
  font-size: 14px;
}
.armp-tip-product {
  font-size: 16px;
  font-weight: 650;
  display: flex;
  align-items: center;
  gap: 9px;
  margin-top: 12px;
}
.armp-tip-basis {
  display: block;
  color: var(--armp-muted);
  font-size: 13px;
  margin-top: 7px;
}
.armp-tip-value {
  font-size: 30px;
  font-weight: 700;
  margin-bottom: 13px;
}
.armp-tip-value small {
  font-size: 14px;
  font-weight: 400;
  margin-left: 5px;
}
.armp-tip-rows {
  border-top: 1px solid var(--armp-border);
  padding-top: 12px;
  display: flex;
  flex-direction: column;
  gap: 9px;
}
.armp-tip-rows > div {
  display: flex;
  justify-content: space-between;
  gap: 10px;
}
.armp-tip-rows span {
  color: var(--armp-muted);
}
.armp-tip-rows strong {
  font-size: 14px;
  white-space: nowrap;
}
.armp-tip-comparison {
  margin-top: 12px;
}
.armp-tip-comparison p {
  font-size: 12px;
  color: var(--armp-muted);
  margin: 0;
}
.armp-yoy[data-direction="positive"] {
  color: var(--armp-positive);
}
.armp-yoy[data-direction="negative"] {
  color: var(--armp-negative);
}
@media (max-width: 1000px) {
  .armp-heading {
    gap: 15px;
  }
  .armp-detail {
    grid-template-columns: 65px repeat(3, minmax(0, 1fr));
  }
  .armp-toolbar {
    align-items: flex-start;
  }
  .armp-summary > strong {
    font-size: 27px;
  }
}
@media (max-width: 600px) {
  .armp-heading {
    padding: 17px 15px 14px;
    gap: 12px;
  }
  .armp-heading > div:first-child {
    flex-basis: 100%;
  }
  .armp-heading h2 {
    font-size: 17px;
  }
  .armp-summary {
    align-items: flex-start;
    flex: 1;
  }
  .armp-summary > span {
    font-size: 12px;
  }
  .armp-summary > strong {
    font-size: 25px;
  }
  .armp-metric button {
    padding: 0 9px;
  }
  .armp-toolbar {
    padding: 0 15px 12px;
    flex-wrap: wrap;
  }
  .armp-legend button {
    font-size: 12px;
  }
  .armp-menu {
    margin-left: auto;
  }
  .armp-scroll {
    padding: 0 5px;
  }
  .armp-detail {
    padding: 15px;
    grid-template-columns: 60px repeat(2, minmax(0, 1fr));
    gap: 12px;
  }
  .armp-picked {
    grid-row: span 2;
  }
  .armp-detail strong {
    font-size: 15px;
  }
  .armp-detail-total {
    border-left: 0;
    padding-left: 0;
  }
}
