@media screen {
  :root {
    --scene-shade: linear-gradient(180deg, #102e424f, #0d3347a3 32%, #082a40e6);
    background-color: #12394b;
    background-image: var(--scene-shade), url("mercado-paisagem-industrial.webp");
    background-position: center top;
    background-size: cover;
    background-repeat: no-repeat;
  }

  :root[data-theme="dark"] {
    --scene-shade: linear-gradient(180deg, #061a2e88, #06182ac2 35%, #051729f2);
  }

  html:root[data-theme] body > header {
    background: linear-gradient(100deg, #04243af5 12%, #0b304bdc 75%, #104964c9) !important;
    border-color: #4c8c9b80 !important;
  }

  html:root[data-theme] body > header :is(.brand, .brand-title) { color: #fff !important; }
  html:root[data-theme] body > header .theme-button { color: #143853 !important; background: #eff7fb !important; }

  #market-main > nav {
    background: linear-gradient(165deg, #092c42, #0b3449) !important;
    border-color: #55909e88 !important;
    box-shadow: 0 12px 30px #02111966 !important;
  }

  html:root[data-theme] #market-main > nav button { color: #edf8ff !important; }
  html:root[data-theme] #market-main > nav button:hover { background: #1b5364; }
  html:root[data-theme] #market-main > nav button[aria-selected="true"] {
    background: linear-gradient(150deg, #078c78, #08556b 72%) !important;
    box-shadow: inset 0 1px #ffffff48, 0 3px 8px #041b2c70 !important;
  }

  :root[data-theme="light"] :is(#account-bar, #market-main .panel:not(.indicator-panel)) {
    background: linear-gradient(148deg, #fff 19%, #f0f7fc 79%, #dceaf3);
    border-color: #e0edf5;
    box-shadow: inset 0 1px #fff, 0 8px 20px #06253b38;
  }

  #market-main #cards.indicator-panel {
    padding: .5rem 0 0;
    background: transparent !important;
    border: 0 !important;
    box-shadow: none;
  }

  #market-main #cards > .panel-head h2 {
    color: #fff;
    font-size: clamp(1.25rem, 1.85vw, 1.8rem);
    text-shadow: 0 2px 6px #041a31d9;
  }

  #market-main #cards > :is(.indicator-intro, .indicator-footnote),
  #market-main #cards .local-year-filter label {
    color: #f0faff;
    background: #082b41eb;
    border-radius: .35rem;
    padding: .2rem .45rem;
    justify-self: start;
  }

  :root[data-theme="light"] #market-main #cards .indicator-row {
    background: linear-gradient(155deg, #ffffff 30%, #e1eef7 99%);
    border-color: #e7f4f9;
    box-shadow: inset 0 1px #fff, 0 4px 12px #031c3655;
  }

  #market-main #cards .indicator-row strong {
    font-size: clamp(1rem, 1.7vw, 1.58rem);
    font-weight: 800;
    font-variant-numeric: tabular-nums;
    line-height: 1.15;
    letter-spacing: -.025em;
  }

  :root[data-theme="light"] #market-main #cards .indicator-row strong { color: #112853; }
  #market-main #cards .indicator-row:is(:hover, [aria-pressed="true"]) { border-color: var(--tone); }
  #market-main #cards .indicator-row .bar { box-shadow: inset 0 1px #fff9, inset 0 -2px #00142b70, 0 2px 4px #05173560; }

  #market-main .monthly-column {
    filter: drop-shadow(2px 2px 1px #10473466);
    transition: filter .18s ease;
  }
  #market-main .monthly-point:is(:hover, :focus-visible, [aria-pressed="true"]) .monthly-column {
    filter: brightness(1.2) drop-shadow(2px 3px 2px #10473488);
    stroke: var(--focus);
    stroke-width: 1.5;
  }

  #market-main :is(.monthly-chart, .history-chart) text { font-weight: 620; }
  #market-main .history-kpi strong { font-variant-numeric: tabular-nums; font-weight: 800; }
  #market-main .destination-mind-node rect { filter: drop-shadow(0 3px 2px #10275d65); }

  @media (min-width: 1280px) {
    #market-main #overview {
      background: url("sp-economia-circular-destaque.webp") right 3.4rem / clamp(11rem, 21vw, 24rem) auto no-repeat;
    }
  }

  @media (max-width: 480px) {
    #market-main #cards .indicator-row { grid-template-columns: 1.3rem minmax(0, 1fr); }
    #market-main #cards .indicator-row .indicator-symbol { font-size: 1rem; }
  }

  @media (prefers-reduced-motion: no-preference) {
    #market-main #cards .indicator-row { transition: border-color .18s ease, box-shadow .18s ease; }
    #market-main #cards .indicator-row:hover { box-shadow: 0 7px 16px #031c3670; }
    #market-main section:not([hidden]) > :is(.panel, #cards) { animation: market-panel-enter .29s ease-out both; }
    #market-main .monthly-column { animation: market-column-enter .48s cubic-bezier(.2,.75,.3,1) both; transform-box: fill-box; transform-origin: center bottom; }
  }

  @keyframes market-panel-enter {
    from { opacity: .78; transform: translateY(4px); }
  }

  @keyframes market-column-enter {
    from { transform: scaleY(.08); opacity: .55; }
  }

  @media (forced-colors: active) {
    :root, :root[data-theme="dark"], #market-main #overview { background-image: none; }
    #market-main .monthly-column { fill: Highlight; filter: none; }
  }
}
