/* The connection state remains active internally; only the header badge is hidden. */
.global-header .system-state {
  display: none !important;
}

/* Replace the entire HYBRID DATA / AUTO SYNC notice strip with a live ticker. */
.sample-bar {
  position: relative;
  display: block !important;
  box-sizing: border-box;
  height: 42px;
  min-height: 42px;
  padding: 0 !important;
  overflow: hidden;
  border: 0 !important;
  border-bottom: 1px solid #283343 !important;
  background: #111925 !important;
  color: #f8fafc !important;
}

.sample-bar > span,
.sample-bar > p,
.sample-bar > b {
  display: none !important;
}

.market-live-ticker,
.market-ticker-viewport {
  width: 100%;
  height: 100%;
  overflow: hidden;
}

.market-ticker-track {
  display: flex;
  width: max-content;
  height: 100%;
  will-change: transform;
  animation: market-ticker-scroll 48s linear infinite;
}

.market-ticker-viewport:hover .market-ticker-track {
  animation-play-state: paused;
}

.market-ticker-group {
  display: flex;
  flex: none;
  align-items: center;
  height: 100%;
}

.market-ticker-item {
  display: inline-flex;
  flex: none;
  align-items: center;
  height: 100%;
  white-space: nowrap;
}

.market-ticker-item {
  gap: 8px;
  padding: 0 19px;
  border-right: 1px solid rgba(255, 255, 255, .1);
  font-variant-numeric: tabular-nums;
}

.market-ticker-item span {
  color: #9faabc;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .04em;
}

.market-ticker-item strong {
  color: #f8fafc;
  font-size: 12px;
  font-weight: 800;
}

.market-ticker-item em {
  font-size: 11px;
  font-style: normal;
  font-weight: 800;
}

.market-ticker-item em.up { color: #ff7569; }
.market-ticker-item em.down { color: #62a7ff; }
.market-ticker-item em.flat { color: #aeb8c7; }

.market-ticker-item small {
  color: #69768a;
  font-size: 9px;
}

@keyframes market-ticker-scroll {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

@media (max-width: 720px) {
  .sample-bar { height: 38px; min-height: 38px; }
  .market-ticker-item { gap: 6px; padding: 0 14px; }
}

/* Make percentage movements readable across every workspace. */
.delta {
  font-size: 15px;
  font-weight: 750;
  line-height: 1.2;
  letter-spacing: -.01em;
}

.delta.quiet {
  font-size: 14px;
}

.spot-index-card header .delta,
.us-index-card header .delta {
  font-size: 13px;
}

.asset-tape .delta,
.palette-results button > .delta {
  font-size: 12px;
}

.market-ticker-item em {
  font-size: 13px;
}

@media (max-width: 720px) {
  .delta { font-size: 14px; }
  .delta.quiet { font-size: 13px; }
  .spot-index-card header .delta,
  .us-index-card header .delta { font-size: 12px; }
}

@media (prefers-reduced-motion: reduce) {
  .market-ticker-viewport { overflow-x: auto; }
  .market-ticker-track { animation: none; }
  .market-ticker-group + .market-ticker-group { display: none; }
}

/* Stock Lab: compact, selection-aware news briefing. */
.stock-news-panel {
  margin-top: 28px;
  overflow: hidden;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  background: #fbfcfdf2;
  box-shadow: 0 14px 34px rgba(23, 25, 28, .045);
}

.stock-news-panel + .primary-analysis {
  margin-top: 28px;
}

.stock-news-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  padding: 22px clamp(22px, 2.8vw, 34px) 18px;
  border-bottom: 1px solid var(--line);
}

.stock-news-heading > span {
  display: block;
  margin-bottom: 7px;
  color: var(--blue);
  font-size: 8px;
  font-weight: 750;
  letter-spacing: .16em;
}

.stock-news-heading h2 {
  margin: 0;
  color: var(--ink);
  font-size: 19px;
  font-weight: 650;
  letter-spacing: -.035em;
}

.stock-news-heading p {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 10px;
}

.stock-news-state {
  display: flex;
  flex: none;
  align-items: center;
  gap: 7px;
  color: var(--muted);
  font-size: 9px;
  white-space: nowrap;
}

.stock-news-state i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--teal);
  box-shadow: 0 0 0 4px rgba(22, 140, 118, .1);
}

.stock-news-state small {
  padding-left: 7px;
  border-left: 1px solid var(--line);
  color: var(--faint);
  font-size: 8px;
}

.stock-news-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(330px, .75fr);
  min-height: 220px;
}

.stock-news-lead {
  position: relative;
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr) auto;
  align-items: start;
  gap: 16px;
  padding: 30px clamp(24px, 3vw, 40px);
  color: var(--ink);
  text-decoration: none;
  background: linear-gradient(128deg, rgba(238, 242, 255, .82), rgba(251, 252, 253, .28) 58%);
}

.stock-news-lead:hover h3,
.stock-news-list a:hover h3,
.stock-news-more:hover {
  color: var(--blue);
}

.stock-news-order {
  display: grid;
  width: 28px;
  height: 28px;
  place-items: center;
  border-radius: 50%;
  color: #fff;
  background: var(--ink);
  font-size: 8px;
  font-weight: 750;
}

.stock-news-meta {
  display: flex;
  align-items: center;
  gap: 7px;
  color: var(--muted);
  font-size: 9px;
}

.stock-news-meta b {
  color: var(--blue);
  font-size: 9px;
  font-weight: 700;
}

.stock-news-lead h3 {
  max-width: 720px;
  margin: 14px 0 10px;
  color: var(--ink);
  font-size: clamp(18px, 2vw, 25px);
  font-weight: 650;
  line-height: 1.38;
  letter-spacing: -.035em;
  transition: color .15s ease;
}

.stock-news-lead p {
  margin: 0;
  color: var(--muted);
  font-size: 10px;
  line-height: 1.6;
}

.stock-news-arrow {
  color: var(--faint);
  font-size: 17px;
}

.stock-news-side {
  display: flex;
  min-width: 0;
  flex-direction: column;
  border-left: 1px solid var(--line);
}

.stock-news-list {
  display: flex;
  flex: 1;
  flex-direction: column;
}

.stock-news-list a {
  display: grid;
  grid-template-columns: 20px minmax(0, 1fr);
  gap: 10px;
  padding: 15px 20px;
  color: var(--ink);
  text-decoration: none;
  border-bottom: 1px solid var(--line);
}

.stock-news-list em {
  color: var(--faint);
  font-size: 8px;
  font-style: normal;
  font-weight: 700;
}

.stock-news-list h3 {
  display: -webkit-box;
  overflow: hidden;
  margin: 5px 0 0;
  color: var(--ink);
  font-size: 11px;
  font-weight: 620;
  line-height: 1.45;
  transition: color .15s ease;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.stock-news-more {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 20px;
  color: var(--muted);
  font-size: 9px;
  font-weight: 650;
  text-decoration: none;
  background: var(--paper-2);
}

.stock-news-message {
  display: grid;
  min-height: 170px;
  place-items: center;
  padding: 30px;
  color: var(--muted);
  font-size: 10px;
  text-align: center;
}

.stock-news-message span {
  display: block;
  width: 18px;
  height: 18px;
  margin: 0 auto 10px;
  border: 2px solid var(--line-strong);
  border-top-color: var(--blue);
  border-radius: 50%;
  animation: stock-news-spin .8s linear infinite;
}

@keyframes stock-news-spin {
  to { transform: rotate(360deg); }
}

@media (max-width: 900px) {
  .stock-news-grid { grid-template-columns: 1fr; }
  .stock-news-side { border-top: 1px solid var(--line); border-left: 0; }
  .stock-news-list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .stock-news-list a { border-right: 1px solid var(--line); border-bottom: 0; }
  .stock-news-list a:last-child { border-right: 0; }
}

@media (max-width: 620px) {
  .stock-news-panel { margin-top: 20px; }
  .stock-news-panel + .primary-analysis { margin-top: 20px; }
  .stock-news-header { align-items: flex-start; flex-direction: column; gap: 12px; padding: 18px; }
  .stock-news-lead { grid-template-columns: 26px minmax(0, 1fr); gap: 11px; padding: 22px 18px; }
  .stock-news-arrow { display: none; }
  .stock-news-lead h3 { margin-top: 10px; font-size: 18px; }
  .stock-news-list { display: flex; overflow-x: auto; flex-direction: row; scroll-snap-type: x mandatory; }
  .stock-news-list a { min-width: 78%; border-right: 1px solid var(--line); scroll-snap-align: start; }
}

/* Per-stock news / investor-trading switcher. */
.stock-panel-tabs {
  display: flex;
  gap: 4px;
  margin: 2px 0 5px;
  padding-bottom: 6px;
  border-bottom: 1px solid var(--line);
}

.stock-panel-tabs button {
  min-width: 58px;
  padding: 5px 9px;
  border: 1px solid transparent;
  border-radius: 999px;
  background: transparent;
  color: var(--muted);
  font: inherit;
  font-size: 9px;
  font-weight: 700;
  cursor: pointer;
}

.stock-panel-tabs button:hover {
  color: var(--ink);
}

.stock-panel-tabs button.active {
  border-color: rgba(33, 92, 255, .18);
  background: rgba(33, 92, 255, .08);
  color: var(--blue);
}

.stock-panel-pane[hidden] {
  display: none !important;
}

.stock-flow-summary {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 5px;
  padding: 6px 0 8px;
}

.stock-flow-summary article {
  min-width: 0;
  padding: 7px 5px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: rgba(255, 255, 255, .45);
  text-align: center;
}

.stock-flow-summary span,
.stock-flow-summary small {
  display: block;
  overflow: hidden;
  color: var(--muted);
  font-size: 8px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.stock-flow-summary b {
  display: block;
  overflow: hidden;
  margin: 4px 0 3px;
  font-size: 9px;
  font-variant-numeric: tabular-nums;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.stock-flow-summary .buy b,
.stock-flow-row em.buy {
  color: var(--coral);
}

.stock-flow-summary .sell b,
.stock-flow-row em.sell {
  color: var(--blue);
}

.stock-flow-summary .flat b,
.stock-flow-row em.flat {
  color: var(--muted);
}

.stock-flow-table {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.stock-flow-row {
  display: grid;
  grid-template-columns: 40px repeat(3, minmax(0, 1fr));
  align-items: center;
  min-height: 27px;
  border-bottom: 1px solid rgba(120, 125, 135, .13);
  column-gap: 4px;
}

.stock-flow-row:last-child {
  border-bottom: 0;
}

.stock-flow-row time,
.stock-flow-row span,
.stock-flow-row b,
.stock-flow-row em {
  overflow: hidden;
  font-size: 8px;
  font-style: normal;
  font-variant-numeric: tabular-nums;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.stock-flow-row time,
.stock-flow-row span {
  color: var(--muted);
}

.stock-flow-row b,
.stock-flow-row em {
  text-align: right;
}

.stock-flow-table-head {
  min-height: 22px;
  background: rgba(120, 125, 135, .045);
}

.stock-flow-table-head b {
  color: var(--muted);
  font-weight: 650;
}

.stock-flow-note {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 8px;
  line-height: 1.4;
}

@media (max-width: 1180px) {
  .stock-panel-tabs {
    margin-top: 0;
  }

  .stock-flow-summary article {
    padding: 9px 7px;
  }

  .stock-flow-summary b,
  .stock-flow-row time,
  .stock-flow-row span,
  .stock-flow-row b,
  .stock-flow-row em {
    font-size: 10px;
  }

  .stock-flow-row {
    grid-template-columns: 58px repeat(3, minmax(0, 1fr));
    min-height: 32px;
  }
}

/* Keep the original Market Structure title without delayed-close metadata. */
.market-hero-note {
  display: none;
}

.market-hero.market-status-active {
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  gap: clamp(34px, 6vw, 96px);
}

.market-hero.market-status-active .market-hero-note {
  display: flex;
  align-items: center;
  gap: clamp(22px, 3vw, 42px);
  max-width: none;
  padding-bottom: 8px;
  white-space: nowrap;
}

.market-status-item {
  color: var(--muted);
  font-size: 11px;
  font-weight: 550;
}

.market-status-item strong {
  font-size: 14px;
  font-weight: 700;
}

.market-hero.market-status-active h1 {
  font-size: clamp(45px, 5.8vw, 84px);
}

.market-status-up,
.market-hero.market-status-positive h1 em { color: #ff7569; }
.market-hero.market-status-positive h1 em { font-size: 1.12em; }
.market-status-down,
.market-hero.market-status-negative h1 em { color: var(--blue); }
.market-status-neutral,
.market-hero.market-status-neutral h1 em { color: var(--ink); }

@media (max-width: 900px) {
  .market-hero.market-status-active { grid-template-columns: 1fr; gap: 20px; }
  .market-hero.market-status-active .market-hero-note { padding-bottom: 0; }
}

/* Keep index cards but remove the market-colored top rails. */
.index-tape article.kospi,
.index-tape article.kosdaq,
.index-tape article.nasdaq,
.index-tape article.sp500,
.index-tape article.dow {
  box-shadow: none;
}

@media (prefers-reduced-motion: reduce) {
  .stock-news-message span { animation: none; }
}

/* Blend related news into the open space beside the stock quote. */
.asset-heading.stock-news-active {
  min-height: 300px;
  padding-right: 340px;
}

.asset-heading > .stock-news-panel {
  position: absolute;
  top: 0;
  right: 0;
  width: 300px;
  margin: 0;
  overflow: visible;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.asset-heading > .stock-news-panel + .primary-analysis {
  margin-top: 56px;
}

.asset-heading > .stock-news-panel .stock-news-header {
  align-items: center;
  gap: 12px;
  padding: 0 0 12px;
  border-bottom: 1px solid var(--line-strong);
}

.asset-heading > .stock-news-panel .stock-news-heading {
  min-width: 0;
}

.asset-heading > .stock-news-panel .stock-news-heading > span {
  margin: 0 0 5px;
  font-size: 7px;
  letter-spacing: .17em;
}

.asset-heading > .stock-news-panel .stock-news-heading h2 {
  overflow: hidden;
  font-size: 12px;
  letter-spacing: -.02em;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.asset-heading > .stock-news-panel .stock-news-state {
  margin-left: auto;
  gap: 5px;
  font-size: 7px;
}

.asset-heading > .stock-news-panel .stock-news-state small {
  display: none;
}

.stock-news-ambient-list {
  display: flex;
  flex-direction: column;
}

.stock-news-ambient-list a {
  display: grid;
  grid-template-columns: 18px minmax(0, 1fr) 12px;
  gap: 8px;
  padding: 13px 0;
  color: var(--ink);
  text-decoration: none;
  border-bottom: 1px solid var(--line);
}

.stock-news-ambient-list a > em {
  padding-top: 1px;
  color: var(--faint);
  font-size: 7px;
  font-style: normal;
  font-weight: 700;
}

.stock-news-ambient-list a > span {
  color: var(--faint);
  font-size: 10px;
  transition: color .15s ease, transform .15s ease;
}

.stock-news-ambient-list a:hover > span {
  color: var(--blue);
  transform: translate(1px, -1px);
}

.stock-news-ambient-list .stock-news-meta {
  gap: 5px;
  font-size: 7px;
}

.stock-news-ambient-list .stock-news-meta b {
  overflow: hidden;
  max-width: 112px;
  font-size: 7px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.stock-news-ambient-list h3 {
  display: -webkit-box;
  overflow: hidden;
  margin: 5px 0 0;
  color: var(--ink);
  font-size: 10px;
  font-weight: 620;
  line-height: 1.45;
  transition: color .15s ease;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.stock-news-ambient-list a:hover h3 {
  color: var(--blue);
}

.asset-heading > .stock-news-panel .stock-news-more {
  padding: 10px 0 0 26px;
  color: var(--muted);
  background: transparent;
  font-size: 8px;
}

.asset-heading > .stock-news-panel .stock-news-message {
  min-height: 160px;
  padding: 24px 0;
  background: transparent;
}

@media (max-width: 1180px) and (min-width: 901px) {
  .asset-heading.stock-news-active { padding-right: 300px; }
  .asset-heading > .stock-news-panel { width: 270px; }
}

@media (max-width: 900px) {
  .asset-heading.stock-news-active {
    min-height: 0;
    padding-right: 0;
  }

  .asset-heading > .stock-news-panel {
    position: static;
    width: 100%;
    margin-top: 28px;
    padding-top: 18px;
    border-top: 1px solid var(--line-strong);
  }

  .asset-heading > .stock-news-panel .stock-news-header {
    padding-bottom: 10px;
    border-bottom: 0;
  }

  .stock-news-ambient-list {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
  }

  .stock-news-ambient-list a {
    min-width: 0;
    grid-template-columns: 16px minmax(0, 1fr);
    padding: 13px 12px 13px 0;
    border-right: 1px solid var(--line);
    border-bottom: 0;
  }

  .stock-news-ambient-list a + a { padding-left: 12px; }
  .stock-news-ambient-list a:last-child { border-right: 0; }
  .stock-news-ambient-list a > span { display: none; }
  .asset-heading > .stock-news-panel .stock-news-more { padding-left: 0; }
}

@media (max-width: 620px) {
  .stock-news-ambient-list {
    display: flex;
    overflow-x: auto;
    flex-direction: row;
    scroll-snap-type: x mandatory;
  }

  .stock-news-ambient-list a {
    min-width: 82%;
    padding: 13px 14px 13px 0;
    scroll-snap-align: start;
  }

  .stock-news-ambient-list a + a { padding-left: 14px; }
}

/* Final restraint pass: keep news as quiet supporting text, not a new module. */
.asset-heading.stock-news-active {
  min-height: 0;
  padding-right: 330px;
}

.asset-heading > .stock-news-panel {
  top: 38px;
  width: 286px;
}

.asset-heading > .stock-news-panel .stock-news-header {
  align-items: flex-end;
  gap: 10px;
  padding: 0 0 9px;
  border-bottom-color: var(--line);
}

.asset-heading > .stock-news-panel .stock-news-heading > span {
  margin-bottom: 4px;
  letter-spacing: .14em;
}

.asset-heading > .stock-news-panel .stock-news-heading h2 {
  font-size: 11px;
}

.asset-heading > .stock-news-panel .stock-news-state i {
  width: 4px;
  height: 4px;
  box-shadow: none;
}

.stock-news-ambient-list a {
  display: block;
  padding: 12px 0;
}

.stock-news-ambient-list h3 {
  font-weight: 600;
  line-height: 1.5;
}

.asset-heading > .stock-news-panel .stock-news-more {
  padding: 9px 0 0;
}

@media (max-width: 1180px) and (min-width: 901px) {
  .asset-heading.stock-news-active { padding-right: 286px; }
  .asset-heading > .stock-news-panel { width: 252px; }
}

@media (max-width: 900px) {
  .asset-heading.stock-news-active { padding-right: 0; }
  .stock-news-ambient-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 620px) {
  .stock-news-ambient-list a { min-width: 88%; }
}

/* Editorial alignment: connect the quiet news column to the quote area. */
.asset-heading.stock-news-active {
  padding-right: 380px;
}

.asset-heading > .stock-news-panel {
  top: 42px;
  right: 34px;
  width: 300px;
  padding-left: 21px;
  border-left: 1px solid var(--line-strong);
}

.asset-heading > .stock-news-panel::before {
  position: absolute;
  top: 0;
  left: -1px;
  width: 1px;
  height: 28px;
  background: var(--blue);
  content: "";
}

.asset-heading > .stock-news-panel .stock-news-header {
  align-items: center;
  padding-bottom: 7px;
  border-bottom: 0;
}

.asset-heading > .stock-news-panel .stock-news-heading {
  display: flex;
  align-items: baseline;
  gap: 8px;
}

.asset-heading > .stock-news-panel .stock-news-heading > span {
  margin: 0;
}

.asset-heading > .stock-news-panel .stock-news-heading h2 {
  color: var(--muted);
  font-size: 9px;
  font-weight: 650;
}

.stock-news-ambient-list a {
  padding: 11px 0 12px;
}

.stock-news-ambient-list .stock-news-meta b {
  color: var(--muted);
}

.stock-news-ambient-list h3 {
  margin-top: 6px;
  font-size: 10.5px;
  line-height: 1.52;
}

.asset-heading > .stock-news-panel .stock-news-more {
  justify-content: flex-start;
  gap: 7px;
  padding-top: 9px;
}

@media (max-width: 1180px) and (min-width: 901px) {
  .asset-heading.stock-news-active { padding-right: 330px; }
  .asset-heading > .stock-news-panel {
    right: 20px;
    width: 270px;
    padding-left: 17px;
  }
}

@media (min-width: 901px) {
  .asset-heading > .stock-news-panel { top: -12px; }

  .asset-heading > .stock-news-panel .stock-news-ambient-list a {
    box-sizing: border-box;
    height: 51px;
    overflow: hidden;
    padding-top: 7px;
    padding-bottom: 7px;
  }

  .asset-heading > .stock-news-panel .stock-news-ambient-list h3 {
    display: block;
    overflow: hidden;
    margin-top: 3px;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .asset-heading > .stock-news-panel .stock-news-more {
    height: 25px;
    box-sizing: border-box;
  }
}

/* At medium widths, return news to document flow so earnings keeps full width. */
@media (max-width: 1180px) {
  .asset-heading.stock-news-active {
    padding-right: 0;
  }

  .asset-heading > .stock-news-panel {
    position: static;
    width: 100%;
    margin-top: 20px;
    padding: 0;
    border: 0;
  }

  .asset-heading > .stock-news-panel .stock-news-header {
    padding-bottom: 9px;
  }

  .stock-news-ambient-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
  }

  .stock-news-ambient-list a {
    min-width: 0;
    padding: 11px 16px 12px 0;
    border-right: 1px solid var(--line);
    border-bottom: 0;
  }

  .stock-news-ambient-list a:nth-child(2n) {
    padding-right: 0;
    padding-left: 16px;
    border-right: 0;
  }

  .stock-news-ambient-list a:nth-child(-n+2) {
    border-bottom: 1px solid var(--line);
  }

  .asset-heading > .stock-news-panel .stock-news-more {
    padding: 9px 0 0;
  }

  .asset-heading > .stock-news-panel + .next-earnings-banner {
    margin-top: 22px;
  }
}

@media (min-width: 1181px) {
  .asset-heading > .stock-news-panel { top: 8px; }
}

/* Keep earnings on the left and reserve a dedicated news column on the right. */
@media (min-width: 901px) and (max-width: 1280px) {
  .asset-heading.stock-news-active {
    padding-right: 330px;
  }

  .asset-heading > .stock-news-panel {
    position: absolute;
    top: 8px;
    right: 20px;
    width: 286px;
    margin-top: 0;
  }

  .asset-heading > .stock-news-panel + .next-earnings-banner {
    margin-top: 28px;
  }

  .next-earnings-banner {
    grid-template-columns: minmax(170px, .8fr) minmax(180px, 1fr);
    gap: 16px;
    padding-right: 18px;
    padding-left: 18px;
  }

  .earnings-event-copy {
    padding-left: 16px;
  }

  .earnings-consensus {
    grid-column: 1 / -1;
  }
}

/* Responsive news becomes one horizontal row directly above the fact ribbon. */
@media (max-width: 900px) {
  .workspace > .stock-news-panel.stock-news-responsive {
    position: static;
    width: 100%;
    margin: 28px 0 0;
    padding: 0;
    overflow: visible;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
  }

  .workspace > .stock-news-panel.stock-news-responsive .stock-news-header {
    align-items: center;
    flex-direction: row;
    padding: 0 0 9px;
    border: 0;
  }

  .workspace > .stock-news-panel.stock-news-responsive .stock-news-heading {
    display: flex;
    align-items: baseline;
    gap: 8px;
  }

  .workspace > .stock-news-panel.stock-news-responsive .stock-news-heading > span {
    margin: 0;
  }

  .workspace > .stock-news-panel.stock-news-responsive .stock-news-heading h2 {
    font-size: 10px;
  }

  .workspace > .stock-news-panel.stock-news-responsive .stock-news-state {
    margin-left: auto;
  }

  .workspace > .stock-news-panel.stock-news-responsive .stock-news-state small {
    display: none;
  }

  .workspace > .stock-news-panel.stock-news-responsive .stock-news-ambient-list {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
  }

  .workspace > .stock-news-panel.stock-news-responsive .stock-news-ambient-list a,
  .workspace > .stock-news-panel.stock-news-responsive .stock-news-ambient-list a:nth-child(2n) {
    min-width: 0;
    padding: 11px 12px;
    border-right: 1px solid var(--line);
    border-bottom: 0;
  }

  .workspace > .stock-news-panel.stock-news-responsive .stock-news-ambient-list a:first-child {
    padding-left: 0;
  }

  .workspace > .stock-news-panel.stock-news-responsive .stock-news-ambient-list a:last-child {
    padding-right: 0;
    border-right: 0;
  }

  .workspace > .stock-news-panel.stock-news-responsive .stock-news-ambient-list a:nth-child(n+5) {
    display: none;
  }

  .workspace > .stock-news-panel.stock-news-responsive .stock-news-ambient-list h3 {
    -webkit-line-clamp: 2;
  }

  .workspace > .stock-news-panel.stock-news-responsive .stock-news-more {
    justify-content: flex-end;
    padding: 8px 0 0;
    background: transparent;
  }

  .workspace > .stock-news-panel.stock-news-responsive + .fact-ribbon {
    margin-top: 24px;
  }
}

@media (max-width: 620px) {
  .workspace > .stock-news-panel.stock-news-responsive .stock-news-ambient-list {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
  }

  .workspace > .stock-news-panel.stock-news-responsive .stock-news-ambient-list a,
  .workspace > .stock-news-panel.stock-news-responsive .stock-news-ambient-list a:nth-child(2n) {
    min-width: 78%;
    padding: 11px 14px;
    border-right: 1px solid var(--line);
    scroll-snap-align: start;
  }

  .workspace > .stock-news-panel.stock-news-responsive .stock-news-ambient-list a:first-child {
    padding-left: 0;
  }
}


@media (max-width: 620px) {
  .stock-news-ambient-list {
    display: flex;
    border-right: 0;
    scroll-snap-type: x mandatory;
  }

  .stock-news-ambient-list a,
  .stock-news-ambient-list a:nth-child(2n) {
    min-width: 88%;
    padding: 12px 14px 12px 0;
    border-right: 1px solid var(--line);
    border-bottom: 0;
    scroll-snap-align: start;
  }

  .stock-news-ambient-list a + a,
  .stock-news-ambient-list a:nth-child(2n) {
    padding-left: 14px;
  }
}

/* Use more of the open hero space without turning news into a card. */
.asset-heading.stock-news-active {
  padding-right: 410px;
}

.asset-heading > .stock-news-panel {
  top: 18px;
  right: 50px;
  width: 330px;
}

.stock-news-ambient-list a {
  padding-top: 10px;
  padding-bottom: 10px;
}

.stock-news-ambient-list h3 {
  margin-top: 4px;
  -webkit-line-clamp: 2;
}

@media (max-width: 1180px) and (min-width: 901px) {
  .asset-heading.stock-news-active { padding-right: 350px; }
  .asset-heading > .stock-news-panel {
    top: 18px;
    right: 28px;
    width: 286px;
  }
}

@media (max-width: 900px) {
  .asset-heading.stock-news-active { padding-right: 0; }
  .asset-heading > .stock-news-panel { width: 100%; }
  .stock-news-ambient-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stock-news-ambient-list a:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
}

.asset-heading > .stock-news-panel {
  padding-left: 0;
  border-left: 0;
}

.asset-heading > .stock-news-panel::before {
  display: none;
}

@media (max-width: 1180px) and (min-width: 901px) {
  .asset-heading > .stock-news-panel { padding-left: 0; }
}

@media (max-width: 900px) {
  .asset-heading > .stock-news-panel {
    padding-left: 0;
    border-left: 0;
  }
}

@media (max-width: 900px) {
  .asset-heading.stock-news-active { padding-right: 0; }
  .asset-heading > .stock-news-panel {
    width: 100%;
    padding-left: 17px;
    border-top: 0;
    border-left: 1px solid var(--line-strong);
  }
}
