.wqm {
  --wqm-surface: #14151b;
  --wqm-track: #292b35;
  --wqm-payment: #737d94;
  --wqm-basic: #bbc8ff;
  --wqm-extra: #dfbc8c;
  --wqm-error: #ffc0ae;
}
.wqb-page .wqm-jump { margin-top: 8px; }
.wqm-grid, .wqm-partner-grid {
  display: grid;
  gap: clamp(12px, 2.3vw, 26px);
  margin-top: clamp(22px, 3vw, 36px);
}
.wqm-grid--savings { grid-template-columns: minmax(0, 1fr) minmax(0, 1.18fr); }
.wqm-partner-grid { grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); }
.wqm-grid--charts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.wqm .wqm-panel {
  min-width: 0;
  padding: clamp(15px, 2.4vw, 30px);
  border: 1px solid var(--wqb-line);
  background: var(--wqm-surface);
}
.wqm-panel-heading, .wqm-row-label, .wqm-breakdown > div {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 4px 12px;
}
.wqm-panel-heading { flex-wrap: wrap; }
.wqm-fields { display: grid; gap: 9px 12px; align-items: end; }
.wqm-fields--savings { grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); }
.wqm-fields--product, .wqm-fields--assumptions { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.wqm-field {
  display: grid;
  gap: 5px;
  min-width: 0;
  color: var(--wqb-muted);
  font-size: 13px;
  line-height: 1.4;
}
.wqm-field :is(input, select) {
  display: block;
  width: 100%;
  min-width: 0;
  min-height: 43px;
  border: 1px solid #535767;
  border-radius: 2px;
  padding: 7px 8px;
  background: #101116;
  color: var(--wqb-ink);
  font: inherit;
  font-size: 16px;
  font-variant-numeric: tabular-nums;
  color-scheme: dark;
  box-sizing: border-box;
}
.wqm-field select { font-size: 14px; }
.wqm :is(input, select):focus-visible { outline: 2px solid var(--wqb-blue); outline-offset: 2px; }
.wqm-field input[aria-invalid="true"] { border-color: var(--wqm-error); }
.wqm-field input:disabled { opacity: .58; }
.wqm-check {
  display: flex;
  align-items: center;
  gap: 8px;
  width: fit-content;
  min-height: 42px;
  margin-top: 6px;
  color: var(--wqb-muted);
  font-size: 13px;
  cursor: pointer;
}
.wqm-check input { width: 16px; height: 16px; flex: 0 0 auto; accent-color: var(--wqm-basic); }
.wqm p:is(.wqm-help, .wqm-status, .wqm-note, .wqm-trend-readout) { color: var(--wqb-muted); font-size: 13px; line-height: 1.65; }
.wqm p.wqm-help { margin-top: 5px; }
.wqm p.wqm-status { margin-top: 9px; }
.wqm p.wqm-status[data-error] { color: var(--wqm-error); }
.wqm p.wqm-note { margin-top: 15px; }
.wqm .wqm-metrics { display: grid; gap: 12px; margin-top: 17px; }
.wqm-metrics--savings { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.wqm-metrics--savings .wqm-metric { padding-top: 13px; }
.wqm-metric {
  min-width: 0;
  padding-block: 11px 3px;
  border-top: 1px solid var(--wqb-line);
}
.wqm-metric dt, .wqm-breakdown dt { color: var(--wqb-muted); font-size: 13px; }
.wqm-metric dd {
  margin: 2px 0 0;
  color: var(--wqb-ink);
  font-size: clamp(27px, 3.65vw, 53px);
  font-weight: 650;
  line-height: 1.16;
  letter-spacing: -.05em;
  font-variant-numeric: tabular-nums;
  overflow-wrap: anywhere;
}
.wqm-metric dd[data-compact] { font-size: clamp(19px, 2vw, 31px); letter-spacing: -.03em; }
.wqm-metric--accent dd { color: var(--wqm-basic); }
.wqm .wqm-breakdown { display: grid; margin-top: 15px; }
.wqm-breakdown > div { padding-block: 8px; border-top: 1px solid var(--wqb-line); }
.wqm-breakdown dd, .wqm-row-label strong { margin: 0; color: var(--wqb-ink); font-variant-numeric: tabular-nums; text-align: right; overflow-wrap: anywhere; }
.wqm-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 15px;
  margin: 11px 0 9px;
  padding: 0;
  color: var(--wqb-muted);
  font-size: 12px;
  list-style: none;
}
.wqm-legend li { display: inline-flex; align-items: center; gap: 6px; }
.wqm-legend li::before { content: ""; width: 9px; height: 9px; background: var(--wqm-series); }
.wqm-paid { --wqm-series: var(--wqm-payment); }
.wqm-base { --wqm-series: var(--wqm-basic); }
.wqm-extra { --wqm-series: var(--wqm-extra); }
.wqm-bars { display: grid; gap: 5px; }
.wqm-row {
  display: block;
  width: 100%;
  padding: 9px 8px;
  border: 1px solid transparent;
  background: transparent;
  color: var(--wqb-ink);
  font: inherit;
  text-align: start;
}
button.wqm-row { cursor: pointer; }
button.wqm-row:hover, .wqm-row[aria-pressed="true"] { border-color: #646e8f; background: #1e2231; }
.wqm-row-label { margin-bottom: 6px; font-size: 13px; line-height: 1.4; }
.wqm-row-label > span { min-width: 0; }
.wqm-row-label strong { min-width: 0; }
.wqm-track { display: flex; width: 100%; height: 8px; overflow: hidden; background: var(--wqm-track); }
.wqm-track > span { flex: 0 0 var(--wqm-size, 0%); background: var(--wqm-series); transition: flex-basis .22s ease; }
.wqm-row-detail { display: flex; flex-wrap: wrap; gap: 4px 14px; margin-top: 5px; color: var(--wqb-muted); font-size: 12px; }
.wqm-row-detail strong { font-weight: 500; font-variant-numeric: tabular-nums; }
.wqm-text-button {
  min-height: 34px;
  padding: 4px 0;
  border: 0;
  background: transparent;
  color: var(--wqb-blue);
  font: inherit;
  font-size: 13px;
  text-decoration: underline;
  text-underline-offset: .25em;
  cursor: pointer;
}
.wqm-products { margin-top: 12px; }
.wqm-products fieldset { min-width: 0; margin: 14px 0 0; padding: 7px 0 0; border: 0; border-top: 1px solid var(--wqb-line); }
.wqm-products legend { padding: 0 8px 0 0; color: var(--wqb-ink); font-size: 14px; font-weight: 650; }
.wqm-fields--assumptions { margin-top: 18px; padding-top: 14px; border-top: 1px solid var(--wqb-line); }
.wqm-presets, .wqm-trend-meta {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 5px 8px;
}
.wqm-presets { margin-top: 9px; }
.wqm-presets button {
  min-height: 36px;
  padding: 4px 8px;
  border: 1px solid #535767;
  border-radius: 2px;
  background: transparent;
  color: var(--wqb-muted);
  font: inherit;
  font-size: 12px;
  cursor: pointer;
}
.wqm-presets button:is(:hover, [aria-pressed="true"]) { border-color: #8996c2; background: #22283b; color: var(--wqb-ink); }
.wqm-trend-meta { justify-content: space-between; }
.wqm-trend-meta strong { color: var(--wqb-ink); font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.wqm-trend {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  align-items: stretch;
  gap: clamp(2px, .38vw, 6px);
  min-height: 144px;
  margin-top: 9px;
  padding-top: 8px;
  background: repeating-linear-gradient(to top, #ffffff16 0 1px, transparent 1px 25%) 0 0 / 100% calc(100% - 24px) no-repeat;
}
.wqm-month {
  display: grid;
  grid-template-rows: minmax(0, 1fr) 24px;
  justify-items: center;
  min-width: 0;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--wqb-muted);
  font: inherit;
  font-size: 12px;
  font-variant-numeric: tabular-nums;
  cursor: pointer;
}
.wqm-month > span:first-child { align-self: end; width: min(74%, 29px); height: var(--wqm-size, 0%); background: var(--wqm-payment); transition: height .22s ease; pointer-events: none; }
.wqm-month[aria-pressed="true"], .wqm-month:hover { color: var(--wqb-ink); }
.wqm-month[aria-pressed="true"] > span:first-child, .wqm-month:hover > span:first-child { background: var(--wqm-basic); }
.wqm-month:disabled { cursor: default; }
.wqm .wqm-trend-readout { min-height: 2.4em; margin-top: 6px; color: var(--wqb-ink); font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.wqm-formula { margin-top: 14px; border-top: 1px solid var(--wqb-line); color: var(--wqb-muted); font-size: 13px; }
.wqm-formula summary { width: fit-content; padding-block: 11px 4px; color: var(--wqb-ink); cursor: pointer; }
.wqm-formula ul { max-width: 85ch; margin: 6px 0 0; padding-inline-start: 1.4em; line-height: 1.75; }
.wqm-formula li + li { margin-top: 4px; }
@media (max-width: 850px) {
  .wqm-grid, .wqm-partner-grid { grid-template-columns: minmax(0, 1fr); }
  .wqm-partner-totals { grid-row: 1; }
  .wqm-metrics--partner { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 390px) {
  .wqm-fields--savings { grid-template-columns: minmax(0, 1fr); }
  .wqm-fields--product, .wqm-fields--assumptions { gap: 8px; }
  .wqm-field { font-size: 12px; }
}
@media (prefers-reduced-motion: reduce) {
  .wqm :is(.wqm-track > span, .wqm-month > span:first-child) { transition: none; }
}

.wqm {
  --wqm-platform: #6f9a98;
  --wqm-secondary: #85a8d8;
  --wqm-agency: #a896cc;
  --wqm-additional: #d28f7b;
}
.wqm-grid--channel { grid-template-columns: minmax(0, .9fr) minmax(0, 1.2fr); }
@media (max-width: 850px) {
  .wqm-grid--channel { grid-template-columns: minmax(0, 1fr); }
}
.wqm-ring-layout {
  display: grid;
  grid-template-columns: minmax(0, .78fr) minmax(0, 1fr);
  align-items: center;
  gap: clamp(10px, 2vw, 25px);
  margin-top: 18px;
}
.wqm-ring-layout--channel { grid-template-columns: minmax(0, .74fr) minmax(0, 1.26fr); }
.wqm-ring {
  position: relative;
  display: grid;
  place-items: center;
  width: 100%;
  max-width: 260px;
  aspect-ratio: 1;
  justify-self: center;
  border-radius: 50%;
  background: var(--wqm-ring-fill, var(--wqm-track));
}
.wqm-ring::before {
  position: absolute;
  inset: 13%;
  border-radius: 50%;
  background: var(--wqm-surface);
  content: "";
}
.wqm-ring-center {
  position: relative;
  display: grid;
  justify-items: center;
  width: 68%;
  text-align: center;
  gap: 2px;
}
.wqm-ring-center strong {
  color: var(--wqb-ink);
  font-size: clamp(15px, 2.5vw, 37px);
  font-weight: 650;
  line-height: 1.08;
  letter-spacing: -.045em;
  overflow-wrap: anywhere;
}
.wqm-ring-center strong[data-compact] { font-size: clamp(11px, 1.2vw, 18px); }
.wqm-ring-center span { color: var(--wqb-muted); font-size: 12px; }
.wqm-platform { --wqm-series: var(--wqm-platform); }
.wqm-secondary { --wqm-series: var(--wqm-secondary); }
.wqm-agency { --wqm-series: var(--wqm-agency); }
.wqm-additional { --wqm-series: var(--wqm-additional); }
.wqm-allocation { display: grid; }
.wqm-allocation > div {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, auto);
  gap: 2px 7px;
  align-items: baseline;
  padding-block: 6px;
  border-bottom: 1px solid var(--wqb-line);
  font-size: 13px;
  line-height: 1.4;
}
.wqm-allocation > div[data-selected] dt { color: var(--wqm-basic); }
.wqm-allocation dt {
  position: relative;
  padding-inline-start: 15px;
  color: var(--wqb-ink);
  overflow-wrap: anywhere;
}
.wqm-allocation dt::before {
  position: absolute;
  inset-inline-start: 0;
  top: .40em;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--wqm-series);
  content: "";
}
.wqm-allocation dd {
  display: flex;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 2px 9px;
  margin: 0;
  color: var(--wqb-muted);
  font-variant-numeric: tabular-nums;
}
.wqm-allocation strong {
  color: var(--wqb-ink);
  text-align: right;
  overflow-wrap: anywhere;
}
.wqm-grid--savings .wqm-bars { margin-top: 16px; gap: clamp(5px, 1.25vw, 14px); }
.wqm-grid--savings .wqm-row { padding-block: 12px; }
.wqm-grid--savings .wqm-track { height: 12px; }

.wqm .wqm-share-panel { margin-top: clamp(12px, 2.3vw, 26px); }
.wqm-chart {
  --wqm-plot-height: clamp(150px, 22vw, 275px);
  --wqm-x-height: 25px;
  display: grid;
  grid-template-columns: max-content minmax(0, 1fr);
  gap: 8px 14px;
  margin-top: 35px;
}
.wqm-chart-axis {
  display: grid;
  align-content: space-between;
  justify-items: end;
  height: calc(var(--wqm-plot-height) + 1em);
  margin: -.5em 0 0;
  padding: 0;
  color: var(--wqb-muted);
  font-size: clamp(10px, 1.2vw, 13px);
  line-height: 1;
  list-style: none;
}
.wqm-chart-bars {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: clamp(4px, 2vw, 30px);
  padding-inline: clamp(2px, .7vw, 12px);
  background: repeating-linear-gradient(to top, #91a0c336 0 1px, transparent 1px 25%) 0 0 / 100% calc(100% - var(--wqm-x-height)) no-repeat;
}
.wqm-scenario {
  display: grid;
  grid-template-rows: var(--wqm-plot-height) var(--wqm-x-height);
  align-items: end;
  justify-items: stretch;
  min-width: 0;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--wqb-muted);
  font: inherit;
  font-size: clamp(11px, 1.2vw, 15px);
  font-variant-numeric: tabular-nums;
  cursor: pointer;
}
.wqm-scenario:disabled { cursor: default; }
.wqm-scenario-column {
  position: relative;
  width: min(100%, 180px);
  height: var(--wqm-size, 0%);
  justify-self: center;
  border-radius: 6px 6px 0 0;
  background: linear-gradient(180deg, #789ffa 0%, #557acf 100%);
  transition: height .22s ease;
}
.wqm-scenario-column strong {
  position: absolute;
  bottom: calc(100% + 3px);
  left: 50%;
  transform: translateX(-50%);
  color: var(--wqb-ink);
  font-size: clamp(11px, 1.45vw, 17px);
  letter-spacing: -.02em;
  white-space: nowrap;
}
.wqm-scenario:is(:hover, [aria-pressed="true"], :focus-visible):not(:disabled) { color: var(--wqb-ink); }
.wqm-scenario:is(:hover, [aria-pressed="true"], :focus-visible):not(:disabled) .wqm-scenario-column { background: linear-gradient(180deg, #becbff 0%, #8b9fe9 100%); }
.wqm .wqm-chart-caption { margin-top: 6px; color: var(--wqb-muted); font-size: 12px; text-align: center; }

.wqm-role { margin: 0 0 16px; padding: 0; border: 0; min-width: 0; }
.wqm-role legend { padding: 0; margin-bottom: 8px; color: var(--wqb-muted); font-size: 13px; }
.wqm-role-options { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.wqm-role-options label {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-height: 42px;
  border: 1px solid #535767;
  border-radius: 2px;
  color: var(--wqb-ink);
  font-size: 14px;
  cursor: pointer;
}
.wqm-role-options label:has(:checked) { border-color: #8996c2; background: #22283b; }
.wqm-role-options input { accent-color: var(--wqm-basic); }
.wqm-slider { display: block; width: 100%; margin: 11px 0 0; accent-color: var(--wqm-basic); }
.wqm .wqm-budget {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px 15px;
  margin-top: 15px;
  padding-top: 13px;
  border-top: 1px solid var(--wqb-line);
}
.wqm-budget dt, .wqm-budget-note { color: var(--wqb-muted); font-size: 13px; }
.wqm-budget dd { display: grid; margin: 0; }
.wqm-budget strong { color: var(--wqb-ink); font-size: clamp(23px, 2.5vw, 34px); }
@media (max-width: 600px) {
  .wqm-ring-layout { grid-template-columns: minmax(90px, .7fr) minmax(0, 1fr); }
  .wqm-ring-layout--channel { grid-template-columns: minmax(95px, .6fr) minmax(0, 1fr); }
  .wqm-chart { column-gap: 6px; }
  .wqm-scenario-column strong { display: none; }
  .wqm-scenario[aria-pressed="true"] strong { display: block; }
}
@media (max-width: 390px) {
  .wqm-allocation > div { grid-template-columns: minmax(0, 1fr); padding-block: 4px; font-size: 12px; }
  .wqm-allocation dd { justify-content: flex-start; padding-inline-start: 15px; }
}
@media (prefers-reduced-motion: reduce) {
  .wqm-scenario-column { transition: none; }
}

