:root {
  color-scheme: light;
  --sc-shell: #0b1118;
  --sc-shell-2: #141c26;
  --sc-paper: #f4f6f8;
  --sc-surface: #ffffff;
  --sc-line: #d8dde4;
  --sc-line-strong: #aab4bf;
  --sc-ink: #101820;
  --sc-muted: #65717f;
  --sc-accent: #f26b21;
  --sc-up: #009b68;
  --sc-down: #d92d3f;
  --bg: var(--sc-paper);
  --surface: var(--sc-surface);
  --paper: var(--sc-surface);
  --paper-soft: #edf0f3;
  --text: var(--sc-ink);
  --ink: var(--sc-ink);
  --muted: var(--sc-muted);
  --line: var(--sc-line);
  --line-strong: var(--sc-line-strong);
  --brand: var(--sc-accent);
  --accent: var(--sc-accent);
  --ok: var(--sc-up);
  --warn: var(--sc-accent);
  font-family: "IBM Plex Sans", "PingFang TC", "Microsoft JhengHei", "Noto Sans TC", sans-serif;
}

html {
  background: var(--sc-shell);
}

body {
  min-width: 320px;
  margin: 0;
  background: var(--sc-paper) !important;
  color: var(--sc-ink);
  font-variant-numeric: tabular-nums;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

button,
input,
select,
textarea {
  font: inherit;
}

button,
input,
select,
textarea,
.panel,
.hero-panel,
.metric,
.stat,
.ranking,
.table-panel,
.brief-article,
.article-notes {
  border-radius: 2px !important;
  box-shadow: none !important;
}

.up,
.pos {
  color: var(--sc-up) !important;
}

.down,
.neg {
  color: var(--sc-down) !important;
}

/* Main site and disclosure routes. */
.page {
  width: min(1320px, calc(100vw - 40px));
  padding-top: 0;
}

.site-top-nav {
  position: sticky;
  top: 0;
  z-index: 50;
  width: 100vw;
  min-height: 58px;
  margin-left: calc(50% - 50vw);
  padding: 0 max(20px, calc((100vw - 1320px) / 2));
  border: 0;
  border-bottom: 1px solid #2a3541;
  border-radius: 0;
  background: var(--sc-shell);
  box-shadow: none;
  backdrop-filter: none;
}

.site-home {
  min-height: 58px;
  padding: 0 18px 0 0;
  border-right: 1px solid #303b47;
  border-radius: 0;
  color: #f7f8fa;
  font-size: 19px;
}

.site-home b {
  color: var(--sc-accent);
}

.site-home span {
  color: #f7f8fa !important;
}

.site-top-nav > div {
  gap: 0;
}

.site-top-nav > div a {
  min-height: 58px;
  padding: 0 15px;
  border-bottom: 3px solid transparent;
  border-radius: 0;
  color: #c4ccd5;
  font-size: 13px;
}

.site-top-nav > div a:hover,
.site-top-nav > div a.active {
  border-bottom-color: var(--sc-accent);
  background: #151e28;
  color: #fff;
}

.site-top-nav .nav-wsc {
  border-color: transparent;
  background: transparent;
  color: #c4ccd5;
}

.nav-search {
  min-height: 34px;
  margin-left: auto;
  padding: 0 13px;
  border: 1px solid #3a4654;
  border-radius: 2px;
  background: #111922;
  color: #dce2e8;
  font-size: 12px;
}

.landing-hero.apple-showcase {
  width: min(1320px, calc(100vw - 40px));
  min-height: 450px;
  margin: 0 auto;
  padding: 46px 0 38px;
  grid-template-columns: minmax(0, .88fr) minmax(520px, 1.12fr);
  gap: 54px;
  background: var(--sc-paper) !important;
  color: var(--sc-ink);
}

.landing-hero.apple-showcase::before,
.landing-hero.apple-showcase::after,
.landing-hero .hero-bg,
.market-orbit,
.module-visual,
.sub-visual {
  display: none !important;
}

.landing-hero .eyebrow,
.page .eyebrow {
  margin-bottom: 12px;
  color: var(--sc-accent);
  font-size: 11px;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.landing-hero h1 {
  max-width: 620px;
  color: var(--sc-ink);
  font-size: clamp(50px, 5.4vw, 76px);
  line-height: .94;
  font-weight: 850;
  letter-spacing: -.055em;
}

.landing-hero p {
  max-width: 470px;
  margin-top: 20px;
  color: #53606d;
  font-size: 17px;
  line-height: 1.55;
}

.landing-hero .hero-actions {
  margin-top: 24px;
  gap: 8px;
}

.landing-hero .hero-actions a,
.hero-actions a,
.placeholder-links a {
  min-height: 38px;
  padding: 0 14px;
  border: 1px solid var(--sc-shell);
  border-radius: 2px;
  background: var(--sc-shell);
  color: #fff;
  box-shadow: none;
  font-size: 13px;
}

.landing-hero .hero-actions a + a {
  border-color: var(--sc-line-strong);
  background: transparent;
  color: var(--sc-ink);
}

.hero-metrics {
  max-width: 560px;
  margin-top: 30px;
  gap: 0;
  border-top: 1px solid var(--sc-line-strong);
  border-bottom: 1px solid var(--sc-line);
}

.hero-metrics div {
  min-height: 96px;
  padding: 15px 17px;
  border: 0;
  border-right: 1px solid var(--sc-line);
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.hero-metrics div:last-child {
  border-right: 0;
}

.hero-metrics strong {
  color: var(--sc-ink);
  font-size: 24px;
}

.hero-metrics span,
.hero-metrics small {
  color: var(--sc-muted);
}

.hero-visual {
  min-height: 0;
  align-items: stretch;
  justify-content: stretch;
}

.live-flow-panel {
  position: static;
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 0;
  align-self: center;
  border: 1px solid #2d3844;
  border-radius: 2px;
  background: var(--sc-shell-2);
  color: #f4f6f8;
  box-shadow: none;
  backdrop-filter: none;
}

.live-flow-head,
.live-flow-tabs,
.live-flow-row {
  padding-inline: 18px;
  border-bottom-color: #303b47;
}

.live-flow-head {
  min-height: 58px;
}

.live-flow-head span {
  color: #fff;
  font-size: 16px;
}

.live-flow-head b,
.live-flow-tabs span,
.live-flow-row span {
  color: #99a5b2;
}

.live-flow-tabs {
  min-height: 42px;
}

.live-flow-tabs span:first-child {
  color: var(--sc-accent);
}

.live-flow-list {
  gap: 0;
}

.live-flow-row {
  min-height: 58px;
  background: transparent;
}

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

.signal-ribbon {
  width: min(1320px, calc(100vw - 40px));
  margin: 0 auto;
  gap: 0;
  border-top: 1px solid var(--sc-line-strong);
  border-bottom: 1px solid var(--sc-line-strong);
}

.signal-ribbon div {
  min-height: 94px;
  padding: 15px 18px;
  border: 0;
  border-right: 1px solid var(--sc-line);
  border-radius: 0;
  background: var(--sc-surface);
  box-shadow: none;
  backdrop-filter: none;
  animation: none;
}

.signal-ribbon div:last-child {
  border-right: 0;
}

.signal-ribbon span,
.module-showcase-head span,
.module-body > span {
  color: var(--sc-accent) !important;
}

.signal-ribbon strong {
  color: var(--sc-ink);
  font-size: clamp(20px, 2vw, 28px);
}

.signal-ribbon small {
  color: var(--sc-muted);
}

.module-showcase-head {
  width: min(1320px, calc(100vw - 40px));
  margin: 48px auto 16px;
  text-align: left;
}

.module-showcase-head h2 {
  max-width: none;
  margin: 4px 0 0;
  color: var(--sc-ink);
  font-size: 28px;
}

.module-list {
  width: min(1320px, calc(100vw - 40px));
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0;
  margin: 0 auto;
  padding: 0;
  overflow: visible;
}

.module-card {
  position: relative;
  min-height: 176px;
  padding: 24px;
  border: 1px solid var(--sc-line);
  border-width: 1px 1px 0 0;
  border-radius: 0;
  background: var(--sc-surface);
  box-shadow: none;
  animation: none;
  transform: none;
}

.module-card:nth-child(3n + 1) {
  border-left-width: 1px;
}

.module-card:nth-last-child(-n + 3) {
  border-bottom-width: 1px;
}

.module-card:hover {
  z-index: 1;
  border-color: var(--sc-accent);
  background: #fffaf6;
  box-shadow: inset 3px 0 0 var(--sc-accent);
  transform: none;
}

.module-icon {
  top: 20px;
  right: 20px;
  margin: 0;
}

.module-icon span {
  display: inline-flex;
  width: auto;
  height: auto;
  border: 0;
  border-radius: 0;
  background: transparent !important;
  color: var(--sc-muted);
  font-size: 11px;
}

.module-icon b {
  display: none;
}

.module-body h2 {
  margin-top: 9px;
  color: var(--sc-ink);
  font-size: 27px;
}

.module-body em {
  margin-top: 12px;
  color: var(--sc-muted);
  font-size: 13px;
}

.module-body > strong {
  margin-top: auto;
  color: var(--sc-ink);
  font-size: 12px;
}

.module-card:hover .module-body > strong {
  color: var(--sc-accent);
}

.home-page footer,
.page footer {
  width: 100%;
  margin: 34px auto 0;
  padding: 18px 0 0;
  border-top: 1px solid var(--sc-line-strong);
  color: var(--sc-muted);
  text-align: left;
}

.sub-header.apple-page-hero {
  min-height: 190px;
  margin: 0 0 22px;
  padding: 34px 38px;
  border: 0;
  border-radius: 0;
  background: var(--sc-shell-2);
  color: #f7f8fa;
  box-shadow: none;
}

.sub-header .backlink {
  color: #a7b1bc;
}

.sub-header .backlink:hover {
  color: var(--sc-accent);
}

.sub-header h1 {
  color: #fff;
  font-size: clamp(34px, 4vw, 54px);
}

.sub-header p {
  color: #aeb8c3;
}

.hero.dashboard-hero {
  padding-top: 32px;
}

.search-box {
  min-height: 52px;
  padding: 5px 5px 5px 14px;
  border-color: var(--sc-line-strong);
  border-radius: 2px;
  box-shadow: none;
}

.search-box button,
.section-action,
.buyback-filter button,
.record-filters button.active {
  border-radius: 2px;
  background: var(--sc-shell);
  box-shadow: none;
}

.panel,
.focus,
.ranking,
.table-panel,
.stat,
.today-brief,
.brief-card,
.focus-item,
.buyback-result,
.bar-card {
  border-color: var(--sc-line);
  background: var(--sc-surface);
  box-shadow: none;
}

.stats {
  gap: 0;
  border: 1px solid var(--sc-line);
  background: var(--sc-surface);
}

.stat {
  min-height: 118px;
  padding: 18px 20px;
  border: 0;
  border-right: 1px solid var(--sc-line);
}

.stat:last-child {
  border-right: 0;
}

.stat-icon {
  display: none;
}

.stat strong {
  color: var(--sc-ink);
  font-size: 34px;
}

.rank-row:hover,
tr:hover {
  background: #fff8f2;
}

.rank-main i,
.bar-fill {
  border-radius: 0;
  background: var(--sc-accent);
}

table {
  border-collapse: collapse;
  font-variant-numeric: tabular-nums;
}

th {
  background: #edf0f3 !important;
  color: #55616e !important;
  font-size: 11px;
}

/* Market sentiment, announcements, and CCASS pages. */
.shell.stock-terminal {
  width: min(1320px, calc(100% - 40px));
  margin: 0 auto;
  padding: 0 0 44px;
}

.stock-terminal .topbar {
  position: sticky;
  top: 0;
  z-index: 40;
  width: 100vw;
  min-height: 58px;
  margin: 0 0 18px calc(50% - 50vw);
  padding: 8px max(20px, calc((100vw - 1320px) / 2));
  grid-template-columns: minmax(220px, 1fr) minmax(420px, 650px);
  border: 0;
  border-bottom: 1px solid #2a3541;
  border-radius: 0;
  background: var(--sc-shell);
  box-shadow: none;
  backdrop-filter: none;
}

.stock-terminal .brand span {
  display: inline-grid;
  width: auto;
  height: auto;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: var(--sc-accent);
  font-size: 14px;
}

.stock-terminal .brand strong {
  color: #f7f8fa;
  font-size: 15px;
}

.stock-terminal .global-search input {
  min-height: 38px;
  border: 1px solid #3b4653;
  border-radius: 2px;
  background: #111922;
  color: #fff;
}

.stock-terminal .global-search input::placeholder {
  color: #8f9aa6;
}

.stock-terminal .global-search button {
  min-height: 38px;
  border: 1px solid var(--sc-accent);
  border-radius: 2px;
  background: var(--sc-accent);
  color: #fff;
}

.stock-terminal .global-search button.secondary {
  border-color: #44505d;
  background: #17212c;
  color: #d9e0e7;
}

.stock-terminal .terminal-hero,
.market-terminal .market-hero {
  grid-template-columns: minmax(0, 1fr) 190px;
  gap: 0;
  margin: 0 0 14px;
  border: 1px solid #2d3844;
  background: var(--sc-shell-2);
}

.stock-terminal .terminal-hero > div:first-child,
.market-terminal .market-hero > div:first-child {
  min-height: 138px;
  padding: 24px 28px;
  border: 0;
  border-right: 1px solid #2d3844;
  border-radius: 0;
  background: transparent !important;
  color: #fff;
  box-shadow: none;
}

.stock-terminal .terminal-hero h1,
.market-terminal .market-hero h1 {
  margin: 7px 0 6px;
  color: #fff;
  font-size: clamp(30px, 3.5vw, 46px);
  line-height: 1;
}

.stock-terminal .terminal-hero p,
.market-terminal .market-hero p {
  max-width: 820px;
  margin: 0;
  color: #aeb8c3;
  font-size: 14px;
  line-height: 1.5;
}

.stock-terminal .hero-panel {
  padding: 18px;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: #fff;
  box-shadow: none;
}

.stock-terminal .hero-panel .muted,
.stock-terminal .hero-panel small {
  color: #98a4b1;
}

.stock-terminal .hero-panel strong,
.market-terminal .market-hero .hero-panel strong {
  color: var(--sc-accent);
  font-size: 42px;
}

.feature-nav {
  display: none;
}

.market-summary {
  gap: 0;
  margin: 0 0 14px;
  border: 1px solid var(--sc-line);
  background: var(--sc-surface);
}

.market-summary article {
  padding: 13px 16px;
  border: 0;
  border-right: 1px solid var(--sc-line);
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  animation: none;
}

.market-summary article:last-child {
  border-right: 0;
}

.market-summary strong {
  color: var(--sc-ink);
  font-size: 23px;
}

.market-layout,
.announcement-layout {
  gap: 0;
}

.market-layout {
  grid-template-columns: minmax(470px, .82fr) minmax(540px, 1.18fr);
}

.stock-terminal .panel,
.stock-terminal .chart-section,
.stock-terminal .metric,
.stock-terminal .signal-main,
.stock-terminal .signal-score {
  border-color: var(--sc-line);
  border-radius: 0 !important;
  background: var(--sc-surface);
  box-shadow: none;
  backdrop-filter: none;
  animation: none;
}

.market-table-panel,
.announcement-sidebar {
  border-right: 0 !important;
}

.section-title {
  min-height: 54px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--sc-line);
}

.section-title h2,
.section-title h3 {
  color: var(--sc-ink);
}

.market-table th {
  top: 0;
  background: #e9edf1 !important;
}

.market-table td {
  border-bottom: 1px solid var(--sc-line);
}

.market-table tbody tr.is-selected,
.market-table tbody tr.selected,
.market-table tbody tr:has(.stock-pick.active) {
  background: #fff5ed;
  box-shadow: inset 3px 0 0 var(--sc-accent);
}

.market-terminal .stock-pick span.has-points {
  color: var(--sc-up);
}

.opinion-point,
.summary-item,
.digest-grid article,
.opinion-score,
.announcement-item {
  border-color: var(--sc-line) !important;
  border-radius: 2px !important;
  background: #fff !important;
  box-shadow: none !important;
  animation: none !important;
}

.announcement-badge,
.announcement-cats button.active {
  border-radius: 2px !important;
  background: var(--sc-shell) !important;
  color: #fff !important;
}

.announcement-priority {
  color: var(--sc-accent) !important;
}

.opinion-priority {
  padding: 2px 0 10px;
  border-bottom: 1px solid var(--sc-line);
  background: transparent !important;
  color: var(--sc-ink) !important;
}

.opinion-priority span {
  color: var(--sc-ink) !important;
}

.opinion-priority small {
  color: var(--sc-muted) !important;
}

.market-terminal .opinion-panel {
  top: 72px;
}

.announcement-cats button {
  border-radius: 2px;
}

.announcement-item-head {
  color: var(--sc-muted);
}

.announcement-item-head strong,
.announcement-item h4 {
  color: var(--sc-ink) !important;
}

.announcement-item p {
  border-color: var(--sc-line);
  background: #f4f6f8 !important;
  color: #35414d !important;
}

.announcement-item p b {
  color: var(--sc-ink) !important;
}

.announcement-tags span,
.announcement-tags a {
  border-radius: 2px !important;
  color: #4f5c69;
}

.announcement-tags a {
  color: #156c91;
}

.metric-grid {
  gap: 0;
  border: 1px solid var(--sc-line);
}

.metric-grid .metric {
  border: 0;
  border-right: 1px solid var(--sc-line);
}

.metric-grid .metric:last-child {
  border-right: 0;
}

.stock-terminal:not(.market-terminal) .terminal-hero {
  grid-template-columns: minmax(0, 1fr) minmax(260px, 320px);
}

.stock-terminal:not(.market-terminal) .hero-panel strong {
  font-size: 29px;
  line-height: 1.18;
}

.controls button.active,
.toggles button.on,
.feature-nav button.active {
  border-color: var(--sc-shell);
  background: var(--sc-shell);
  color: #fff;
}

/* Wallstreetcn reading page. */
.app-header {
  border-bottom: 1px solid #2a3541;
  background: var(--sc-shell);
  color: #fff;
  backdrop-filter: none;
}

.brand-row,
.control-inner,
.brief-layout {
  max-width: 1320px;
}

.brand-row {
  padding: 16px 20px;
}

.app-header h1,
.feed-head h2,
.category-heading h3,
.brief-article h2 {
  font-family: "IBM Plex Sans", "PingFang TC", "Microsoft JhengHei", sans-serif;
}

.app-header h1 {
  margin-bottom: 3px;
  color: #fff;
  font-size: 24px;
}

.header-copy {
  color: #98a4b1;
}

.update-badge {
  padding: 8px 10px;
  border: 1px solid #394653;
  border-radius: 2px;
  background: #111922;
  color: #98a4b1;
  box-shadow: none;
}

.update-badge strong {
  color: var(--sc-accent);
}

.control-panel {
  border-bottom: 1px solid var(--sc-line-strong);
  background: rgba(244, 246, 248, .96);
  box-shadow: none;
  backdrop-filter: blur(12px);
}

.date-chip,
.category-chip,
.text-button,
.search-box,
.rail-link {
  border-color: var(--sc-line);
  border-radius: 2px;
  background: #fff;
  box-shadow: none;
}

.date-chip:hover,
.category-chip:hover,
.text-button:hover,
.rail-link:hover {
  transform: none;
  border-color: var(--sc-accent);
  box-shadow: none;
}

.date-chip.active,
.category-chip.active,
.rail-link.active {
  border-color: var(--sc-shell);
  background: var(--sc-shell);
  color: #fff;
  box-shadow: inset 3px 0 0 var(--sc-accent);
}

.status-row {
  border-top-color: var(--sc-line);
}

.brief-layout {
  gap: 0;
  padding-inline: 20px;
}

.brief-rail {
  padding-right: 22px;
  border-right: 1px solid var(--sc-line);
}

.brief-main {
  padding-left: 22px;
}

.brief-article {
  border-color: var(--sc-line);
  background: #fff;
  box-shadow: none;
}

.article-notes {
  border-color: var(--sc-line);
  background: #f5f7f9;
}

.progress-track,
.progress-track span {
  border-radius: 0;
}

.progress-track span {
  background: var(--sc-accent);
}

@media (max-width: 1060px) {
  .nav-search {
    display: none;
  }

  .landing-hero.apple-showcase {
    grid-template-columns: 1fr;
    gap: 26px;
  }

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

  .module-card,
  .module-card:nth-child(3n + 1) {
    border-left-width: 0;
  }

  .module-card:nth-child(2n + 1) {
    border-left-width: 1px;
  }

  .module-card:nth-last-child(-n + 3) {
    border-bottom-width: 0;
  }

  .module-card:nth-last-child(-n + 2) {
    border-bottom-width: 1px;
  }
}

@media (max-width: 900px) {
  .stock-terminal .topbar,
  .stock-terminal .terminal-hero,
  .market-terminal .market-hero,
  .market-layout,
  .announcement-layout,
  .market-summary {
    grid-template-columns: 1fr;
  }

  .stock-terminal .topbar {
    padding-block: 10px;
  }

  .stock-terminal .terminal-hero > div:first-child,
  .market-terminal .market-hero > div:first-child {
    border-right: 0;
    border-bottom: 1px solid #2d3844;
  }

  .market-summary article {
    border-right: 0;
    border-bottom: 1px solid var(--sc-line);
  }

  .market-summary article:last-child {
    border-bottom: 0;
  }

  .market-table-panel,
  .announcement-sidebar {
    border-right: 1px solid var(--sc-line) !important;
    border-bottom: 0 !important;
  }

  .market-terminal .opinion-panel {
    position: static;
    max-height: none;
  }
}

@media (max-width: 760px) {
  .page,
  .landing-hero.apple-showcase,
  .signal-ribbon,
  .module-showcase-head,
  .module-list,
  .shell.stock-terminal {
    width: calc(100vw - 24px);
  }

  .site-top-nav {
    min-height: 54px;
    padding-inline: 12px;
  }

  .site-home,
  .site-top-nav > div a {
    min-height: 54px;
  }

  .site-top-nav > div a {
    padding-inline: 10px;
    font-size: 12px;
  }

  .landing-hero.apple-showcase {
    padding: 30px 0 24px;
  }

  .landing-hero h1 {
    font-size: clamp(46px, 15vw, 64px);
  }

  .hero-metrics,
  .signal-ribbon {
    overflow-x: auto;
  }

  .hero-metrics {
    grid-template-columns: repeat(3, minmax(160px, 1fr));
  }

  .signal-ribbon {
    grid-template-columns: repeat(4, minmax(170px, 1fr));
  }

  .module-list {
    grid-template-columns: 1fr;
  }

  .module-card,
  .module-card:nth-child(2n + 1),
  .module-card:nth-child(3n + 1) {
    min-height: 148px;
    border-width: 0 1px 1px;
  }

  .module-card:first-child {
    border-top-width: 1px;
  }

  .stock-terminal .topbar {
    position: static;
    width: calc(100vw - 24px);
    margin-left: 0;
    padding: 12px;
    grid-template-columns: 1fr;
  }

  .stock-terminal .global-search {
    grid-template-columns: 1fr 1fr;
  }

  .stock-terminal .global-search input {
    grid-column: 1 / -1;
  }

  .stock-terminal .terminal-hero h1,
  .market-terminal .market-hero h1 {
    font-size: 31px;
  }

  .brief-layout {
    display: block;
    padding-inline: 12px;
  }

  .brief-rail {
    padding-right: 0;
    border-right: 0;
  }

  .brief-main {
    padding-left: 0;
  }
}
