.market-radar-section,
.market-pulse-section { display: grid; gap: 0; min-width: 0; }

.market-radar-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(235px, .32fr); gap: 9px; }
.market-radar-chart-panel,
.market-radar-details-panel,
.market-pulse-chart-panel { min-width: 0; padding: 11px 12px; }
.market-chart-panel-heading { display: flex; min-width: 0; align-items: center; justify-content: space-between; gap: 12px; }
.market-chart-panel-heading > div:first-child { display: grid; min-width: 0; gap: 3px; }
.market-chart-panel-heading strong { overflow: hidden; color: var(--text); font-size: 11px; font-weight: 680; text-overflow: ellipsis; white-space: nowrap; }
.market-radar-heading { margin-bottom: 4px; }
.market-radar-windows { display: inline-flex; flex: 0 0 auto; gap: 2px; padding: 3px; border: 1px solid var(--line); border-radius: 7px; background: #0d1712; }
.market-radar-windows button { min-width: 34px; padding: 5px 7px; border: 0; border-radius: 5px; background: transparent; color: var(--muted); font: inherit; font-size: 8px; font-weight: 700; cursor: pointer; }
.market-radar-windows button[aria-pressed="true"] { background: #263b2c; color: var(--accent); }
.market-radar-windows button:hover { color: var(--text); }
.market-radar-bias { max-width: 130px; overflow: hidden; padding: 4px 7px; border: 1px solid rgb(173 221 106 / 22%); border-radius: 5px; background: rgb(173 221 106 / 7%); color: var(--accent); font-size: 8px; font-weight: 700; text-overflow: ellipsis; white-space: nowrap; }
.market-radar-chart { display: block; width: 100%; height: auto; overflow: visible; }
.market-radar-quadrant-fill.is-long-entering { fill: rgb(90 198 132 / 7%); }
.market-radar-quadrant-fill.is-short-closing { fill: rgb(76 180 197 / 7%); }
.market-radar-quadrant-fill.is-short-entering { fill: rgb(230 105 100 / 7%); }
.market-radar-quadrant-fill.is-long-closing { fill: rgb(209 164 81 / 7%); }
.market-radar-grid-line { stroke: rgb(174 210 194 / 8%); stroke-width: 1; stroke-dasharray: 3 5; }
.market-radar-axis-line { stroke: rgb(174 210 194 / 25%); stroke-width: 1.2; }
.market-radar-quadrant-label { font-family: inherit; font-size: 12px; font-weight: 650; opacity: .58; }
.market-radar-quadrant-label.is-long-entering { fill: #72dda0; }
.market-radar-quadrant-label.is-short-closing { fill: #63c9d0; }
.market-radar-quadrant-label.is-short-entering { fill: #f17c78; }
.market-radar-quadrant-label.is-long-closing { fill: #e3b968; }
.market-radar-tick-label,
.market-radar-axis-title { fill: var(--quiet); font-family: inherit; font-size: 9px; font-variant-numeric: tabular-nums; }
.market-radar-axis-title { font-size: 10px; font-weight: 600; }
.market-radar-bubble { cursor: pointer; stroke-width: 1; vector-effect: non-scaling-stroke; transition: fill-opacity .15s ease, r .15s ease, stroke-width .15s ease; }
.market-radar-bubble:hover,
.market-radar-bubble:focus-visible { fill-opacity: 1; stroke: #e9f8ec; stroke-width: 2; outline: none; }
.market-radar-bubble.is-selected { fill-opacity: 1; stroke: #f2f7e7; stroke-width: 2.1; filter: drop-shadow(0 0 5px currentColor); }
.market-radar-symbol-label { fill: #c8d5ca; font-family: inherit; font-size: 9px; font-weight: 650; paint-order: stroke; pointer-events: none; stroke: #101a15; stroke-linejoin: round; stroke-width: 3px; }
.market-radar-symbol-label.is-selected { fill: #f2f8eb; }
.market-radar-empty-label { fill: var(--muted); font-family: inherit; font-size: 15px; }
.market-radar-axis-legend { display: flex; justify-content: space-between; gap: 8px; margin-top: -3px; color: var(--quiet); font-size: 8px; }
.market-radar-axis-legend span { display: inline-flex; align-items: center; gap: 6px; }
.market-radar-axis-legend b { color: var(--muted); font-weight: 600; }
.market-radar-selected { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1px; margin-top: 9px; overflow: hidden; border: 1px solid rgb(174 210 194 / 9%); border-radius: 6px; background: rgb(174 210 194 / 8%); }
.market-radar-selected > div { display: grid; min-width: 0; gap: 3px; padding: 7px 8px; background: #101a15; }
.market-radar-selected > div > span { overflow: hidden; color: var(--quiet); font-size: 7px; text-overflow: ellipsis; white-space: nowrap; }
.market-radar-selected > div > strong { overflow: hidden; color: #dfeae2; font-size: 9px; font-weight: 650; text-overflow: ellipsis; white-space: nowrap; }
.market-radar-selected > div > strong.is-positive { color: var(--green); }
.market-radar-selected > div > strong.is-negative { color: var(--red); }
.market-radar-empty { margin: 0; padding: 9px 2px; color: var(--muted); font-size: 9px; }
.market-radar-quadrants { display: grid; gap: 4px; margin-top: 11px; }
.market-radar-quadrants > div { display: flex; min-width: 0; align-items: center; justify-content: space-between; gap: 8px; padding: 6px 7px; border-left: 2px solid currentColor; background: rgb(174 210 194 / 3%); font-size: 8px; }
.market-radar-quadrants > div span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.market-radar-quadrants > div strong { font-size: 9px; font-variant-numeric: tabular-nums; }
.market-radar-quadrants .is-long-entry { color: #72dda0; }
.market-radar-quadrants .is-short-closing { color: #63c9d0; }
.market-radar-quadrants .is-short-entry { color: #f17c78; }
.market-radar-quadrants .is-long-closing { color: #e3b968; }
.market-radar-disclaimer { margin: 9px 0 0; color: var(--quiet); font-size: 7px; line-height: 1.45; }

.market-pulse-meta { display: flex; min-width: 0; align-items: center; gap: 9px; }
.market-pulse-status { display: inline-flex; min-width: 0; align-items: center; gap: 5px; color: var(--muted); font-size: 8px; white-space: nowrap; }
.market-pulse-status > i { width: 6px; height: 6px; flex: 0 0 auto; border-radius: 50%; background: var(--quiet); }
.market-pulse-status.is-live { color: var(--green); }
.market-pulse-status.is-live > i { background: var(--green); box-shadow: 0 0 8px rgb(99 217 154 / 48%); }
.market-pulse-status.is-checking > i { background: var(--amber); animation: market-pulse-status 1.1s ease-in-out infinite alternate; }
.market-pulse-status.is-error { color: var(--red); }
.market-pulse-status.is-error > i { background: var(--red); }
.market-pulse-refresh { display: grid; width: 27px; height: 27px; flex: 0 0 auto; place-items: center; border: 1px solid var(--line-2); border-radius: 6px; background: #111d16; color: var(--muted); cursor: pointer; }
.market-pulse-refresh:hover { border-color: #456047; color: var(--text); }
.market-pulse-refresh:disabled { cursor: wait; opacity: .55; }
.market-pulse-refresh svg { width: 15px; height: 15px; }
.market-pulse-refresh.is-loading svg { animation: market-rotate .8s linear infinite; }
.market-pulse-summary-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin-bottom: 8px; }
.market-pulse-summary-card { display: grid; min-width: 0; min-height: 68px; align-content: center; gap: 3px; padding: 9px 11px; }
.market-pulse-summary-card > strong { overflow: hidden; color: var(--text); font-size: 15px; font-weight: 700; letter-spacing: -.03em; text-overflow: ellipsis; white-space: nowrap; }
.market-pulse-summary-card > small { overflow: hidden; color: var(--muted); font-size: 8px; text-overflow: ellipsis; white-space: nowrap; }
.market-pulse-summary-card > small.is-positive { color: var(--green); }
.market-pulse-summary-card > small.is-negative { color: var(--red); }
.market-pulse-summary-card .market-breadth-track { margin-top: 2px; }
.market-pulse-chart-heading { margin-bottom: 2px; }
.market-pulse-current { display: grid; flex: 0 0 auto; gap: 2px; text-align: right; }
.market-pulse-current > span { color: var(--quiet); font-size: 7px; }
.market-pulse-current > strong { color: var(--accent); font-size: 12px; font-variant-numeric: tabular-nums; }
.market-pulse-chart { display: block; width: 100%; height: auto; aspect-ratio: 900 / 290; overflow: visible; }
.market-pulse-grid-line { stroke: rgb(174 210 194 / 10%); stroke-width: 1; }
.market-pulse-volume-grid-line { stroke: rgb(174 210 194 / 5%); stroke-width: 1; stroke-dasharray: 3 5; }
.market-pulse-axis-label,
.market-pulse-time-label { fill: var(--quiet); font-family: inherit; font-size: 9px; font-variant-numeric: tabular-nums; }
.market-pulse-time-label { font-size: 8px; }
.market-pulse-volume-bar { fill: #508f7c; fill-opacity: .5; transition: fill-opacity .15s ease; }
.market-pulse-volume-bar:hover { fill-opacity: .9; }
.market-pulse-area { fill: rgb(110 227 164 / 8%); }
.market-pulse-line { fill: none; stroke: #78dfa9; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; vector-effect: non-scaling-stroke; }
.market-pulse-live-dot { fill: none; stroke: #8deab6; stroke-width: 1.2; animation: market-pulse-ring 1.8s ease-out infinite; }
.market-pulse-live-core { fill: #a6f2c4; stroke: #112019; stroke-width: 1.5; }
.market-pulse-legend { display: flex; min-width: 0; flex-wrap: wrap; align-items: center; gap: 6px 14px; padding: 0 8px 2px; color: var(--muted); font-size: 8px; }
.market-pulse-legend > span { display: inline-flex; min-width: 0; align-items: center; gap: 5px; }
.market-pulse-legend > span:last-child { overflow: hidden; margin-left: auto; color: var(--quiet); text-overflow: ellipsis; white-space: nowrap; }
.market-pulse-line-key { width: 13px; height: 2px; border-radius: 2px; background: #78dfa9; }
.market-pulse-bar-key { width: 8px; height: 8px; border-radius: 2px; background: #508f7c; }
.market-pulse-chart-panel .market-screener-error { margin: 7px 0 0; }

@keyframes market-pulse-ring { 0% { opacity: .75; r: 4px; } 100% { opacity: 0; r: 12px; } }
@keyframes market-pulse-status { to { opacity: .35; } }

@media (max-width: 900px) {
  .market-radar-layout { grid-template-columns: minmax(0, 1fr); }
  .market-radar-details-panel { display: grid; grid-template-columns: minmax(0, 1fr) minmax(180px, .8fr); align-items: start; gap: 0 10px; }
  .market-radar-details-panel > .market-chart-panel-heading,
  .market-radar-details-panel > .market-radar-disclaimer { grid-column: 1 / -1; }
  .market-radar-selected { margin-top: 8px; }
  .market-radar-quadrants { margin-top: 8px; }
}

@media (max-width: 600px) {
  .market-section-heading { align-items: flex-start; }
  .market-pulse-meta { flex-wrap: wrap; justify-content: flex-end; gap: 6px; }
  .market-pulse-meta .market-section-note { width: 100%; max-width: none; text-align: right; }
  .market-pulse-summary-grid { gap: 6px; }
  .market-pulse-summary-card { min-height: 63px; padding: 8px; }
  .market-pulse-summary-card > strong { font-size: 12px; }
  .market-pulse-summary-card > small { font-size: 7px; white-space: normal; }
  .market-radar-chart-panel,
  .market-radar-details-panel,
  .market-pulse-chart-panel { padding: 9px; }
  .market-radar-heading { align-items: flex-start; flex-direction: column; gap: 7px; }
  .market-radar-windows { align-self: stretch; justify-content: space-between; }
  .market-radar-windows button { flex: 1; }
  .market-radar-axis-legend { flex-wrap: wrap; font-size: 7px; }
  .market-radar-details-panel { grid-template-columns: minmax(0, 1fr); }
  .market-radar-details-panel > .market-chart-panel-heading,
  .market-radar-details-panel > .market-radar-disclaimer { grid-column: auto; }
  .market-radar-quadrant-label { font-size: 10px; }
  .market-radar-tick-label { font-size: 8px; }
  .market-radar-selected { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .market-pulse-chart { min-height: 130px; }
  .market-pulse-legend { gap: 6px 9px; padding: 0 2px 2px; font-size: 7px; }
  .market-pulse-legend > span:last-child { flex-basis: 100%; margin-left: 0; }
}

@media (prefers-reduced-motion: reduce) {
  .market-radar-bubble,
  .market-pulse-volume-bar { transition: none; }
  .market-pulse-status.is-checking > i,
  .market-pulse-live-dot,
  .market-pulse-refresh.is-loading svg { animation: none; }
}
