/* Mercado SP | Neon Intelligence v1 — apresentação somente.
   Preserva SVGs, dados, eventos, acessibilidade e tema de impressão. */
@media screen {
  :root:not([data-theme="light"]) {
  & {
    --canvas:#071426;--surface:#101f36;--surface-raised:#162b46;
    --surface-hover:#1c3855;--ink:#f2f7ff;--muted:#afc5e0;
    --line:#28445f;--accent:#5ac7ff;--accent-fill:#166ac6;
    --accent-ink:#fff;--focus:#72d9ff;--track:#1b3450;
    --chart-color:#32b7ff;--gauge-color:#32b7ff;
    --dashboard-sidebar:#09172b;--dashboard-sidebar-text:#c4d8f1;
    --dashboard-sidebar-active:#155ca9;
    color-scheme:dark;
  }
  body {background:radial-gradient(ellipse at 75% 0%,#11355a 0%,#08182e 38%,#061224 100%) fixed!important;color:var(--ink);font-family:Inter,"Segoe UI",system-ui,sans-serif}
  body>header {background:linear-gradient(110deg,#071426,#102e52)!important;border-bottom:1px solid #25517b!important;box-shadow:0 6px 30px #0005}
  #market-main>nav {background:linear-gradient(170deg,#0c1d36,#081529)!important;border:1px solid #25415e!important;box-shadow:0 14px 36px #0004!important}
  #market-main>nav button {color:#c6d9ef!important}
  #market-main>nav button[aria-selected="true"] {background:linear-gradient(105deg,#155aa6,#1a83d6)!important;color:#fff!important;box-shadow:0 0 0 1px #5ac7ff55,0 5px 19px #008cff45!important}
  #market-main .panel {background:linear-gradient(145deg,#11243d,#0b1b31)!important;border:1px solid #294a6a!important;box-shadow:inset 0 1px #ffffff0c,0 10px 28px #0003!important;color:#e9f4ff}
  #market-main h1,#market-main h2,#market-main h3 {color:#f3f9ff!important}
  #market-main .muted,#market-main .panel p.muted {color:#b1c5dc!important}
  #market-main .chart,#market-main .destination-flow-plot {color:#e9f4ff}
  #market-main .card,#market-main .history-kpi,#market-main .destination-flow-cards>div {background:linear-gradient(145deg,#173458,#0d2440)!important;border:1px solid #37648d!important;color:#f3f9ff!important;box-shadow:inset 0 1px #ffffff16,0 5px 20px #0004!important}
  #market-main .card strong,#market-main .history-kpi strong,#market-main .destination-flow-cards strong {color:#fff;text-shadow:0 0 16px #3cbcff35}
  #market-main .track {background:#203e5e!important}
  #market-main .bar {box-shadow:0 0 12px #32b7ff55}
  #market-main .pie-slice:hover,#market-main .flow-band:hover,#market-main .pie-slice.selected,#market-main .flow-band.selected {filter:brightness(1.17) drop-shadow(0 0 7px #4ebdff88)}
  #market-main svg .flow-band {transition:opacity .2s ease,filter .2s ease}
  #market-main svg text {font-family:Inter,"Segoe UI",system-ui,sans-serif}
  #market-main table {color:#e8f3ff}
  #market-main th {background:#17304e!important;color:#e5f4ff!important}
  #market-main td {border-bottom-color:#29445f}
  #market-main tbody tr:hover {background:#1b3654!important}
  #market-main select,#market-main input:not([type="checkbox"]):not([type="radio"]),#market-main textarea {background:#112841!important;color:#f2f8ff!important;border-color:#365875!important}
  #market-main button:focus-visible,#market-main select:focus-visible,#market-main input:focus-visible {outline:2px solid #70d9ff!important;outline-offset:2px}
  #market-main .readout {color:#b8d9f4}
  #market-main .legend-item {color:#e3f0ff}
  #market-main .legend-item:hover,#market-main .row:hover {background:#1c3958!important}
  #market-main .indicator-panel {background:transparent!important;border:0!important;box-shadow:none!important}
  #market-main .indicator-row {
    background:linear-gradient(145deg,#153252,#0d2038);
    border-color:#2e5477;
  }
  #market-main :is(.chart,.comparison-chart-panel,.destination-flow-plot,#market-history-chart) {
    color:var(--ink);
  }
  #market-main .comparison-chart-panel {
    background:linear-gradient(145deg,#0b1b31,#0e2540);
    border-color:#315779;
  }
  #market-main .history-chart text {fill:var(--ink)}
  #market-main .history-chart .history-growth {fill:#70e9b6}
  #market-main .history-chart .history-decline {fill:#ffa2be}
  #market-main .history-chart :is(polyline,path[stroke],rect.history-insight-bar),
  #market-main .monthly-chart polyline {
    filter:drop-shadow(0 0 4px #35bdff66);
  }
  #market-main :is(.track .bar,.history-chart circle,.monthly-marker) {
    filter:saturate(1.2) brightness(1.12);
  }
  @media(max-width:760px) {#market-main .panel {box-shadow:0 5px 16px #0003!important}}
  @media(prefers-reduced-motion:reduce) {
    #market-main .flow-band {transition:none}
  }
  }
}
@media print { /* Sem alterações no relatório impresso. */ }

/* Identidade clara inspirada no mapa de destinação. */
@media screen {
 :root:not([data-theme="dark"]) {
  --canvas:#f4f8fc;--surface:#fff;--surface-raised:#edf6fc;--surface-hover:#e1effb;
  --ink:#142e51;--muted:#425976;--line:#cbdced;
  --accent:#0063a8;--accent-fill:#0063a8;--focus:#005da8;--track:#deebf6;
  --chart-color:#0877bb;--gauge-color:#0877bb;
  --dashboard-sidebar:#fff;--dashboard-sidebar-text:#173859;--dashboard-sidebar-active:#0063a8;
  --assistant-pill:#e7e5fa;--assistant-ink:#54218a;
 }
 :root:not([data-theme="dark"]) body > header {
  background:linear-gradient(115deg,#f7fcff,#dfedfb)!important;
  border-color:#cbdced!important;box-shadow:0 3px 17px #1c538915;
 }
 :root:not([data-theme="dark"]) body > header :is(.brand,.brand-title,.theme-button) {color:#142e51!important}
 :root:not([data-theme="dark"]) body > header .theme-button {border-color:#a5c6e3!important;background:#fff!important}
 :root:not([data-theme="dark"]) #market-main > nav {border:1px solid var(--line);box-shadow:0 8px 25px #194c7811}
 :root:not([data-theme="dark"]) #market-main > nav button:hover {background:#e2f1fc;color:#123557}
 :root:not([data-theme="dark"]) #market-main > nav button[aria-selected="true"] {background:linear-gradient(140deg,#087fc2,#005592)!important;color:#fff}
 :root:not([data-theme="dark"]) #market-main :is(.panel,.indicator-row) {border-radius:16px;box-shadow:0 5px 20px #194c7810}
 :root:not([data-theme="dark"]) #market-main :is(.card,.history-kpi,.destination-flow-cards>div,.indicator-row) {background:linear-gradient(150deg,#fff,#e9f4fc)}
 :root:not([data-theme="dark"]) #market-main :is(.primary,#directory-submit) {border-radius:999px}
 :root:not([data-theme="dark"]) #market-main .destination-flow-frame {background:#fbfdff;border-color:#cbdced}
 :root:not([data-theme="dark"]) .destination-flow-stages span {color:#16365a;background:#fff;border-color:#cbdced}
 :root:not([data-theme="dark"]) .destination-flow-tooltip {color:#173859;background:#fff;border-color:#9abedc}
 .mind-finish {
   --finish-top: color-mix(in srgb, var(--mind-color) 15%, white);
   --finish-light: color-mix(in srgb, var(--mind-color) 8%, white);
   --finish-mid: color-mix(in srgb, var(--mind-color) 19%, white);
   --finish-base: color-mix(in srgb, var(--mind-color) 30%, white);
 }
 .mind-finish.mind-class,
 :root[data-theme="dark"] .mind-finish {
   --finish-top: color-mix(in srgb, var(--mind-color) 85%, #101b39);
   --finish-light: color-mix(in srgb, var(--mind-color) 78%, #101b39);
   --finish-mid: color-mix(in srgb, var(--mind-color) 56%, #101b39);
   --finish-base: color-mix(in srgb, var(--mind-color) 36%, #101b39);
 }
 .mind-finish stop:nth-child(1) {stop-color:var(--finish-top)}
 .mind-finish stop:nth-child(2) {stop-color:var(--finish-light)}
 .mind-finish stop:nth-child(3) {stop-color:var(--finish-mid)}
 .mind-finish stop:nth-child(4) {stop-color:var(--finish-base)}
 .destination-mind-stroke {stroke-width:2.4;stroke-opacity:.85}
 :root[data-theme="dark"] .destination-mind-stroke {filter:brightness(1.38)}
 .destination-mind-highlight {stroke:white;stroke-opacity:.33;stroke-width:.65}
 .destination-mind-hub circle {fill:var(--mind-finish);stroke:#74bfff;stroke-width:3;filter:drop-shadow(0 5px 5px #10275d66)}
 .destination-mind-hub text {fill:white;font:700 17px system-ui}
 .destination-mind-icon {stroke:var(--mind-color,#fff)}
 .destination-mind-node rect {fill:var(--mind-finish);stroke:var(--mind-color);stroke-width:1.15;filter:drop-shadow(0 2px 1.5px #10275d45)}
 .destination-mind-node .destination-flow-label {font-size:14px;font-weight:700}
 .destination-mind-node .destination-flow-share {font-weight:650}
 .destination-flow-frame .destination-mind-node :is(.destination-flow-label,.destination-flow-share) {fill:#142e51}
 .destination-flow-frame .destination-mind-node.mind-class :is(.destination-flow-label,.destination-flow-share),
 :root[data-theme="dark"] .destination-flow-frame .destination-mind-node :is(.destination-flow-label,.destination-flow-share) {fill:#fff}
 .destination-mind-node.mind-class .destination-mind-icon,
 :root[data-theme="dark"] .destination-mind-node .destination-mind-icon {stroke:#fff}
 .destination-flow-frame .destination-mind-node[role=button]:focus-visible rect {stroke:var(--focus);stroke-width:3}
}
@media print {
 .destination-mind-hub circle {fill:#d8edf9;stroke:#0063a8}
 .destination-mind-hub text {fill:#142e51;font:700 17px system-ui}
 .destination-mind-icon {stroke:#0063a8}
 .destination-mind-node rect {fill:#edf6fc}
}
