html:root .portal-design :is(.cockpit-title, .manager-title, .ma-section-title) :is(h1, h2) {
  line-height: 1.22;
  text-wrap: balance;
}

html:root .portal-design .portal-shell :is(
  .seller-earnings-main .seller-earnings-period,
  .welcome-copy .data-source-pill,
  .weekly-goal-source,
  .seller-pace-live small,
  .seller-pace-live span,
  .seller-pace-numbers p,
  #resultado .metric-card > small,
  .spg-method,
  .spg-period
) {
  font-size: var(--ep-support-size);
  line-height: 1.45;
}

html:root .portal-design .portal-shell :is(
  .weekly-goal-source,
  .seller-pace-numbers p,
  #resultado .metric-card > small,
  .spg-method,
  .spg-period
) {
  color: #4e6358;
}

html:root .portal-design .portal-shell #resultado .metric-card.positive > small {
  color: #126548;
}

html:root .portal-design .portal-shell #resultado .metric-card.attention > small {
  color: #884c21;
}

html:root .portal-design .portal-shell :is(#resultado .metric-card strong, .seller-earnings-total, .seller-pace-live strong) {
  font-variant-numeric: tabular-nums;
}

html:root .portal-design :is(.manager-filter-heading, .cockpit-section-heading, .ma-compare-heading) > div {
  min-inline-size: 0;
}

html:root .portal-design :is(.manager-period-controls, .monthly-plan-main .goal-admin-filters)
  :is(select, input:not([type="hidden"]), button) {
  border-radius: var(--ep-control-radius);
}

html:root .portal-design .monthly-plan-main :is(.plan-scope-heading, .goal-admin-filters) {
  border-radius: var(--ep-panel-radius);
}

html:root .portal-design .monthly-plan-main .plan-scope-heading :is(h2, p) {
  text-wrap: pretty;
}

html:root .portal-design .cockpit-annual-table :is(th, td) {
  line-height: 1.35;
}

html:root .portal-design :is(.ma-team-metric, .ma-compare-sales, .ma-kpi, .cockpit-pulse, .cockpit-year-comparison) {
  font-variant-numeric: tabular-nums;
}

html:root .portal-design :is(.ma-team-person .ma-seller-link, .rp-team-person h3, .inv-transfer-heading h2) {
  overflow-wrap: anywhere;
}

html:root .portal-design .ma-team-metric .ma-metric-title {
  font-size: var(--ep-label-size);
  line-height: 1.35;
}

html:root .portal-design .rp-page .rp-page-heading > div,
html:root .portal-design .inv-shell .inv-transfer-heading > div {
  min-inline-size: 0;
}

html:root .portal-design .sa-shell .sa-module {
  --sa-muted: #54685e;
}

html:root .portal-design .sa-shell .sa-module .sa-overline {
  font-size: var(--ep-label-size);
  letter-spacing: 0.045em;
}

html:root .portal-design .sa-shell .sa-module :is(.sa-kpi .sa-overline, .sa-kpi-foot, .sa-rank-meta) {
  font-size: 0.75rem;
}

html:root .portal-design .sa-shell .sa-module :is(.sa-rank-meta, .sa-rank-meta > span, .sa-rank-position, .sa-ratio small) {
  color: var(--sa-muted);
}

html:root .portal-design .sa-shell .sa-module :is(.sa-period-toggle button[aria-pressed="false"], .sa-ratio details > summary) {
  color: var(--sa-muted);
}

html:root .portal-design .sa-shell .sa-module .sa-rank-line strong {
  white-space: normal;
  overflow-wrap: anywhere;
}

html:root .portal-design .sa-shell .sa-module .sa-dialog {
  padding: var(--ep-panel-padding);
  border-radius: var(--ep-panel-radius);
}

html:root .portal-design .sa-shell .sa-module .sa-table-wrap {
  max-inline-size: 100%;
  overscroll-behavior-inline: contain;
}

html:root .portal-design .sa-shell .sa-module :is(.sa-period-toggle button, .sa-close) {
  min-block-size: var(--ep-control-size);
}

html:root .portal-design .sa-shell .sa-module .sa-close {
  flex: 0 0 var(--ep-control-size);
}

html:root .studio :is(.sheet-head, .panel-heading) h2 {
  line-height: 1.27;
  text-wrap: pretty;
}

html:root .studio :is(.history, .review-panel) details > summary {
  min-block-size: 2rem;
  line-height: 1.45;
  align-content: center;
}

html:root .studio details.connections > summary {
  min-block-size: var(--ep-control-size);
  align-content: center;
}

@media (max-width: 760px) {
  html:root body .portal-design .portal-shell > .seller-mobile-nav[aria-label] > a,
  html:root body .portal-design .portal-shell > .seller-mobile-nav[aria-label] > .vr-mobile-menu > summary {
    font-size: 0.6875rem;
  }
}

@media (max-width: 720px) {
  html:root body .portal-design .portal-shell:has(> .seller-mobile-nav[aria-label]) > .main-content {
    padding-block-end: calc(5.125rem + env(safe-area-inset-bottom, 0px));
  }
}

@media (max-width: 560px) {
  html:root body .portal-design .portal-shell > .seller-mobile-nav[aria-label]:has(> :nth-child(8)) > a,
  html:root body .portal-design .portal-shell > .seller-mobile-nav[aria-label]:has(> :nth-child(8)) > .vr-mobile-menu > summary,
  html:root body .portal-design .portal-shell > .seller-mobile-nav[aria-label] .vr-mobile-links > a {
    font-size: var(--ep-support-size);
  }
}

@media (max-width: 490px) {
  html:root body .portal-design .portal-shell > .seller-mobile-nav[aria-label] > a,
  html:root body .portal-design .portal-shell > .seller-mobile-nav[aria-label] > .vr-mobile-menu > summary {
    font-size: var(--ep-support-size);
  }
}

@media (min-width: 641px) {
  html:root .portal-design .sa-shell .sa-module .sa-filter-fields label {
    flex: 0 1 11rem;
    min-inline-size: min(100%, 10.5rem);
  }

  html:root .portal-design .sa-shell .sa-module .sa-filter-fields label:has(select) {
    flex: 0 1 20rem;
  }
}

@media (max-width: 640px) {
  html:root .portal-design .manager-period-controls :is(select, input[type="month"]) {
    min-inline-size: 0;
    max-inline-size: 100%;
  }

  html:root .portal-design .cockpit-annual-table :is(th, td) {
    padding-inline: var(--ep-space-2);
  }

  html:root .portal-design .inv-transfer-heading .inv-transfer-tools {
    flex-wrap: wrap;
    column-gap: var(--ep-space-2);
    row-gap: var(--ep-space-1);
  }

  html:root .portal-design .rp-page .rp-page-heading {
    align-items: flex-start;
    gap: var(--ep-space-2);
  }

  html:root .portal-design .sa-shell .sa-module .sa-loading {
    flex-wrap: wrap;
  }

  html:root .portal-design .sa-shell .sa-module .sa-loading > div {
    flex: 1 1 10rem;
  }
}

@media (max-width: 420px) {
  html:root .portal-design .sa-shell .sa-module .sa-filter-fields {
    grid-template-columns: minmax(0, 1fr);
  }

  html:root .portal-design .sa-shell .sa-module .sa-primary {
    justify-self: start;
    inline-size: auto;
    min-inline-size: min(100%, 10rem);
  }
}

@media (min-width: 1120px) {
  html:root .portal-design,
  html:root body:has(> main.studio) {
    --bs-desktop-space: clamp(16px, 1.65vw, 24px);
    --bs-desktop-gap: clamp(12px, 1.25vw, 18px);
  }

  html:root .portal-design .goal-admin-main:where(:not(:has(> .bs-cockpit-sidebar, > .admin-module-nav))) {
    max-inline-size: 1360px;
  }
  html:root .portal-design :is(.cockpit-hero, .goal-admin-hero, .inv-page-heading) h1,
  html:root :is(.studio .intro h1, #purchase-budget h1, .nf-heading h1, .ma-manager-hero h1) {
    font-size: clamp(1.65rem, 2.1vw, 2.125rem);
    line-height: 1.18;
    text-wrap: balance;
  }
  html:root .portal-design :is(.cockpit-hero, .goal-admin-hero, .inv-page-heading) p,
  html:root :is(.studio .intro, .ma-hero-main, #purchase-budget) h1 + p {
    max-inline-size: 68ch;
    text-wrap: pretty;
  }

  html:root .portal-design :is(.cockpit-period-filter, .manager-filter-bottom, .hr-documents-hero) {
    padding-block: var(--bs-desktop-space);
  }
  html:root .portal-design .cockpit-period-filter {
    grid-template-columns: minmax(0, 1fr) minmax(13rem, 17rem) auto;
    gap: var(--bs-desktop-gap);
    align-items: end;
  }
  html:root .portal-design .cockpit-kpis.cockpit-kpis-live {
    gap: var(--bs-desktop-gap);
  }
  html:root .portal-design .cockpit-kpis.cockpit-kpis-live > article {
    min-inline-size: 0;
    padding: var(--bs-desktop-space);
  }
  html:root .portal-design .cockpit-kpis-live strong {
    font-variant-numeric: tabular-nums;
  }
  html:root .portal-design .cockpit-annual-table :is(th, td) {
    padding-block: 0.75rem;
  }
  html:root .portal-design .manager-main .manager-filter-bar {
    position: relative;
    top: auto;
  }
  html:root .portal-design .manager-main .manager-filter-heading {
    padding-block: var(--bs-desktop-space);
  }
  html:root .portal-design .manager-main .manager-places a {
    min-block-size: 42px;
  }
  html:root .portal-design .manager-main .manager-period-controls {
    max-inline-size: 48rem;
    gap: var(--bs-desktop-gap);
  }
  html:root .portal-design .manager-main .manager-summary {
    gap: var(--bs-desktop-gap);
  }
  html:root .portal-design .ma-workspace {
    max-inline-size: 1392px;
    gap: clamp(20px, 2vw, 32px);
  }
  html:root .portal-design .ma-workspace > .ma-workspace-main {
    min-inline-size: 0;
  }
  html:root .portal-design :is(.ma-manager-hero, .ma-compare) {
    padding: var(--bs-desktop-space);
  }

  html:root .portal-design .monthly-plan-main .goal-admin-filters {
    gap: var(--bs-desktop-gap);
    align-items: end;
  }
  html:root .portal-design .monthly-plan-main .plan-scope-heading {
    padding: var(--bs-desktop-space);
  }
  html:root .portal-design .inv-shell > .inv-panel {
    max-inline-size: 100%;
    margin-inline: 0;
  }
  html:root .portal-design :is(.inv-transfer-heading, .hr-doc-overview, .sa-filter-fields) {
    gap: var(--bs-desktop-gap);
  }
  html:root .portal-design .sa-module .sa-filter-fields {
    justify-content: start;
    align-items: end;
  }

  html:root main.studio {
    box-sizing: border-box;
    width: 100%;
    max-inline-size: 1240px;
    padding: 28px clamp(24px, 2.6vw, 36px) 48px;
  }
  html:root main.studio .desk {
    gap: clamp(18px, 2vw, 28px);
  }
  html:root main.studio :is(.sheet-head, .ig-head) {
    padding-block: var(--bs-desktop-space);
  }
  html:root .nf-main {
    max-inline-size: 1280px;
  }
  html:root .nf-main .nf-note-open {
    padding-block: 0.875rem;
  }
  html:root .portal-design .portal-shell > .main-content > :is(.dashboard, .seller-earnings-main) {
    max-inline-size: 1280px;
    margin-inline: auto;
  }
}
