.economy-v2 {
  --ev2-bg: #f6f8fa;
  --ev2-surface: #ffffff;
  --ev2-text: #172033;
  --ev2-text-2: #475467;
  --ev2-muted: #667085;
  --ev2-border: #e4e7ec;
  --ev2-border-soft: #eef1f4;
  --ev2-green: #0b8f55;
  --ev2-green-dark: #067647;
  --ev2-green-soft: #eaf7f0;
  --ev2-red: #d92d20;
  --ev2-red-soft: #fef3f2;
  --ev2-amber: #b54708;
  --ev2-amber-soft: #fffaeb;
  --ev2-blue: #2563eb;
  --ev2-violet: #7f56d9;
  display: grid;
  gap: 12px;
  min-width: 0;
  color: var(--ev2-text);
  font-variant-numeric: tabular-nums;
}

/* Overview v2: period comparison and expense influence. */
.economy-v2-overview-context {
  display: flex;
  align-items: center;
  gap: 8px 18px;
  min-height: 28px;
  padding: 2px 4px;
  color: var(--ev2-muted);
  font-size: 12px;
  line-height: 18px;
}

.economy-v2-overview-context span + span::before {
  content: "";
  display: inline-block;
  width: 3px;
  height: 3px;
  margin: 0 10px 3px 0;
  border-radius: 50%;
  background: #98a2b3;
}

.economy-v2-overview-context strong {
  color: var(--ev2-text);
  font-weight: 700;
}

[data-v2-view="overview"] .economy-v2-dashboard-main {
  grid-template-columns: minmax(0, 1fr);
}

.economy-v2-formation-panel {
  overflow: hidden;
}

.economy-v2-panel-title h2 .economy-v2-title-desktop {
  display: inline;
  margin: 0;
  color: inherit;
  font: inherit;
}

.economy-v2-panel-title h2 .economy-v2-title-mobile,
.economy-v2-mobile-expense-bridge {
  display: none;
}

.economy-v2-profit-equation {
  display: grid;
  grid-template-columns: minmax(160px, 1fr) auto minmax(160px, 1fr) auto minmax(160px, 1fr);
  align-items: center;
  gap: 12px;
  padding: 16px 18px;
  border-bottom: 1px solid var(--ev2-border-soft);
  background: #fbfcfd;
}

.economy-v2-profit-equation > div {
  display: grid;
  gap: 3px;
}

.economy-v2-profit-equation span,
.economy-v2-comparison-title span {
  color: var(--ev2-muted);
  font-size: 12px;
  line-height: 16px;
}

.economy-v2-profit-equation strong {
  color: var(--ev2-text);
  font-size: 20px;
  line-height: 26px;
}

.economy-v2-profit-equation > b {
  color: #98a2b3;
  font-size: 20px;
}

.economy-v2-profit-equation .is-good strong,
.economy-v2-influence-row .is-good,
.economy-v2-driver-compare .is-good strong,
.economy-v2-share-caption.is-good strong {
  color: var(--ev2-green-dark);
}

.economy-v2-profit-equation .is-bad strong,
.economy-v2-influence-row .is-bad,
.economy-v2-driver-compare .is-bad strong,
.economy-v2-share-caption.is-bad strong {
  color: var(--ev2-red);
}

.economy-v2-comparison-section + .economy-v2-comparison-section {
  border-top: 1px solid var(--ev2-border-soft);
}

.economy-v2-comparison-title {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 14px 7px;
}

.economy-v2-comparison-title strong {
  color: var(--ev2-text);
  font-size: 13px;
  line-height: 18px;
}

.economy-v2-flow-head,
.economy-v2-flow-row {
  display: grid;
  position: relative;
  grid-template-columns: minmax(220px, 1.4fr) repeat(4, minmax(112px, 0.8fr));
  align-items: center;
  gap: 12px;
}

.economy-v2-influence-head,
.economy-v2-influence-row {
  display: grid;
  grid-template-columns: minmax(180px, 1.25fr) repeat(5, minmax(105px, 0.8fr));
  align-items: center;
  gap: 12px;
}

.economy-v2-flow-head,
.economy-v2-influence-head {
  padding: 5px 14px;
  color: var(--ev2-muted);
  background: #fbfcfd;
  font-size: 10px;
  font-weight: 700;
  line-height: 14px;
  text-transform: uppercase;
}

.economy-v2-flow-row,
.economy-v2-influence-row {
  min-height: 42px;
  padding: 8px 14px;
  border-top: 1px solid var(--ev2-border-soft);
  color: var(--ev2-text-2);
  font-size: 12px;
  line-height: 16px;
}

.economy-v2-flow-row > strong,
.economy-v2-influence-row > strong {
  color: var(--ev2-text);
  font-weight: 650;
}

.economy-v2-flow-row > span,
.economy-v2-influence-row > span {
  text-align: right;
  white-space: nowrap;
}

.economy-v2-flow-row.is-total {
  background: #f4fbf7;
}

.economy-v2-flow-row > i {
  position: absolute;
  top: 9px;
  bottom: 9px;
  left: 0;
  width: 3px;
  border-radius: 0 2px 2px 0;
  background: var(--ev2-green);
}

.economy-v2-flow-row > i.is-expense {
  background: #98a2b3;
}

.economy-v2-overview-legend {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px 18px;
  min-height: 34px;
  padding: 7px 12px 0;
  color: var(--ev2-muted);
  font-size: 11px;
  line-height: 16px;
}

.economy-v2-overview-legend span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.economy-v2-overview-legend i {
  width: 12px;
  height: 8px;
  border-radius: 2px;
  background: #b8e4d0;
}

.economy-v2-overview-legend i.is-profit {
  background: var(--ev2-green);
}

.economy-v2-overview-legend i.is-margin {
  height: 2px;
  background: var(--ev2-amber);
}

.economy-v2-overview-legend i.is-average {
  height: 0;
  border-top: 1px dashed rgba(181, 71, 8, 0.72);
  border-radius: 0;
  background: transparent;
}

[data-v2-view="overview"] .economy-v2-trend-chart {
  height: 300px;
}

.economy-v2-overview-drivers {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.economy-v2-overview-driver {
  border-top: 3px solid var(--driver);
}

.economy-v2-overview-driver .economy-v2-driver-head {
  align-items: start;
  padding: 11px 12px 8px;
}

.economy-v2-overview-driver .economy-v2-driver-head > div {
  min-width: 0;
}

.economy-v2-overview-driver .economy-v2-driver-head span {
  display: block;
  margin-top: 2px;
}

.economy-v2-driver-compare {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border-top: 1px solid var(--ev2-border-soft);
  border-bottom: 1px solid var(--ev2-border-soft);
}

.economy-v2-driver-compare > div {
  min-width: 0;
  padding: 8px 10px;
  border-right: 1px solid var(--ev2-border-soft);
}

.economy-v2-driver-compare > div:last-child {
  border-right: 0;
}

.economy-v2-driver-compare span,
.economy-v2-share-caption,
.economy-v2-driver-item small,
.economy-v2-commission-chain small {
  color: var(--ev2-muted);
  font-size: 10px;
  line-height: 14px;
}

.economy-v2-driver-compare strong {
  display: block;
  margin-top: 3px;
  overflow: hidden;
  color: var(--ev2-text);
  font-size: 12px;
  line-height: 16px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.economy-v2-share-track {
  position: relative;
  height: 6px;
  margin: 11px 12px 5px;
  border-radius: 3px;
  background: #edf1f5;
}

.economy-v2-share-track i {
  display: block;
  width: var(--w);
  height: 100%;
  border-radius: inherit;
  background: var(--driver);
}

.economy-v2-share-track b {
  position: absolute;
  top: -3px;
  bottom: -3px;
  left: var(--marker);
  width: 2px;
  border-radius: 1px;
  background: #344054;
}

.economy-v2-share-caption {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  padding: 0 12px 9px;
}

.economy-v2-share-caption strong {
  font-weight: 700;
}

.economy-v2-overview-driver .economy-v2-driver-list {
  gap: 0;
  padding: 0 12px 9px;
}

.economy-v2-overview-driver .economy-v2-driver-item {
  grid-template-columns: minmax(0, 1fr) auto minmax(72px, auto);
  align-items: baseline;
  gap: 8px;
  min-height: 27px;
  padding: 5px 0;
  border-top: 1px solid var(--ev2-border-soft);
  cursor: default;
}

.economy-v2-overview-driver .economy-v2-driver-item span {
  white-space: normal;
}

.economy-v2-overview-driver .economy-v2-driver-item small {
  text-align: right;
  white-space: nowrap;
}

.economy-v2-driver-toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  min-height: 38px;
  padding: 0 12px;
  border: 0;
  border-top: 1px solid var(--ev2-border-soft);
  background: #fff;
  color: var(--ev2-green-dark);
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
}

.economy-v2-driver-toggle[aria-expanded="true"] .chevron-icon {
  transform: rotate(180deg);
}

.economy-v2-commission-chain {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border-top: 1px solid var(--ev2-border-soft);
  background: #fbfcfd;
}

.economy-v2-commission-chain > div {
  min-width: 0;
  padding: 9px 10px;
  border-right: 1px solid var(--ev2-border-soft);
}

.economy-v2-commission-chain > div:last-child {
  border-right: 0;
}

.economy-v2-commission-chain span,
.economy-v2-commission-chain strong,
.economy-v2-commission-chain small {
  display: block;
}

.economy-v2-commission-chain span {
  color: var(--ev2-muted);
  font-size: 10px;
  line-height: 14px;
}

.economy-v2-commission-chain strong {
  margin-top: 3px;
  color: var(--ev2-text);
  font-size: 12px;
  line-height: 16px;
}

.economy-v2-watch-modes {
  padding: 8px 12px;
  border-bottom: 1px solid var(--ev2-border-soft);
}

.economy-v2-watch-modes .economy-v2-segmented {
  width: min(540px, 100%);
}

@media (max-width: 980px) {
  .economy-v2-overview-drivers {
    grid-template-columns: minmax(0, 1fr);
  }

  .economy-v2-flow-head,
  .economy-v2-flow-row {
    grid-template-columns: minmax(190px, 1.3fr) repeat(4, minmax(100px, 0.8fr));
  }

  .economy-v2-influence-head,
  .economy-v2-influence-row {
    grid-template-columns: minmax(170px, 1.2fr) repeat(5, minmax(96px, 0.8fr));
  }
}

@media (max-width: 640px) {
  .economy-v2-overview-context {
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 2px 10px;
    padding: 0 2px;
    line-height: 16px;
  }

  .economy-v2-overview-context span + span::before {
    margin-right: 7px;
  }

  .economy-v2-overview-kpis .economy-v2-kpi {
    min-height: 92px;
    padding: 9px 12px;
  }

  .economy-v2-overview-kpis .economy-v2-kpi > strong {
    margin-top: 3px;
    font-size: 21px;
    line-height: 26px;
  }

  .economy-v2-overview-kpis .economy-v2-kpi > small {
    margin-top: 2px;
  }

  [data-v2-view="overview"] .economy-v2-formation-panel {
    overflow: visible;
    border: 0;
    border-radius: 0;
    background: transparent;
  }

  [data-v2-view="overview"] .economy-v2-formation-panel > .economy-v2-panel-head {
    min-height: 0;
    padding: 10px 4px 6px;
    border: 0;
  }

  [data-v2-view="overview"] .economy-v2-formation-panel > .economy-v2-panel-head .economy-v2-panel-title > span,
  [data-v2-view="overview"] .economy-v2-formation-panel > .economy-v2-panel-head .economy-v2-panel-meta {
    display: none;
  }

  [data-v2-view="overview"] .economy-v2-formation-panel .economy-v2-panel-title h2 {
    font-size: 18px;
    line-height: 24px;
  }

  .economy-v2-panel-title h2 .economy-v2-title-desktop {
    display: none;
  }

  .economy-v2-panel-title h2 .economy-v2-title-mobile {
    display: inline;
    margin: 0;
    color: inherit;
    font: inherit;
  }

  .economy-v2-profit-equation {
    grid-template-columns: minmax(0, 1fr) 12px minmax(0, 1fr) 12px minmax(0, 1fr);
    gap: 3px;
    padding: 4px 0 12px;
    border: 0;
    background: transparent;
  }

  .economy-v2-profit-equation > div {
    align-content: center;
    min-width: 0;
    min-height: 64px;
    gap: 2px;
    padding: 7px 3px;
    border: 1px solid var(--ev2-border);
    border-radius: 6px;
    background: #f2f8f8;
    text-align: center;
  }

  .economy-v2-profit-equation > div.is-cost {
    border-color: #f7d9d5;
    background: var(--ev2-red-soft);
  }

  .economy-v2-profit-equation > div.is-base strong {
    color: var(--ev2-green-dark);
  }

  .economy-v2-profit-equation > div.is-cost strong {
    color: var(--ev2-red);
  }

  .economy-v2-profit-equation > div.is-result {
    border-color: #d7ebdf;
    background: var(--ev2-green-soft);
  }

  .economy-v2-profit-equation > div > span {
    overflow: hidden;
    font-size: 10px;
    line-height: 14px;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .economy-v2-profit-equation strong {
    overflow: hidden;
    font-size: 13px;
    line-height: 18px;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .economy-v2-profit-equation > b {
    text-align: center;
    font-size: 16px;
    line-height: 20px;
  }

  .economy-v2-profit-equation-empty {
    grid-column: 1 / -1;
    padding: 12px;
    border: 1px solid var(--ev2-border);
    border-radius: 6px;
    background: var(--ev2-surface);
  }

  [data-v2-view="overview"] .economy-v2-comparison-section {
    display: none;
  }

  .economy-v2-mobile-expense-bridge {
    display: block;
    border-top: 1px solid var(--ev2-border-soft);
    border-bottom: 1px solid var(--ev2-border-soft);
    background: var(--ev2-surface);
  }

  .economy-v2-mobile-expense-legend {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) auto auto;
    align-items: center;
    gap: 5px 8px;
    min-height: 42px;
    padding: 8px 4px;
    color: var(--ev2-muted);
    font-size: 10px;
    line-height: 14px;
  }

  .economy-v2-mobile-expense-legend span {
    display: flex;
    align-items: center;
    min-width: 0;
    gap: 5px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .economy-v2-mobile-expense-legend i {
    flex: 0 0 auto;
    width: 9px;
    height: 9px;
    border-radius: 1px;
    background: #b9e2df;
  }

  .economy-v2-mobile-expense-legend i.is-current {
    background: #0f8582;
  }

  .economy-v2-mobile-expense-legend strong {
    color: var(--ev2-muted);
    font-weight: 600;
    white-space: nowrap;
  }

  .economy-v2-mobile-expense-row {
    display: grid;
    grid-template-columns: 86px minmax(0, 1fr) 66px 50px;
    align-items: center;
    gap: 5px;
    min-width: 0;
    min-height: 78px;
    padding: 14px 4px;
    border-top: 1px solid var(--ev2-border-soft);
  }

  .economy-v2-mobile-expense-name {
    display: grid;
    min-width: 0;
    gap: 2px;
  }

  .economy-v2-mobile-expense-name strong {
    color: var(--ev2-text);
    font-size: 11px;
    font-weight: 650;
    line-height: 15px;
  }

  .economy-v2-mobile-expense-name span {
    color: var(--ev2-muted);
    font-size: 9px;
    line-height: 14px;
  }

  .economy-v2-mobile-expense-bars {
    display: grid;
    min-width: 0;
    gap: 6px;
  }

  .economy-v2-mobile-expense-bars > div {
    display: grid;
    grid-template-columns: minmax(18px, 1fr) auto;
    align-items: center;
    min-width: 0;
    gap: 4px;
  }

  .economy-v2-mobile-expense-bars i {
    display: block;
    position: relative;
    height: 13px;
  }

  .economy-v2-mobile-expense-bars i::before {
    content: "";
    display: block;
    width: var(--w);
    height: 100%;
    border-radius: 1px;
    background: #b9e2df;
  }

  .economy-v2-mobile-expense-bars .is-current i::before {
    background: var(--driver);
  }

  .economy-v2-mobile-expense-bars span {
    color: var(--ev2-text-2);
    font-size: 10px;
    line-height: 14px;
    white-space: nowrap;
  }

  .economy-v2-mobile-expense-delta {
    display: grid;
    justify-items: end;
    gap: 2px;
    min-height: 38px;
    padding-left: 5px;
    border-left: 1px solid var(--ev2-border-soft);
    color: var(--ev2-text-2);
    font-size: 9.5px;
    line-height: 14px;
    white-space: nowrap;
  }

  .economy-v2-mobile-expense-delta strong {
    font-weight: 600;
  }

  .economy-v2-mobile-expense-share {
    min-height: 38px;
    padding-left: 4px;
    border-left: 1px solid var(--ev2-border-soft);
    text-align: right;
    color: var(--ev2-text-2);
    font-size: 9.5px;
    line-height: 14px;
    white-space: nowrap;
  }

  .economy-v2-mobile-expense-share.is-bad {
    color: var(--ev2-red);
  }

  .economy-v2-mobile-expense-share.is-good {
    color: var(--ev2-green-dark);
  }

  .economy-v2-mobile-commission-toggle {
    display: flex;
    grid-column: 1 / -1;
    align-items: center;
    width: 100%;
    min-width: 0;
    gap: 7px;
    margin-top: 6px;
    padding: 9px 4px 0;
    border: 0;
    border-top: 1px solid var(--ev2-border-soft);
    background: transparent;
    color: var(--ev2-text-2);
    font: inherit;
    font-size: 11px;
    line-height: 15px;
    text-align: left;
  }

  .economy-v2-mobile-commission-toggle > span:last-child {
    white-space: normal;
  }

  .economy-v2-mobile-commission-toggle[aria-expanded="true"] .chevron-icon {
    transform: rotate(180deg);
  }

  .economy-v2-mobile-commission-chain {
    display: grid;
    grid-column: 1 / -1;
    gap: 0;
    margin-top: 4px;
    border: 1px solid var(--ev2-border-soft);
    border-radius: 6px;
    background: #fbfcfd;
  }

  .economy-v2-mobile-commission-chain > div {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 2px 8px;
    padding: 8px;
    border-bottom: 1px solid var(--ev2-border-soft);
  }

  .economy-v2-mobile-commission-chain > div:last-child {
    border-bottom: 0;
  }

  .economy-v2-mobile-commission-chain span,
  .economy-v2-mobile-commission-chain small {
    color: var(--ev2-muted);
    font-size: 10px;
    line-height: 14px;
  }

  .economy-v2-mobile-commission-chain strong {
    color: var(--ev2-text);
    font-size: 11px;
    line-height: 15px;
  }

  .economy-v2-mobile-commission-chain small {
    grid-column: 2;
  }

  .economy-v2-comparison-title {
    align-items: flex-start;
    flex-direction: column;
    gap: 2px;
    padding: 11px 10px 7px;
  }

  .economy-v2-flow-head,
  .economy-v2-influence-head {
    display: none;
  }

  .economy-v2-flow-row,
  .economy-v2-influence-row {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 7px 12px;
    padding: 10px;
  }

  .economy-v2-flow-row > strong,
  .economy-v2-influence-row > strong {
    grid-column: 1 / -1;
    font-size: 13px;
    line-height: 18px;
  }

  .economy-v2-flow-row > span,
  .economy-v2-influence-row > span {
    display: grid;
    gap: 1px;
    text-align: left;
    white-space: normal;
  }

  .economy-v2-flow-row > span::before,
  .economy-v2-influence-row > span::before {
    content: attr(data-label);
    color: var(--ev2-muted);
    font-size: 10px;
    line-height: 13px;
  }

  .economy-v2-overview-legend {
    gap: 5px 12px;
    padding: 7px 10px 0;
  }

  .economy-v2-overview-legend small {
    flex-basis: 100%;
    margin-left: 0;
  }

  [data-v2-view="overview"] .economy-v2-trend-chart {
    height: 280px;
  }

  .economy-v2-driver-compare {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .economy-v2-driver-compare > div:nth-child(2) {
    border-right: 0;
  }

  .economy-v2-driver-compare > div:last-child {
    grid-column: 1 / -1;
    border-top: 1px solid var(--ev2-border-soft);
  }

  .economy-v2-share-caption {
    align-items: flex-start;
    flex-direction: column;
    gap: 2px;
  }

  .economy-v2-overview-driver .economy-v2-driver-item {
    grid-template-columns: minmax(0, 1fr) auto;
  }

  .economy-v2-overview-driver .economy-v2-driver-item small {
    grid-column: 2;
  }

  .economy-v2-commission-chain {
    grid-template-columns: minmax(0, 1fr);
  }

  .economy-v2-commission-chain > div {
    border-right: 0;
    border-bottom: 1px solid var(--ev2-border-soft);
  }

  .economy-v2-watch-modes .economy-v2-segmented {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .economy-v2-watch-modes .economy-v2-segmented button {
    min-height: 42px;
    padding: 4px 5px;
    line-height: 14px;
    white-space: normal;
  }

  .economy-v2-watch-table,
  .economy-v2-watch-table tbody,
  .economy-v2-watch-table tr,
  .economy-v2-watch-table td {
    display: block;
    width: 100%;
  }

  .economy-v2-watch-table thead {
    display: none;
  }

  .economy-v2-watch-table tbody {
    padding: 0 10px 10px;
  }

  .economy-v2-watch-table tbody tr {
    margin-top: 8px;
    padding: 9px 10px;
    border: 1px solid var(--ev2-border-soft);
    border-radius: 7px;
  }

  .economy-v2-watch-table td {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 12px;
    padding: 4px 0;
    border: 0;
    text-align: right;
    white-space: normal;
  }

  .economy-v2-watch-table td::before {
    content: attr(data-label);
    flex: 0 0 auto;
    color: var(--ev2-muted);
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
  }

  .economy-v2-watch-table td:first-child {
    display: block;
    padding-bottom: 7px;
    border-bottom: 1px solid var(--ev2-border-soft);
    text-align: left;
  }

  .economy-v2-watch-table td:first-child::before {
    display: none;
  }
}

.economy-v2 *,
.economy-v2 *::before,
.economy-v2 *::after {
  box-sizing: border-box;
}

.economy-v2 button,
.economy-v2 input,
.economy-v2 select {
  font: inherit;
}

.economy-v2 button {
  color: inherit;
}

.economy-v2-source-note {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 38px;
  padding: 8px 12px;
  border: 1px solid #fedf89;
  border-radius: 7px;
  background: var(--ev2-amber-soft);
  color: #93370d;
  font-size: 12px;
  line-height: 16px;
}

.economy-v2-filter-band,
.economy-v2-panel,
.economy-v2-kpis,
.economy-v2-driver,
.economy-v2-watchlist,
.economy-v2-detail,
.economy-v2-quality-strip {
  border: 1px solid var(--ev2-border);
  border-radius: 8px;
  background: var(--ev2-surface);
}

.economy-v2-filter-band {
  display: grid;
  gap: 8px;
  padding: 10px 12px;
}

.economy-v2-filter-row {
  display: flex;
  align-items: end;
  gap: 8px;
  min-width: 0;
}

.economy-v2-filter-toggle {
  display: none;
}

.economy-v2-filter-content {
  display: grid;
  gap: 8px;
}

.economy-v2-context-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(118px, 1fr)) auto;
  align-items: center;
  gap: 0;
  min-width: 0;
}

.economy-v2-context-item {
  display: grid;
  gap: 2px;
  min-width: 0;
  padding: 2px 12px;
  border-right: 1px solid var(--ev2-border-soft);
}

.economy-v2-context-item:first-child {
  padding-left: 0;
}

.economy-v2-context-item span,
.economy-v2-period-state {
  color: var(--ev2-muted);
  font-size: 12px;
  line-height: 16px;
}

.economy-v2-context-item strong {
  min-width: 0;
  overflow: hidden;
  color: var(--ev2-text);
  font-size: 13px;
  line-height: 18px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.economy-v2-field {
  display: grid;
  gap: 4px;
  min-width: 118px;
}

.economy-v2-field.is-wide {
  flex: 1 1 260px;
  min-width: 190px;
}

.economy-v2-field > span {
  color: var(--ev2-muted);
  font-size: 12px;
  font-weight: 600;
  line-height: 16px;
}

.economy-v2-control {
  width: 100%;
  min-width: 0;
  min-height: 40px;
  padding: 0 11px;
  border: 1px solid #dbe4ee;
  border-radius: 9px;
  outline: 0;
  background: #fff;
  color: var(--ev2-text);
  font-size: 12px;
  font-weight: 700;
  text-overflow: ellipsis;
}

.economy-v2-shared-select {
  width: 100%;
  min-width: 118px;
}

.economy-v2-shared-select .product-custom-select-button {
  min-height: 40px;
}

.economy-v2-shared-select .product-custom-select-menu {
  z-index: 420;
}

.economy-v2-chart-context {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0 10px;
  color: var(--ev2-muted);
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
}

.economy-v2-control:focus {
  border-color: var(--ev2-blue);
  box-shadow: 0 0 0 3px rgb(37 99 235 / 14%);
}

.economy-v2-search {
  width: 100%;
}

.economy-v2-filter-spacer {
  flex: 1 1 auto;
}

.economy-v2-reset,
.economy-v2-link,
.economy-v2-secondary,
.economy-v2-primary,
.economy-v2-chip,
.economy-v2-segmented button,
.economy-v2-icon-button {
  min-height: 40px;
  border: 1px solid var(--ev2-border);
  border-radius: 6px;
  background: #fff;
  font-size: 13px;
  font-weight: 650;
  cursor: pointer;
}

.economy-v2-link {
  border-color: transparent;
  color: var(--ev2-green-dark);
}

.economy-v2-reset.product-reset-view-button {
  min-height: 40px;
  border-color: #dbe4ee;
  border-radius: 9px;
  color: #344054;
}

.economy-v2-secondary,
.economy-v2-primary {
  padding: 0 12px;
}

.economy-v2-primary {
  border-color: var(--ev2-green);
  background: var(--ev2-green);
  color: #fff;
}

.economy-v2 .economy-v2-primary {
  color: #fff;
}

.economy-v2-icon-button {
  display: inline-grid;
  place-items: center;
  width: 40px;
  padding: 0;
}

.economy-v2-icon-button img {
  width: 17px;
  height: 17px;
}

.economy-v2-table-utility.product-table-utility-button {
  min-height: 34px;
  border-color: #dbe4ee;
  border-radius: 9px;
  color: #344054;
  font-size: 12px;
  font-weight: 800;
  line-height: 1;
}

.economy-v2-table-utility img {
  display: block;
  flex: 0 0 auto;
  width: 16px;
  height: 16px;
}

.economy-v2-signal-row {
  display: flex;
  align-items: center;
  gap: 7px;
  min-width: 0;
  overflow-x: auto;
  scrollbar-width: thin;
}

.economy-v2-chip {
  min-height: 26px;
  padding: 4px 9px;
  border-radius: 999px;
  color: var(--ev2-text-2);
  font-size: 11px;
  white-space: nowrap;
}

.economy-v2-chip.is-active {
  border-color: #abefc6;
  background: var(--ev2-green-soft);
  color: var(--ev2-green-dark);
}

.economy-v2-chip.is-danger {
  border-color: #fecdca;
  background: var(--ev2-red-soft);
  color: var(--ev2-red);
}

.economy-v2-chip.is-active::before {
  background: var(--ev2-green);
}

.economy-v2-chip.is-danger::before {
  background: var(--ev2-red);
}

.economy-v2-compare-state {
  margin-left: auto;
  color: var(--ev2-muted);
  font-size: 12px;
  white-space: nowrap;
}

.economy-v2-period-state {
  margin-left: auto;
  white-space: nowrap;
}

.economy-v2-period-state + .economy-v2-compare-state {
  margin-left: 4px;
}

.economy-v2-kpis {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  overflow: hidden;
}

.economy-v2-kpi {
  position: relative;
  min-width: 0;
  min-height: 92px;
  padding: 12px 14px;
  border-right: 1px solid var(--ev2-border-soft);
}

.economy-v2-kpi:last-child {
  border-right: 0;
}

.economy-v2-kpi > span,
.economy-v2-detail-kpi > span {
  display: block;
  min-height: 16px;
  color: var(--ev2-muted);
  font-size: 12px;
  font-weight: 600;
  line-height: 16px;
}

.economy-v2-kpi > strong {
  display: block;
  margin-top: 7px;
  overflow: hidden;
  color: var(--ev2-text);
  font-size: 24px;
  font-weight: 700;
  line-height: 28px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.economy-v2-kpi.is-profit > strong {
  color: var(--ev2-green);
}

.economy-v2-kpi > small,
.economy-v2-detail-kpi > small {
  display: block;
  margin-top: 4px;
  overflow: hidden;
  color: var(--ev2-muted);
  font-size: 12px;
  line-height: 16px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.economy-v2-kpi > small.is-up,
.economy-v2-positive {
  color: var(--ev2-green-dark);
}

.economy-v2-kpi > small.is-down,
.economy-v2-negative {
  color: var(--ev2-red);
}

.economy-v2-dashboard-main {
  display: grid;
  grid-template-columns: minmax(0, 2.1fr) minmax(320px, 0.8fr);
  gap: 12px;
}

.economy-v2-panel {
  min-width: 0;
  overflow: hidden;
}

.economy-v2-panel-head,
.economy-v2-detail-panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 54px;
  padding: 10px 12px;
  border-bottom: 1px solid var(--ev2-border-soft);
}

.economy-v2-panel-title {
  min-width: 0;
}

.economy-v2-panel-title h2,
.economy-v2-detail-title h2 {
  margin: 0;
  color: var(--ev2-text);
  font-size: 16px;
  font-weight: 650;
  line-height: 22px;
}

.economy-v2-panel-title span,
.economy-v2-detail-title span {
  display: block;
  margin-top: 1px;
  color: var(--ev2-muted);
  font-size: 12px;
  line-height: 16px;
}

.economy-v2-panel-meta {
  color: var(--ev2-muted);
  font-size: 12px;
  white-space: nowrap;
}

.economy-v2-chart {
  display: block;
  width: 100%;
  height: 292px;
}

.economy-v2-chart:focus {
  outline: 0;
}

.economy-v2-chart:focus-visible {
  box-shadow: inset 0 0 0 2px rgba(11, 143, 85, 0.36);
}

.economy-v2-trend-chart {
  height: 234px;
}

.economy-v2-bridge-footer,
.economy-v2-trend-footer {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border-top: 1px solid var(--ev2-border-soft);
}

.economy-v2-trend-footer {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.economy-v2-trend-insight {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  padding: 10px 12px;
  border-top: 1px solid var(--ev2-border-soft);
  background: #f8fafb;
}

.economy-v2-trend-insight > i {
  flex: 0 0 7px;
  width: 7px;
  height: 7px;
  margin-top: 5px;
  border-radius: 50%;
  background: #98a2b3;
}

.economy-v2-trend-insight.is-good > i {
  background: var(--ev2-green);
}

.economy-v2-trend-insight.is-bad > i {
  background: var(--ev2-red);
}

.economy-v2-trend-insight > div {
  display: grid;
  min-width: 0;
  gap: 2px;
}

.economy-v2-trend-insight strong {
  color: var(--ev2-text);
  font-size: 12px;
  line-height: 16px;
}

.economy-v2-trend-insight span {
  color: var(--ev2-muted);
  font-size: 11px;
  line-height: 15px;
}

.economy-v2-bridge-footer > div,
.economy-v2-trend-footer > div {
  min-width: 0;
  padding: 9px 10px;
  border-right: 1px solid var(--ev2-border-soft);
}

.economy-v2-bridge-footer > div:last-child,
.economy-v2-trend-footer > div:last-child {
  border-right: 0;
}

.economy-v2-bridge-footer span,
.economy-v2-trend-footer span {
  display: block;
  color: var(--ev2-muted);
  font-size: 12px;
  line-height: 16px;
}

.economy-v2-bridge-footer strong,
.economy-v2-trend-footer strong {
  display: block;
  margin-top: 3px;
  color: var(--ev2-text);
  font-size: 15px;
  line-height: 20px;
}

.economy-v2-trend-footer small {
  display: block;
  margin-top: 3px;
  color: var(--ev2-muted);
  font-size: 11px;
  font-weight: 650;
  line-height: 15px;
}

.economy-v2-trend-footer strong.is-good {
  color: var(--ev2-green);
}

.economy-v2-trend-footer strong.is-bad {
  color: var(--ev2-red);
}

.economy-v2-drivers {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.economy-v2-driver {
  min-width: 0;
  overflow: hidden;
}

.economy-v2-driver-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
  padding: 11px 12px 9px;
}

.economy-v2-driver-head h3 {
  margin: 0;
  color: var(--ev2-text);
  font-size: 14px;
  font-weight: 650;
  line-height: 20px;
}

.economy-v2-driver-head strong {
  color: var(--ev2-text);
  font-size: 18px;
  line-height: 22px;
  white-space: nowrap;
}

.economy-v2-driver-head span {
  grid-column: 1 / -1;
  color: var(--ev2-muted);
  font-size: 12px;
  line-height: 16px;
}

.economy-v2-bullet {
  height: 5px;
  margin: 0 12px 8px;
  overflow: hidden;
  border-radius: 3px;
  background: #edf1f5;
}

.economy-v2-bullet i {
  display: block;
  width: var(--w);
  height: 100%;
  border-radius: inherit;
  background: var(--bar, var(--ev2-green));
}

.economy-v2-driver-list {
  display: grid;
  gap: 7px;
  padding: 0 12px 10px;
}

.economy-v2-driver-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
  min-width: 0;
  border: 0;
  background: transparent;
  text-align: left;
  cursor: pointer;
}

.economy-v2-driver-item span {
  overflow: hidden;
  color: var(--ev2-muted);
  font-size: 12px;
  line-height: 16px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.economy-v2-driver-item strong {
  color: var(--ev2-text);
  font-size: 12px;
  line-height: 16px;
  white-space: nowrap;
}

.economy-v2-driver-action {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 38px;
  padding: 0 12px;
  border-top: 1px solid var(--ev2-border-soft);
  color: var(--ev2-green-dark);
  font-size: 12px;
  font-weight: 650;
}

.economy-v2-watchlist {
  overflow: hidden;
}

.economy-v2-table-wrap {
  position: relative;
  min-width: 0;
  overflow: auto;
  scrollbar-width: thin;
}

.economy-v2-watch-table,
.economy-v2-analysis-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  color: var(--ev2-text-2);
  font-size: 12px;
}

.economy-v2-watch-table th,
.economy-v2-watch-table td,
.economy-v2-analysis-table th,
.economy-v2-analysis-table td {
  padding: 8px 10px;
  border-bottom: 1px solid var(--ev2-border-soft);
  text-align: right;
  white-space: nowrap;
}

.economy-v2-watch-table th,
.economy-v2-analysis-table th {
  position: sticky;
  top: 0;
  z-index: 2;
  background: #fbfcfd;
  color: var(--ev2-muted);
  font-size: 11px;
  font-weight: 650;
  text-transform: uppercase;
}

.economy-v2-watch-table th:first-child,
.economy-v2-watch-table td:first-child,
.economy-v2-analysis-table th:first-child,
.economy-v2-analysis-table td:first-child {
  left: 0;
  text-align: left;
}

.economy-v2-analysis-table th:first-child,
.economy-v2-analysis-table td:first-child {
  position: sticky;
  z-index: 3;
  background: #fff;
}

.economy-v2-analysis-table th:first-child {
  z-index: 4;
  background: #fbfcfd;
}

.economy-v2-watch-object strong,
.economy-v2-object-cell strong {
  display: block;
  color: var(--ev2-text);
  font-size: 12px;
  line-height: 16px;
}

.economy-v2-watch-object span,
.economy-v2-object-cell span {
  display: block;
  color: var(--ev2-muted);
  line-height: 15px;
}

.economy-v2-watch-table tbody tr,
.economy-v2-analysis-table tbody tr {
  cursor: pointer;
}

.economy-v2-watch-table tbody tr:hover td,
.economy-v2-analysis-table tbody tr.is-hover td {
  background: #f8fafc;
}

.economy-v2-analysis-table tbody tr.is-selected td {
  background: var(--ev2-green-soft);
}

.economy-v2-analysis-table tbody tr.is-selected td:first-child {
  background: var(--ev2-green-soft);
  box-shadow: inset 3px 0 0 var(--ev2-green);
}

.economy-v2-table-action {
  min-height: 32px;
  padding: 0 9px;
  border: 1px solid var(--ev2-border);
  border-radius: 6px;
  background: #fff;
  color: var(--ev2-green-dark);
  font-size: 12px;
  font-weight: 650;
  cursor: pointer;
}

.economy-v2-analysis-head {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr)) 380px;
  overflow: hidden;
}

.economy-v2-analysis-head .economy-v2-kpi {
  min-height: 80px;
}

.economy-v2-view-switch {
  display: flex;
  align-items: center;
  padding: 10px 8px;
}

.economy-v2-segmented {
  display: inline-flex;
  padding: 3px;
  border: 1px solid var(--ev2-border);
  border-radius: 7px;
  background: #f8fafc;
}

.economy-v2-segmented button {
  min-height: 32px;
  padding: 0 10px;
  border-color: transparent;
  background: transparent;
  color: var(--ev2-muted);
  font-size: 12px;
}

.economy-v2-segmented button.is-active {
  border-color: var(--ev2-border);
  background: #fff;
  color: var(--ev2-text);
}

.economy-v2-workspace {
  --chart-width: 42%;
  display: grid;
  grid-template-columns: minmax(360px, var(--chart-width)) 8px minmax(0, 1fr);
  min-height: 492px;
}

.economy-v2-chart-panel,
.economy-v2-table-panel {
  min-width: 0;
  border: 1px solid var(--ev2-border);
  background: #fff;
}

.economy-v2-chart-panel {
  border-radius: 8px 0 0 8px;
}

.economy-v2-table-panel {
  border-radius: 0 8px 8px 0;
}

.economy-v2-resizer {
  position: relative;
  border: 0;
  background: transparent;
  cursor: col-resize;
}

.economy-v2-resizer::after {
  position: absolute;
  top: 45%;
  left: 3px;
  width: 2px;
  height: 36px;
  border-radius: 1px;
  background: #cfd5dd;
  content: "";
}

.economy-v2-chart-tools,
.economy-v2-table-tools,
.economy-v2-detail-actions {
  display: flex;
  align-items: center;
  gap: 7px;
}

.economy-v2-analysis-chart {
  height: 374px;
}

.economy-v2-legend {
  display: flex;
  align-items: center;
  gap: 14px;
  min-height: 46px;
  padding: 7px 12px;
  border-top: 1px solid var(--ev2-border-soft);
  color: var(--ev2-muted);
  font-size: 12px;
  overflow-x: auto;
}

.economy-v2-legend-item {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  white-space: nowrap;
}

.economy-v2-legend-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--dot, var(--ev2-green));
}

.economy-v2-legend-line {
  width: 22px;
  border-top: 1px dashed #64748b;
}

.economy-v2-analysis-scroll {
  max-height: 424px;
  overflow: auto;
}

.economy-v2-analysis-table {
  min-width: 1180px;
}

.economy-v2-analysis-table th button {
  border: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  text-transform: inherit;
  cursor: pointer;
}

.economy-v2-analysis-table td {
  position: relative;
  height: 46px;
}

.economy-v2-data-bar {
  position: absolute;
  right: 7px;
  bottom: 4px;
  left: 7px;
  width: calc((100% - 14px) * var(--w));
  max-width: calc(100% - 14px);
  height: 3px;
  border-radius: 2px;
  background: #bfdbfe;
}

.economy-v2-data-bar.is-profit {
  background: #a6ddbd;
}

.economy-v2-data-bar.is-loss {
  right: 7px;
  left: auto;
  background: #fda29b;
}

.economy-v2-threshold {
  display: inline-block;
  width: 22px;
  height: 4px;
  margin-left: 4px;
  overflow: hidden;
  border-radius: 2px;
  background: #e4e7ec;
  vertical-align: middle;
}

.economy-v2-threshold i {
  display: block;
  width: var(--w);
  height: 100%;
  background: currentColor;
}

.economy-v2-signal {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 0 8px;
  border-radius: 12px;
  background: var(--ev2-amber-soft);
  color: var(--ev2-amber);
  font-size: 11px;
  font-weight: 650;
  white-space: nowrap;
}

.economy-v2-signal.is-danger {
  background: var(--ev2-red-soft);
  color: var(--ev2-red);
}

.economy-v2-signal.is-ok {
  background: var(--ev2-green-soft);
  color: var(--ev2-green-dark);
}

.economy-v2-table-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 42px;
  padding: 0 10px;
  border-top: 1px solid var(--ev2-border-soft);
  color: var(--ev2-muted);
  font-size: 12px;
}

.economy-v2-empty,
.economy-v2-loading,
.economy-v2-error {
  display: grid;
  place-items: center;
  min-height: 260px;
  padding: 24px;
  color: var(--ev2-muted);
  text-align: center;
}

.economy-v2-loading-lines {
  display: grid;
  gap: 10px;
  width: min(360px, 80%);
}

.economy-v2-loading-lines i {
  height: 14px;
  border-radius: 4px;
  background: #e8ecf0;
}

.economy-v2-detail {
  display: none;
  scroll-margin-top: 72px;
  overflow: hidden;
}

.economy-v2-detail.is-visible {
  display: grid;
  gap: 0;
}

.economy-v2-detail-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px;
  border-bottom: 1px solid var(--ev2-border);
}

.economy-v2-detail-title > span:first-child {
  margin: 0 0 2px;
  color: var(--ev2-muted);
  font-size: 12px;
  font-weight: 600;
}

.economy-v2-detail-title h2 {
  font-size: 18px;
  line-height: 24px;
}

.economy-v2-detail-kpis {
  display: grid;
  grid-template-columns: repeat(8, minmax(0, 1fr));
  border-bottom: 1px solid var(--ev2-border);
}

.economy-v2-detail-kpi {
  min-width: 0;
  min-height: 76px;
  padding: 10px;
  border-right: 1px solid var(--ev2-border-soft);
}

.economy-v2-detail-kpi:last-child {
  border-right: 0;
}

.economy-v2-detail-kpi strong {
  display: block;
  margin-top: 5px;
  overflow: hidden;
  color: var(--ev2-text);
  font-size: 15px;
  line-height: 20px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.economy-v2-detail-row {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(320px, 5fr);
  border-bottom: 1px solid var(--ev2-border);
}

.economy-v2-detail-row.is-secondary {
  grid-template-columns: minmax(320px, 5fr) minmax(0, 7fr);
}

.economy-v2-detail-panel {
  min-width: 0;
  border-right: 1px solid var(--ev2-border);
}

.economy-v2-detail-panel:last-child {
  border-right: 0;
}

.economy-v2-detail-chart {
  height: 248px;
}

.economy-v2-structure {
  display: grid;
  gap: 10px;
  padding: 12px;
}

.economy-v2-stack-label {
  display: flex;
  justify-content: space-between;
  color: var(--ev2-muted);
  font-size: 12px;
}

.economy-v2-stack {
  display: flex;
  height: 14px;
  overflow: hidden;
  border-radius: 4px;
  background: #edf1f5;
}

.economy-v2-stack i {
  width: var(--w);
  min-width: 2px;
  background: var(--bar);
}

.economy-v2-structure-delta {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
  padding-bottom: 7px;
  border-bottom: 1px solid var(--ev2-border-soft);
  color: var(--ev2-text-2);
  font-size: 12px;
}

.economy-v2-child-ranking {
  padding: 5px 12px 10px;
}

.economy-v2-child-row {
  display: grid;
  grid-template-columns: minmax(110px, 150px) minmax(80px, 1fr) 92px 62px;
  align-items: center;
  gap: 9px;
  min-height: 38px;
  border-bottom: 1px solid var(--ev2-border-soft);
  color: var(--ev2-text-2);
  font-size: 12px;
}

.economy-v2-child-row button {
  overflow: hidden;
  border: 0;
  background: transparent;
  color: var(--ev2-text-2);
  font-weight: 650;
  text-align: left;
  text-overflow: ellipsis;
  white-space: nowrap;
  cursor: pointer;
}

.economy-v2-rank-track {
  position: relative;
  height: 7px;
  border-radius: 4px;
  background: #edf1f5;
}

.economy-v2-rank-track i {
  position: absolute;
  top: 0;
  left: 50%;
  width: calc(var(--w) / 2);
  height: 100%;
  border-radius: 4px;
  background: var(--ev2-green);
}

.economy-v2-rank-track i.is-loss {
  right: 50%;
  left: auto;
  background: var(--ev2-red);
}

.economy-v2-quality-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr)) auto;
  align-items: center;
  gap: 12px;
  margin: 10px;
  padding: 10px 12px;
}

.economy-v2-reason span,
.economy-v2-reason strong {
  display: block;
  font-size: 12px;
  line-height: 16px;
}

.economy-v2-reason span {
  color: var(--ev2-muted);
}

.economy-v2-tooltip {
  position: fixed;
  z-index: 1000;
  display: none;
  max-width: 300px;
  padding: 9px 11px;
  border: 1px solid #344054;
  border-radius: 7px;
  background: #172033;
  color: #fff;
  font-size: 12px;
  line-height: 16px;
  pointer-events: none;
}

.economy-v2-tooltip.is-visible {
  display: block;
}

.economy-v2-tooltip strong,
.economy-v2-tooltip span {
  display: block;
}

.economy-v2-tooltip span {
  color: #d0d5dd;
}

.economy-v2-refreshing {
  position: fixed;
  top: 78px;
  right: 20px;
  z-index: 2147483500;
  display: grid;
  grid-template-columns: 18px auto;
  gap: 1px 8px;
  min-width: 280px;
  padding: 9px 12px;
  color: #92400e;
  border: 1px solid rgba(247, 144, 9, 0.3);
  border-radius: 8px;
  background: #fffbeb;
  box-shadow: 0 10px 28px rgba(16, 24, 40, 0.14);
}

.economy-v2-refreshing strong,
.economy-v2-refreshing span:last-child {
  grid-column: 2;
}

.economy-v2-refreshing strong {
  font-size: 12px;
  line-height: 16px;
}

.economy-v2-refreshing span:last-child {
  color: #b54708;
  font-size: 11px;
  line-height: 15px;
}

.economy-v2-spinner {
  grid-row: 1 / 3;
  width: 16px;
  height: 16px;
  margin-top: 4px;
  border: 2px solid #fedf89;
  border-top-color: #b54708;
  border-radius: 50%;
  animation: economy-v2-spin 0.8s linear infinite;
}

@keyframes economy-v2-spin {
  to { transform: rotate(360deg); }
}

.economy-v2-panel-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.economy-v2-trend-controls {
  display: grid;
  grid-template-columns: minmax(140px, 220px) minmax(140px, 220px) minmax(330px, 1fr);
  align-items: center;
  width: 100%;
}

.economy-v2-trend-averages {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 5px;
  justify-self: end;
  width: min(100%, 430px);
}

.economy-v2-trend-averages > span {
  display: grid;
  min-width: 0;
  padding: 5px 8px;
  border: 1px solid #cfe9dd;
  border-radius: 6px;
  background: #f2fbf7;
}

.economy-v2-trend-averages small {
  overflow: hidden;
  color: var(--ev2-muted);
  font-size: 9px;
  line-height: 12px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.economy-v2-trend-averages strong {
  overflow: hidden;
  color: var(--ev2-green-dark);
  font-size: 11px;
  line-height: 15px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.economy-v2-trend-controls .economy-v2-segmented {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  min-width: 0;
}

.economy-v2-trend-controls .economy-v2-segmented:has([data-v2-overview-grain]) {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.economy-v2-trend-controls .economy-v2-segmented button {
  min-width: 0;
}

.economy-v2-dashboard-main {
  grid-template-columns: minmax(0, 1.55fr) minmax(420px, 1fr);
}

.economy-v2-dashboard-main > .economy-v2-panel:last-child .economy-v2-panel-head {
  flex-wrap: wrap;
}

.economy-v2-dashboard-main > .economy-v2-panel:last-child .economy-v2-panel-title,
.economy-v2-dashboard-main > .economy-v2-panel:last-child .economy-v2-panel-actions {
  flex: 1 0 100%;
}

.economy-v2-dashboard-main > .economy-v2-panel:last-child .economy-v2-panel-actions {
  justify-content: space-between;
}

.economy-v2-segmented-compact {
  flex: 0 0 auto;
}

.economy-v2-segmented-compact button {
  min-height: 30px;
  padding: 0 9px;
}

.economy-v2-selection-context {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 64px;
  padding: 10px 12px;
  border: 1px solid var(--ev2-border);
  border-left: 3px solid #98a2b3;
  border-radius: 8px;
  background: #fff;
}

.economy-v2-selection-context.is-selected {
  border-left-color: var(--ev2-green);
  background: #fbfefc;
}

.economy-v2-selection-context > div:first-child {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.economy-v2-selection-context span,
.economy-v2-selection-context small {
  color: var(--ev2-muted);
  font-size: 12px;
  line-height: 16px;
}

.economy-v2-selection-context strong {
  overflow: hidden;
  color: var(--ev2-text);
  font-size: 14px;
  line-height: 19px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.economy-v2-selection-actions {
  display: flex;
  flex: 0 0 auto;
  gap: 7px;
}

.economy-v2-mode-controls {
  display: grid;
  grid-template-columns: repeat(3, minmax(150px, 220px)) minmax(0, 1fr);
  align-items: end;
  gap: 8px;
  padding: 10px 12px;
  border: 1px solid var(--ev2-border);
  border-radius: 8px;
  background: #fff;
}

.economy-v2-mode-controls.is-trend {
  grid-template-columns: minmax(170px, 240px) minmax(240px, 320px) minmax(200px, 280px);
}

.economy-v2-mode-note {
  align-self: center;
  color: var(--ev2-muted);
  font-size: 12px;
  line-height: 17px;
}

.economy-v2-workspace {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 12px;
  min-height: 0;
}

.economy-v2-chart-panel,
.economy-v2-table-panel {
  border-radius: 8px;
}

.economy-v2-analysis-chart {
  height: 420px;
}

.economy-v2-analysis-table {
  min-width: 1540px;
}

.economy-v2-analysis-table tfoot td {
  position: sticky;
  bottom: 0;
  z-index: 2;
  padding-top: 9px;
  padding-bottom: 9px;
  border-top: 1px solid #cfd5dd;
  border-bottom: 0;
  background: #f8fafc;
  color: var(--ev2-text);
  font-weight: 700;
}

.economy-v2-analysis-table tfoot td:first-child {
  z-index: 4;
  background: #f8fafc;
}

.economy-v2-series-key {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  max-width: 220px;
  min-height: 28px;
  padding: 3px 7px;
  color: var(--ev2-text-2);
  border: 1px solid var(--ev2-border);
  border-radius: 6px;
  background: #fff;
  cursor: pointer;
}

.economy-v2-series-key i {
  flex: 0 0 auto;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--series);
}

.economy-v2-series-key span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.economy-v2-series-key.is-hidden {
  opacity: 0.45;
  text-decoration: line-through;
}

.economy-v2-legend-summary,
.economy-v2-matrix-keys {
  display: flex;
  align-items: center;
  gap: 8px 12px;
}

.economy-v2-matrix-keys {
  min-width: 0;
  overflow-x: auto;
}

.economy-v2-matrix-key {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  flex: 0 0 auto;
  max-width: 180px;
  min-height: 28px;
  padding: 3px 7px;
  color: var(--ev2-text-2);
  border: 1px solid var(--ev2-border);
  border-radius: 6px;
  background: #fff;
  cursor: pointer;
}

.economy-v2-matrix-key i {
  display: inline-grid;
  place-items: center;
  flex: 0 0 auto;
  width: 17px;
  height: 17px;
  color: #fff;
  font-size: 9px;
  font-style: normal;
  font-weight: 700;
  border-radius: 50%;
  background: var(--ev2-green);
}

.economy-v2-matrix-key span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.economy-v2-matrix-key.is-active {
  border-color: #abefc6;
  background: var(--ev2-green-soft);
  color: var(--ev2-green-dark);
}

@media (max-width: 1500px) {
  .economy-v2-kpi > strong {
    font-size: 21px;
    line-height: 26px;
  }

  .economy-v2-driver-head {
    padding-right: 9px;
    padding-left: 9px;
  }

  .economy-v2-driver-head strong {
    font-size: 16px;
  }

}

@media (max-width: 1240px) {
  .economy-v2-kpis {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .economy-v2-kpi:nth-child(3) {
    border-right: 0;
  }

  .economy-v2-kpi:nth-child(-n + 3) {
    border-bottom: 1px solid var(--ev2-border-soft);
  }

  .economy-v2-dashboard-main,
  .economy-v2-detail-row,
  .economy-v2-detail-row.is-secondary {
    grid-template-columns: minmax(0, 1fr);
  }

  .economy-v2-drivers {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .economy-v2-workspace {
    grid-template-columns: minmax(0, 1fr);
  }

  .economy-v2-analysis-head {
    grid-template-columns: repeat(5, minmax(120px, 1fr));
  }

  .economy-v2-view-switch {
    grid-column: 1 / -1;
    justify-content: flex-end;
    border-top: 1px solid var(--ev2-border-soft);
  }

  .economy-v2-resizer {
    display: none;
  }

  .economy-v2-chart-panel,
  .economy-v2-table-panel {
    border-radius: 8px;
  }

  .economy-v2-detail-kpis {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .economy-v2-detail-kpi:nth-child(4) {
    border-right: 0;
  }

  .economy-v2-detail-kpi:nth-child(-n + 4) {
    border-bottom: 1px solid var(--ev2-border-soft);
  }

  .economy-v2-detail-panel {
    border-right: 0;
    border-bottom: 1px solid var(--ev2-border);
  }
}

@media (max-width: 980px) {
  .economy-v2 {
    padding-bottom: 88px;
  }

  .economy-v2-filter-row {
    align-items: stretch;
    flex-wrap: wrap;
  }

  .economy-v2-field,
  .economy-v2-field.is-wide {
    flex: 1 1 160px;
  }

  .economy-v2-control {
    font-size: 16px;
  }

  .economy-v2-kpis,
  .economy-v2-analysis-head {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .economy-v2-kpi:nth-child(odd) {
    border-right: 1px solid var(--ev2-border-soft);
  }

  .economy-v2-kpi:nth-child(even) {
    border-right: 0;
  }

  .economy-v2-kpi:nth-child(-n + 4) {
    border-bottom: 1px solid var(--ev2-border-soft);
  }

  .economy-v2-chart {
    height: 260px;
  }

  .economy-v2-drivers {
    grid-template-columns: minmax(0, 1fr);
  }

  .economy-v2-bridge-footer,
  .economy-v2-trend-footer {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .economy-v2-workspace {
    min-height: 0;
  }

  .economy-v2-analysis-chart {
    height: 320px;
  }

  .economy-v2-segmented {
    width: 100%;
    overflow-x: auto;
  }

  .economy-v2-segmented button {
    flex: 1 0 auto;
  }

  .economy-v2-detail-head {
    align-items: flex-start;
    flex-direction: column;
  }

  .economy-v2-detail-actions {
    width: 100%;
  }

  .economy-v2-detail-actions button {
    flex: 1 1 50%;
  }

  .economy-v2-detail-kpis {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .economy-v2-detail-kpi:nth-child(even) {
    border-right: 0;
  }

  .economy-v2-detail-kpi:nth-child(-n + 6) {
    border-bottom: 1px solid var(--ev2-border-soft);
  }

  .economy-v2-quality-strip {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 640px) {
  .economy-v2 {
    gap: 8px;
  }

  .economy-v2-source-note {
    align-items: flex-start;
    flex-direction: column;
    gap: 3px;
    padding: 8px 10px;
  }

  .economy-v2-filter-band {
    gap: 9px;
    padding: 10px;
  }

  .economy-v2-filter-band.is-analysis {
    padding: 6px;
  }

  .economy-v2-filter-toggle {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    min-height: 48px;
    gap: 10px;
    padding: 7px 9px;
    text-align: left;
  }

  .economy-v2-filter-toggle > span:first-child {
    display: grid;
    min-width: 0;
    gap: 2px;
  }

  .economy-v2-filter-toggle strong,
  .economy-v2-filter-toggle small {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .economy-v2-filter-toggle strong {
    color: var(--ev2-text);
    font-size: 12px;
    line-height: 16px;
  }

  .economy-v2-filter-toggle small {
    color: var(--ev2-muted);
    font-size: 10px;
    line-height: 14px;
  }

  .economy-v2-filter-band.is-analysis:not(.is-open) .economy-v2-filter-content {
    display: none;
  }

  .economy-v2-filter-band.is-analysis.is-open .economy-v2-filter-content {
    padding: 4px;
  }

  .economy-v2-filter-band.is-analysis.is-open .economy-v2-filter-toggle .chevron-icon {
    transform: rotate(180deg);
  }

  .economy-v2-filter-row {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }

  .economy-v2-context-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    row-gap: 8px;
  }

  .economy-v2-context-item {
    padding: 0 9px 7px 0;
    border-right: 0;
    border-bottom: 1px solid var(--ev2-border-soft);
  }

  .economy-v2-context-item:nth-child(even) {
    padding-right: 0;
    padding-left: 9px;
  }

  .economy-v2-context-grid > .economy-v2-compare-state {
    grid-column: 1 / -1;
    margin: 0;
  }

  .economy-v2-field,
  .economy-v2-field.is-wide {
    width: 100%;
    min-width: 0;
  }

  .economy-v2-field.is-wide,
  .economy-v2-reset.product-reset-view-button {
    grid-column: 1 / -1;
  }

  .economy-v2-control {
    min-height: 42px;
    padding-right: 9px;
    padding-left: 9px;
  }

  .economy-v2-filter-spacer {
    display: none;
  }

  .economy-v2-reset.product-reset-view-button {
    width: 100%;
    min-height: 42px;
  }

  .economy-v2-signal-row {
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 6px;
    overflow: visible;
  }

  .economy-v2-compare-state {
    flex: 1 0 100%;
    margin: 2px 0 0;
    line-height: 16px;
    white-space: normal;
  }

  .economy-v2-period-state {
    flex: 1 0 100%;
    margin: 2px 0 0;
    white-space: normal;
  }

  .economy-v2-kpi {
    min-height: 88px;
    padding: 10px;
  }

  .economy-v2-kpi > span,
  .economy-v2-detail-kpi > span {
    min-height: 0;
    line-height: 15px;
  }

  .economy-v2-kpi > strong {
    margin-top: 6px;
    font-size: 19px;
    line-height: 23px;
  }

  .economy-v2-kpi > small,
  .economy-v2-detail-kpi > small {
    min-height: 16px;
    overflow: visible;
    line-height: 15px;
    text-overflow: clip;
    white-space: normal;
  }

  .economy-v2-analysis-head .economy-v2-kpi:nth-child(5) {
    grid-column: 1 / -1;
    border-right: 0;
  }

  .economy-v2-view-switch {
    grid-column: 1 / -1;
    justify-content: stretch;
    padding: 8px;
  }

  .economy-v2-segmented {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    width: 100%;
    gap: 3px;
    overflow: visible;
  }

  .economy-v2-segmented button {
    width: 100%;
    min-width: 0;
    padding: 0 7px;
    white-space: nowrap;
  }

  .economy-v2-panel-head,
  .economy-v2-detail-panel-head {
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 8px;
    min-height: 0;
    padding: 10px;
  }

  .economy-v2-panel-title {
    flex: 1 1 190px;
  }

  .economy-v2-panel-meta {
    white-space: normal;
  }

  .economy-v2-chart-tools {
    display: grid;
    flex: 1 0 100%;
    grid-template-columns: minmax(0, 1fr) 40px;
    width: 100%;
  }

  .economy-v2-analysis-chart {
    height: 286px;
  }

  .economy-v2-chart[data-v2-canvas="bridge"] {
    height: 420px;
  }

  .economy-v2-legend {
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 7px 12px;
    min-height: 0;
    padding: 9px 10px;
    overflow: visible;
    line-height: 15px;
  }

  .economy-v2-table-tools {
    display: grid;
    grid-template-columns: 40px minmax(0, 1fr);
    width: 100%;
  }

  .economy-v2-table-utility.product-table-utility-button {
    width: 100%;
    min-height: 38px;
    white-space: nowrap;
  }

  .economy-v2-table-footer {
    align-items: flex-start;
    flex-direction: column;
    gap: 2px;
    min-height: 0;
    padding: 8px 10px;
    line-height: 16px;
  }

  .economy-v2-detail-head {
    padding: 11px 10px;
  }

  .economy-v2-detail-title {
    min-width: 0;
  }

  .economy-v2-detail-title > span:last-child {
    line-height: 17px;
  }

  .economy-v2-detail-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    width: 100%;
  }

  .economy-v2-detail-actions > .economy-v2-signal {
    grid-column: 1 / -1;
    justify-self: start;
  }

  .economy-v2-detail-actions button {
    width: 100%;
    min-width: 0;
    min-height: 40px;
    padding: 0 8px;
    font-size: 11px;
    white-space: nowrap;
  }

  .economy-v2-detail-actions > button:last-child:nth-child(2) {
    grid-column: 1 / -1;
  }

  .economy-v2-detail-kpi {
    min-height: 88px;
    padding: 9px;
  }

  .economy-v2-detail-kpi strong {
    margin-top: 4px;
    font-size: 14px;
    line-height: 18px;
  }

  .economy-v2-child-row {
    grid-template-columns: minmax(84px, 1.4fr) minmax(50px, 1fr) 72px 48px;
    gap: 6px;
    font-size: 10px;
  }

  .app-shell[data-active-screen="economy-overview-v2"] .module-tabs,
  .app-shell[data-active-screen="economy-profitability"] .module-tabs {
    scrollbar-width: none;
  }

  .app-shell[data-active-screen="economy-overview-v2"] .module-tabs::-webkit-scrollbar,
  .app-shell[data-active-screen="economy-profitability"] .module-tabs::-webkit-scrollbar {
    display: none;
  }
}

@media (max-width: 980px) {
  .economy-v2-mode-controls,
  .economy-v2-mode-controls.is-trend {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .economy-v2-mode-note {
    grid-column: 1 / -1;
  }

  .economy-v2-analysis-table {
    min-width: 1440px;
  }
}

@media (max-width: 640px) {
  .economy-v2-refreshing {
    top: calc(72px + env(safe-area-inset-top, 0px));
    right: 10px;
    left: 10px;
    min-width: 0;
  }

  .economy-v2-panel-actions {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    flex: 1 0 100%;
    width: 100%;
  }

  .economy-v2-panel-actions .economy-v2-segmented {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .economy-v2-panel-actions .economy-v2-segmented:has([data-v2-overview-grain]) {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .economy-v2-panel-actions .economy-v2-signal {
    align-self: center;
    white-space: nowrap;
  }

  .economy-v2-trend-controls {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .economy-v2-trend-averages {
    grid-column: 1 / -1;
    justify-self: stretch;
    width: 100%;
  }

  [data-v2-view="overview"] .economy-v2-trend-footer {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  [data-v2-view="overview"] .economy-v2-trend-footer > div {
    padding: 8px 7px;
  }

  [data-v2-view="overview"] .economy-v2-trend-footer span,
  [data-v2-view="overview"] .economy-v2-trend-footer strong,
  [data-v2-view="overview"] .economy-v2-trend-footer small {
    overflow-wrap: anywhere;
  }

  .economy-v2-selection-context {
    align-items: stretch;
    flex-direction: column;
    gap: 8px;
    padding: 10px;
  }

  .economy-v2-selection-context strong,
  .economy-v2-selection-context small {
    overflow: visible;
    text-overflow: clip;
    white-space: normal;
  }

  .economy-v2-selection-actions {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 40px;
  }

  .economy-v2-mode-controls,
  .economy-v2-mode-controls.is-trend {
    grid-template-columns: minmax(0, 1fr);
    gap: 8px;
    padding: 10px;
  }

  .economy-v2-mode-controls .economy-v2-field,
  .economy-v2-mode-note {
    grid-column: 1;
  }

  .economy-v2-mode-controls .economy-v2-segmented {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .economy-v2-mode-controls.is-trend .economy-v2-field:nth-child(2) .economy-v2-segmented {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .economy-v2-analysis-chart {
    height: 360px;
  }

  .economy-v2-analysis-scroll {
    max-height: 520px;
  }

  .economy-v2-series-key {
    max-width: calc(50% - 6px);
  }

  .economy-v2-legend-summary,
  .economy-v2-matrix-keys {
    flex: 1 0 100%;
    width: 100%;
  }

  .economy-v2-matrix-keys {
    padding-bottom: 2px;
  }

  .economy-v2-tooltip {
    max-width: min(300px, calc(100vw - 20px));
  }
}

@media (prefers-reduced-motion: reduce) {
  .economy-v2-spinner {
    animation: none;
  }
}

/* Profitability v3: task states replace graph-mode navigation. */
.economy-v3 {
  gap: 10px;
}

.economy-v3-breadcrumb {
  display: flex;
  align-items: center;
  min-width: 0;
  gap: 6px;
  color: var(--ev2-muted);
  font-size: 12px;
  line-height: 18px;
  overflow-x: auto;
  scrollbar-width: none;
}

.economy-v3-breadcrumb::-webkit-scrollbar {
  display: none;
}

.economy-v3-breadcrumb span {
  flex: 0 0 auto;
  max-width: 300px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.economy-v3-breadcrumb span.is-current {
  color: var(--ev2-text);
  font-weight: 700;
}

.economy-v3-breadcrumb i {
  color: #98a2b3;
  font-style: normal;
}

.economy-v3-scope-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-width: 0;
  gap: 10px;
  padding-top: 8px;
  border-top: 1px solid var(--ev2-border-soft);
}

.economy-v3-active-filters,
.economy-v3-periods {
  display: flex;
  align-items: center;
  min-width: 0;
  gap: 6px;
  color: var(--ev2-muted);
  font-size: 12px;
}

.economy-v3-active-filters {
  overflow-x: auto;
}

.economy-v3-periods {
  flex: 0 0 auto;
}

.economy-v3-periods span {
  white-space: nowrap;
}

.economy-v3-lenses {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 38px;
  align-items: center;
  gap: 6px;
}

.economy-v3-lens-scroll {
  display: flex;
  gap: 6px;
  min-width: 0;
  overflow-x: auto;
  scrollbar-width: thin;
}

.economy-v3-lens {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 7px;
  min-height: 36px;
  padding: 0 10px;
  border: 1px solid var(--ev2-border);
  border-radius: 7px;
  background: #fff;
  color: var(--ev2-text-2);
  font-size: 12px;
  font-weight: 650;
  cursor: pointer;
}

.economy-v3-lens strong {
  display: inline-grid;
  place-items: center;
  min-width: 20px;
  height: 20px;
  padding: 0 5px;
  border-radius: 10px;
  background: #f2f4f7;
  color: var(--ev2-muted);
  font-size: 12px;
}

.economy-v3-lens.is-active {
  border-color: #abefc6;
  background: var(--ev2-green-soft);
  color: var(--ev2-green-dark);
}

.economy-v3-lens.is-active strong {
  background: #d1fadf;
  color: var(--ev2-green-dark);
}

.economy-v3-lens-info {
  width: 38px;
  min-height: 36px;
  padding: 0;
  border: 1px solid var(--ev2-border);
  border-radius: 7px;
  background: #fff;
  color: var(--ev2-muted);
  font-weight: 750;
}

.economy-v3-kpis {
  grid-template-columns: repeat(8, minmax(0, 1fr));
}

.economy-v3-kpis .economy-v2-kpi {
  min-height: 82px;
  padding: 10px;
}

.economy-v3-kpis .economy-v2-kpi > strong {
  margin-top: 5px;
  font-size: 18px;
  line-height: 23px;
}

.economy-v3-kpis .economy-v2-kpi > small {
  min-height: 17px;
  font-size: 12px;
  line-height: 16px;
}

.economy-v3-mobile-workspace {
  display: none;
}

.economy-v3-map-settings {
  grid-template-columns: repeat(3, minmax(160px, 220px));
}

.economy-v3-portfolio-workspace {
  display: grid;
  grid-template-columns: minmax(360px, 45%) minmax(0, 55%);
  gap: 10px;
  min-height: 560px;
  height: 560px;
}

.economy-v3-portfolio-workspace .economy-v2-chart-panel,
.economy-v3-portfolio-workspace .economy-v2-table-panel {
  min-height: 0;
  overflow: hidden;
  border-radius: 8px;
}

.economy-v3-map-panel,
.economy-v3-table-panel {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
}

.economy-v3-map-panel .economy-v2-analysis-chart {
  width: 100%;
  height: 456px;
}

.economy-v3-map-panel .economy-v2-legend {
  min-height: 52px;
  overflow-x: auto;
}

.economy-v3-map-panel .economy-v2-panel-head,
.economy-v3-table-panel .economy-v2-panel-head {
  min-height: 62px;
}

.economy-v3-ranking-controls {
  display: flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
}

.economy-v3-ranking-controls .economy-v2-shared-select {
  width: 140px;
  min-width: 120px;
}

.economy-v3-ranking-controls .economy-v2-control {
  min-height: 36px;
}

.economy-v3-table-panel .economy-v2-analysis-scroll {
  max-height: none;
  height: 100%;
}

.economy-v3-portfolio-table {
  min-width: 1560px;
}

.economy-v3-portfolio-table th,
.economy-v3-portfolio-table td {
  font-size: 12px;
}

.economy-v3-portfolio-table th:first-child,
.economy-v3-portfolio-table td:first-child {
  width: 220px;
  min-width: 220px;
}

.economy-v3-row-select {
  display: grid;
  grid-template-columns: 22px minmax(0, 1fr);
  align-items: center;
  gap: 7px;
  min-width: 0;
  cursor: pointer;
}

.economy-v3-row-select input,
.economy-v3-child-row input {
  width: 16px;
  height: 16px;
  margin: 0;
  accent-color: var(--ev2-green);
}

.economy-v3-row-select > span {
  min-width: 0;
}

.economy-v3-row-select strong,
.economy-v3-row-select small {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.economy-v3-row-select small {
  color: var(--ev2-muted);
  font-size: 12px;
  line-height: 16px;
}

.economy-v3-compare-bar {
  position: sticky;
  z-index: 50;
  bottom: 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  width: min(760px, calc(100% - 24px));
  min-height: 62px;
  margin: 0 auto;
  padding: 9px 10px 9px 14px;
  border: 1px solid #abefc6;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 8px 24px rgba(16, 24, 40, 0.14);
}

.economy-v3-compare-bar > div:first-child {
  display: grid;
  min-width: 0;
  gap: 2px;
}

.economy-v3-compare-bar strong,
.economy-v3-compare-bar span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.economy-v3-compare-bar span {
  color: var(--ev2-muted);
  font-size: 12px;
}

.economy-v3-compare-bar > div:last-child {
  display: flex;
  flex: 0 0 auto;
  gap: 7px;
}

.economy-v3-state-head {
  display: grid;
  gap: 8px;
  padding: 12px 14px;
  border: 1px solid var(--ev2-border);
  border-radius: 8px 8px 0 0;
  background: #fff;
}

.economy-v3-state-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.economy-v3-state-title > div:first-child {
  display: grid;
  min-width: 0;
  gap: 3px;
}

.economy-v3-state-title > div:first-child > span,
.economy-v3-state-title > div:first-child > div > span {
  color: var(--ev2-muted);
  font-size: 12px;
}

.economy-v3-state-title h2 {
  overflow: hidden;
  margin: 0;
  color: var(--ev2-text);
  font-size: 20px;
  line-height: 26px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.economy-v3-state-title > div:first-child > div {
  display: flex;
  align-items: center;
  gap: 7px;
}

.economy-v3-state-actions {
  display: flex;
  flex: 0 0 auto;
  gap: 7px;
}

.economy-v3-object-shell,
.economy-v3-compare-shell {
  display: grid;
  min-width: 0;
}

.economy-v3-object-kpis {
  grid-template-columns: repeat(8, minmax(0, 1fr));
  border-right: 1px solid var(--ev2-border);
  border-left: 1px solid var(--ev2-border);
  background: #fff;
}

.economy-v3-object-kpis .economy-v2-detail-kpi > span,
.economy-v3-object-kpis .economy-v2-detail-kpi > small {
  font-size: 12px;
}

.economy-v3-question-row {
  display: grid;
  grid-template-columns: minmax(0, 55fr) minmax(360px, 45fr);
  border: 1px solid var(--ev2-border);
  border-bottom: 0;
  background: #fff;
}

.economy-v3-question-row.is-secondary {
  grid-template-columns: minmax(360px, 45fr) minmax(0, 55fr);
}

.economy-v3-question-row .economy-v2-detail-panel {
  min-width: 0;
  border-right: 1px solid var(--ev2-border);
}

.economy-v3-question-row .economy-v2-detail-panel:last-child {
  border-right: 0;
}

.economy-v3-question-row .economy-v2-detail-panel-head {
  min-height: 68px;
}

.economy-v3-question-index {
  display: inline-grid;
  place-items: center;
  float: left;
  width: 22px;
  height: 22px;
  margin-right: 7px;
  border-radius: 50%;
  background: #f2f4f7;
  color: var(--ev2-muted);
  font-size: 12px;
  font-weight: 750;
}

.economy-v3-structure-findings {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 12px;
}

.economy-v3-child-table {
  min-width: 0;
  max-height: 316px;
  overflow: auto;
}

.economy-v3-child-row {
  display: grid;
  grid-template-columns: minmax(170px, 1.4fr) repeat(5, minmax(86px, 0.72fr));
  align-items: center;
  gap: 8px;
  min-width: 720px;
  min-height: 44px;
  padding: 6px 12px;
  border-bottom: 1px solid var(--ev2-border-soft);
  color: var(--ev2-text-2);
  font-size: 12px;
  cursor: pointer;
}

.economy-v3-child-row:hover {
  background: #f8fafc;
}

.economy-v3-child-row label {
  display: grid;
  grid-template-columns: 18px minmax(0, 1fr);
  align-items: center;
  gap: 7px;
  min-width: 0;
}

.economy-v3-child-row strong {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.economy-v3-drill {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 14px;
  border: 1px solid var(--ev2-border);
  border-radius: 0 0 8px 8px;
  background: #fff;
}

.economy-v3-drill > div {
  display: grid;
  width: min(420px, 100%);
  gap: 4px;
}

.economy-v3-drill > div > span {
  color: var(--ev2-muted);
  font-size: 12px;
  font-weight: 650;
}

.economy-v3-object-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}

.economy-v3-object-chips button {
  min-height: 28px;
  padding: 0 8px;
  border: 1px solid #abefc6;
  border-radius: 14px;
  background: var(--ev2-green-soft);
  color: var(--ev2-green-dark);
  font-size: 12px;
}

.economy-v3-compare-kpis {
  display: grid;
  overflow-x: auto;
  border-right: 1px solid var(--ev2-border);
  border-left: 1px solid var(--ev2-border);
  background: #fff;
}

.economy-v3-compare-kpi-head,
.economy-v3-compare-kpi-row {
  display: grid;
  grid-template-columns: minmax(180px, 1.3fr) repeat(6, minmax(105px, 1fr));
  min-width: 920px;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 6px 12px;
  border-bottom: 1px solid var(--ev2-border-soft);
  font-size: 12px;
}

.economy-v3-compare-kpi-head {
  background: #f8fafc;
  color: var(--ev2-muted);
  font-weight: 650;
}

.economy-v3-compare-kpi-row strong {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.economy-v3-compare-structure {
  min-width: 0;
  overflow-x: auto;
}

.economy-v3-compare-structure-head,
.economy-v3-compare-structure-row {
  display: grid;
  grid-template-columns: minmax(170px, 1.35fr) repeat(4, minmax(105px, 1fr));
  align-items: center;
  gap: 8px;
  min-width: 650px;
  min-height: 44px;
  padding: 6px 12px;
  border-bottom: 1px solid var(--ev2-border-soft);
  font-size: 12px;
}

.economy-v3-compare-structure-head {
  background: #f8fafc;
  color: var(--ev2-muted);
  font-weight: 650;
}

.economy-v3-compare-structure-row strong {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.economy-v3-compare-structure-row span small {
  display: block;
  font-size: 12px;
}

.economy-v3-contribution {
  overflow: hidden;
  border: 1px solid var(--ev2-border);
  border-radius: 0 0 8px 8px;
  background: #fff;
}

.economy-v3-contribution-row {
  display: grid;
  grid-template-columns: minmax(170px, 1.2fr) minmax(180px, 2fr) 110px 78px 110px 118px;
  align-items: center;
  gap: 10px;
  min-width: 820px;
  min-height: 46px;
  padding: 6px 12px;
  border-top: 1px solid var(--ev2-border-soft);
  font-size: 12px;
}

.economy-v3-contribution-row > strong {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.economy-v3-contribution-row > div {
  height: 8px;
  overflow: hidden;
  border-radius: 4px;
  background: #edf1f5;
}

.economy-v3-contribution-row > div i {
  display: block;
  width: var(--w);
  height: 100%;
  background: var(--ev2-green);
}

.economy-v3-contribution-row > div i.is-loss {
  background: var(--ev2-red);
}

.economy-v3-state-empty {
  display: grid;
  place-items: center;
  min-height: 420px;
  gap: 8px;
  padding: 30px;
  border: 1px solid var(--ev2-border);
  border-radius: 8px;
  background: #fff;
  text-align: center;
}

.economy-v3-state-empty h2,
.economy-v3-state-empty p {
  margin: 0;
}

@media (max-width: 1240px) {
  .economy-v3-kpis {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .economy-v3-kpis .economy-v2-kpi:nth-child(4n) {
    border-right: 0;
  }

  .economy-v3-kpis .economy-v2-kpi:nth-child(-n + 4) {
    border-bottom: 1px solid var(--ev2-border-soft);
  }

  .economy-v3-portfolio-workspace {
    grid-template-columns: minmax(340px, 42%) minmax(0, 58%);
  }

  .economy-v3-question-row,
  .economy-v3-question-row.is-secondary {
    grid-template-columns: minmax(0, 1fr);
  }

  .economy-v3-question-row .economy-v2-detail-panel {
    border-right: 0;
    border-bottom: 1px solid var(--ev2-border);
  }
}

@media (max-width: 980px) {
  .economy-v3-scope-meta {
    align-items: flex-start;
    flex-direction: column;
  }

  .economy-v3-periods {
    flex-wrap: wrap;
  }

  .economy-v3-kpis,
  .economy-v3-object-kpis {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .economy-v3-object-kpis .economy-v2-detail-kpi:nth-child(even) {
    border-right: 0;
  }

  .economy-v3-object-kpis .economy-v2-detail-kpi:nth-child(-n + 6) {
    border-bottom: 1px solid var(--ev2-border-soft);
  }

  .economy-v3-mobile-workspace {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    padding: 3px;
    border: 1px solid var(--ev2-border);
    border-radius: 7px;
    background: #f8fafc;
  }

  .economy-v3-mobile-workspace button {
    min-height: 36px;
    border: 1px solid transparent;
    border-radius: 5px;
    background: transparent;
    color: var(--ev2-muted);
    font-size: 12px;
    font-weight: 650;
  }

  .economy-v3-mobile-workspace button.is-active {
    border-color: var(--ev2-border);
    background: #fff;
    color: var(--ev2-text);
  }

  .economy-v3-portfolio-workspace {
    display: block;
    min-height: 0;
    height: auto;
  }

  .economy-v3-portfolio-workspace.is-list .economy-v3-map-panel,
  .economy-v3-portfolio-workspace.is-map .economy-v3-table-panel {
    display: none;
  }

  .economy-v3-table-panel {
    height: 570px;
  }

  .economy-v3-map-panel {
    height: 520px;
  }

  .economy-v3-state-title {
    align-items: flex-start;
    flex-direction: column;
  }

  .economy-v3-state-actions {
    width: 100%;
  }

  .economy-v3-state-actions button {
    flex: 1 1 50%;
  }

  .economy-v3-compare-shell .economy-v3-question-row,
  .economy-v3-object-shell .economy-v3-question-row {
    grid-template-columns: minmax(0, 1fr);
  }

  .economy-v3-contribution {
    overflow-x: auto;
  }
}

@media (max-width: 640px) {
  .economy-v3-breadcrumb {
    padding: 0 2px;
  }

  .economy-v3 .economy-v2-filter-band.is-analysis {
    padding: 6px;
  }

  .economy-v3 .economy-v2-filter-toggle strong,
  .economy-v3 .economy-v2-filter-toggle small {
    font-size: 12px;
  }

  .economy-v3-scope-meta {
    padding: 8px 4px 2px;
  }

  .economy-v3-periods {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 3px;
  }

  .economy-v3-active-filters {
    width: 100%;
  }

  .economy-v3-lenses {
    grid-template-columns: minmax(0, 1fr) 38px;
  }

  .economy-v3-lens {
    min-height: 38px;
  }

  .economy-v3-kpis .economy-v2-kpi {
    min-height: 92px;
  }

  .economy-v3-kpis .economy-v2-kpi > strong {
    font-size: 17px;
    line-height: 22px;
  }

  .economy-v3-map-settings {
    grid-template-columns: minmax(0, 1fr);
  }

  .economy-v3-ranking-controls {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 40px;
    width: 100%;
  }

  .economy-v3-ranking-controls .economy-v2-segmented,
  .economy-v3-ranking-controls .economy-v2-shared-select {
    width: 100%;
  }

  .economy-v3-ranking-controls .economy-v2-segmented {
    grid-column: 1 / -1;
  }

  .economy-v3-map-panel .economy-v2-analysis-chart {
    height: 390px;
  }

  .economy-v3-portfolio-table {
    min-width: 1460px;
  }

  .economy-v3-portfolio-table th:first-child,
  .economy-v3-portfolio-table td:first-child {
    width: 172px;
    min-width: 172px;
  }

  .economy-v3-compare-bar {
    bottom: calc(74px + env(safe-area-inset-bottom, 0px));
    align-items: stretch;
    flex-direction: column;
    width: calc(100% - 16px);
    gap: 7px;
    padding: 9px;
  }

  .economy-v3-compare-bar > div:last-child {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .economy-v3-state-head {
    padding: 10px;
  }

  .economy-v3-state-title h2 {
    overflow: visible;
    font-size: 18px;
    line-height: 24px;
    text-overflow: clip;
    white-space: normal;
  }

  .economy-v3-state-actions {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
  }

  .economy-v3-state-actions button {
    width: 100%;
    min-height: 40px;
  }

  .economy-v3-object-kpis .economy-v2-detail-kpi {
    min-height: 90px;
  }

  .economy-v3-question-row .economy-v2-detail-panel-head {
    min-height: 0;
  }

  .economy-v3-question-row .economy-v2-detail-chart {
    height: 286px;
  }

  .economy-v3-structure-findings {
    grid-template-columns: minmax(0, 1fr);
  }

  .economy-v3-child-table {
    overflow-x: auto;
  }

  .economy-v3-drill {
    align-items: stretch;
    flex-direction: column;
    padding: 10px;
  }

  .economy-v3-drill > div,
  .economy-v3-drill > button {
    width: 100%;
  }

  .economy-v3-compare-kpi-head,
  .economy-v3-compare-kpi-row,
  .economy-v3-compare-structure-head,
  .economy-v3-compare-structure-row,
  .economy-v3-contribution-row {
    font-size: 12px;
  }
}

[data-v2-view="overview"] .economy-v2-overview-drivers {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

@media (max-width: 980px) {
  [data-v2-view="overview"] .economy-v2-overview-drivers {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 640px) {
  [data-v2-view="overview"] .economy-v2-watchlist .economy-v2-table-wrap {
    overflow: hidden;
  }

  [data-v2-view="overview"] .economy-v2-watch-table {
    width: 100%;
    min-width: 0;
    max-width: 100%;
    table-layout: fixed;
  }

  [data-v2-view="overview"] .economy-v2-watch-table tbody,
  [data-v2-view="overview"] .economy-v2-watch-table tr,
  [data-v2-view="overview"] .economy-v2-watch-table td {
    min-width: 0;
    max-width: 100%;
  }
}

/* Overview v2 profit comparison: shared desktop/mobile hierarchy. */
[data-v2-view="overview"] .economy-v2-formation-panel > .economy-v2-panel-head {
  align-items: flex-start;
  min-height: 0;
  padding: 18px 20px 12px;
}

[data-v2-view="overview"] .economy-v2-formation-panel > .economy-v2-panel-head .economy-v2-panel-title > span {
  display: block;
}

.economy-v2-profit-conclusion {
  display: flex;
  align-items: center;
  gap: 7px;
  margin: 0 20px 14px;
  padding: 10px 12px;
  border-radius: 6px;
  background: #f5f7f9;
  color: var(--ev2-text-2);
  font-size: 13px;
  line-height: 18px;
}

.economy-v2-profit-conclusion i {
  flex: 0 0 8px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--ev2-red);
}

.economy-v2-profit-conclusion strong {
  color: var(--ev2-text);
}

[data-v2-view="overview"] .economy-v2-formation-panel .economy-v2-profit-equation {
  align-items: stretch;
  gap: 8px;
  padding: 0 20px 18px;
  border-bottom: 0;
  background: #fff;
}

[data-v2-view="overview"] .economy-v2-formation-panel .economy-v2-profit-equation > div {
  justify-content: center;
  min-width: 0;
  padding: 12px 14px;
  border: 1px solid var(--ev2-border);
  border-radius: 6px;
}

[data-v2-view="overview"] .economy-v2-profit-equation .is-base,
[data-v2-view="overview"] .economy-v2-profit-equation .is-result {
  border-color: #d7ebdf;
  background: var(--ev2-green-soft);
}

[data-v2-view="overview"] .economy-v2-profit-equation .is-cost {
  border-color: #fecdca;
  background: var(--ev2-red-soft);
}

[data-v2-view="overview"] .economy-v2-profit-equation .is-base strong,
[data-v2-view="overview"] .economy-v2-profit-equation .is-result.is-good strong {
  color: var(--ev2-green-dark);
}

[data-v2-view="overview"] .economy-v2-profit-equation .is-cost strong,
[data-v2-view="overview"] .economy-v2-profit-equation .is-result.is-bad strong {
  color: var(--ev2-red);
}

.economy-v2-expense-comparison {
  border-top: 1px solid var(--ev2-border-soft);
}

.economy-v2-expense-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  padding: 15px 20px 12px;
  border-bottom: 1px solid var(--ev2-border-soft);
}

.economy-v2-expense-heading h3 {
  margin: 0;
  color: var(--ev2-text);
  font-size: 15px;
  line-height: 20px;
}

.economy-v2-expense-heading > div > span {
  display: block;
  margin-top: 2px;
  color: var(--ev2-muted);
  font-size: 11px;
  line-height: 16px;
}

.economy-v2-expense-period-legend {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 6px 14px;
  color: var(--ev2-muted);
  font-size: 10px;
  line-height: 14px;
}

.economy-v2-expense-period-legend span {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.economy-v2-expense-period-legend i {
  width: 10px;
  height: 8px;
  border-radius: 2px;
  background: #b9dedb;
}

.economy-v2-expense-period-legend i.is-current {
  background: #0f8582;
}

.economy-v2-expense-period-legend-main {
  justify-content: flex-start;
  padding: 0 20px 12px;
  background: #fff;
}

.economy-v2-expense-item {
  border-bottom: 1px solid var(--ev2-border-soft);
}

.economy-v2-expense-item:last-child {
  border-bottom: 0;
}

.economy-v2-expense-summary {
  scroll-margin-top: 84px;
  display: grid;
  grid-template-columns: 18px minmax(120px, 1.05fr) minmax(130px, 0.85fr) minmax(185px, 1.1fr) minmax(190px, 1.15fr);
  align-items: center;
  width: 100%;
  gap: 12px;
  padding: 15px 20px;
  border: 0;
  background: #fff;
  color: inherit;
  font: inherit;
  text-align: left;
  cursor: pointer;
}

@media (max-width: 980px) {
  .economy-v2-expense-summary {
    scroll-margin-top: 12px;
  }
}

.economy-v2-expense-summary:hover {
  background: #fbfcfd;
}

.economy-v2-expense-summary:focus-visible {
  position: relative;
  z-index: 1;
  outline: 2px solid #84caff;
  outline-offset: -2px;
}

.economy-v2-expense-item.is-open > .economy-v2-expense-summary .chevron-icon {
  transform: rotate(180deg);
}

.economy-v2-expense-name,
.economy-v2-expense-impact,
.economy-v2-expense-change,
.economy-v2-expense-share {
  display: flex;
  flex-direction: column;
  min-width: 0;
  gap: 3px;
}

.economy-v2-expense-name strong,
.economy-v2-expense-impact strong,
.economy-v2-expense-share strong {
  color: var(--ev2-text);
  font-size: 13px;
  line-height: 18px;
}

.economy-v2-expense-name small,
.economy-v2-expense-impact small,
.economy-v2-expense-change > small,
.economy-v2-expense-share small {
  color: var(--ev2-muted);
  font-size: 10px;
  line-height: 14px;
}

.economy-v2-expense-impact.is-bad strong,
.economy-v2-expense-change > em.is-bad,
.economy-v2-expense-share.is-bad > em,
.economy-v2-expense-detail-row em.is-bad,
.economy-v2-commission-share-row em.is-bad {
  color: var(--ev2-red);
}

.economy-v2-expense-impact.is-good strong,
.economy-v2-expense-change > em.is-good,
.economy-v2-expense-share.is-good > em,
.economy-v2-expense-detail-row em.is-good,
.economy-v2-commission-share-row em.is-good {
  color: var(--ev2-green-dark);
}

.economy-v2-expense-change > em,
.economy-v2-expense-share > em,
.economy-v2-expense-detail-row em,
.economy-v2-commission-share-row em {
  color: var(--ev2-muted);
  font-size: 10px;
  font-style: normal;
  line-height: 14px;
}

.economy-v2-expense-bars {
  display: grid;
  min-width: 0;
  gap: 4px;
}

.economy-v2-expense-bars > span {
  display: grid;
  grid-template-columns: minmax(45px, 1fr) 86px;
  align-items: center;
  min-width: 0;
  gap: 7px;
}

.economy-v2-expense-bars i {
  display: block;
  width: var(--w);
  height: 7px;
  border-radius: 2px;
  background: #b9dedb;
}

.economy-v2-expense-bars .is-current i {
  background: #0f8582;
}

.economy-v2-expense-bars b {
  color: var(--ev2-text-2);
  font-size: 10px;
  font-weight: 500;
  line-height: 14px;
  white-space: nowrap;
}

.economy-v2-expense-detail {
  overflow: hidden;
  margin: 0 20px 15px 50px;
  border: 1px solid var(--ev2-border);
  border-radius: 6px;
  background: #fbfcfd;
}

.economy-v2-commission-compare > header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 14px 9px;
  border-bottom: 1px solid var(--ev2-border-soft);
}

.economy-v2-commission-compare > header > div:first-child {
  display: grid;
  gap: 2px;
}

.economy-v2-commission-compare > header strong {
  color: var(--ev2-text);
  font-size: 12px;
  line-height: 16px;
}

.economy-v2-commission-compare > header > div:first-child span {
  color: var(--ev2-muted);
  font-size: 10px;
  line-height: 14px;
}

.economy-v2-commission-share-row {
  display: grid;
  grid-template-columns: minmax(170px, 0.8fr) minmax(250px, 1.5fr);
  align-items: center;
  gap: 16px;
  padding: 12px 14px;
  border-bottom: 1px solid var(--ev2-border-soft);
}

.economy-v2-commission-share-row > div:first-child {
  display: grid;
  gap: 2px;
}

.economy-v2-commission-share-row > div:first-child strong {
  color: var(--ev2-text);
  font-size: 12px;
  line-height: 16px;
}

.economy-v2-commission-share-row > div:first-child span {
  color: var(--ev2-muted);
  font-size: 10px;
  line-height: 14px;
}

.economy-v2-commission-share-lines {
  display: grid;
  min-width: 0;
  gap: 5px;
}

.economy-v2-commission-share-lines > span {
  display: grid;
  grid-template-columns: 55px minmax(60px, 1fr) 95px;
  align-items: center;
  min-width: 0;
  gap: 8px;
  color: var(--ev2-muted);
  font-size: 10px;
  line-height: 14px;
}

.economy-v2-commission-share-lines > span > b {
  font-weight: 500;
}

.economy-v2-commission-share-lines > span > i {
  display: block;
  height: 8px;
  border-radius: 2px;
  background: #edf1f4;
}

.economy-v2-commission-share-lines u {
  display: block;
  width: var(--w);
  height: 100%;
  border-radius: inherit;
  background: #b9dedb;
  text-decoration: none;
}

.economy-v2-commission-share-lines .is-current u {
  background: #0f8582;
}

.economy-v2-commission-share-lines strong {
  color: var(--ev2-text-2);
  font-size: 10px;
  font-weight: 500;
  text-align: right;
  white-space: nowrap;
}

.economy-v2-expense-driver-list {
  display: grid;
}

.economy-v2-expense-detail-row {
  display: grid;
  grid-template-columns: minmax(170px, 0.8fr) minmax(250px, 1.5fr);
  align-items: center;
  gap: 16px;
  padding: 11px 14px;
  border-bottom: 1px solid var(--ev2-border-soft);
}

.economy-v2-expense-detail-row:last-child {
  border-bottom: 0;
}

.economy-v2-expense-detail-row > div {
  display: grid;
  gap: 2px;
}

.economy-v2-expense-detail-row > div strong {
  color: var(--ev2-text);
  font-size: 11px;
  line-height: 15px;
}

.economy-v2-base-details {
  border-top: 1px solid var(--ev2-border-soft);
}

.economy-v2-base-details > summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 42px;
  padding: 0 20px;
  color: var(--ev2-text-2);
  font-size: 12px;
  font-weight: 650;
  list-style: none;
  cursor: pointer;
}

.economy-v2-base-details > summary::-webkit-details-marker {
  display: none;
}

.economy-v2-base-details[open] > summary .chevron-icon {
  transform: rotate(180deg);
}

@media (max-width: 980px) {
  .economy-v2-expense-summary {
    grid-template-columns: 18px minmax(0, 1fr) minmax(130px, auto);
    gap: 8px 10px;
  }

  .economy-v2-expense-impact {
    text-align: right;
  }

  .economy-v2-expense-change,
  .economy-v2-expense-share {
    grid-column: 2 / -1;
    display: grid;
    grid-template-columns: minmax(110px, 0.55fr) minmax(170px, 1.45fr);
    align-items: baseline;
    gap: 3px 12px;
  }

  .economy-v2-expense-change .economy-v2-expense-bars,
  .economy-v2-expense-change > em,
  .economy-v2-expense-share > span,
  .economy-v2-expense-share > em {
    grid-column: 2;
  }
}

@media (max-width: 640px) {
  [data-v2-view="overview"] .economy-v2-formation-panel > .economy-v2-panel-head {
    padding: 14px 12px 10px;
  }

  [data-v2-view="overview"] .economy-v2-formation-panel > .economy-v2-panel-head .economy-v2-panel-meta {
    display: none;
  }

  .economy-v2-profit-conclusion {
    align-items: flex-start;
    margin: 0 12px 12px;
    padding: 9px 10px;
    font-size: 11px;
    line-height: 16px;
  }

  .economy-v2-profit-conclusion i {
    margin-top: 4px;
  }

  [data-v2-view="overview"] .economy-v2-formation-panel .economy-v2-profit-equation {
    grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
    gap: 6px;
    padding: 0 12px 14px;
  }

  [data-v2-view="overview"] .economy-v2-formation-panel .economy-v2-profit-equation > div {
    padding: 9px 10px;
  }

  [data-v2-view="overview"] .economy-v2-formation-panel .economy-v2-profit-equation > b:nth-of-type(2) {
    display: none;
  }

  [data-v2-view="overview"] .economy-v2-formation-panel .economy-v2-profit-equation .is-result {
    grid-column: 1 / -1;
  }

  [data-v2-view="overview"] .economy-v2-formation-panel .economy-v2-profit-equation .is-result::before {
    content: "=";
    margin-bottom: 2px;
    color: var(--ev2-muted);
  }

  .economy-v2-expense-heading {
    padding: 12px;
  }

  .economy-v2-expense-heading h3 {
    font-size: 14px;
    line-height: 19px;
  }

  .economy-v2-expense-heading > .economy-v2-expense-period-legend {
    display: none;
  }

  .economy-v2-expense-summary {
    grid-template-columns: 16px minmax(0, 1fr) auto;
    gap: 8px;
    padding: 13px 12px;
  }

  .economy-v2-expense-name {
    grid-column: 2;
  }

  .economy-v2-expense-impact {
    grid-column: 3;
    grid-row: 1;
  }

  .economy-v2-expense-change,
  .economy-v2-expense-share {
    grid-column: 2 / -1;
    grid-template-columns: minmax(76px, 0.55fr) minmax(0, 1.45fr);
    gap: 3px 8px;
  }

  .economy-v2-expense-bars > span {
    grid-template-columns: minmax(24px, 1fr) 76px;
    gap: 5px;
  }

  .economy-v2-expense-bars b {
    font-size: 9px;
  }

  .economy-v2-expense-detail {
    margin: 0 10px 12px;
  }

  .economy-v2-commission-compare > header {
    display: block;
    padding: 11px 12px 8px;
  }

  .economy-v2-commission-compare > header .economy-v2-expense-period-legend {
    justify-content: flex-start;
    margin-top: 6px;
  }

  .economy-v2-commission-share-row,
  .economy-v2-expense-detail-row {
    grid-template-columns: minmax(0, 1fr);
    gap: 8px;
    padding: 11px 12px;
  }

  .economy-v2-commission-share-lines > span {
    grid-template-columns: 50px minmax(0, 1fr) 82px;
    gap: 6px;
    font-size: 9px;
  }

  .economy-v2-commission-share-lines strong {
    font-size: 9px;
  }

  .economy-v2-expense-detail-row .economy-v2-expense-bars > span {
    grid-template-columns: minmax(0, 1fr) 88px;
  }

  .economy-v2-base-details > summary {
    min-height: 40px;
    padding: 0 12px;
    font-size: 11px;
  }

  .economy-v2-base-details .economy-v2-comparison-title {
    padding: 10px 12px 6px;
  }

  .economy-v2-base-details .economy-v2-flow-row {
    padding: 9px 12px;
  }
}

.economy-v2-equation-label-short,
.economy-v2-share-verdict-short {
  display: none;
}

@media (max-width: 640px) {
  .economy-v2-equation-label-long,
  .economy-v2-share-verdict-long {
    display: none;
  }

  .economy-v2-equation-label-short,
  .economy-v2-share-verdict-short {
    display: inline;
  }

  [data-v2-view="overview"] .economy-v2-formation-panel .economy-v2-profit-equation {
    grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr) auto minmax(0, 1fr);
    gap: 4px;
    padding: 0 10px 12px;
  }

  [data-v2-view="overview"] .economy-v2-formation-panel .economy-v2-profit-equation > div {
    grid-column: auto;
    min-height: 64px;
    padding: 7px 4px;
    text-align: center;
  }

  [data-v2-view="overview"] .economy-v2-formation-panel .economy-v2-profit-equation > b:nth-of-type(2) {
    display: block;
  }

  [data-v2-view="overview"] .economy-v2-formation-panel .economy-v2-profit-equation .is-result {
    grid-column: auto;
  }

  [data-v2-view="overview"] .economy-v2-formation-panel .economy-v2-profit-equation .is-result::before {
    display: none;
    content: none;
  }

  [data-v2-view="overview"] .economy-v2-formation-panel .economy-v2-profit-equation > div > span {
    font-size: 9px;
    line-height: 12px;
  }

  [data-v2-view="overview"] .economy-v2-formation-panel .economy-v2-profit-equation strong {
    margin-top: 2px;
    font-size: 12px;
    line-height: 16px;
    white-space: nowrap;
  }

  [data-v2-view="overview"] .economy-v2-formation-panel .economy-v2-profit-equation > b {
    font-size: 13px;
  }

  .economy-v2-expense-summary {
    grid-template-columns: 16px minmax(0, 1fr) auto;
    row-gap: 6px;
    column-gap: 8px;
    padding: 11px 10px;
  }

  .economy-v2-expense-name small,
  .economy-v2-expense-impact small {
    display: none;
  }

  .economy-v2-expense-name strong,
  .economy-v2-expense-impact strong {
    font-size: 13px;
    line-height: 18px;
  }

  .economy-v2-expense-impact strong {
    white-space: nowrap;
  }

  .economy-v2-expense-change {
    grid-column: 2 / -1;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 3px 8px;
  }

  .economy-v2-expense-change > small {
    grid-column: 1;
    grid-row: 1;
  }

  .economy-v2-expense-change > em {
    grid-column: 2;
    grid-row: 1;
    text-align: right;
    white-space: nowrap;
  }

  .economy-v2-expense-change .economy-v2-expense-bars {
    grid-column: 1 / -1;
    grid-row: 2;
    gap: 3px;
  }

  .economy-v2-expense-bars > span {
    grid-template-columns: minmax(20px, 1fr) 76px;
    gap: 5px;
  }

  .economy-v2-expense-bars i {
    height: 6px;
  }

  .economy-v2-expense-share {
    grid-column: 2 / -1;
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: baseline;
    gap: 6px;
  }

  .economy-v2-expense-share::before {
    grid-column: 1;
    content: "Доля";
    color: var(--ev2-muted);
    font-size: 9px;
    line-height: 13px;
  }

  .economy-v2-expense-share > small {
    display: none;
  }

  .economy-v2-expense-share > span {
    grid-column: 2;
    color: var(--ev2-text-2);
    font-size: 11px;
    line-height: 15px;
    white-space: nowrap;
  }

  .economy-v2-expense-share > em {
    grid-column: 3;
    font-size: 9px;
    line-height: 13px;
    text-align: right;
    white-space: nowrap;
  }

  .economy-v2-expense-detail {
    margin: 0 8px 8px;
  }

  .economy-v2-commission-compare > header {
    padding: 9px 10px 7px;
  }

  .economy-v2-commission-compare > header .economy-v2-expense-period-legend {
    margin-top: 4px;
  }

  .economy-v2-commission-share-row,
  .economy-v2-expense-detail-row {
    gap: 6px;
    padding: 9px 10px;
  }

  .economy-v2-commission-share-row > div:first-child {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: baseline;
    gap: 3px 8px;
  }

  .economy-v2-commission-share-row > div:first-child > span {
    display: none;
  }

  .economy-v2-commission-share-row > div:first-child > em {
    grid-column: 2;
    grid-row: 1;
    white-space: nowrap;
  }

  .economy-v2-expense-detail-row > div {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    min-width: 0;
    gap: 8px;
  }

  .economy-v2-expense-detail-row > div strong {
    min-width: 0;
  }

  .economy-v2-expense-detail-row > div em {
    flex: 0 0 auto;
    text-align: right;
    white-space: nowrap;
  }

  .economy-v2-expense-detail-row .economy-v2-expense-bars > span {
    grid-template-columns: minmax(0, 1fr) 82px;
  }

  .economy-v2-commission-share-lines > span {
    grid-template-columns: 46px minmax(0, 1fr) 78px;
    gap: 5px;
  }
}

@media (max-width: 360px) {
  body:has(.economy-v2[data-v2-view="overview"]) .topbar .title-block h1 {
    font-size: 15px;
  }

  [data-v2-view="overview"] .economy-v2-overview-kpis .economy-v2-kpi strong {
    font-size: 18px;
    line-height: 23px;
  }

  [data-v2-view="overview"] .economy-v2-overview-context {
    gap: 5px;
    font-size: 10px;
    line-height: 14px;
    white-space: nowrap;
  }

  [data-v2-view="overview"] .economy-v2-overview-context span + span::before {
    margin-right: 5px;
  }

  [data-v2-view="overview"] .economy-v2-formation-panel .economy-v2-profit-equation {
    gap: 3px;
    padding-right: 8px;
    padding-left: 8px;
  }

  [data-v2-view="overview"] .economy-v2-formation-panel .economy-v2-profit-equation > div {
    min-height: 60px;
    padding-right: 2px;
    padding-left: 2px;
  }

  [data-v2-view="overview"] .economy-v2-formation-panel .economy-v2-profit-equation strong {
    font-size: 11px;
  }

  .economy-v2-expense-name strong,
  .economy-v2-expense-impact strong {
    font-size: 12px;
  }

  .economy-v2-expense-share {
    gap: 4px;
  }

  .economy-v2-expense-share > span {
    font-size: 10px;
  }

  .economy-v2-expense-bars > span,
  .economy-v2-expense-detail-row .economy-v2-expense-bars > span {
    grid-template-columns: minmax(0, 1fr) 72px;
  }

  .economy-v2-commission-share-lines > span {
    grid-template-columns: 43px minmax(0, 1fr) 70px;
  }
}

/* Profitability v4: one cross-filtering workspace. */
.economy-v4 {
  --ev4-ink: #17212b;
  --ev4-muted: #667085;
  --ev4-line: #d8dee6;
  --ev4-line-soft: #e9edf2;
  --ev4-canvas: #f7f8fa;
  --ev4-green: #087443;
  --ev4-green-soft: #e9f7ef;
  --ev4-red: #c92a2a;
  --ev4-red-soft: #fff0f0;
  --ev4-blue: #315da8;
  display: grid;
  gap: 14px;
  color: var(--ev4-ink);
}

.economy-v4-toolbar.product-view-summary {
  flex-wrap: nowrap;
  min-width: 0;
  overflow: visible;
  border: 1px solid var(--ev4-line);
  border-radius: 8px;
  background: #fbfcfd;
}

.economy-v4-toolbar .product-summary-status,
.economy-v4-toolbar-controls {
  flex-wrap: nowrap;
}

.economy-v4-toolbar .product-summary-status {
  flex: 0 0 auto;
}

.economy-v4-toolbar-controls {
  display: flex;
  align-items: center;
  min-width: 0;
  margin-left: auto;
}

.economy-v4-toolbar .economy-v2-shared-select {
  width: 100%;
  min-width: 0;
}

.economy-v4-toolbar-control {
  flex: 0 0 160px;
  min-width: 0;
  width: 160px;
}

.economy-v4-toolbar-control--grouping {
  flex-basis: 193px;
  width: 193px;
}

.economy-v4-toolbar-control--filter-key {
  flex-basis: 182px;
  width: 182px;
}

.economy-v4-toolbar-control--filter-value {
  flex-basis: 128px;
  width: 128px;
}

.economy-v4-toolbar-control--sort {
  flex-basis: 194px;
  width: 194px;
}

.economy-v4-toolbar-reset {
  flex: 0 0 124px;
  width: 124px;
}

.economy-v4-toolbar .topbar-select-button,
.economy-v4-toolbar .product-reset-view-button {
  white-space: nowrap;
}

.economy-v4-toolbar .topbar-select-button {
  width: 100%;
  min-width: 0;
}

@media (min-width: 701px) {
  .economy-v4-toolbar .topbar-select-button {
    gap: 4px;
    padding-right: 7px;
    padding-left: 7px;
  }
}

.economy-v4-toolbar .topbar-select-button:not(.is-active),
.economy-v4-toolbar .product-reset-view-button {
  color: #344054;
}

.economy-v4-toolbar .topbar-select-button:hover {
  color: #1f2a44;
}

.economy-v4-toolbar .topbar-select-button.is-active {
  color: var(--green-dark);
}

.economy-v4-toolbar .topbar-select-option {
  color: #344054;
  font-weight: 720;
}

.economy-v4-toolbar .topbar-select-option.is-selected {
  color: var(--green-dark);
}

.economy-v4-toolbar .product-reset-view-button {
  flex: 0 0 auto;
  font-weight: 780;
}

.economy-v4-context,
.economy-v4-panel {
  border: 1px solid var(--ev4-line);
  border-radius: 8px;
  background: #fff;
}

.economy-v4 {
  overflow-anchor: none;
}

.economy-v4-context {
  display: grid;
  gap: 12px;
  padding: 12px 14px 14px;
}

.economy-v4-context-meta,
.economy-v4-context-controls,
.economy-v4-panel-head,
.economy-v4-active-secondary,
.economy-v4-trend-controls,
.economy-v4-detail-legend,
.economy-v4-trend-legend {
  display: flex;
  align-items: center;
}

.economy-v4-context-meta {
  justify-content: space-between;
  gap: 18px;
  min-width: 0;
}

.economy-v4-context-meta > div {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 18px;
}

.economy-v4-context-meta > div > span {
  display: grid;
  gap: 1px;
  color: var(--ev4-ink);
  font-size: 12px;
  line-height: 16px;
}

.economy-v4-context-meta b {
  color: var(--ev4-muted);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .05em;
  text-transform: uppercase;
}

.economy-v4-context-controls {
  align-items: end;
  gap: 8px;
  min-width: 0;
}

.economy-v4-context-controls .economy-v2-field:first-child {
  flex: 0 0 210px;
}

.economy-v4-context-controls .economy-v2-field:nth-child(2) {
  flex: 0 0 180px;
}

.economy-v4-context-controls .economy-v2-reset {
  flex: 0 0 auto;
  min-height: 40px;
}

.economy-v4-grid {
  display: grid;
  gap: 14px;
  min-width: 0;
}

.economy-v4-grid-primary {
  grid-template-columns: minmax(0, 7fr) minmax(360px, 5fr);
  height: 520px;
}

.economy-v4-grid-primary.is-object-list-expanded {
  height: auto;
}

.economy-v4-grid-primary.is-object-list-expanded .economy-v4-active-panel {
  align-self: start;
  min-height: 520px;
}

.economy-v4-grid-secondary {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  height: 480px;
}

.economy-v4-panel {
  min-width: 0;
  overflow: hidden;
}

.economy-v4-objects-panel {
  display: grid;
  grid-template-rows: auto auto minmax(0, 1fr);
  min-height: 0;
}

.economy-v4-panel-head {
  justify-content: space-between;
  gap: 14px;
  min-height: 76px;
  padding: 15px 16px 13px;
  border-bottom: 1px solid var(--ev4-line-soft);
}

.economy-v4-panel-head > div:first-child {
  min-width: 0;
}

.economy-v4-panel-head span {
  display: block;
  margin-bottom: 2px;
  color: var(--ev4-muted);
  font-size: 10px;
  font-weight: 750;
  letter-spacing: .06em;
  line-height: 14px;
  text-transform: uppercase;
}

.economy-v4-panel-head h2 {
  min-width: 0;
  margin: 0;
  overflow: hidden;
  color: var(--ev4-ink);
  font-size: 18px;
  font-weight: 720;
  letter-spacing: -.02em;
  line-height: 24px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.economy-v4-panel-head small {
  display: block;
  margin-top: 2px;
  color: var(--ev4-muted);
  font-size: 11px;
  line-height: 15px;
}

.economy-v4-panel-head > .product-custom-select {
  flex: 0 0 184px;
  width: 184px;
}

.economy-v4-panel-head .product-custom-select-button {
  min-height: 36px;
  padding-top: 7px;
  padding-bottom: 7px;
  font-size: 11px;
}

.economy-v4-objects-head {
  min-height: 64px;
  padding-top: 17px;
  padding-bottom: 15px;
}

.economy-v4-objects-head > div:first-child {
  display: flex;
  align-items: baseline;
  gap: 14px;
}

.economy-v4-objects-head h2 {
  flex: 0 0 auto;
}

.economy-v4-objects-head small {
  min-width: 0;
  margin-top: 0;
  white-space: nowrap;
}

.economy-v4-lenses {
  display: flex;
  align-items: center;
  gap: 4px;
  min-height: 48px;
  padding: 7px 10px;
  border-bottom: 1px solid var(--ev4-line-soft);
  overflow-x: auto;
  scrollbar-width: none;
}

.economy-v4-lenses::-webkit-scrollbar {
  display: none;
}

.economy-v4-lenses button {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 6px;
  min-height: 30px;
  padding: 5px 9px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: #52606d;
  font: inherit;
  font-size: 11px;
  font-weight: 650;
  cursor: pointer;
}

.economy-v4-lenses button:hover {
  background: #f2f4f7;
}

.economy-v4-lenses button.is-active {
  background: #e8eef8;
  color: #244c8d;
}

.economy-v4-lenses button:focus-visible,
.economy-v4-factor:focus-visible,
.economy-v4-view-toggle button:focus-visible,
.economy-v4-trend-controls button:focus-visible {
  position: relative;
  z-index: 1;
  outline: 2px solid #315da8;
  outline-offset: 2px;
}

.economy-v4-lenses b {
  min-width: 18px;
  padding: 1px 5px;
  border-radius: 999px;
  background: rgb(255 255 255 / 70%);
  font-size: 10px;
  line-height: 16px;
  text-align: center;
}

.economy-v4-attention-table-wrap {
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto;
  min-height: 0;
  overflow: hidden;
}

.economy-v4-attention-table {
  width: 100%;
  border-collapse: collapse;
  table-layout: fixed;
  color: var(--ev4-ink);
  font-variant-numeric: tabular-nums;
}

.economy-v4-attention-table col.is-rank {
  width: 5%;
}

.economy-v4-attention-table col.is-name {
  width: 40%;
}

.economy-v4-attention-table col.is-profit {
  width: 15%;
}

.economy-v4-attention-table col.is-impact {
  width: 15%;
}

.economy-v4-attention-table col.is-margin {
  width: 15%;
}

.economy-v4-attention-table col.is-open {
  width: 5%;
}

.economy-v4-attention-table th {
  height: 35px;
  padding: 0 8px;
  border-bottom: 1px solid var(--ev4-line-soft);
  color: var(--ev4-muted);
  font-size: 10px;
  font-weight: 700;
  line-height: 13px;
  text-align: left;
  white-space: nowrap;
}

.economy-v4-attention-table th:nth-child(3),
.economy-v4-attention-table th:nth-child(4),
.economy-v4-attention-table th:nth-child(5) {
  text-align: center;
}

.economy-v4-attention-table th button {
  width: 100%;
  min-width: 0;
  padding: 5px 0;
  border: 0;
  border-radius: 4px;
  background: transparent;
  color: inherit;
  font: inherit;
  font-weight: inherit;
  line-height: inherit;
  text-align: inherit;
  white-space: nowrap;
  cursor: pointer;
}

.economy-v4-attention-table th:nth-child(3) button,
.economy-v4-attention-table th:nth-child(4) button,
.economy-v4-attention-table th:nth-child(5) button {
  text-align: center;
}

.economy-v4-attention-table th button:hover {
  color: var(--ev4-ink);
  background: #f2f4f7;
}

.economy-v4-attention-table th button:focus-visible {
  outline: 2px solid #315da8;
  outline-offset: 1px;
}

.economy-v4-attention-row {
  height: 53px;
  outline: 0;
  cursor: pointer;
  transition: background-color 140ms ease, box-shadow 140ms ease;
}

.economy-v4-attention-row:hover {
  background: #f8fafc;
}

.economy-v4-attention-row:focus-visible {
  outline: 2px solid #315da8;
  outline-offset: -2px;
}

.economy-v4-attention-row.is-active {
  background: #f2f6fc;
  box-shadow: inset 3px 0 0 #315da8;
}

.economy-v4-attention-row td {
  min-width: 0;
  padding: 6px 8px;
  border-bottom: 1px solid var(--ev4-line-soft);
  vertical-align: middle;
}

.economy-v4-attention-rank {
  padding-left: 13px !important;
  color: var(--ev4-muted);
  font-size: 11px;
  font-weight: 700;
  text-align: center;
}

.economy-v4-attention-name strong {
  display: -webkit-box;
  overflow: hidden;
  font-size: 12px;
  font-weight: 720;
  line-height: 15px;
  overflow-wrap: anywhere;
  white-space: normal;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.economy-v4-attention-name button {
  display: grid;
  width: 100%;
  min-width: 0;
  padding: 0;
  border: 0;
  outline: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  text-align: left;
  cursor: pointer;
}

.economy-v4-attention-name button:focus-visible {
  border-radius: 4px;
  outline: 2px solid #315da8;
  outline-offset: 3px;
}

.economy-v4-attention-name small {
  display: block;
  margin-top: 1px;
  color: var(--ev4-muted);
  font-size: 9px;
  line-height: 12px;
}

.economy-v4-attention-profit {
  color: #344054;
  font-weight: 700;
  text-align: center;
  white-space: nowrap;
}

.economy-v4-attention-profit strong,
.economy-v4-attention-profit small {
  display: inline;
  font-size: 10px;
  line-height: 13px;
}

.economy-v4-attention-profit small {
  margin-left: 2px;
  color: var(--ev4-muted);
  font-size: 8px;
  font-weight: 600;
}

.economy-v4-attention-profit.is-bad strong {
  color: #d92d20;
}

.economy-v4-attention-impact {
  padding-right: 4px !important;
  padding-left: 4px !important;
  text-align: center;
}

.economy-v4-attention-variance {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  grid-template-rows: 11px 13px;
  align-items: center;
  column-gap: 6px;
  width: 100%;
  min-width: 0;
  color: #344054;
  font-variant-numeric: tabular-nums;
}

.economy-v4-attention-variance-track {
  position: relative;
  display: block;
  grid-column: 1;
  grid-row: 1 / span 2;
  width: 100%;
  height: 8px;
  border-radius: 999px;
  background: #f0f2f5;
}

.economy-v4-attention-variance-track::before {
  position: absolute;
  top: -3px;
  bottom: -3px;
  left: 50%;
  width: 1px;
  background: #98a2b3;
  content: "";
}

.economy-v4-attention-variance-track i {
  position: absolute;
  top: 0;
  width: var(--variance-width);
  height: 8px;
  border-radius: 999px;
  background: #98a2b3;
}

.economy-v4-attention-variance.is-good .economy-v4-attention-variance-track i {
  left: 50%;
  background: #24a56a;
}

.economy-v4-attention-variance.is-bad .economy-v4-attention-variance-track i {
  right: 50%;
  background: #e84a5f;
}

.economy-v4-attention-variance strong,
.economy-v4-attention-variance small {
  grid-column: 2;
  grid-row: 1;
  white-space: nowrap;
}

.economy-v4-attention-variance strong {
  align-self: end;
  font-size: 10px;
  font-weight: 720;
  line-height: 11px;
}

.economy-v4-attention-variance small {
  align-self: start;
  color: var(--ev4-muted);
  font-size: 7px;
  font-weight: 600;
  line-height: 9px;
}

.economy-v4-attention-variance small {
  grid-row: 2;
}

.economy-v4-attention-margin {
  font-size: 11px;
  font-weight: 720;
  text-align: center;
  white-space: nowrap;
}

.economy-v4-attention-margin.is-neutral {
  color: var(--ev4-muted);
}

.economy-v4-attention-open {
  padding-right: 11px !important;
  color: #98a2b3;
  text-align: right;
}

.economy-v4-attention-open .button-icon {
  width: 14px;
  height: 14px;
}

.economy-v4-attention-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 50px;
  padding: 8px 12px;
  background: #fff;
}

.economy-v4-attention-footer > span {
  color: var(--ev4-muted);
  font-size: 10px;
}

.economy-v4-attention-footer .product-reset-view-button {
  min-height: 32px;
  padding: 6px 10px;
  font-size: 11px;
}

@media (min-width: 701px) and (max-width: 1500px) {
  .economy-v4-toolbar-control--grouping {
    flex-basis: 177px;
    width: 177px;
  }

  .economy-v4-toolbar-control--filter-key {
    flex-basis: 181px;
    width: 181px;
  }

  .economy-v4-toolbar-control--filter-value {
    flex-basis: 123px;
    width: 123px;
  }

  .economy-v4-toolbar-control--sort {
    flex-basis: 196px;
    width: 196px;
  }

  .economy-v4-toolbar-reset {
    flex-basis: 124px;
    width: 124px;
  }
}

.economy-v4-object-head,
.economy-v4-object-metrics,
.economy-v4-object-signal,
.economy-v4-factor,
.economy-v4-factor-track small,
.economy-v4-detail-table > div,
.economy-v4-detail-chart > div {
  display: grid;
  align-items: center;
}

.economy-v4-object-head {
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: start;
  gap: 10px;
}

.economy-v4-object-head strong {
  display: -webkit-box;
  min-height: 36px;
  overflow: hidden;
  font-size: 14px;
  font-weight: 720;
  line-height: 18px;
  overflow-wrap: anywhere;
  white-space: normal;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.economy-v4-object-head small,
.economy-v4-object-metrics small,
.economy-v4-object-drr small,
.economy-v4-object-drr span,
.economy-v4-active-secondary small {
  color: var(--ev4-muted);
  font-size: 10px;
  line-height: 14px;
}

.economy-v4-object-metrics {
  grid-template-columns: 1.2fr 1.2fr .8fr;
  gap: 0;
}

.economy-v4-object-metric {
  display: grid;
  align-content: start;
  gap: 1px;
  min-width: 0;
  padding: 0 8px;
  border-left: 1px solid var(--ev4-line-soft);
}

.economy-v4-object-metric:first-child {
  padding-left: 0;
  border-left: 0;
}

.economy-v4-object-metric:last-child {
  padding-right: 0;
}

.economy-v4-object-metric small {
  overflow: hidden;
  font-size: 9px;
  line-height: 13px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.economy-v4-object-metrics b,
.economy-v4-object-drr b {
  overflow: hidden;
  color: var(--ev4-ink);
  font-size: 12px;
  font-weight: 720;
  line-height: 17px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.economy-v4-object-metrics b.is-bad,
.economy-v4-active-primary strong.is-bad {
  color: var(--ev4-red);
}

.economy-v4-object-metric em,
.economy-v4-object-drr em {
  overflow: hidden;
  color: var(--ev4-muted);
  font-size: 9px;
  font-style: normal;
  font-weight: 720;
  line-height: 13px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.economy-v4-object-metric em.is-good,
.economy-v4-object-drr em.is-good {
  color: var(--ev4-green);
}

.economy-v4-object-metric em.is-bad,
.economy-v4-object-drr em.is-bad {
  color: var(--ev4-red);
}

.economy-v4-object-drr {
  display: grid;
  grid-template-columns: auto auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px;
  min-width: 0;
  padding-top: 10px;
  border-top: 1px solid var(--ev4-line-soft);
}

.economy-v4-object-drr small,
.economy-v4-object-drr span {
  font-size: 9px;
  line-height: 13px;
  white-space: nowrap;
}

.economy-v4-object-drr em {
  justify-self: end;
}

.economy-v4-active-panel {
  display: grid;
  grid-template-rows: auto auto auto 1fr;
}

.economy-v4-active-primary {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  border-bottom: 1px solid var(--ev4-line-soft);
}

.economy-v4-active-primary > div {
  display: grid;
  gap: 4px;
  min-width: 0;
  padding: 24px 20px 21px;
}

.economy-v4-active-primary > div + div {
  border-left: 1px solid var(--ev4-line-soft);
}

.economy-v4-active-primary span,
.economy-v4-conclusion > span {
  color: var(--ev4-muted);
  font-size: 11px;
  font-weight: 700;
  line-height: 15px;
  text-transform: uppercase;
}

.economy-v4-active-primary strong {
  overflow: hidden;
  font-size: clamp(26px, 2.2vw, 34px);
  font-weight: 720;
  letter-spacing: -.035em;
  line-height: 40px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.economy-v4-active-primary small {
  color: var(--ev4-muted);
  font-size: 11px;
  line-height: 15px;
}

.economy-v4 .is-bad {
  color: var(--ev4-red) !important;
}

.economy-v4 .is-good {
  color: var(--ev4-green) !important;
}

.economy-v4-active-secondary {
  justify-content: stretch;
  border-bottom: 1px solid var(--ev4-line-soft);
}

.economy-v4-active-secondary > span {
  display: grid;
  flex: 1 1 0;
  gap: 3px;
  min-width: 0;
  padding: 17px 18px;
}

.economy-v4-active-secondary > span + span {
  border-left: 1px solid var(--ev4-line-soft);
}

.economy-v4-active-secondary b {
  overflow: hidden;
  font-size: 13px;
  line-height: 18px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.economy-v4-conclusion {
  align-self: stretch;
  padding: 20px;
  background: #fafbfc;
}

.economy-v4-conclusion strong {
  display: block;
  margin-top: 8px;
  font-size: 14px;
  line-height: 21px;
}

.economy-v4-conclusion p {
  margin: 5px 0 0;
  color: var(--ev4-muted);
  font-size: 12px;
  line-height: 18px;
}

.economy-v4-factors-panel,
.economy-v4-detail-panel {
  height: 100%;
}

.economy-v4-factor-list {
  height: calc(100% - 76px);
  overflow-y: auto;
}

.economy-v4-factor {
  grid-template-columns: minmax(120px, .8fr) minmax(190px, 1.45fr) minmax(105px, .7fr);
  gap: 14px;
  width: 100%;
  min-height: 87px;
  padding: 14px 16px;
  border: 0;
  border-bottom: 1px solid var(--ev4-line-soft);
  background: #fff;
  color: inherit;
  font: inherit;
  text-align: left;
  cursor: pointer;
}

.economy-v4-factor:hover {
  background: #fafbfc;
}

.economy-v4-factor.is-active {
  background: #f5f7fa;
  box-shadow: inset 3px 0 0 #315da8;
}

.economy-v4-factor-name,
.economy-v4-factor-impact {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.economy-v4-factor-name strong,
.economy-v4-factor-impact strong {
  overflow: hidden;
  font-size: 12px;
  font-weight: 720;
  line-height: 17px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.economy-v4-factor-name small,
.economy-v4-factor-impact small {
  color: var(--ev4-muted);
  font-size: 10px;
  line-height: 14px;
}

.economy-v4-factor-track {
  position: relative;
  display: grid;
  gap: 5px;
  min-width: 0;
}

.economy-v4-factor-track > i,
.economy-v4-detail-bars > i {
  display: block;
  width: var(--w);
  min-width: 2px;
  border-radius: 2px;
}

.economy-v4-factor-track > i {
  height: 6px;
}

.economy-v4-factor-track .is-previous,
.economy-v4-detail-bars .is-previous,
.economy-v4-detail-legend .is-previous {
  background: #c4cbd4;
}

.economy-v4-factor-track .is-current,
.economy-v4-detail-bars .is-current,
.economy-v4-detail-legend .is-current {
  background: #486fae;
}

.economy-v4-factor-track small {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px;
  color: var(--ev4-muted);
  font-size: 9px;
  font-weight: 550;
  line-height: 12px;
}

.economy-v4-factor-track small b {
  overflow: hidden;
  font-weight: 600;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.economy-v4-factor-impact {
  text-align: right;
}

.economy-v4-view-toggle {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  padding: 3px;
  border: 1px solid var(--ev4-line);
  border-radius: 6px;
  background: #f4f6f8;
}

.economy-v4-view-toggle button {
  min-height: 28px;
  padding: 4px 9px;
  border: 0;
  border-radius: 4px;
  background: transparent;
  color: var(--ev4-muted);
  font: inherit;
  font-size: 10px;
  font-weight: 700;
  cursor: pointer;
}

.economy-v4-view-toggle button.is-active {
  background: #fff;
  color: var(--ev4-ink);
  box-shadow: 0 0 0 1px #d8dee6;
}

.economy-v4-detail-note {
  margin: 0;
  padding: 9px 16px;
  border-bottom: 1px solid var(--ev4-line-soft);
  background: #fafbfc;
  color: var(--ev4-muted);
  font-size: 10px;
  line-height: 14px;
}

.economy-v4-detail-chart,
.economy-v4-detail-table {
  height: calc(100% - 111px);
  padding: 10px 16px;
  overflow-y: auto;
}

.economy-v4-detail-note + .economy-v4-detail-chart,
.economy-v4-detail-note + .economy-v4-detail-table {
  height: calc(100% - 145px);
}

.economy-v4-detail-chart > div {
  grid-template-columns: minmax(105px, .9fr) minmax(140px, 1.4fr) minmax(102px, .8fr);
  gap: 12px;
  min-height: 54px;
  border-bottom: 1px solid var(--ev4-line-soft);
}

.economy-v4-detail-chart > div > strong,
.economy-v4-detail-table span {
  overflow: hidden;
  font-size: 11px;
  font-weight: 650;
  line-height: 15px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.economy-v4-detail-bars {
  display: grid;
  gap: 5px;
}

.economy-v4-detail-bars > i {
  height: 7px;
}

.economy-v4-detail-chart > div > span:last-child {
  display: grid;
  gap: 2px;
  text-align: right;
}

.economy-v4-detail-chart small,
.economy-v4-detail-chart b,
.economy-v4-detail-table b,
.economy-v4-detail-table strong {
  font-size: 10px;
  line-height: 14px;
}

.economy-v4-detail-chart small {
  color: var(--ev4-muted);
}

.economy-v4-detail-table > div {
  grid-template-columns: minmax(0, 1fr) 108px 108px;
  gap: 12px;
  min-height: 38px;
  border-bottom: 1px solid var(--ev4-line-soft);
}

.economy-v4-detail-table > div:first-child {
  min-height: 31px;
  color: var(--ev4-muted);
}

.economy-v4-detail-table > div > :not(:first-child) {
  text-align: right;
}

.economy-v4-detail-legend {
  justify-content: flex-end;
  gap: 14px;
  min-height: 35px;
  padding: 6px 16px;
  border-top: 1px solid var(--ev4-line-soft);
  color: var(--ev4-muted);
  font-size: 10px;
}

.economy-v4-detail-legend span,
.economy-v4-trend-legend span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.economy-v4-detail-legend i,
.economy-v4-trend-legend i {
  display: inline-block;
  width: 13px;
  height: 3px;
  border-radius: 2px;
}

.economy-v4-trend-panel {
  min-height: 440px;
}

.economy-v4-trend-controls {
  justify-content: flex-end;
  gap: 8px;
}

.economy-v4-trend-controls .product-custom-select {
  width: 184px;
}

.economy-v4-trend-controls .product-custom-select-button {
  min-height: 36px;
  font-size: 11px;
}

.economy-v4-trend-controls .economy-v2-segmented {
  min-height: 34px;
}

.economy-v4-trend-chart {
  display: block;
  width: calc(100% - 20px);
  height: 318px;
  margin: 4px 10px 0;
}

.economy-v4-trend-legend {
  justify-content: flex-end;
  gap: 16px;
  min-height: 40px;
  padding: 7px 18px;
  border-top: 1px solid var(--ev4-line-soft);
  color: var(--ev4-muted);
  font-size: 10px;
}

.economy-v4-trend-legend .is-base {
  background: #b8e4d0;
}

.economy-v4-trend-legend .is-profit,
.economy-v4-trend-legend .is-current {
  background: #0b8f55;
}

.economy-v4-trend-legend .is-margin {
  height: 2px;
  background: #b54708;
}

.economy-v4-trend-legend .is-previous {
  height: 2px;
  background: #98a2b3;
}

@media (max-width: 1180px) {
  .economy-v4-grid-primary {
    grid-template-columns: minmax(0, 1fr);
    height: auto;
  }

  .economy-v4-objects-panel {
    height: 520px;
  }

  .economy-v4-active-panel {
    min-height: 430px;
  }

  .economy-v4-object-metrics {
    grid-template-columns: 1.2fr 1.2fr .8fr;
  }

  .economy-v4-factor {
    grid-template-columns: minmax(105px, .8fr) minmax(145px, 1.2fr) minmax(96px, .7fr);
    gap: 9px;
  }
}

@media (max-width: 820px) {
  .economy-v4 {
    gap: 10px;
  }

  .economy-v4-toolbar.product-view-summary {
    overflow: visible;
  }

  .economy-v4-context-meta {
    display: grid;
  }

  .economy-v4-context-meta > div {
    width: 100%;
    justify-content: space-between;
    gap: 8px;
  }

  .economy-v4-context-controls {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .economy-v4-context-controls .economy-v2-field,
  .economy-v4-context-controls .economy-v2-field:first-child,
  .economy-v4-context-controls .economy-v2-field:nth-child(2),
  .economy-v4-context-controls .economy-v2-field.is-wide {
    min-width: 0;
    width: 100%;
  }

  .economy-v4-grid-primary,
  .economy-v4-grid-secondary {
    grid-template-columns: minmax(0, 1fr);
    height: auto;
  }

  .economy-v4-grid-primary.is-object-list-expanded .economy-v4-active-panel {
    min-height: 430px;
  }

  .economy-v4-objects-panel {
    height: 390px;
  }

  .economy-v4-active-panel,
  .economy-v4-factors-panel,
  .economy-v4-detail-panel {
    min-height: 430px;
  }

  .economy-v4-active-panel {
    scroll-margin-top: 10px;
  }

  .economy-v4-factor-list {
    height: auto;
  }

  .economy-v4-detail-chart,
  .economy-v4-detail-table,
  .economy-v4-detail-note + .economy-v4-detail-chart,
  .economy-v4-detail-note + .economy-v4-detail-table {
    height: 310px;
  }
}

@media (max-width: 700px) {
  .economy-v4-toolbar.product-view-summary {
    align-items: stretch;
    overflow: visible;
  }

  .economy-v4-toolbar .product-summary-status {
    width: 100%;
    overflow-x: auto;
    scrollbar-width: none;
  }

  .economy-v4-toolbar .product-summary-status::-webkit-scrollbar {
    display: none;
  }

  .economy-v4-mobile-controls,
  .economy-v4-mobile-controls .product-mobile-controls-panel,
  .economy-v4-mobile-controls .economy-v4-toolbar-controls,
  .economy-v4-mobile-controls .product-summary-action-row,
  .economy-v4-mobile-controls .economy-v2-shared-select,
  .economy-v4-mobile-controls .topbar-select-button,
  .economy-v4-mobile-controls .product-reset-view-button {
    width: 100%;
    min-width: 0;
  }

  .economy-v4-mobile-controls .economy-v4-toolbar-controls {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    justify-content: stretch;
    gap: 8px;
    margin-left: 0;
  }

  .economy-v4-mobile-controls .economy-v4-toolbar-control,
  .economy-v4-mobile-controls .economy-v4-toolbar-reset {
    flex: none;
  }

  .economy-v4-mobile-controls .product-mobile-controls-toggle {
    grid-template-columns: minmax(145px, auto) minmax(0, 1fr) auto;
  }

  .economy-v4-mobile-controls .product-mobile-controls-toggle > span:first-child {
    overflow: visible;
    text-overflow: clip;
  }

  .economy-v4-mobile-controls .product-mobile-controls-toggle strong {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
  }
}

@media (max-width: 560px) {
  .economy-v4-context,
  .economy-v4-panel-head {
    padding-left: 11px;
    padding-right: 11px;
  }

  .economy-v4-objects-head {
    align-items: baseline;
    min-height: 54px;
    padding-top: 13px;
    padding-bottom: 12px;
  }

  .economy-v4-objects-head > div:first-child {
    gap: 9px;
  }

  .economy-v4-objects-head small {
    white-space: normal;
  }

  .economy-v4-context-meta > div {
    overflow-x: auto;
    justify-content: flex-start;
  }

  .economy-v4-context-meta > div > span {
    flex: 0 0 auto;
  }

  .economy-v4-context-controls {
    grid-template-columns: minmax(0, 1fr);
  }

  .economy-v4-context-controls .economy-v2-reset {
    width: 100%;
  }

  .economy-v4-panel-head:not(.economy-v4-objects-head) {
    align-items: flex-end;
    min-height: 72px;
  }

  .economy-v4-panel-head h2 {
    font-size: 16px;
  }

  .economy-v4-objects-panel {
    height: auto;
  }

  .economy-v4-objects-head {
    align-items: baseline;
    min-height: 54px;
  }

  .economy-v4-objects-head h2 {
    font-size: 18px;
    line-height: 24px;
  }

  .economy-v4-panel-head > .product-custom-select {
    flex-basis: 136px;
    width: 136px;
  }

  .economy-v4-attention-table col.is-rank {
    width: 0;
  }

  .economy-v4-attention-table {
    min-width: 0;
  }

  .economy-v4-attention-table col.is-name {
    width: 36%;
  }

  .economy-v4-attention-table col.is-profit,
  .economy-v4-attention-table col.is-impact,
  .economy-v4-attention-table col.is-margin {
    width: 19.33%;
  }

  .economy-v4-attention-table col.is-open {
    width: 6%;
  }

  .economy-v4-attention-table th,
  .economy-v4-attention-row td {
    padding-right: 5px;
    padding-left: 5px;
  }

  .economy-v4-attention-table th:first-child,
  .economy-v4-attention-rank {
    width: 0;
    min-width: 0;
    max-width: 0;
    overflow: hidden;
    padding-right: 0 !important;
    padding-left: 0 !important;
    visibility: hidden;
  }

  .economy-v4-attention-table th {
    height: 39px;
    overflow: hidden;
    font-size: 9px;
    text-overflow: ellipsis;
  }

  .economy-v4-attention-row {
    height: 62px;
  }

  .economy-v4-attention-name strong {
    font-size: 11px;
    line-height: 14px;
  }

  .economy-v4-attention-profit strong {
    font-size: 11px;
    line-height: 13px;
  }

  .economy-v4-attention-profit small {
    display: block;
    margin-top: 1px;
    margin-left: 0;
    font-size: 7px;
    line-height: 9px;
  }

  .economy-v4-attention-variance {
    column-gap: 3px;
  }

  .economy-v4-attention-variance-track,
  .economy-v4-attention-variance-track i {
    height: 7px;
  }

  .economy-v4-attention-variance strong {
    font-size: 9px;
    line-height: 10px;
  }

  .economy-v4-attention-margin {
    font-size: 10px;
  }

  .economy-v4-attention-open {
    padding-right: 5px !important;
  }

  .economy-v4-attention-open .button-icon {
    width: 11px;
    height: 11px;
  }

  .economy-v4-attention-footer {
    min-height: 52px;
    padding: 9px 10px;
  }

  .economy-v4-active-primary > div {
    padding: 20px 14px;
  }

  .economy-v4-active-primary strong {
    font-size: 24px;
    line-height: 32px;
  }

  .economy-v4-active-secondary {
    align-items: stretch;
  }

  .economy-v4-active-secondary > span {
    padding: 14px 10px;
  }

  .economy-v4-factor {
    grid-template-columns: minmax(0, 1fr) 105px;
    gap: 8px 10px;
    min-height: 104px;
    padding: 13px 11px;
  }

  .economy-v4-factor-track {
    grid-column: 1 / -1;
    grid-row: 2;
  }

  .economy-v4-detail-chart > div {
    grid-template-columns: minmax(88px, .9fr) minmax(90px, 1.1fr) 82px;
    gap: 8px;
  }

  .economy-v4-detail-table > div {
    grid-template-columns: minmax(0, 1fr) 78px 78px;
    gap: 8px;
  }

  .economy-v4-trend-panel {
    min-height: 480px;
  }

  .economy-v4-trend-panel .economy-v4-panel-head {
    display: grid;
  }

  .economy-v4-trend-controls {
    justify-content: flex-start;
    max-width: 100%;
    overflow-x: auto;
  }

  .economy-v4-trend-chart {
    height: 330px;
  }
}

/* Overview desktop: pair the explanation and trend without compressing mobile. */
@media (min-width: 1241px) {
  [data-v2-view="overview"] .economy-v2-dashboard-main {
    grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr);
    align-items: start;
  }

  [data-v2-view="overview"] .economy-v2-formation-panel .economy-v2-profit-context {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
  }

  [data-v2-view="overview"] .economy-v2-formation-panel .economy-v2-profit-context > span {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    padding: 7px 2px;
  }

  [data-v2-view="overview"] .economy-v2-formation-panel .economy-v2-profit-context > span + span {
    margin-left: 0;
    padding-left: 2px;
    border-top: 1px solid var(--ev2-border-soft);
    border-left: 0;
  }

  [data-v2-view="overview"] .economy-v2-formation-panel .economy-v2-profit-equation {
    grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr) auto minmax(0, 1fr);
    gap: 6px;
  }

  [data-v2-view="overview"] .economy-v2-formation-panel .economy-v2-profit-equation > div {
    padding: 10px 8px;
  }

  [data-v2-view="overview"] .economy-v2-formation-panel .economy-v2-profit-equation > div.is-scale,
  [data-v2-view="overview"] .economy-v2-formation-panel .economy-v2-profit-equation > div.is-efficiency,
  [data-v2-view="overview"] .economy-v2-formation-panel .economy-v2-profit-equation > div.is-result {
    min-height: 82px;
  }

  [data-v2-view="overview"] .economy-v2-formation-panel .economy-v2-equation-label-long {
    display: none;
  }

  [data-v2-view="overview"] .economy-v2-formation-panel .economy-v2-equation-label-short {
    display: inline;
  }

  [data-v2-view="overview"] .economy-v2-formation-panel .economy-v2-profit-equation strong {
    font-size: 16px;
    line-height: 21px;
    white-space: nowrap;
  }

  [data-v2-view="overview"] .economy-v2-formation-panel .economy-v2-profit-equation > div > small {
    font-size: 9px;
    line-height: 13px;
  }

  [data-v2-view="overview"] .economy-v2-formation-panel .economy-v2-expense-summary {
    grid-template-columns: 18px minmax(0, 1fr) auto;
    gap: 8px 10px;
    padding: 13px 16px;
  }

  [data-v2-view="overview"] .economy-v2-formation-panel .economy-v2-expense-summary > .economy-v2-share-comparison {
    grid-column: 2 / -1;
  }

  [data-v2-view="overview"] .economy-v2-formation-panel .economy-v2-share-comparison {
    grid-template-columns: minmax(0, 1fr) 74px;
    gap: 8px;
  }

  [data-v2-view="overview"] .economy-v2-formation-panel .economy-v2-share-lines > span {
    grid-template-columns: 52px minmax(45px, 1fr) 90px;
    gap: 6px;
  }

  [data-v2-view="overview"] .economy-v2-formation-panel .economy-v2-expense-detail {
    margin-right: 12px;
    margin-left: 32px;
  }

  [data-v2-view="overview"] .economy-v2-formation-panel .economy-v2-commission-share-row,
  [data-v2-view="overview"] .economy-v2-formation-panel .economy-v2-expense-detail-row {
    grid-template-columns: minmax(0, 1fr) auto;
  }

  [data-v2-view="overview"] .economy-v2-formation-panel .economy-v2-commission-share-row {
    grid-template-columns: minmax(0, 1fr);
  }

  [data-v2-view="overview"] .economy-v2-formation-panel .economy-v2-commission-share-row > .economy-v2-share-comparison,
  [data-v2-view="overview"] .economy-v2-formation-panel .economy-v2-expense-detail-row > .economy-v2-share-comparison {
    grid-column: 1 / -1;
  }

  [data-v2-view="overview"] .economy-v2-trend-panel .economy-v2-panel-head {
    align-items: flex-start;
    gap: 10px;
    padding: 14px 16px;
  }

  [data-v2-view="overview"] .economy-v2-trend-panel .economy-v2-trend-controls {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }

  [data-v2-view="overview"] .economy-v2-trend-panel .economy-v2-trend-averages {
    grid-column: 1 / -1;
    justify-self: stretch;
    width: 100%;
    max-width: none;
  }

  [data-v2-view="overview"] .economy-v2-trend-panel .economy-v2-trend-chart {
    height: 330px;
  }
}

/* Overview: compact management scan by category, collection and assortment tag. */
.economy-v2-attention > .economy-v2-panel-head {
  align-items: center;
}

.economy-v2-attention-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  border-top: 1px solid var(--ev2-border-soft);
}

.economy-v2-attention-section {
  min-width: 0;
}

.economy-v2-attention-grid > .economy-v2-attention-section + .economy-v2-attention-section {
  border-left: 1px solid var(--ev2-border-soft);
}

.economy-v2-attention > .economy-v2-attention-section {
  border-top: 1px solid var(--ev2-border-soft);
}

.economy-v2-attention-section > header {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 12px;
  min-height: 50px;
  padding: 10px 16px 9px;
  background: #fbfcfd;
}

.economy-v2-attention-section > header div,
.economy-v2-attention-section > header h3,
.economy-v2-attention-section > header span,
.economy-v2-attention-section > header small {
  display: block;
  min-width: 0;
}

.economy-v2-attention-section > header h3 {
  margin: 0;
  color: var(--ev2-text);
  font-size: 14px;
  font-weight: 700;
  line-height: 19px;
}

.economy-v2-attention-section > header span,
.economy-v2-attention-section > header small {
  color: var(--ev2-muted);
  font-size: 10.5px;
  line-height: 14px;
}

.economy-v2-attention-section > header > small {
  flex: 0 0 auto;
  white-space: nowrap;
}

.economy-v2-attention-rows {
  min-width: 0;
}

.economy-v2-attention-rows > .economy-v2-empty {
  min-height: 72px;
  padding: 18px 16px;
}

.economy-v2-attention-row {
  display: block;
  width: 100%;
  min-width: 0;
  padding: 11px 16px 10px;
  border: 0;
  border-top: 1px solid var(--ev2-border-soft);
  background: #fff;
  color: var(--ev2-text);
  font: inherit;
  text-align: left;
  cursor: pointer;
}

.economy-v2-attention-row:first-child {
  border-top: 0;
}

.economy-v2-attention-row:hover {
  background: #f8fafc;
}

.economy-v2-attention-row:focus-visible {
  position: relative;
  z-index: 1;
  outline: 2px solid #73c6a1;
  outline-offset: -2px;
}

.economy-v2-attention-row-head {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 12px;
}

.economy-v2-attention-row-head > span,
.economy-v2-attention-row-head strong,
.economy-v2-attention-row-head small {
  display: block;
  min-width: 0;
}

.economy-v2-attention-row-head > span:first-child {
  overflow: hidden;
}

.economy-v2-attention-row-head > span:first-child strong {
  overflow: hidden;
  color: var(--ev2-text);
  font-size: 13px;
  font-weight: 700;
  line-height: 18px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.economy-v2-attention-row-head > span:first-child small,
.economy-v2-attention-impact small {
  margin-top: 1px;
  color: var(--ev2-muted);
  font-size: 10px;
  line-height: 14px;
}

.economy-v2-attention-impact {
  flex: 0 0 auto;
  text-align: right;
}

.economy-v2-attention-impact strong {
  margin-top: 1px;
  font-size: 14px;
  font-weight: 750;
  line-height: 18px;
  white-space: nowrap;
}

.economy-v2-attention-impact.is-good strong,
.economy-v2-attention-metrics em.is-good {
  color: var(--ev2-green-dark);
}

.economy-v2-attention-impact.is-bad strong,
.economy-v2-attention-metrics em.is-bad {
  color: var(--ev2-red);
}

.economy-v2-attention-impact.is-neutral strong,
.economy-v2-attention-metrics em.is-neutral {
  color: var(--ev2-muted);
}

.economy-v2-attention-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-top: 8px;
}

.economy-v2-attention-metrics > span,
.economy-v2-attention-metrics small,
.economy-v2-attention-metrics strong,
.economy-v2-attention-metrics em {
  display: block;
  min-width: 0;
}

.economy-v2-attention-metrics > span + span {
  padding-left: 10px;
  border-left: 1px solid var(--ev2-border-soft);
}

.economy-v2-attention-metrics small {
  color: var(--ev2-muted);
  font-size: 9.5px;
  line-height: 13px;
}

.economy-v2-attention-metrics strong {
  overflow: hidden;
  margin-top: 1px;
  color: var(--ev2-text);
  font-size: 12px;
  font-weight: 700;
  line-height: 16px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.economy-v2-attention-metrics em {
  overflow: hidden;
  margin-top: 1px;
  color: var(--ev2-muted);
  font-size: 9.5px;
  font-style: normal;
  line-height: 13px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.economy-v2-attention-rail {
  position: relative;
  display: block;
  height: 4px;
  margin-top: 9px;
  border-radius: 2px;
  background: #edf1f4;
}

.economy-v2-attention-rail::after {
  position: absolute;
  top: -2px;
  bottom: -2px;
  left: 50%;
  width: 1px;
  background: #98a2b3;
  content: "";
}

.economy-v2-attention-rail i {
  position: absolute;
  top: 0;
  width: var(--impact);
  height: 100%;
  border-radius: 2px;
}

.economy-v2-attention-rail i.is-good {
  left: 50%;
  background: var(--ev2-green);
}

.economy-v2-attention-rail i.is-bad {
  right: 50%;
  background: var(--ev2-red);
}

.economy-v2-attention-rail i.is-neutral {
  left: 50%;
  background: #98a2b3;
}

.economy-v2-attention-section.is-tags .economy-v2-attention-rows {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.economy-v2-attention-section.is-tags .economy-v2-attention-row {
  border-top: 0;
}

.economy-v2-attention-section.is-tags .economy-v2-attention-row + .economy-v2-attention-row {
  border-left: 1px solid var(--ev2-border-soft);
}

@media (max-width: 980px) {
  .economy-v2-attention-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .economy-v2-attention-grid > .economy-v2-attention-section + .economy-v2-attention-section {
    border-top: 1px solid var(--ev2-border-soft);
    border-left: 0;
  }

  .economy-v2-attention-section.is-tags .economy-v2-attention-rows {
    grid-template-columns: minmax(0, 1fr);
  }

  .economy-v2-attention-section.is-tags .economy-v2-attention-row + .economy-v2-attention-row {
    border-top: 1px solid var(--ev2-border-soft);
    border-left: 0;
  }
}

@media (max-width: 640px) {
  .economy-v2-attention > .economy-v2-panel-head {
    align-items: start;
  }

  .economy-v2-attention > .economy-v2-panel-head .economy-v2-link {
    flex: 0 0 auto;
    font-size: 11px;
  }

  .economy-v2-attention-section > header {
    min-height: 46px;
    padding: 9px 13px 8px;
  }

  .economy-v2-attention-section > header > small {
    display: none;
  }

  .economy-v2-attention-row {
    padding: 10px 13px 9px;
  }

  .economy-v2-attention-row-head > span:first-child strong {
    font-size: 14px;
    line-height: 19px;
  }

  .economy-v2-attention-impact strong {
    font-size: 14px;
  }

  .economy-v2-attention-metrics {
    gap: 7px;
    margin-top: 7px;
  }

  .economy-v2-attention-metrics > span + span {
    padding-left: 7px;
  }

  .economy-v2-attention-metrics small,
  .economy-v2-attention-metrics em {
    font-size: 9px;
    line-height: 12px;
  }

  .economy-v2-attention-metrics strong {
    font-size: 11.5px;
    line-height: 15px;
  }
}

@media (max-width: 360px) {
  .economy-v2-attention-row {
    padding-right: 10px;
    padding-left: 10px;
  }

  .economy-v2-attention-row-head {
    gap: 7px;
  }

  .economy-v2-attention-metrics {
    gap: 4px;
  }

  .economy-v2-attention-metrics > span + span {
    padding-left: 4px;
  }

  .economy-v2-attention-metrics strong {
    font-size: 10.5px;
  }

  .economy-v2-attention-metrics small,
  .economy-v2-attention-metrics em {
    font-size: 8.5px;
  }
}

/* Overview attention: category master with dependent collections. */
.economy-v2-attention-master-detail {
  display: grid;
  grid-template-columns: minmax(360px, 0.72fr) minmax(0, 1.28fr);
  border-top: 1px solid var(--ev2-border-soft);
}

.economy-v2-attention-categories,
.economy-v2-attention-collections,
.economy-v2-attention-tags {
  min-width: 0;
}

.economy-v2-attention-categories {
  border-right: 1px solid var(--ev2-border-soft);
}

.economy-v2-attention-categories > header,
.economy-v2-attention-collections > header,
.economy-v2-attention-tags > header {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 12px;
  min-height: 50px;
  padding: 10px 16px 9px;
  background: #fbfcfd;
}

.economy-v2-attention-categories h3,
.economy-v2-attention-collections h3,
.economy-v2-attention-tags h3 {
  margin: 0;
  color: var(--ev2-text);
  font-size: 14px;
  font-weight: 700;
  line-height: 19px;
}

.economy-v2-attention-categories header span,
.economy-v2-attention-collections header span,
.economy-v2-attention-tags header span {
  display: block;
  margin-top: 1px;
  color: var(--ev2-muted);
  font-size: 10.5px;
  line-height: 14px;
}

.economy-v2-attention-category,
.economy-v2-attention-collection,
.economy-v2-attention-tag {
  position: relative;
  width: 100%;
  min-width: 0;
  border: 0;
  border-top: 1px solid var(--ev2-border-soft);
  background: #fff;
  color: var(--ev2-text);
  font: inherit;
  text-align: left;
  cursor: pointer;
}

.economy-v2-attention-category:first-child,
.economy-v2-attention-collection:first-child {
  border-top: 0;
}

.economy-v2-attention-category:hover,
.economy-v2-attention-collection:hover,
.economy-v2-attention-tag:hover {
  background: #f8fafc;
}

.economy-v2-attention-category:focus-visible,
.economy-v2-attention-collection:focus-visible,
.economy-v2-attention-tag:focus-visible,
.economy-v2-attention-all:focus-visible {
  z-index: 2;
  outline: 2px solid #73c6a1;
  outline-offset: -2px;
}

.economy-v2-attention-category {
  display: grid;
  grid-template-columns: 24px minmax(0, 1fr) auto 18px;
  align-items: center;
  gap: 10px;
  min-height: 78px;
  padding: 11px 14px 11px 16px;
}

.economy-v2-attention-category::before,
.economy-v2-attention-tag::before {
  position: absolute;
  top: 12px;
  bottom: 12px;
  left: 0;
  width: 3px;
  border-radius: 0 2px 2px 0;
  background: #98a2b3;
  content: "";
}

.economy-v2-attention-category.is-good::before,
.economy-v2-attention-tag.is-good::before {
  background: var(--ev2-green);
}

.economy-v2-attention-category.is-bad::before,
.economy-v2-attention-tag.is-bad::before {
  background: var(--ev2-red);
}

.economy-v2-attention-category.is-selected {
  background: #f7f9fb;
  box-shadow: inset 0 0 0 1px #d0d5dd;
}

.economy-v2-attention-category.is-selected:hover {
  background: #f2f4f7;
}

.economy-v2-attention-category.is-selected.is-bad {
  background: #fff7f6;
  box-shadow: inset 0 0 0 1px #fecdca;
}

.economy-v2-attention-category.is-selected.is-bad:hover {
  background: #fff2f0;
}

.economy-v2-attention-category.is-selected.is-good {
  background: #f3fbf7;
  box-shadow: inset 0 0 0 1px #a6f4c5;
}

.economy-v2-attention-category.is-selected.is-good:hover {
  background: #ecfdf3;
}

.economy-v2-attention-category.is-selected.is-bad:focus-visible {
  outline-color: var(--ev2-red);
}

.economy-v2-attention-category.is-selected.is-good:focus-visible {
  outline-color: var(--ev2-green);
}

.economy-v2-attention-category > img {
  opacity: 0;
}

.economy-v2-attention-category.is-selected > img {
  opacity: 1;
}

.economy-v2-attention-rank {
  color: var(--ev2-muted);
  font-size: 12px;
  font-weight: 650;
  text-align: center;
}

.economy-v2-attention-category-copy,
.economy-v2-attention-category-copy strong,
.economy-v2-attention-category-copy small,
.economy-v2-attention-collection-copy,
.economy-v2-attention-collection-copy strong,
.economy-v2-attention-collection-copy small,
.economy-v2-attention-current {
  display: block;
  min-width: 0;
}

.economy-v2-attention-category-copy strong,
.economy-v2-attention-collection-copy strong {
  overflow: hidden;
  font-size: 13px;
  font-weight: 700;
  line-height: 18px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.economy-v2-attention-category-copy small,
.economy-v2-attention-collection-copy small,
.economy-v2-attention-current {
  overflow: hidden;
  margin-top: 2px;
  color: var(--ev2-muted);
  font-size: 10.5px;
  line-height: 14px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.economy-v2-attention-category-impact,
.economy-v2-attention-collection-impact,
.economy-v2-attention-tag-impact {
  display: block;
  min-width: 0;
  text-align: right;
}

.economy-v2-attention-category-impact strong,
.economy-v2-attention-collection-impact strong,
.economy-v2-attention-tag-impact strong {
  display: block;
  font-size: 14px;
  font-weight: 750;
  line-height: 18px;
  white-space: nowrap;
}

.economy-v2-attention-category-impact small,
.economy-v2-attention-collection-impact small,
.economy-v2-attention-tag-impact small {
  display: block;
  margin-top: 1px;
  color: var(--ev2-muted);
  font-size: 9px;
  font-style: normal;
  line-height: 12px;
  white-space: nowrap;
}

.economy-v2-attention-category-impact.is-good strong,
.economy-v2-attention-collection-impact.is-good strong,
.economy-v2-attention-tag-impact.is-good strong,
.economy-v2-attention-conclusion .is-good {
  color: var(--ev2-green-dark);
}

.economy-v2-attention-category-impact.is-bad strong,
.economy-v2-attention-collection-impact.is-bad strong,
.economy-v2-attention-tag-impact.is-bad strong,
.economy-v2-attention-conclusion .is-bad {
  color: var(--ev2-red);
}

.economy-v2-attention-category-impact i,
.economy-v2-attention-collection-impact i {
  position: relative;
  display: block;
  width: 104px;
  height: 4px;
  margin-top: 3px;
  overflow: hidden;
  border-radius: 2px;
  background: #edf1f4;
}

.economy-v2-attention-category-impact i::after,
.economy-v2-attention-collection-impact i::after {
  display: block;
  width: var(--impact);
  height: 100%;
  border-radius: inherit;
  background: #98a2b3;
  content: "";
}

.economy-v2-attention-category-impact.is-good i::after,
.economy-v2-attention-collection-impact.is-good i::after {
  background: var(--ev2-green);
}

.economy-v2-attention-category-impact.is-bad i::after,
.economy-v2-attention-collection-impact.is-bad i::after {
  background: var(--ev2-red);
}

.economy-v2-attention-conclusion {
  display: flex;
  align-items: center;
  min-height: 39px;
  padding: 8px 16px;
  border-top: 1px solid var(--ev2-border-soft);
  background: #fbfcfd;
  font-size: 11px;
  font-weight: 650;
  line-height: 15px;
}

.economy-v2-attention-conclusion i {
  width: 1px;
  height: 16px;
  margin: 0 12px;
  background: var(--ev2-border);
}

.economy-v2-attention-collection {
  display: grid;
  grid-template-columns: 24px minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  min-height: 68px;
  padding: 9px 16px;
}

.economy-v2-attention-collection.is-selected {
  background: #f7f9fb;
  box-shadow: inset 0 0 0 1px #d0d5dd;
}

.economy-v2-attention-collection.is-selected.is-good {
  background: #f3fbf7;
  box-shadow: inset 0 0 0 1px #a6f4c5;
}

.economy-v2-attention-collection.is-selected.is-bad {
  background: #fff7f6;
  box-shadow: inset 0 0 0 1px #fecdca;
}

.economy-v2-attention-current {
  grid-column: 2 / 4;
  margin-top: -2px;
}

.economy-v2-attention-collection-analysis {
  border-top: 1px solid var(--ev2-border-soft);
  background: #fbfcfd;
}

.economy-v2-attention-collection-analysis > header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 58px;
  padding: 10px 16px;
}

.economy-v2-attention-collection-analysis h4,
.economy-v2-attention-collection-analysis header span,
.economy-v2-attention-collection-analysis header strong {
  display: block;
  margin: 0;
}

.economy-v2-attention-collection-analysis h4 {
  color: var(--ev2-text);
  font-size: 13px;
  line-height: 18px;
}

.economy-v2-attention-collection-analysis header span {
  margin-top: 2px;
  color: var(--ev2-muted);
  font-size: 10px;
  line-height: 14px;
}

.economy-v2-attention-collection-analysis header > strong {
  flex: 0 0 auto;
  font-size: 12px;
  line-height: 17px;
  white-space: nowrap;
}

.economy-v2-attention-collection-analysis .is-good {
  color: var(--ev2-green-dark);
}

.economy-v2-attention-collection-analysis .is-bad {
  color: var(--ev2-red);
}

.economy-v2-attention-collection-analysis .is-neutral {
  color: var(--ev2-text-secondary);
}

.economy-v2-attention-collection-driver {
  display: grid;
  grid-template-columns: minmax(130px, 1fr) minmax(150px, 0.8fr) minmax(170px, auto);
  align-items: center;
  gap: 16px;
  min-height: 62px;
  padding: 9px 16px;
  border-top: 1px solid var(--ev2-border-soft);
  background: #fff;
}

.economy-v2-attention-collection-driver span,
.economy-v2-attention-collection-driver strong,
.economy-v2-attention-collection-driver small,
.economy-v2-attention-collection-driver em {
  display: block;
  min-width: 0;
}

.economy-v2-attention-collection-driver strong {
  color: inherit;
  font-size: 12px;
  font-weight: 700;
  line-height: 17px;
}

.economy-v2-attention-collection-driver small,
.economy-v2-attention-collection-driver em {
  margin-top: 1px;
  color: var(--ev2-muted);
  font-size: 9.5px;
  font-style: normal;
  font-weight: 500;
  line-height: 13px;
}

.economy-v2-attention-collection-driver-effect {
  text-align: right;
}

.economy-v2-attention-collection-analysis > footer {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  min-height: 38px;
  padding: 8px 16px;
  border-top: 1px solid var(--ev2-border-soft);
  color: var(--ev2-muted);
  font-size: 10px;
  line-height: 14px;
}

.economy-v2-attention-collection-analysis > footer strong {
  font-size: 12px;
  white-space: nowrap;
}

.economy-v2-attention-all {
  width: 100%;
  min-height: 36px;
  padding: 8px 16px;
  border: 0;
  border-top: 1px solid var(--ev2-border-soft);
  background: #fff;
  color: #175cd3;
  font: inherit;
  font-size: 11px;
  font-weight: 600;
  text-align: left;
  cursor: pointer;
}

.economy-v2-attention-all:hover {
  background: #f8fafc;
}

.economy-v2-attention-tags {
  border-top: 1px solid var(--ev2-border-soft);
}

.economy-v2-attention-tag-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.economy-v2-attention-master-detail .economy-v2-empty {
  min-height: 112px;
  padding: 40px 16px;
}

.economy-v2-attention-tag-list > .economy-v2-empty {
  grid-column: 1 / -1;
  min-height: 64px;
  padding: 22px 16px;
}

.economy-v2-attention-tag {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  min-height: 64px;
  padding: 9px 16px;
  border-top: 0;
}

.economy-v2-attention-tag + .economy-v2-attention-tag {
  border-left: 1px solid var(--ev2-border-soft);
}

.economy-v2-attention-tag > span,
.economy-v2-attention-tag strong,
.economy-v2-attention-tag small {
  display: block;
  min-width: 0;
}

.economy-v2-attention-tag > span:first-child strong {
  overflow: hidden;
  font-size: 13px;
  line-height: 18px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.economy-v2-attention-tag small {
  margin-top: 1px;
  color: var(--ev2-muted);
  font-size: 10px;
  line-height: 14px;
}

@media (max-width: 980px) {
  .economy-v2-attention-master-detail {
    grid-template-columns: minmax(0, 1fr);
  }

  .economy-v2-attention-categories {
    border-right: 0;
  }

  .economy-v2-attention-collections {
    border-top: 1px solid var(--ev2-border-soft);
  }
}

@media (max-width: 640px) {
  .economy-v2-attention > .economy-v2-panel-head {
    align-items: start;
  }

  .economy-v2-attention > .economy-v2-panel-head .economy-v2-panel-title span {
    max-width: 250px;
  }

  .economy-v2-attention > .economy-v2-panel-head .economy-v2-link {
    flex: 0 0 auto;
    font-size: 11px;
  }

  .economy-v2-attention-categories > header,
  .economy-v2-attention-collections > header,
  .economy-v2-attention-tags > header {
    min-height: 45px;
    padding: 8px 13px 7px;
  }

  .economy-v2-attention-category {
    grid-template-columns: minmax(0, 1fr) auto 16px;
    gap: 8px;
    min-height: 62px;
    padding: 9px 12px 9px 16px;
  }

  .economy-v2-attention-category .economy-v2-attention-rank,
  .economy-v2-attention-collection .economy-v2-attention-rank {
    display: none;
  }

  .economy-v2-attention-category-copy strong,
  .economy-v2-attention-collection-copy strong {
    font-size: 14px;
    line-height: 19px;
  }

  .economy-v2-attention-category-copy small,
  .economy-v2-attention-collection-copy small,
  .economy-v2-attention-current {
    font-size: 10px;
    line-height: 13px;
  }

  .economy-v2-attention-category-impact strong,
  .economy-v2-attention-collection-impact strong,
  .economy-v2-attention-tag-impact strong {
    font-size: 13px;
  }

  .economy-v2-attention-category-impact i {
    display: none;
  }

  .economy-v2-attention-category.is-selected > img {
    transform: rotate(90deg);
  }

  .economy-v2-attention-conclusion {
    display: block;
    padding: 8px 13px;
    font-size: 10.5px;
    line-height: 15px;
  }

  .economy-v2-attention-conclusion span {
    display: block;
  }

  .economy-v2-attention-conclusion i {
    display: none;
  }

  .economy-v2-attention-collection {
    grid-template-columns: minmax(0, 1fr) auto;
    min-height: 64px;
    padding: 8px 13px 8px 16px;
  }

  .economy-v2-attention-collection::before {
    position: absolute;
    top: 12px;
    bottom: 12px;
    left: 0;
    width: 3px;
    border-radius: 0 2px 2px 0;
    background: #98a2b3;
    content: "";
  }

  .economy-v2-attention-collection.is-good::before {
    background: var(--ev2-green);
  }

  .economy-v2-attention-collection.is-bad::before {
    background: var(--ev2-red);
  }

  .economy-v2-attention-current {
    grid-column: 1 / 3;
  }

  .economy-v2-attention-collection-analysis > header {
    align-items: flex-start;
    min-height: 62px;
    padding: 10px 13px;
  }

  .economy-v2-attention-collection-analysis header > strong {
    max-width: 145px;
    text-align: right;
    white-space: normal;
  }

  .economy-v2-attention-collection-driver {
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 5px 10px;
    min-height: 78px;
    padding: 10px 13px;
  }

  .economy-v2-attention-collection-driver-name {
    grid-column: 1 / 2;
  }

  .economy-v2-attention-collection-driver-share {
    grid-column: 1 / 2;
  }

  .economy-v2-attention-collection-driver-effect {
    grid-row: 1 / 3;
    grid-column: 2 / 3;
    max-width: 145px;
  }

  .economy-v2-attention-collection-analysis > footer {
    justify-content: space-between;
    gap: 5px;
    padding: 8px 13px;
  }

  .economy-v2-attention-collection-impact i {
    width: 72px;
  }

  .economy-v2-attention-all {
    min-height: 44px;
    padding: 10px 13px;
  }

  .economy-v2-attention-tag-list {
    grid-template-columns: minmax(0, 1fr);
  }

  .economy-v2-attention-tag {
    min-height: 52px;
    padding: 8px 13px 8px 16px;
  }

  .economy-v2-attention-tag + .economy-v2-attention-tag {
    border-top: 1px solid var(--ev2-border-soft);
    border-left: 0;
  }
}

@media (max-width: 360px) {
  .economy-v2-attention > .economy-v2-panel-head {
    gap: 8px;
  }

  .economy-v2-attention > .economy-v2-panel-head .economy-v2-panel-title span {
    max-width: 205px;
  }

  .economy-v2-attention-category-impact strong,
  .economy-v2-attention-collection-impact strong {
    font-size: 12px;
  }

  .economy-v2-attention-collection-impact i {
    width: 58px;
  }
}

/* Overview v2: explain the factual profit change through scale and margin. */
.economy-v2-profit-conclusion.is-good i {
  background: var(--ev2-green-dark);
}

.economy-v2-profit-conclusion.is-neutral i {
  background: #98a2b3;
}

.economy-v2-profit-context {
  display: flex;
  align-items: center;
  gap: 0;
  margin: 0 20px 12px;
  border-top: 1px solid var(--ev2-border-soft);
  border-bottom: 1px solid var(--ev2-border-soft);
}

.economy-v2-profit-context > span {
  display: flex;
  align-items: baseline;
  min-width: 0;
  gap: 7px;
  padding: 9px 14px 9px 0;
}

.economy-v2-profit-context > span + span {
  margin-left: 14px;
  padding-left: 14px;
  border-left: 1px solid var(--ev2-border-soft);
}

.economy-v2-profit-context small {
  color: var(--ev2-muted);
  font-size: 11px;
  line-height: 15px;
}

.economy-v2-profit-context strong {
  color: var(--ev2-text);
  font-size: 12px;
  line-height: 16px;
  white-space: nowrap;
}

.economy-v2-profit-context strong i {
  color: var(--ev2-muted);
  font-style: normal;
}

.economy-v2-profit-context em {
  color: var(--ev2-green-dark);
  font-size: 12px;
  font-style: normal;
  font-weight: 700;
  line-height: 16px;
  white-space: nowrap;
}

.economy-v2-profit-context em.is-bad {
  color: var(--ev2-red);
}

.economy-v2-profit-context em.is-neutral {
  color: var(--ev2-muted);
}

[data-v2-view="overview"] .economy-v2-formation-panel .economy-v2-profit-equation > div.is-scale,
[data-v2-view="overview"] .economy-v2-formation-panel .economy-v2-profit-equation > div.is-efficiency,
[data-v2-view="overview"] .economy-v2-formation-panel .economy-v2-profit-equation > div.is-result {
  align-content: center;
  gap: 4px;
  min-height: 92px;
}

[data-v2-view="overview"] .economy-v2-profit-equation .is-scale.is-good,
[data-v2-view="overview"] .economy-v2-profit-equation .is-efficiency.is-good,
[data-v2-view="overview"] .economy-v2-profit-equation .is-result.is-good {
  border-color: #d7ebdf;
  background: var(--ev2-green-soft);
}

[data-v2-view="overview"] .economy-v2-profit-equation .is-scale.is-bad,
[data-v2-view="overview"] .economy-v2-profit-equation .is-efficiency.is-bad,
[data-v2-view="overview"] .economy-v2-profit-equation .is-result.is-bad {
  border-color: #fecdca;
  background: var(--ev2-red-soft);
}

[data-v2-view="overview"] .economy-v2-profit-equation .is-scale.is-neutral,
[data-v2-view="overview"] .economy-v2-profit-equation .is-efficiency.is-neutral,
[data-v2-view="overview"] .economy-v2-profit-equation .is-result.is-neutral {
  border-color: var(--ev2-border);
  background: #f8fafb;
}

[data-v2-view="overview"] .economy-v2-profit-equation .is-neutral strong {
  color: var(--ev2-text);
}

[data-v2-view="overview"] .economy-v2-profit-equation > div > small {
  color: var(--ev2-muted);
  font-size: 11px;
  font-weight: 500;
  line-height: 15px;
}

@media (max-width: 640px) {
  .economy-v2-profit-conclusion {
    font-size: 12px;
    line-height: 17px;
  }

  .economy-v2-profit-context {
    display: grid;
    margin: 0 10px 10px;
  }

  .economy-v2-profit-context > span {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: baseline;
    gap: 5px;
    padding: 7px 2px;
  }

  .economy-v2-profit-context > span + span {
    margin-left: 0;
    padding-left: 2px;
    border-top: 1px solid var(--ev2-border-soft);
    border-left: 0;
  }

  .economy-v2-profit-context small,
  .economy-v2-profit-context strong,
  .economy-v2-profit-context em {
    font-size: 11px;
    line-height: 15px;
  }

  [data-v2-view="overview"] .economy-v2-formation-panel .economy-v2-profit-equation {
    padding-bottom: 14px;
  }

  [data-v2-view="overview"] .economy-v2-formation-panel .economy-v2-profit-equation > div.is-scale,
  [data-v2-view="overview"] .economy-v2-formation-panel .economy-v2-profit-equation > div.is-efficiency,
  [data-v2-view="overview"] .economy-v2-formation-panel .economy-v2-profit-equation > div.is-result {
    min-height: 84px;
    gap: 3px;
  }

  [data-v2-view="overview"] .economy-v2-formation-panel .economy-v2-profit-equation > div > small {
    font-size: 9px;
    line-height: 12px;
  }

  .economy-v2-expense-heading > div > span {
    max-width: 38ch;
  }
}

@media (max-width: 360px) {
  [data-v2-view="overview"] .economy-v2-formation-panel .economy-v2-profit-equation > div.is-scale,
  [data-v2-view="overview"] .economy-v2-formation-panel .economy-v2-profit-equation > div.is-efficiency,
  [data-v2-view="overview"] .economy-v2-formation-panel .economy-v2-profit-equation > div.is-result {
    min-height: 80px;
  }

  [data-v2-view="overview"] .economy-v2-formation-panel .economy-v2-profit-equation > div > small {
    font-size: 8px;
    line-height: 11px;
  }
}

[data-v2-view="overview"] .economy-v2-formation-panel .economy-v2-profit-equation > b {
  align-self: stretch;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}

[data-v2-view="overview"] .economy-v2-formation-panel .economy-v2-profit-equation > b:nth-of-type(2) {
  display: flex;
}

.economy-v2-expense-summary {
  grid-template-columns: 18px minmax(190px, 0.75fr) minmax(120px, 0.45fr) minmax(390px, 1.55fr);
}

.economy-v2-expense-row-name {
  display: grid;
  min-width: 0;
  gap: 3px;
}

.economy-v2-expense-row-name > strong {
  color: var(--ev2-text);
  font-size: 14px;
  line-height: 19px;
}

.economy-v2-expense-row-name > small,
.economy-v2-expense-row-name > span {
  color: var(--ev2-muted);
  font-size: 11px;
  line-height: 15px;
}

.economy-v2-expense-row-name > small {
  display: flex;
  flex-wrap: wrap;
  gap: 2px 8px;
}

.economy-v2-share-change {
  display: grid;
  min-width: 0;
  gap: 2px;
  margin: 0;
  color: var(--ev2-muted);
  font-style: normal;
  text-align: right;
}

.economy-v2-share-change small {
  color: var(--ev2-muted);
  font-size: 10px;
  font-weight: 500;
  line-height: 14px;
}

.economy-v2-share-change strong {
  color: var(--ev2-text-2);
  font-size: 14px;
  font-weight: 700;
  line-height: 19px;
  white-space: nowrap;
}

.economy-v2-share-change.is-bad strong {
  color: var(--ev2-red);
}

.economy-v2-share-change.is-good strong {
  color: var(--ev2-green-dark);
}

.economy-v2-money-impact {
  display: grid;
  min-width: 0;
  gap: 2px;
  margin: 0;
  color: var(--ev2-muted);
  font-style: normal;
  text-align: right;
}

.economy-v2-money-impact strong {
  color: var(--ev2-text-2);
  font-size: 14px;
  font-weight: 700;
  line-height: 19px;
  white-space: nowrap;
}

.economy-v2-money-impact small {
  color: var(--ev2-muted);
  font-size: 10px;
  font-weight: 500;
  line-height: 14px;
  white-space: nowrap;
}

.economy-v2-money-impact.is-bad strong {
  color: var(--ev2-red);
}

.economy-v2-money-impact.is-good strong {
  color: var(--ev2-green-dark);
}

.economy-v2-share-comparison {
  display: grid;
  grid-template-columns: minmax(250px, 1fr) 90px;
  align-items: center;
  min-width: 0;
  gap: 12px;
}

.economy-v2-share-lines {
  display: grid;
  min-width: 0;
  gap: 5px;
}

.economy-v2-share-lines > span {
  display: grid;
  grid-template-columns: 58px minmax(70px, 140px) 100px;
  align-items: center;
  min-width: 0;
  gap: 8px;
}

.economy-v2-share-lines b,
.economy-v2-share-lines strong {
  color: var(--ev2-text-2);
  font-size: 11px;
  font-weight: 600;
  line-height: 15px;
  white-space: nowrap;
}

.economy-v2-share-lines b {
  color: var(--ev2-muted);
}

.economy-v2-share-lines strong {
  text-align: right;
}

.economy-v2-share-lines i {
  display: block;
  height: 8px;
  border-radius: 2px;
  background: #edf1f4;
}

.economy-v2-share-lines u {
  display: block;
  width: var(--w);
  height: 100%;
  border-radius: inherit;
  background: #b9dedb;
  text-decoration: none;
}

.economy-v2-share-lines .is-current u {
  background: #0f8582;
}

.economy-v2-commission-share-row,
.economy-v2-expense-detail-row {
  grid-template-columns: minmax(170px, 0.75fr) minmax(120px, 0.45fr) minmax(390px, 1.55fr);
}

.economy-v2-commission-share-row {
  grid-template-columns: minmax(170px, 0.75fr) minmax(390px, 2fr);
}

.economy-v2-commission-share-row > .economy-v2-expense-row-name > strong,
.economy-v2-expense-detail-row > .economy-v2-expense-row-name > strong {
  font-size: 13px;
  line-height: 18px;
}

@media (max-width: 980px) {
  .economy-v2-expense-summary {
    grid-template-columns: 18px minmax(0, 1fr) auto;
  }

  .economy-v2-expense-summary > .economy-v2-share-comparison {
    grid-column: 2 / -1;
  }

  .economy-v2-expense-detail-row {
    grid-template-columns: minmax(0, 1fr) auto;
  }

  .economy-v2-commission-share-row {
    grid-template-columns: minmax(0, 1fr);
  }

  .economy-v2-commission-share-row > .economy-v2-share-comparison,
  .economy-v2-expense-detail-row > .economy-v2-share-comparison {
    grid-column: 1 / -1;
  }
}

@media (max-width: 640px) {
  .economy-v2-expense-period-legend-main {
    display: flex;
    padding: 0 12px 11px;
  }

  [data-v2-view="overview"] .economy-v2-formation-panel .economy-v2-profit-equation > b {
    font-size: 15px;
  }

  [data-v2-view="overview"] .economy-v2-formation-panel .economy-v2-profit-equation strong {
    font-size: 14px;
    line-height: 18px;
  }

  .economy-v2-expense-summary {
    row-gap: 8px;
    padding: 12px 15px 12px 10px;
  }

  .economy-v2-expense-summary > .economy-v2-expense-row-name {
    display: contents;
  }

  .economy-v2-expense-summary > .economy-v2-expense-row-name > strong {
    grid-column: 2;
    grid-row: 1;
    align-self: start;
  }

  .economy-v2-expense-summary > .economy-v2-expense-row-name > small {
    grid-column: 2 / -1;
    grid-row: 2;
    justify-content: flex-end;
  }

  .economy-v2-expense-summary > .economy-v2-money-impact {
    grid-column: 3;
    grid-row: 1;
  }

  .economy-v2-expense-summary > .economy-v2-share-comparison {
    grid-row: 2;
  }

  .economy-v2-expense-row-name > strong {
    font-size: 15px;
    line-height: 20px;
  }

  .economy-v2-expense-row-name > small,
  .economy-v2-expense-row-name > span {
    font-size: 11px;
    line-height: 15px;
  }

  .economy-v2-share-change small {
    font-size: 10px;
    line-height: 13px;
  }

  .economy-v2-share-change strong {
    font-size: 14px;
    line-height: 19px;
  }

  .economy-v2-money-impact strong {
    font-size: 14px;
    line-height: 19px;
  }

  .economy-v2-money-impact small {
    font-size: 10px;
    line-height: 13px;
  }

  .economy-v2-share-comparison {
    grid-template-columns: minmax(0, 1fr) 64px;
    gap: 8px;
  }

  .economy-v2-share-lines > span {
    grid-template-columns: 52px minmax(52px, 110px) 92px;
    gap: 6px;
  }

  .economy-v2-share-lines b,
  .economy-v2-share-lines strong {
    font-size: 11px;
    line-height: 15px;
  }

  .economy-v2-share-lines i {
    height: 7px;
  }

  .economy-v2-commission-share-row,
  .economy-v2-expense-detail-row {
    gap: 7px 8px;
    padding: 10px 15px 10px 10px;
  }

  .economy-v2-commission-share-row > .economy-v2-expense-row-name,
  .economy-v2-expense-detail-row > .economy-v2-expense-row-name {
    display: contents;
  }

  .economy-v2-commission-share-row > .economy-v2-expense-row-name > strong,
  .economy-v2-expense-detail-row > .economy-v2-expense-row-name > strong {
    grid-column: 1;
    grid-row: 1;
    align-self: start;
  }

  .economy-v2-commission-share-row > .economy-v2-expense-row-name > small,
  .economy-v2-expense-detail-row > .economy-v2-expense-row-name > small {
    grid-column: 1 / -1;
    grid-row: 2;
    justify-content: flex-end;
  }

  .economy-v2-expense-detail-row > .economy-v2-money-impact {
    grid-column: 2;
    grid-row: 1;
  }

  .economy-v2-expense-detail-row > .economy-v2-share-comparison {
    grid-column: 1 / -1;
    grid-row: 2;
  }

  .economy-v2-commission-share-row > .economy-v2-share-comparison {
    grid-column: 1 / -1;
    grid-row: 3;
  }
}

@media (max-width: 360px) {
  [data-v2-view="overview"] .economy-v2-formation-panel .economy-v2-profit-equation strong {
    font-size: 12px;
  }

  .economy-v2-expense-row-name > strong {
    font-size: 14px;
  }

  .economy-v2-share-lines > span {
    grid-template-columns: 47px minmax(42px, 84px) 80px;
    gap: 5px;
  }

  .economy-v2-share-lines b,
  .economy-v2-share-lines strong {
    font-size: 10.5px;
  }

  .economy-v2-share-comparison {
    grid-template-columns: minmax(0, 1fr) 64px;
    gap: 4px;
  }
}
