.economy-hero-grid {
  grid-template-columns: minmax(0, 1.35fr) minmax(320px, 0.82fr);
}

.economy-copy {
  display: grid;
  gap: 18px;
  align-content: start;
}

.economy-copy h1 {
  max-width: 14ch;
}

.economy-copy .hero-insights,
.economy-copy .hero-stats {
  margin-top: 0;
}

.market-sentiment-layout {
  display: grid;
  grid-template-columns: minmax(220px, 0.78fr) minmax(0, 1.22fr);
  gap: 18px;
  align-items: stretch;
}

.sentiment-gauge-card,
.market-quote-card,
.sector-performance-card {
  display: grid;
  gap: 12px;
  padding: 16px;
  border: 1px solid rgba(23, 77, 117, 0.14);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.82);
}

.sentiment-gauge-card {
  align-content: center;
  justify-items: center;
}

.sentiment-gauge {
  position: relative;
  width: 220px;
  height: 124px;
  overflow: hidden;
}

.sentiment-gauge-arc,
.sentiment-gauge-fill {
  position: absolute;
  left: 50%;
  width: 220px;
  height: 220px;
  border-radius: 50%;
  transform: translateX(-50%);
}

.sentiment-gauge-arc {
  top: 12px;
  border: 20px solid rgba(26, 35, 126, 0.12);
  clip-path: inset(0 0 50% 0);
}

.sentiment-gauge-fill {
  top: 12px;
  border: 20px solid transparent;
  border-top-color: var(--accent-deep);
  border-right-color: var(--accent-deep);
  transform: translateX(-50%) rotate(var(--pulse-rotation, -28deg));
  clip-path: inset(0 0 50% 0);
}

.sentiment-gauge-center {
  position: absolute;
  inset: auto 0 0;
  display: grid;
  justify-items: center;
  gap: 2px;
}

.sentiment-gauge-center span,
.sentiment-gauge-center small {
  color: var(--muted);
  font-weight: 800;
}

.sentiment-gauge-center span {
  font-size: 0.76rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.sentiment-gauge-center strong {
  color: var(--accent-deep);
  font-size: 2rem;
  line-height: 1;
}

.sentiment-gauge-center small {
  font-size: 0.86rem;
}

.sentiment-legend {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px 14px;
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 800;
}

.sentiment-legend span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.sentiment-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}

.sentiment-dot-up {
  background: var(--accent-deep);
}

.sentiment-dot-down {
  background: #b71c1c;
}

.sentiment-summary-stack {
  display: grid;
  gap: 16px;
}

.market-quote-card {
  margin: 0;
}

.market-quote-card p {
  margin: 0;
  color: var(--text);
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.6;
}

.market-pulse-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.market-pulse-card {
  display: grid;
  gap: 6px;
  padding: 14px 16px;
  border: 1px solid rgba(23, 77, 117, 0.14);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.78);
  box-shadow: var(--shadow);
}

.market-pulse-card-primary {
  background: linear-gradient(180deg, rgba(26, 35, 126, 0.06), rgba(255, 255, 255, 0.94));
}

.market-pulse-value {
  color: var(--accent-deep);
  font-size: 1.55rem;
  line-height: 1;
}

.market-pulse-card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.88rem;
  font-weight: 800;
  line-height: 1.45;
}

.economy-panel {
  align-self: stretch;
}

.economy-panel h2 {
  font-size: clamp(2rem, 3vw, 3.2rem);
}

.economy-panel-signal {
  display: grid;
  gap: 8px;
  margin-top: 18px;
  padding: 16px;
  border: 1px solid rgba(23, 77, 117, 0.14);
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.72);
}

.economy-panel-signal strong {
  color: var(--accent-deep);
  font-size: 1.35rem;
}

.economy-panel-signal p {
  margin: 0;
  color: var(--muted);
  font-weight: 800;
}

.selection-brief,
.mini-price-card,
.sector-performance-card {
  display: grid;
  gap: 10px;
  margin-top: 14px;
  padding: 14px;
  border: 1px solid rgba(23, 77, 117, 0.14);
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.78);
}

.selection-brief-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.selection-brief-head span:last-child {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 900;
}

.sector-list {
  display: grid;
  gap: 12px;
}

.sector-row {
  display: grid;
  gap: 8px;
}

.sector-row-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.sector-row-top strong {
  color: var(--text);
  font-size: 0.92rem;
}

.sector-row-top span {
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 900;
}

.sector-progress {
  height: 8px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(26, 35, 126, 0.08);
}

.sector-progress span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #1a237e, #5c6bc0);
}

.market-index-section {
  display: grid;
  gap: 16px;
}

.market-index-head {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 18px;
}

.market-index-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.market-index-card {
  display: grid;
  gap: 10px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: var(--shadow);
}

.market-index-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.market-index-name {
  color: var(--text);
  font-size: 0.86rem;
  font-weight: 900;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.market-index-badge {
  padding: 5px 8px;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 900;
}

.market-index-badge-up {
  background: rgba(26, 35, 126, 0.1);
  color: var(--accent-deep);
}

.market-index-badge-down {
  background: rgba(183, 28, 28, 0.1);
  color: #b71c1c;
}

.market-index-value {
  color: var(--text);
  font-size: 1.8rem;
  line-height: 1;
}

.market-index-change {
  margin: 0;
  font-size: 0.92rem;
  font-weight: 900;
}

.market-index-change-up {
  color: var(--accent-deep);
}

.market-index-change-down {
  color: #b71c1c;
}

.market-index-spark {
  width: 100%;
  height: 48px;
}

.market-index-spark path {
  fill: none;
  stroke: var(--accent-deep);
  stroke-width: 3;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.selection-brief p {
  margin: 0;
  color: var(--text);
  font-size: 0.95rem;
  font-weight: 800;
  line-height: 1.55;
}

.selection-brief ul {
  display: grid;
  gap: 7px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.selection-brief li {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 8px;
  align-items: start;
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 800;
  line-height: 1.35;
}

.selection-brief li span:first-child {
  min-width: 34px;
  padding: 3px 6px;
  border-radius: 999px;
  color: #fff;
  font-size: 0.72rem;
  text-align: center;
}

.selection-brief li span:first-child[data-sentiment="positive"] {
  background: #137a4a;
}

.selection-brief li span:first-child[data-sentiment="negative"] {
  background: #b73939;
}

.selection-brief li span:first-child[data-sentiment="neutral"] {
  background: var(--accent-deep);
}

.selection-brief li strong {
  min-width: 0;
  overflow: hidden;
  color: var(--text);
  text-overflow: ellipsis;
  white-space: nowrap;
}

#mini-price-chart {
  display: block;
  width: 100%;
  height: 132px;
  border: 1px solid rgba(23, 77, 117, 0.08);
  border-radius: 12px;
  background: #fff;
}

.mini-chart-grid {
  stroke: rgba(23, 77, 117, 0.1);
  stroke-width: 1;
}

.mini-chart-line {
  fill: none;
  stroke: var(--accent-deep);
  stroke-width: 3;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.mini-chart-area {
  fill: rgba(23, 77, 117, 0.08);
}

.mini-chart-dot {
  fill: #fff;
  stroke: var(--accent-deep);
  stroke-width: 2;
}

.mini-chart-label {
  fill: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.economy-main {
  gap: 24px;
  margin-top: 0;
}

@media (max-width: 1180px) {
  .economy-hero-grid {
    grid-template-columns: 1fr;
  }

  .market-pulse-strip {
    grid-template-columns: 1fr;
  }
}

.economy-toolbar {
  gap: 18px;
}

.economy-toolbar h2,
.chart-panel h2 {
  margin: 0;
}

.symbol-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.watchlist-actions {
  display: inline-flex;
  align-items: center;
  gap: 12px;
}

.watchlist-actions .section-note {
  margin: 0;
}

.watchlist-editor {
  display: grid;
  gap: 14px;
  padding: 16px;
  border: 1px solid rgba(23, 77, 117, 0.14);
  border-radius: var(--radius-sm);
  background: var(--surface-strong);
}

.watchlist-editor[hidden] {
  display: none;
}

.watchlist-editor-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.watchlist-editor-actions {
  display: inline-flex;
  gap: 8px;
}

.watchlist-save {
  width: auto;
  padding: 10px 16px;
}

.watchlist-search,
.watchlist-search input {
  width: 100%;
}

.watchlist-options {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.watchlist-option {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  min-height: 58px;
  padding: 10px 12px;
  border: 1px solid rgba(23, 77, 117, 0.14);
  border-radius: 12px;
  background: #fff;
  cursor: pointer;
}

.watchlist-option button {
  flex: 0 0 auto;
  padding: 8px 10px;
}

.watchlist-selected {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  min-height: 42px;
}

.watchlist-chip {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  max-width: 260px;
  padding: 9px 9px 9px 12px;
  border: 1px solid rgba(23, 77, 117, 0.16);
  border-radius: 999px;
  background: #fff;
}

.watchlist-chip span {
  display: grid;
  gap: 1px;
  min-width: 0;
}

.watchlist-chip strong,
.watchlist-chip small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.watchlist-chip strong {
  color: var(--text);
  font-size: 0.9rem;
}

.watchlist-chip small {
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 800;
}

.watchlist-chip button {
  display: grid;
  place-items: center;
  flex: 0 0 28px;
  width: 28px;
  height: 28px;
  border: 0;
  border-radius: 999px;
  background: rgba(183, 57, 57, 0.1);
  color: #b73939;
  font-size: 1.1rem;
  font-weight: 900;
  line-height: 1;
  cursor: pointer;
}

.watchlist-option span {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.watchlist-option strong,
.watchlist-option small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.watchlist-option strong {
  color: var(--text);
  font-size: 0.94rem;
}

.watchlist-option small {
  color: var(--muted);
  font-weight: 800;
}

.watchlist-empty {
  grid-column: 1 / -1;
  margin: 0;
  color: var(--muted);
  font-weight: 800;
}

.symbol-tabs button {
  min-height: 42px;
  padding: 0 16px;
  border: 1px solid rgba(23, 77, 117, 0.16);
  border-radius: 14px;
  background: #fff;
  color: var(--accent-deep);
  font-weight: 800;
  cursor: pointer;
}

.symbol-tabs button.is-active {
  background: var(--accent-deep);
  color: #fff;
}

.chart-panel {
  padding: 22px;
}

[hidden] {
  display: none !important;
}

.chart-detail-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 18px;
}

.tradingview-widget-container,
#interactive-stock-chart,
#stock-chart {
  width: 100%;
  height: 620px;
}

.tradingview-widget-container {
  position: relative;
}

#interactive-stock-chart,
#stock-chart {
  display: block;
  border: 1px solid rgba(23, 77, 117, 0.1);
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.72);
  overflow: hidden;
}

.chart-floating-tooltip {
  position: absolute;
  top: 0;
  left: 0;
  z-index: 4;
  width: min(280px, calc(100% - 16px));
  padding: 13px;
  border: 1px solid rgba(23, 77, 117, 0.18);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 18px 44px rgba(18, 38, 56, 0.16);
  color: var(--text);
  pointer-events: none;
}

.chart-tooltip-head,
.chart-tooltip-price,
.chart-tooltip-change,
.chart-floating-tooltip dl div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.chart-tooltip-head {
  padding-bottom: 9px;
  border-bottom: 1px solid rgba(23, 77, 117, 0.1);
}

.chart-tooltip-head strong {
  font-size: 0.92rem;
}

.chart-tooltip-head span {
  flex: 0 0 auto;
  padding: 4px 7px;
  border-radius: 999px;
  background: rgba(23, 77, 117, 0.08);
  color: var(--accent-deep);
  font-size: 0.72rem;
  font-weight: 900;
}

.chart-tooltip-price,
.chart-tooltip-change {
  margin-top: 10px;
}

.chart-tooltip-price span,
.chart-tooltip-change span,
.chart-floating-tooltip dt {
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 900;
}

.chart-tooltip-price strong {
  color: var(--accent-deep);
  font-size: 1.2rem;
}

.chart-tooltip-change strong {
  font-size: 0.95rem;
}

.chart-floating-tooltip dl {
  display: grid;
  gap: 7px;
  margin: 11px 0 0;
  padding-top: 10px;
  border-top: 1px solid rgba(23, 77, 117, 0.1);
}

.chart-floating-tooltip dt,
.chart-floating-tooltip dd {
  margin: 0;
}

.chart-floating-tooltip dd {
  color: var(--text);
  font-size: 0.82rem;
  font-weight: 900;
  text-align: right;
}

.chart-meta-row,
.chart-hover-readout {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.chart-meta-row {
  margin: 14px 0 12px;
}

.chart-meta-row span,
.chart-hover-readout {
  border: 1px solid rgba(23, 77, 117, 0.12);
  border-radius: 999px;
  background: #fff;
  color: var(--muted);
  font-size: 0.84rem;
  font-weight: 900;
}

.chart-meta-row span {
  padding: 8px 11px;
}

.chart-range-controls,
.chart-interval-controls {
  display: inline-flex;
  gap: 4px;
  padding: 4px;
  border: 1px solid rgba(23, 77, 117, 0.12);
  border-radius: 999px;
  background: #fff;
}

.chart-range-controls {
  margin-left: auto;
}

.chart-range-controls button,
.chart-interval-controls button {
  min-width: 44px;
  min-height: 30px;
  padding: 0 10px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 900;
  cursor: pointer;
}

.chart-range-controls button.is-active,
.chart-range-controls button:hover,
.chart-interval-controls button.is-active,
.chart-interval-controls button:hover:not(:disabled) {
  background: var(--accent-deep);
  color: #fff;
}

.chart-interval-controls button:disabled {
  cursor: not-allowed;
  opacity: 0.42;
}

.chart-hover-readout {
  min-height: 38px;
  margin-top: 12px;
  padding: 9px 12px;
  border-radius: 12px;
  line-height: 1.4;
}

.chart-attribution {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 800;
  text-align: right;
}

.chart-attribution a {
  color: var(--accent-deep);
}

.chart-grid-line {
  stroke: rgba(23, 77, 117, 0.12);
  stroke-width: 1;
}

.chart-volume-grid-line {
  stroke: rgba(23, 77, 117, 0.08);
  stroke-width: 1;
}

.chart-axis-label {
  fill: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.chart-wick {
  stroke-width: 1.4;
}

.chart-candle.is-up,
.chart-wick.is-up {
  fill: #137a4a;
  stroke: #137a4a;
}

.chart-candle.is-down,
.chart-wick.is-down {
  fill: #b73939;
  stroke: #b73939;
}

.chart-volume-bar {
  opacity: 0.28;
}

.chart-volume-bar.is-up {
  fill: #137a4a;
}

.chart-volume-bar.is-down {
  fill: #b73939;
}

.chart-ma-line {
  fill: none;
  stroke-width: 2.4;
  stroke-linecap: round;
  stroke-linejoin: round;
  pointer-events: none;
}

.chart-ma-line.ma5 {
  stroke: #174d75;
}

.chart-ma-line.ma20 {
  stroke: #c28a20;
}

.chart-crosshair {
  stroke: rgba(23, 77, 117, 0.42);
  stroke-dasharray: 5 5;
  stroke-width: 1.2;
  pointer-events: none;
}

.chart-hover-dot {
  fill: #fff;
  stroke: var(--accent-deep);
  stroke-width: 2.4;
  pointer-events: none;
}

.chart-hit-area {
  fill: transparent;
  cursor: crosshair;
}

.chart-empty-text {
  fill: var(--muted);
  font-size: 15px;
  font-weight: 800;
}

.quote-panel {
  display: grid;
  align-content: start;
  gap: 14px;
  padding: 22px;
}

.quote-date {
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 800;
}

.quote-main,
.quote-period,
.quote-grid article {
  display: grid;
  gap: 6px;
  border: 1px solid rgba(23, 77, 117, 0.12);
  border-radius: 12px;
  background: #fff;
}

.quote-main {
  padding: 16px;
}

.quote-main span,
.quote-period span,
.quote-grid span {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.04em;
}

.quote-main strong {
  color: var(--accent-deep);
  font-size: 2rem;
  line-height: 1;
}

.quote-main p {
  margin: 0;
  color: var(--muted);
  font-size: 1.1rem;
  font-weight: 900;
}

.quote-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.quote-grid article,
.quote-period {
  padding: 12px;
}

.quote-grid strong,
.quote-period strong {
  color: var(--text);
  font-size: 1rem;
}

[data-direction="up"] {
  color: #137a4a !important;
}

[data-direction="down"] {
  color: #b73939 !important;
}

#price-change[data-direction="up"] {
  color: #137a4a;
}

#price-change[data-direction="down"] {
  color: #b73939;
}

.economy-keywords {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 16px;
}

.keyword-chip {
  padding: 8px 10px;
  border: 1px solid rgba(23, 77, 117, 0.14);
  border-radius: 999px;
  background: #fff;
  color: var(--accent-deep);
  font-size: 0.88rem;
  font-weight: 800;
}

.investment-brief-grid {
  display: grid;
  grid-template-columns: 1.25fr 1fr 1fr;
  gap: 14px;
}

.investment-brief-panel {
  display: grid;
  align-content: start;
  gap: 12px;
  min-height: 220px;
  padding: 18px;
  border: 1px solid rgba(23, 77, 117, 0.12);
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.82);
}

.investment-brief-section .investment-brief-panel:first-child {
  border-color: rgba(26, 35, 126, 0.16);
}

.investment-brief-section .investment-brief-panel:nth-child(2) {
  border-color: rgba(183, 28, 28, 0.14);
}

.investment-brief-section .investment-brief-panel:nth-child(3) {
  border-color: rgba(23, 77, 117, 0.14);
}

.investment-brief-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.investment-brief-head strong {
  color: var(--accent-deep);
  font-size: 1.05rem;
}

.issue-list,
.investment-check-list {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.issue-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: start;
  padding: 10px 0;
  border-top: 1px solid rgba(23, 77, 117, 0.1);
}

.issue-row:first-child {
  border-top: 0;
  padding-top: 0;
}

.issue-row strong {
  color: var(--text);
  font-size: 0.98rem;
}

.issue-row p {
  min-width: 0;
  margin: 4px 0 0;
  overflow: hidden;
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 800;
  line-height: 1.45;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.issue-row span {
  color: var(--accent-deep);
  font-size: 0.82rem;
  font-weight: 900;
  white-space: nowrap;
}

.investment-check-list li {
  padding: 10px 0 10px 18px;
  border-top: 1px solid rgba(23, 77, 117, 0.1);
  color: var(--text);
  font-size: 0.92rem;
  font-weight: 800;
  line-height: 1.45;
}

.investment-check-list li:first-child {
  border-top: 0;
  padding-top: 0;
}

.investment-check-list li::marker {
  color: var(--accent-deep);
}

.economy-news-list {
  display: grid;
  gap: 10px;
}

.economy-news-table-head {
  display: grid;
  grid-template-columns: 140px 132px 100px minmax(0, 1fr) 84px;
  gap: 12px;
  padding: 0 14px 10px;
  border-bottom: 1px solid rgba(23, 77, 117, 0.1);
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.stock-news-card {
  padding: 14px 16px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.86);
}

.stock-news-grid {
  display: grid;
  grid-template-columns: 140px 132px 100px minmax(0, 1fr) 84px;
  gap: 12px;
  align-items: center;
}

.stock-news-source,
.stock-news-symbol,
.stock-news-action {
  display: flex;
  align-items: center;
}

.stock-news-symbol {
  color: var(--accent-deep);
  font-size: 0.86rem;
  font-weight: 900;
}

.stock-news-copy {
  display: grid;
  gap: 8px;
  min-width: 0;
}

.stock-news-kicker {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.stock-news-card .news-title,
.stock-news-card .news-content {
  margin: 0;
}

.stock-news-card .news-title {
  font-size: 1rem;
  line-height: 1.4;
}

.stock-news-card .news-content {
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.55;
}

.sentiment-pill {
  padding: 7px 10px;
  border-radius: 999px;
  color: #fff;
  font-size: 0.82rem;
  font-weight: 900;
}

.sentiment-pill[data-sentiment="positive"] {
  background: #137a4a;
}

.sentiment-pill[data-sentiment="negative"] {
  background: #b73939;
}

.sentiment-pill[data-sentiment="neutral"] {
  background: var(--accent-deep);
}

.sentiment-reason {
  min-width: 0;
  color: var(--muted);
  font-size: 0.86rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

@media (max-width: 1040px) {
  .market-sentiment-layout,
  .chart-detail-layout {
    grid-template-columns: 1fr;
  }

  .investment-brief-grid {
    grid-template-columns: 1fr;
  }

  .economy-news-table-head,
  .stock-news-grid,
  .market-index-grid {
    grid-template-columns: 1fr;
  }

  .stock-news-source,
  .stock-news-symbol,
  .stock-news-action {
    justify-content: flex-start;
  }

  .watchlist-options {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 720px) {
  .market-index-head,
  .watchlist-actions,
  .watchlist-editor-head,
  .watchlist-editor-actions {
    display: grid;
  }

  .symbol-tabs {
    display: grid;
    grid-template-columns: 1fr;
  }

  .watchlist-options {
    grid-template-columns: 1fr;
  }

  .tradingview-widget-container,
  #interactive-stock-chart,
  #stock-chart {
    height: 500px;
  }

  .chart-range-controls,
  .chart-interval-controls {
    width: 100%;
    margin-left: 0;
    overflow-x: auto;
  }

  .chart-range-controls button,
  .chart-interval-controls button {
    flex: 1;
  }

  .quote-grid {
    grid-template-columns: 1fr;
  }

  .stock-news-footer {
    grid-template-columns: 1fr;
  }

  .selection-brief li strong {
    white-space: normal;
  }

  .issue-row {
    grid-template-columns: 1fr;
  }

  .issue-row p {
    white-space: normal;
  }
}
