:root {
  --bg: #fff;
  --surface: #fff;
  --soft: #f5f7fa;
  --pill: #f1f3f6;
  --ink: #232a31;
  --muted: #777f8d;
  --line: #dfe3e8;
  --purple: #6f35f2;
  --green: #2f806d;
  --green-dark: #226d5d;
  --red: #d63b43;
  --blue: #3577df;
  --shadow: 0 2px 8px rgba(20, 28, 36, 0.18);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Noto Sans TC", "PingFang TC",
    "Microsoft JhengHei", Arial, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-size: 14px;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body.app-booting {
  opacity: 0;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input {
  font: inherit;
}

button {
  cursor: pointer;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: #fff;
  border-bottom: 1px solid #ebedf0;
}

.topbar {
  display: grid;
  grid-template-columns: 126px minmax(0, 687px) minmax(304px, 1fr) 190px;
  align-items: center;
  gap: 20px;
  width: min(1416px, calc(100% - 80px));
  height: 64px;
  margin: 0 auto;
  padding: 0;
}

.brand-mark {
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
  min-width: 0;
}

.brand {
  gap: 4px;
  width: 126px;
  height: 42px;
}

.brand-fallback {
  display: inline-flex;
  align-items: baseline;
  gap: 4px;
  min-width: 0;
}

.brand-word {
  color: var(--purple);
  font-size: 20px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: 0;
}

.brand-finance {
  color: #1f2933;
  font-size: 14px;
  font-weight: 600;
}

.brand-logo {
  display: block;
  width: 100%;
  height: 100%;
  min-width: 0;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  object-position: left center;
}

.brand-logo[hidden],
.brand-fallback[hidden] {
  display: none !important;
}

.mobile-menu-button {
  display: none;
}

.search {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 78px;
  min-width: 0;
  height: 40px;
  border-radius: 999px;
  background: var(--pill);
}

.search input {
  min-width: 0;
  border: 0;
  outline: 0;
  padding: 0 24px;
  border-radius: 999px 0 0 999px;
  background: transparent;
  color: #303740;
  font-size: 16px;
  font-weight: 400;
}

.search input::placeholder {
  color: #a5adba;
}

.search button {
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 999px;
  background: var(--green);
  color: #fff;
  font-size: 25px;
  line-height: 1;
}

.search button:hover {
  background: var(--green-dark);
}

.suggestions {
  position: absolute;
  top: calc(100% + 8px);
  left: 18px;
  right: 18px;
  z-index: 60;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 12px 28px rgba(27, 35, 44, 0.18);
}

.suggestion {
  display: grid;
  grid-template-columns: 92px minmax(0, 1fr);
  gap: 12px;
  width: 100%;
  border: 0;
  border-bottom: 1px solid #eef1f4;
  background: #fff;
  padding: 13px 18px;
  text-align: left;
}

.suggestion:last-child {
  border-bottom: 0;
}

.suggestion:hover,
.suggestion:focus {
  background: #f7fafc;
}

.suggestion strong {
  color: var(--blue);
}

.suggestion span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.utility-nav,
.account-tools,
.primary-nav {
  display: flex;
  align-items: center;
}

.utility-nav {
  justify-content: center;
  gap: 40px;
  color: #39404a;
  font-size: 14px;
  font-weight: 500;
  white-space: nowrap;
}

.utility-nav .active {
  color: var(--green);
}

.utility-nav > a {
  padding: 4px;
  line-height: 18px;
}

.more-button,
.icon-button,
.mail-button,
.login-button {
  border: 0;
  background: transparent;
  color: inherit;
  font-weight: 700;
}

.more-button {
  padding: 0;
  font-size: 14px;
}

.more-wrap {
  position: relative;
  display: inline-flex;
  align-items: center;
}

.more-menu {
  position: absolute;
  top: calc(100% + 16px);
  right: 0;
  z-index: 80;
  display: none;
  min-width: 150px;
  border: 1px solid #e4e8ee;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 8px 24px rgba(20, 28, 36, 0.14);
  padding: 8px 0;
}

.more-wrap:hover .more-menu,
.more-wrap:focus-within .more-menu {
  display: grid;
}

.more-menu a {
  display: block;
  padding: 10px 16px;
  color: #303740;
  font-size: 16px;
  font-weight: 600;
}

.more-menu a:hover {
  background: #f5f7fa;
  color: var(--green);
}

.account-tools {
  justify-content: flex-end;
  gap: 12px;
}

.icon-button {
  width: 34px;
  height: 34px;
}

.mail-button {
  width: 58px;
  height: 42px;
  border: 2px solid #4778ee;
  border-radius: 999px;
  color: #4778ee;
}

.icon-button svg,
.mail-button svg {
  display: block;
  width: 19px;
  height: 19px;
  margin: auto;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.4;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.login-button {
  min-width: 86px;
  height: 42px;
  border: 1px solid #d9dde4;
  border-radius: 999px;
  color: #2c323a;
  background: #fff;
  font-size: 16px;
}

.primary-nav {
  position: relative;
  width: min(1569px, 100%);
  height: 53px;
  gap: 12px;
  margin: 0 auto;
  padding: 0 24px;
  border-top: 1px solid #eef0f3;
  border-bottom: 3px solid var(--green);
  overflow: visible;
  scrollbar-width: none;
  color: #272d35;
  font-size: 14px;
  font-weight: 500;
  white-space: nowrap;
}

.primary-nav::-webkit-scrollbar {
  display: none;
}

.primary-nav a:hover {
  color: var(--green);
}

.nav-menu {
  position: relative;
  display: inline-flex;
  align-items: center;
  flex: 0 0 auto;
  height: 50px;
}

.nav-menu > a {
  display: inline-flex;
  align-items: center;
  height: 30px;
  padding: 0 11px;
  line-height: 21px;
}

.nav-dropdown {
  position: absolute;
  top: 50px;
  left: 0;
  z-index: 90;
  display: none;
  min-width: 184px;
  padding: 6px 0;
  border: 1px solid #e4e7eb;
  border-radius: 0 0 6px 6px;
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 6px 16px rgba(32, 39, 46, 0.14);
  white-space: nowrap;
}

.nav-menu:hover .nav-dropdown,
.nav-menu:focus-within .nav-dropdown {
  display: grid;
}

.nav-dropdown a {
  display: block;
  min-height: 34px;
  padding: 7px 14px;
  color: #343b44;
  font-size: 14px;
  font-weight: 400;
  line-height: 20px;
}

.nav-dropdown a:hover,
.nav-dropdown a:focus {
  background: #f5f7f8;
  color: var(--green);
}

.nav-menu-end .nav-dropdown {
  right: 0;
  left: auto;
}

.nav-submenu-toggle {
  display: none;
}

.primary-nav a.active {
  background: transparent;
  color: var(--green);
  font-weight: 700;
}

.market-band {
  height: 69px;
  margin-top: 7px;
  border-bottom: 1px solid var(--line);
  background: #fff;
}

.market-inner {
  display: grid;
  grid-template-columns: 74px minmax(0, 1fr);
  align-items: center;
  height: 69px;
  width: min(1569px, 100%);
  margin: 0 auto;
  padding: 3.5px 24px 12.5px;
  gap: 32px;
}

.region-picker {
  display: inline-flex;
  align-items: center;
  width: 74px;
  gap: 6px;
  padding: 0;
  border: 0;
  background: transparent;
  color: #303740;
  font-size: 14px;
  font-weight: 500;
}

.region-picker::before {
  content: "";
  width: 24px;
  height: 24px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 28 28' fill='none' stroke='%23303740' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='14' cy='14' r='3.2'/%3E%3Cpath d='M8.5 8.5a7.8 7.8 0 0 0 0 11'/%3E%3Cpath d='M19.5 8.5a7.8 7.8 0 0 1 0 11'/%3E%3Cpath d='M4.8 4.8a13 13 0 0 0 0 18.4'/%3E%3Cpath d='M23.2 4.8a13 13 0 0 1 0 18.4'/%3E%3C/svg%3E") center / contain no-repeat;
}

.quote-strip {
  display: flex;
  align-items: center;
  gap: 24px;
  overflow: hidden;
}

.quote-card button {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 56px;
  gap: 6px;
  align-items: center;
  width: max-content;
  min-height: 53px;
  border: 0;
  background: transparent;
  padding: 0;
  font-family: Arial, "Noto Sans TC", "PingFang TC", "Microsoft JhengHei", sans-serif;
  text-align: left;
}

.quote-card:nth-child(1) button {
  width: 153.4px;
}

.quote-card:nth-child(2) button,
.quote-card:nth-child(3) button {
  width: 145.9px;
}

.quote-card:nth-child(n + 4) button {
  width: 148.1px;
}

.quote-name {
  display: block;
  color: var(--blue);
  font-size: 12px;
  font-weight: 500;
  line-height: 15px;
}

.quote-price {
  display: block;
  margin-top: 2px;
  color: #3a414b;
  font-size: 12px;
  font-weight: 500;
  line-height: 18px;
}

.quote-change {
  display: block;
  height: 15px;
  margin-top: 2px;
  font-size: 12px;
  font-weight: 500;
  line-height: 18px;
  white-space: nowrap;
}

.sparkline {
  width: 56px;
  height: 24px;
  transform: translateY(3px);
}

.sparkline polyline,
.sparkline path,
.hot-spark polyline,
.hot-spark path {
  fill: none;
  stroke-width: 1;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.sparkline .grid,
.hot-spark .grid {
  stroke: #464e56;
  stroke-width: 1;
  stroke-dasharray: 1 4;
}

.sparkline .fill-up,
.hot-spark .fill-up {
  fill: rgba(3, 123, 75, 0.18);
}

.sparkline .fill-down,
.hot-spark .fill-down {
  fill: rgba(214, 59, 67, 0.18);
}

.sparkline .up-line,
.hot-spark .up-line {
  stroke: #037b4b;
}

.sparkline .down-line,
.hot-spark .down-line {
  stroke: #d63b43;
}

.sparkline .spark-end,
.hot-spark .spark-end {
  stroke-width: 0;
}

.sparkline .spark-end.up-line,
.hot-spark .spark-end.up-line {
  fill: #037b4b;
}

.sparkline .spark-end.down-line,
.hot-spark .spark-end.down-line {
  fill: #d63b43;
}

.up {
  color: var(--green);
}

.down {
  color: var(--red);
}

.ad-space {
  display: grid;
  place-items: center;
  height: 283px;
  border-bottom: 1px solid var(--line);
  background: #fff;
}

.ad-banner {
  --ad-accent: #70de4d;
  --ad-glow: rgba(112, 222, 77, 0.28);
  position: relative;
  display: grid;
  grid-template-columns: 180px minmax(0, 1fr) 170px;
  align-items: center;
  gap: 30px;
  width: min(970px, calc(100vw - 48px));
  height: 250px;
  padding: 0 44px;
  overflow: hidden;
  background:
    radial-gradient(circle at 78% 18%, var(--ad-glow), transparent 28%),
    linear-gradient(90deg, #050707, #0b1510 58%, #050707);
  color: #fff;
  transition: opacity 180ms ease;
}

.ad-banner[data-theme="pro"] {
  --ad-accent: #5873ff;
  --ad-glow: rgba(88, 115, 255, 0.32);
  background:
    radial-gradient(circle at 76% 10%, var(--ad-glow), transparent 30%),
    linear-gradient(90deg, #0d0d10, #15131b 58%, #09090b);
}

.ad-banner[data-theme="markets"] {
  --ad-accent: #56cfb2;
  --ad-glow: rgba(86, 207, 178, 0.28);
  background:
    radial-gradient(circle at 78% 18%, var(--ad-glow), transparent 30%),
    linear-gradient(90deg, #06110f, #0d1c19 58%, #050908);
}

.ad-banner[data-theme="social"] {
  --ad-accent: #ff395e;
  --ad-glow: rgba(255, 57, 94, 0.28);
  background:
    radial-gradient(circle at 78% 18%, var(--ad-glow), transparent 30%),
    linear-gradient(110deg, #08090b 0%, #111114 56%, #1a0c11 100%);
}

.ad-banner.is-changing {
  opacity: 0.35;
}

.ad-banner::after {
  content: "";
  position: absolute;
  right: 210px;
  bottom: 0;
  width: 270px;
  height: 190px;
  opacity: 0.45;
  background:
    linear-gradient(90deg, transparent 0 16%, var(--ad-accent) 16% 20%, transparent 20% 36%, var(--ad-accent) 36% 42%, transparent 42% 58%, var(--ad-accent) 58% 64%, transparent 64%),
    linear-gradient(145deg, transparent 48%, var(--ad-accent) 49% 51%, transparent 52%);
}

.ad-banner span {
  display: grid;
  place-items: center;
  width: 150px;
  height: 82px;
  color: var(--ad-accent);
  font-size: 38px;
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: 0;
  text-align: center;
  overflow-wrap: anywhere;
}

.ad-banner[data-theme="pro"] span {
  font-size: 28px;
}

.ad-banner[data-theme="markets"] span {
  font-size: 24px;
  white-space: nowrap;
}

.ad-banner strong {
  position: relative;
  z-index: 1;
  font-size: 34px;
  line-height: 1.08;
  font-weight: 700;
}

#ad-cta {
  position: relative;
  z-index: 1;
  border: 0;
  border-radius: 999px;
  background: var(--ad-accent);
  color: #fff;
  min-height: 50px;
  padding: 12px 26px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
}

.ad-dots {
  position: absolute;
  right: 16px;
  bottom: 10px;
  z-index: 2;
  display: flex;
  gap: 6px;
}

.ad-dots button {
  width: 7px;
  height: 7px;
  min-height: 0;
  min-width: 0;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.78);
  border-radius: 50%;
  background: transparent;
}

.ad-dots button.active {
  background: #fff;
}

.content-shell {
  border-bottom: 1px solid var(--line);
  background: #fff;
}

.news-board {
  display: grid;
  grid-template-columns: minmax(0, 1225px) 344px;
  width: min(1569px, 100%);
  margin: 0 auto;
  min-height: 720px;
}

.main-area {
  min-width: 0;
  padding: 40px 24px 44px;
}

.filter-row {
  display: none;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}

.category-tabs {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  scrollbar-width: none;
}

.category-tabs::-webkit-scrollbar {
  display: none;
}

.category-tab {
  flex: 0 0 auto;
  border: 1px solid #dfe4ec;
  border-radius: 999px;
  background: #fff;
  color: #596271;
  padding: 7px 13px;
  font-size: 13px;
  font-weight: 650;
}

.category-tab.active,
.category-tab:hover {
  border-color: var(--green);
  color: var(--green);
  background: #eef8f5;
}

.active-filter {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 9px 7px 12px;
  border: 1px solid #dce2e9;
  border-radius: 999px;
  color: #596271;
  background: #fff;
  font-size: 13px;
}

.active-filter button {
  border: 0;
  background: transparent;
  color: var(--blue);
  font-weight: 700;
}

.news-grid {
  display: grid;
  grid-template-columns: minmax(0, 2.15fr) minmax(0, 1fr) minmax(0, 1fr);
  gap: 32px;
}

.feature-card,
.stack-card,
.latest-card,
.mini-story,
.latest-story {
  min-width: 0;
}

.feature-button,
.story-button,
.latest-story,
.headline-link {
  width: 100%;
  border: 0;
  background: transparent;
  color: inherit;
  padding: 0;
  text-align: left;
}

.feature-button:hover h1,
.story-button:hover h3,
.latest-story:hover h3,
.headline-link:hover {
  color: var(--green);
}

.feature-image {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: 6px;
  background: #eef0f3;
}

.feature-card h1 {
  margin: 16px 0 0;
  color: #20262f;
  font-size: 32px;
  line-height: 1.15;
  font-weight: 700;
  letter-spacing: 0;
}

.feature-summary,
.feature-card .story-meta {
  display: flex;
}

.feature-summary {
  margin: 8px 0 0;
  color: #505865;
  font-size: 18px;
  line-height: 1.25;
  display: -webkit-box;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.feature-card .story-meta {
  margin-top: 8px;
}

.stack-card {
  display: grid;
  align-content: start;
  gap: 0;
  transform: translateX(-8px);
}

.chart-thumb {
  display: grid;
  place-items: center;
  width: 100%;
  aspect-ratio: 1.78;
  overflow: hidden;
  border-radius: 6px;
  background: #070809;
}

.chart-thumb svg {
  width: 100%;
  height: 100%;
}

.mini-story,
.plain-story {
  padding: 15px 0;
  border-bottom: 1px solid var(--line);
}

.mini-story:first-of-type {
  padding-top: 0;
}

.stack-card .mini-story {
  padding: 0 0 16px;
}

.stack-card .chart-thumb {
  margin-bottom: 8px;
}

.stack-card .mini-story h3,
.latest-card .latest-story h3 {
  margin-bottom: 0;
}

.stack-card .mini-story .story-meta,
.latest-card .latest-story .latest-meta {
  display: flex;
}

.stack-card .mini-story .tag-row,
.latest-card .latest-story .tag-row {
  display: flex;
  flex-wrap: wrap;
  overflow: visible;
  margin: 4px 0 0;
}

.stack-card .mini-story .symbol-pill,
.latest-card .latest-story .symbol-pill {
  min-height: 18px;
  padding: 1px 6px;
  font-size: 12px;
}

.mini-story h3,
.plain-story h3,
.latest-story h3 {
  margin: 0 0 8px;
  color: #2a3038;
  font-size: 16px;
  line-height: 1.25;
  font-weight: 500;
  letter-spacing: 0;
}

.plain-story h3 {
  font-size: 16px;
}

.story-meta,
.latest-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  color: #8a929e;
  font-size: 13px;
  font-weight: 400;
}

.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 8px;
}

.symbol-pill {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 4px;
  min-height: 25px;
  border: 1px solid #dce2e9;
  border-radius: 999px;
  background: #fff;
  color: var(--blue);
  padding: 2px 8px;
  font-size: 12px;
  font-weight: 500;
  line-height: 1;
  white-space: nowrap;
}

.symbol-pill:hover {
  background: #f4f8ff;
  border-color: #b8caf2;
}

.symbol-pill.negative {
  color: var(--red);
}

.symbol-pill.positive {
  color: var(--green);
}

.latest-card {
  padding-left: 0;
}

.latest-card h2 {
  margin: 0 0 8px;
  color: #2b3139;
  font-size: 18px;
  line-height: 1.25;
  font-weight: 700;
}

.latest-story {
  display: block;
  padding: 0 0 16px;
  border-bottom: 1px solid var(--line);
}

.latest-story h3 {
  font-size: 16px;
}

.lead-zone,
.lead-top,
.home-continuation {
  min-width: 0;
}

.lead-zone {
  grid-column: 1 / 3;
}

.lead-top {
  display: grid;
  grid-template-columns: minmax(0, 2.15fr) minmax(0, 1fr);
  gap: 32px;
}

.lead-zone + .latest-card {
  grid-column: 3;
  grid-row: 1;
}

body[data-route="home"] .news-grid {
  position: relative;
  grid-template-columns: minmax(0, 1fr) clamp(196px, calc(25.44% - 30px), 254px);
  column-gap: 40px;
  row-gap: 16px;
}

.home-section-title {
  position: absolute;
  top: -32px;
  left: 0;
  margin: 0;
  color: #2b3139;
  font-size: 18px;
  line-height: 25px;
  font-weight: 700;
}

body[data-route="home"] .lead-zone {
  grid-column: 1;
  grid-row: 1;
  min-height: 811px;
  height: auto;
  align-self: stretch;
}

body[data-route="home"] .lead-top {
  grid-template-columns: minmax(0, 1fr) clamp(196px, calc(32.94% - 19px), 252px);
  gap: 24px;
  min-height: 811px;
  height: auto;
  align-items: stretch;
}

body[data-route="home"] .feature-column {
  display: flex;
  min-width: 0;
  min-height: 811px;
  height: auto;
  flex-direction: column;
}

body[data-route="home"] .feature-related {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
  margin-top: 12px;
}

body[data-route="home"] .feature-related-story {
  min-width: 0;
}

body[data-route="home"] .feature-related-image {
  display: block;
  width: 100%;
  aspect-ratio: 1.777;
  overflow: hidden;
  border-radius: 5px;
  background: #eef0f3;
}

body[data-route="home"] .feature-related-image img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

body[data-route="home"] .feature-related-story h3 {
  margin: 6px 0 4px;
  font-size: 14px;
  line-height: 1.3;
  font-weight: 600;
}

body[data-route="home"] .feature-related-story .story-meta {
  font-size: 12px;
}

body[data-route="home"] .feature-related-story .tag-row {
  margin-top: 4px;
}

body[data-route="home"] .feature-related-story .symbol-pill,
body[data-route="home"] .stack-card .symbol-pill,
body[data-route="home"] .latest-card .symbol-pill {
  height: 18px;
  min-height: 18px;
  padding: 0 6px;
  font-size: 12px;
  line-height: 12px;
}

body[data-route="home"] .stack-card {
  display: flex;
  flex-direction: column;
  gap: 8px;
  justify-content: flex-start;
  transform: none;
}

body[data-route="home"] .stack-card .mini-story {
  flex: 0 0 auto;
  min-height: auto;
  padding-bottom: 12px;
}

body[data-route="home"] .stack-card .mini-story:not(:first-child),
body[data-route="home"] .latest-card .latest-story {
  padding-top: 12px;
}

body[data-route="home"] .stack-card h3,
body[data-route="home"] .latest-card h3 {
  display: -webkit-box;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

body[data-route="home"] .feature-card {
  height: auto;
}

body[data-route="home"] .lead-zone + .latest-card {
  grid-column: 2;
  grid-row: 1;
  display: flex;
  min-height: 811px;
  height: auto;
  flex-direction: column;
  justify-content: flex-start;
}

body[data-route="home"] .latest-card .latest-story {
  flex: 0 0 auto;
  min-width: 0;
  min-height: auto;
}

body[data-route="home"] .stack-card h3,
body[data-route="home"] .latest-card h3,
body[data-route="home"] .stack-card .story-meta,
body[data-route="home"] .latest-card .latest-meta {
  max-width: 100%;
  overflow-wrap: anywhere;
}

body[data-route="home"] .home-continuation {
  grid-column: 1;
  grid-row: 2;
  margin-top: 0;
}

body[data-route="home"] .home-ad-slot {
  grid-column: 2;
  grid-row: 2;
  align-self: stretch;
  height: calc(100% + 180px);
  margin-bottom: -180px;
}

.home-continuation {
  margin-top: 24px;
  border-top: 1px solid var(--line);
  padding-top: 20px;
}

.home-continuation h2 {
  margin: 0 0 8px;
  color: #2b3139;
  font-size: 22px;
  line-height: 1.25;
  font-weight: 700;
}

.topic-layout,
.data-layout,
.quote-layout,
.search-layout,
.feed-layout,
.market-layout {
  grid-template-columns: minmax(0, 2.45fr) minmax(280px, 1fr);
  gap: 24px;
}

.feed-page,
.market-page {
  min-width: 0;
}

body[data-route="latest"] .main-area,
body[data-route="article"] .main-area {
  padding-top: 24px;
}

body[data-route="local"] .main-area,
body[data-route="global"] .main-area,
body[data-route="properties"] .main-area,
body[data-route="wealth"] .main-area,
body[data-route="contributors"] .main-area,
body[data-route="media"] .main-area,
body[data-route="sports"] .main-area {
  padding-top: 24px;
}

.latest-news-layout {
  grid-template-columns: minmax(0, 792px) 300px;
  column-gap: 24px;
  row-gap: 16px;
  margin-bottom: 80px;
}

.topic-news-layout {
  grid-template-columns: minmax(0, 792px) 300px;
  column-gap: 24px;
  row-gap: 16px;
  margin-bottom: 80px;
}

.topic-news-layout .scroll-ad-rail {
  grid-row: 1;
}

.topic-news-layout .feed-page > h1 {
  height: 63px;
  margin: 0 0 16px;
  border-bottom: 1px solid var(--line);
  padding: 0 0 17px;
  color: #242a32;
  font-size: 40px;
  line-height: 46px;
  font-weight: 700;
}

.portfolio-layout {
  grid-template-columns: minmax(0, 792px) 300px;
  column-gap: 24px;
  row-gap: 16px;
}

body[data-route="portfolio"][data-portfolio-state="guest"] .news-board {
  display: block;
  width: 100%;
}

body[data-route="portfolio"][data-portfolio-state="guest"] .main-area {
  padding: 0;
}

body[data-route="portfolio"][data-portfolio-state="guest"] .market-sidebar {
  display: none;
}

.portfolio-guest-layout {
  display: block;
}

.portfolio-guest {
  min-height: 780px;
  overflow: hidden;
  padding: 40px 24px 0;
  text-align: center;
}

.portfolio-guest h1 {
  margin: 0;
  color: #242a32;
  font-size: 36px;
  line-height: 1.2;
  font-weight: 700;
}

.portfolio-guest > p {
  width: min(640px, 100%);
  margin: 20px auto 0;
  color: #777f8d;
  font-size: 16px;
  line-height: 1.5;
}

.portfolio-guest .portfolio-privacy {
  margin-top: 14px;
}

.portfolio-privacy a {
  color: var(--blue);
  font-weight: 700;
}

.portfolio-login-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 164px;
  min-height: 46px;
  margin-top: 18px;
  border-radius: 999px;
  background: #2b3038;
  color: #fff;
  font-size: 16px;
  font-weight: 700;
}

.portfolio-preview {
  width: min(620px, calc(100vw - 48px));
  min-height: 390px;
  margin: 32px auto 0;
  border: 10px solid #dfe3e7;
  border-bottom: 0;
  border-radius: 20px 20px 0 0;
  background: #fff;
  box-shadow: 0 8px 28px rgba(30, 38, 48, 0.09);
  padding: 20px 24px;
  text-align: left;
}

.portfolio-preview-bar,
.portfolio-preview-metrics,
.portfolio-preview-tabs {
  display: flex;
  align-items: center;
}

.portfolio-preview-bar {
  justify-content: space-between;
  color: #434b56;
  font-size: 11px;
}

.portfolio-preview-bar span {
  border: 1px solid #dce1e7;
  border-radius: 999px;
  padding: 4px 8px;
}

.portfolio-preview-metrics {
  gap: 34px;
  margin-top: 14px;
  font-size: 11px;
}

.portfolio-preview-metrics b {
  font-size: 20px;
}

.portfolio-preview-metrics span:first-of-type {
  color: var(--red);
}

.portfolio-preview-metrics span:last-of-type {
  color: var(--green);
}

.portfolio-preview-chart {
  height: 190px;
  margin-top: 10px;
  overflow: hidden;
}

.portfolio-preview-chart .sparkline {
  width: 100%;
  height: 100%;
}

.portfolio-preview-tabs {
  justify-content: space-between;
  border-top: 1px solid var(--line);
  padding-top: 12px;
  color: #697280;
  font-size: 11px;
}

.portfolio-main,
.portfolio-side-column {
  min-width: 0;
}

.portfolio-side-column {
  display: flex;
  flex-direction: column;
  align-self: stretch;
}

.portfolio-latest-card {
  flex: 0 0 auto;
}

.portfolio-ad-slot {
  position: sticky;
  top: 133px;
  margin-top: 18px;
}

.portfolio-ad-slot .rail-ad {
  min-height: 600px;
}

.home-ad-slot {
  position: relative;
  min-width: 0;
  height: 100%;
}

.home-ad-sticky {
  position: sticky;
  top: 133px;
  margin-top: 18px;
  transition: opacity 180ms ease, transform 180ms ease, visibility 180ms ease;
}

.home-ad-slot .rail-ad {
  min-height: 600px;
}

.latest-feed-page {
  display: contents;
}

.latest-feed-page > h1 {
  grid-column: 1 / -1;
  height: 63px;
  margin: 0;
  border-bottom: 1px solid var(--line);
  padding: 0 0 17px;
  color: #242a32;
  font-size: 40px;
  line-height: 46px;
  font-weight: 700;
}

.latest-feed-page > .feed-list,
.pagination-slot {
  grid-column: 1;
}

.pagination-slot {
  min-width: 0;
  overflow: hidden;
}

.scroll-ad-rail {
  grid-column: 2;
  grid-row: 2 / span 2;
  min-width: 0;
  height: calc(100% + 180px);
  margin-bottom: -180px;
}

.sticky-ad-stack {
  position: sticky;
  top: 133px;
  display: grid;
  gap: 18px;
  transition: opacity 180ms ease, transform 180ms ease, visibility 180ms ease;
}

.home-ad-sticky.ad-cycle-hidden,
.sticky-ad-stack.ad-cycle-hidden {
  visibility: hidden;
  opacity: 0;
  pointer-events: none;
  transform: translateY(8px);
}

.rail-ad {
  --rail-accent: #ff395e;
  position: relative;
  display: grid;
  grid-template-rows: auto auto 1fr auto;
  min-height: 300px;
  overflow: hidden;
  border: 1px solid #e5e8ec;
  background: #0b0b0d;
  color: #fff;
  padding: 20px;
  transition: opacity 180ms ease;
}

.rail-ad.is-changing {
  opacity: 0.35;
}

.scroll-ad-rail .rail-ad {
  min-height: 600px;
}

.rail-ad[data-theme="pulse"] {
  --rail-accent: #58c3a8;
  background: #0a1714;
}

.rail-ad[data-theme="broker"] {
  --rail-accent: #6579ff;
  background: #10121b;
}

.rail-ad[data-theme="global"] {
  --rail-accent: #86d55e;
  background: #11170d;
}

.rail-ad-brand {
  color: var(--rail-accent);
  font-size: 18px;
  font-weight: 700;
}

.rail-ad-copy {
  position: relative;
  z-index: 1;
  margin-top: 22px;
  font-size: 27px;
  line-height: 1.16;
  font-weight: 700;
}

.rail-ad-art {
  position: relative;
  display: flex;
  align-items: end;
  justify-content: center;
  gap: 10px;
  padding: 22px 0 12px;
}

.rail-ad-art::before {
  content: "";
  position: absolute;
  inset: 20px 10px 12px;
  border-radius: 50% 50% 42% 58%;
  background: color-mix(in srgb, var(--rail-accent) 58%, transparent);
  transform: rotate(-9deg);
}

.rail-ad-art i {
  position: relative;
  width: 48px;
  border-radius: 4px 4px 0 0;
  background: #fff;
}

.rail-ad-art i:nth-child(1) { height: 46px; }
.rail-ad-art i:nth-child(2) { height: 78px; }
.rail-ad-art i:nth-child(3) { height: 60px; }

.rail-ad-cta {
  position: relative;
  z-index: 1;
  border-top: 1px solid rgba(255, 255, 255, 0.26);
  padding-top: 13px;
  font-size: 16px;
  font-weight: 700;
}

.inline-feed-ad {
  display: grid;
  grid-template-columns: 194px minmax(0, 1fr);
  gap: 20px;
  min-height: 134px;
  border-bottom: 1px solid var(--line);
  padding: 18px 0;
}

.inline-ad-visual {
  --inline-accent: #6579ff;
  position: relative;
  display: flex;
  align-items: end;
  justify-content: center;
  gap: 5px;
  width: 194px;
  height: 98px;
  overflow: hidden;
  background: #10131b;
  padding: 26px 14px 12px;
}

.inline-feed-ad[data-theme="social"] .inline-ad-visual { --inline-accent: #ff395e; }
.inline-feed-ad[data-theme="pulse"] .inline-ad-visual { --inline-accent: #58c3a8; }
.inline-feed-ad[data-theme="global"] .inline-ad-visual { --inline-accent: #86d55e; }

.inline-ad-visual b {
  position: absolute;
  top: 10px;
  left: 12px;
  color: var(--inline-accent);
  font-size: 13px;
}

.inline-ad-visual i {
  width: 30px;
  background: var(--inline-accent);
}

.inline-ad-visual i:nth-of-type(1) { height: 23px; }
.inline-ad-visual i:nth-of-type(2) { height: 44px; }
.inline-ad-visual i:nth-of-type(3) { height: 34px; }

.inline-ad-copy {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  min-width: 0;
}

.inline-ad-copy strong {
  color: #252b34;
  font-size: 20px;
  line-height: 1.25;
}

.inline-ad-copy small {
  margin-top: 7px;
  color: #7d8693;
  font-size: 13px;
}

.news-pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  width: 100%;
  max-width: 100%;
  padding: 26px 0 8px;
}

.news-pagination button {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border: 1px solid transparent;
  border-radius: 50%;
  background: transparent;
  color: #2d343d;
  font-weight: 600;
}

.news-pagination button.active,
.news-pagination button:hover {
  border-color: #303740;
}

.article-page-layout {
  display: block;
}

.article-page {
  min-width: 0;
  width: 616px;
  max-width: calc(100% - 249px);
  margin-left: 249px;
}

.article-breadcrumb {
  display: flex;
  gap: 8px;
  margin-bottom: 22px;
  color: #727b88;
  font-size: 14px;
}

.article-breadcrumb a:hover {
  color: var(--green);
}

.article-page .article-source {
  margin: 0 0 8px;
  color: var(--green);
  font-size: 15px;
  font-weight: 600;
}

.article-page h1 {
  margin: 0;
  color: #20262f;
  font-size: 29px;
  line-height: 1.18;
  font-weight: 700;
}

.article-page .tag-row {
  margin: 0 0 20px;
}

.article-hero {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  margin: 8px 0 22px;
}

.article-summary {
  margin: 0 0 20px;
  color: #4d5663;
  font-size: 20px;
  line-height: 1.55;
  font-weight: 500;
}

.article-page .detail-body {
  border-top: 1px solid var(--line);
  padding-top: 20px;
}

.article-related {
  width: 616px;
  max-width: calc(100% - 249px);
  margin: 36px 0 0 249px;
  border-top: 1px solid var(--line);
  padding-top: 24px;
}

.article-related h2 {
  margin: 0 0 14px;
  font-size: 22px;
}

.article-stream {
  display: block;
}

.article-stream .article-page {
  margin-top: 54px;
  border-top: 1px solid var(--line);
  padding-top: 42px;
}

.article-next-label {
  margin: 0 0 18px;
  color: #7d8693;
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
}

.article-interstitial {
  --article-ad-accent: #ff3d62;
  position: relative;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) 150px auto;
  align-items: center;
  gap: 22px;
  width: min(820px, calc(100% - 96px));
  min-height: 150px;
  margin: 54px auto 0;
  overflow: hidden;
  background: #0b0c0e;
  color: #fff;
  padding: 22px 28px;
}

.article-interstitial[data-theme="pulse"] {
  --article-ad-accent: #58c3a8;
  background: #0a1714;
}

.article-interstitial[data-theme="broker"] {
  --article-ad-accent: #6579ff;
  background: #10121b;
}

.article-interstitial[data-theme="global"],
.article-interstitial[data-theme="gold"] {
  --article-ad-accent: #86d55e;
  background: #10170d;
}

.article-ad-brand {
  color: var(--article-ad-accent);
  font-size: 20px;
  font-weight: 800;
}

.article-interstitial > strong {
  font-size: 24px;
  line-height: 1.2;
}

.article-ad-art {
  display: flex;
  align-items: end;
  justify-content: center;
  gap: 8px;
  height: 92px;
  border-radius: 50%;
  background: color-mix(in srgb, var(--article-ad-accent) 50%, transparent);
  padding-bottom: 12px;
}

.article-ad-art i {
  width: 26px;
  background: #fff;
}

.article-ad-art i:nth-child(1) { height: 35px; }
.article-ad-art i:nth-child(2) { height: 63px; }
.article-ad-art i:nth-child(3) { height: 48px; }

.article-interstitial > b {
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: 999px;
  padding: 9px 15px;
  white-space: nowrap;
}

body[data-route="article"] .main-area {
  padding-top: 40px;
}

body[data-route="register"],
body[data-route="login"],
body[data-route="mail"] {
  background: #fff;
}

body[data-route="register"] .site-header,
body[data-route="login"] .site-header,
body[data-route="mail"] .site-header,
body[data-route="register"] .market-band,
body[data-route="login"] .market-band,
body[data-route="mail"] .market-band,
body[data-route="register"] .ad-space,
body[data-route="login"] .ad-space,
body[data-route="mail"] .ad-space,
body[data-route="register"] .market-sidebar,
body[data-route="login"] .market-sidebar,
body[data-route="mail"] .market-sidebar,
body[data-route="register"] .filter-row,
body[data-route="login"] .filter-row,
body[data-route="mail"] .filter-row,
body[data-route="register"] .list-footer,
body[data-route="login"] .list-footer,
body[data-route="mail"] .list-footer,
body[data-route="register"] .site-footer,
body[data-route="login"] .site-footer,
body[data-route="mail"] .site-footer {
  display: none !important;
}

body[data-route="register"] .content-shell,
body[data-route="login"] .content-shell,
body[data-route="mail"] .content-shell {
  border: 0;
}

body[data-route="register"] .news-board,
body[data-route="login"] .news-board,
body[data-route="mail"] .news-board {
  display: block;
  width: 100%;
  min-height: 100vh;
}

body[data-route="register"] .main-area,
body[data-route="login"] .main-area,
body[data-route="mail"] .main-area {
  padding: 0;
}

.register-page-layout,
.login-page-layout,
.mail-page-layout {
  display: block;
}

.auth-page,
.mail-page {
  min-height: 100vh;
  background: #fff;
}

.auth-topbar {
  position: relative;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 80px;
  border-top: 1px solid #eadfd5;
  background: #fff;
  padding: 0 clamp(32px, 5vw, 104px);
}

.auth-brand {
  display: inline-flex;
  width: clamp(210px, 23vw, 390px);
  height: 62px;
  color: #6c2df3;
}

.auth-brand .brand-word {
  font-size: clamp(34px, 3.2vw, 52px);
  line-height: 1;
  letter-spacing: 0;
}

.auth-brand .brand-finance {
  color: #20252d;
  font-size: 15px;
  font-weight: 700;
}

.auth-brand .brand-logo {
  object-position: left center;
}

.auth-topbar nav {
  display: flex;
  align-items: center;
  gap: 26px;
}

.auth-topbar nav a {
  color: #5f6670;
  font-size: 15px;
  font-weight: 700;
}

.auth-hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(430px, 500px);
  align-items: start;
  min-height: calc(100vh - 80px);
  margin: 0 28px;
  overflow: hidden;
  background: #7626f5;
  padding: 16px clamp(32px, 13vw, 250px) 150px;
}

.auth-visual {
  position: absolute;
  inset: 0;
  overflow: hidden;
  background: #7626f5;
}

.auth-visual::before {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  width: 28%;
  height: 100%;
  background: #61d3cf;
  clip-path: polygon(22% 0, 100% 0, 100% 100%, 70% 100%);
}

.auth-visual::after {
  content: "";
  position: absolute;
  left: -8%;
  bottom: -20%;
  width: 60%;
  height: 42%;
  background: #3a078d;
  transform: rotate(19deg);
}

.auth-visual-copy {
  position: absolute;
  top: 64px;
  left: clamp(40px, 20vw, 360px);
  z-index: 2;
  display: flex;
  flex-direction: column;
  color: #fff;
  font-style: italic;
  transform: rotate(4deg);
}

.auth-visual-copy span {
  font-size: clamp(23px, 2.1vw, 38px);
  line-height: 1.05;
  font-weight: 600;
}

.auth-visual-copy strong {
  font-size: clamp(38px, 4vw, 67px);
  line-height: 1;
  letter-spacing: 0;
}

.auth-visual-copy small {
  align-self: flex-start;
  margin-top: 18px;
  background: #3e068f;
  padding: 9px 16px;
  font-size: clamp(13px, 1.1vw, 18px);
  font-style: normal;
  font-weight: 700;
}

.auth-mail-app {
  position: absolute;
  left: 22%;
  bottom: 30%;
  z-index: 2;
  display: grid;
  place-items: center;
  width: 132px;
  height: 150px;
  border-radius: 28px;
  background: #8141f7;
  color: #fff;
  box-shadow: 12px 16px 0 rgba(53, 1, 143, 0.4);
}

.auth-mail-app i {
  position: relative;
  display: block;
  width: 76px;
  height: 50px;
  border-radius: 5px;
  background: #fff;
}

.auth-mail-app i::after {
  content: "";
  position: absolute;
  top: 6px;
  left: 11px;
  width: 50px;
  height: 28px;
  border-right: 4px solid #8141f7;
  border-bottom: 4px solid #8141f7;
  transform: rotate(45deg);
}

.auth-mini-brand {
  width: 104px;
  height: 28px;
  justify-content: center;
}

.auth-mini-brand .brand-word {
  color: #fff;
  font-size: 15px;
}

.auth-mini-brand .brand-finance {
  display: none;
}

.auth-mini-brand .brand-logo {
  object-position: center;
}

.auth-mailbox {
  position: absolute;
  left: 38%;
  bottom: 17%;
  z-index: 2;
  width: clamp(350px, 34vw, 560px);
  height: clamp(220px, 22vw, 340px);
  border-radius: 48% 48% 18px 18px;
  background: #dd3795;
  box-shadow: 28px 26px 0 #a9126b;
}

.auth-mailbox::after {
  content: "";
  position: absolute;
  left: 54%;
  bottom: -250px;
  width: 54px;
  height: 300px;
  background: #c21a7c;
}

.mailbox-door {
  position: absolute;
  left: -34%;
  bottom: -3%;
  width: 48%;
  height: 88%;
  border-radius: 55% 12% 8px 8px;
  background: #ee62b0;
  transform: rotate(22deg);
  transform-origin: right bottom;
}

.mailbox-door i {
  position: absolute;
  width: 58px;
  height: 38px;
  border: 3px solid #fff;
  opacity: 0.72;
  transform: rotate(18deg);
}

.mailbox-door i:nth-child(1) { top: 35px; right: -5px; }
.mailbox-door i:nth-child(2) { top: 82px; right: 36px; }
.mailbox-door i:nth-child(3) { top: 129px; right: -12px; }

.mailbox-flag {
  position: absolute;
  top: -92px;
  right: 56px;
  width: 18px;
  height: 112px;
  background: #c11a7a;
}

.mailbox-flag::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 72px;
  height: 36px;
  background: #d93392;
}

.auth-mailbox-brand {
  position: absolute;
  right: 42px;
  bottom: 58px;
  width: 42%;
  height: 54px;
  justify-content: flex-end;
  color: #fca7d5;
}

.auth-mailbox-brand .brand-word {
  color: #fca7d5;
  font-size: clamp(22px, 2.4vw, 40px);
}

.auth-mailbox-brand .brand-finance {
  display: none;
}

.auth-mailbox-brand .brand-logo {
  object-position: right center;
}

.auth-storage {
  position: absolute;
  right: 36%;
  bottom: -34px;
  z-index: 1;
  color: rgba(255, 255, 255, 0.42);
  font-size: clamp(110px, 13vw, 230px);
  line-height: 1;
  font-weight: 800;
}

.login-panel {
  position: relative;
  z-index: 4;
  grid-column: 2;
  width: 100%;
  min-height: 700px;
  margin-top: 0;
  border-radius: 22px;
  background: #fff;
  box-shadow: 0 18px 50px rgba(38, 8, 82, 0.2);
  padding: 48px 52px;
}

.login-panel h1 {
  margin: 0 0 34px;
  color: #17191d;
  font-size: 28px;
  line-height: 1.2;
  letter-spacing: 0;
}

.user-login-form {
  display: grid;
  gap: 16px;
}

.user-login-form > label:not(.keep-signed) {
  display: grid;
  gap: 8px;
  color: #7034ee;
  font-size: 14px;
  font-weight: 700;
}

.user-login-form .auth-password[hidden] {
  display: none !important;
}

.user-login-form input:not([type="checkbox"]) {
  width: 100%;
  height: 58px;
  border: 1px solid #7933f5;
  border-radius: 4px;
  outline: 0;
  background: #fff;
  padding: 0 14px;
  color: #242932;
  font-size: 16px;
}

.user-login-form input:not([type="checkbox"]):focus {
  border-width: 2px;
  box-shadow: 0 0 0 2px rgba(121, 51, 245, 0.12);
}

.auth-options {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.keep-signed {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: #6a7079;
  font-size: 14px;
  font-weight: 700;
}

.keep-signed input {
  width: 20px;
  height: 20px;
  accent-color: #7933f5;
}

.user-login-form .auth-link,
.user-login-form .create-account {
  width: auto;
  height: auto;
  min-height: 32px;
  border: 0;
  background: transparent;
  color: #6d35ef;
  font-size: 14px;
  font-weight: 700;
}

.user-login-form .auth-next {
  height: 58px;
  border: 0;
  border-radius: 999px;
  background: #762cf1;
  color: #fff;
  font-size: 17px;
  font-weight: 700;
}

.auth-divider {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 13px;
  color: #717780;
  font-size: 14px;
}

.auth-divider::before,
.auth-divider::after {
  content: "";
  height: 1px;
  background: #d9dce1;
}

.user-login-form .google-login {
  position: relative;
  height: 58px;
  border: 1px solid #d4d8dd;
  border-radius: 999px;
  background: #fff;
  color: #20242a;
  font-size: 15px;
  font-weight: 700;
}

.google-login b {
  display: inline-grid;
  place-items: center;
  width: 24px;
  height: 24px;
  margin-right: 8px;
  border-radius: 50%;
  color: #4285f4;
  font-size: 20px;
}

.google-connection-state {
  display: block;
  min-height: 18px;
  margin-top: -7px;
  color: #b84b52;
  font-size: 12px;
  line-height: 1.45;
  text-align: center;
}

.google-connection-state.is-ready {
  color: var(--green);
}

.user-login-form .create-account {
  justify-self: center;
  margin-top: 10px;
}

.login-message {
  min-height: 20px;
  color: var(--red);
  font-size: 13px;
  text-align: center;
}

.login-message.success {
  color: var(--green);
}

.register-shell {
  display: grid;
  place-items: start center;
  min-height: calc(100vh - 80px);
  background: #f5f5f5;
  padding: 18px 20px 80px;
}

.register-panel {
  width: min(490px, 100%);
  border-radius: 18px 18px 0 0;
  background: #fff;
  box-shadow: 0 4px 18px rgba(25, 31, 38, 0.08);
  padding: 50px 54px 46px;
}

.register-panel h1 {
  margin: 0 0 22px;
  color: #15181d;
  font-size: 30px;
  line-height: 1.2;
  letter-spacing: 0;
}

.register-intro {
  margin: 0 0 34px;
  color: #24282e;
  font-size: 17px;
  line-height: 1.45;
  font-weight: 600;
}

.user-register-form,
.register-fields {
  display: grid;
  gap: 20px;
}

.register-fields[hidden] {
  display: none !important;
}

.register-fields label {
  display: grid;
  gap: 8px;
  color: #282d34;
  font-size: 15px;
  font-weight: 700;
}

.register-fields input {
  width: 100%;
  height: 58px;
  border: 1px solid #8c949e;
  border-radius: 4px;
  outline: 0;
  background: #fff;
  padding: 0 14px;
  color: #242932;
  font-size: 16px;
}

.register-fields input:focus {
  border: 2px solid #762cf1;
  box-shadow: 0 0 0 2px rgba(118, 44, 241, 0.1);
}

.register-terms {
  margin: 10px 0 0;
  color: #30353c;
  font-size: 14px;
  line-height: 1.5;
  font-weight: 600;
  text-align: center;
}

.register-terms a,
.register-signin {
  color: #6d35ef;
  font-weight: 700;
}

.register-actions {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 10px;
}

.register-actions .auth-next {
  width: 100%;
  height: 58px;
  border: 0;
  border-radius: 999px;
  background: #762cf1;
  color: #fff;
  font-size: 17px;
  font-weight: 700;
}

.register-back[hidden] + .auth-next {
  grid-column: 1 / -1;
}

.register-back {
  min-width: 82px;
  border: 1px solid #d5d9de;
  border-radius: 999px;
  background: #fff;
  color: #343a42;
  font-size: 15px;
  font-weight: 700;
}

.register-back[hidden] {
  display: none;
}

.register-signin {
  justify-self: center;
  padding: 8px 0;
  font-size: 14px;
}

.mail-header {
  display: grid;
  grid-template-columns: 238px minmax(260px, 620px) 1fr;
  align-items: center;
  gap: 28px;
  min-height: 72px;
  border-top: 1px solid #eceef1;
  border-bottom: 1px solid #dfe3e8;
  padding: 0 clamp(22px, 3vw, 52px);
}

.mail-product {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: #5924b8;
}

.mail-product-icon {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 10px;
  background: #762cf1;
  color: #fff;
  font-size: 22px;
}

.mail-product strong {
  font-size: 22px;
}

.mail-search {
  display: flex;
  align-items: center;
  height: 44px;
  border-radius: 999px;
  background: #f1f3f6;
  padding: 0 18px;
}

.mail-search span {
  color: #697381;
  font-size: 20px;
}

.mail-search input {
  width: 100%;
  border: 0;
  outline: 0;
  background: transparent;
  padding: 0 12px;
  color: #2d343e;
  font-size: 15px;
}

.mail-account {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 18px;
  min-width: 0;
  color: #68717e;
  font-size: 13px;
}

.mail-account span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.mail-account small {
  flex: 0 0 auto;
  color: var(--green);
  font-weight: 700;
}

.mail-account a {
  border: 1px solid #d7dce3;
  border-radius: 999px;
  padding: 7px 15px;
  color: #2d343d;
  font-weight: 700;
}

.mail-workspace {
  display: grid;
  grid-template-columns: 238px minmax(0, 1fr);
  min-height: calc(100vh - 152px);
  background: #f7f8fa;
}

.mail-nav {
  display: flex;
  flex-direction: column;
  gap: 3px;
  border-right: 1px solid #e0e4e9;
  background: #fff;
  padding: 22px 18px;
}

.mail-compose {
  min-height: 48px;
  margin-bottom: 18px;
  border: 0;
  border-radius: 999px;
  background: #762cf1;
  color: #fff;
  font-size: 15px;
  font-weight: 700;
}

.mail-nav a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 42px;
  border-radius: 6px;
  padding: 0 16px;
  color: #444d59;
  font-size: 14px;
  font-weight: 600;
}

.mail-nav a.active {
  background: #efe8ff;
  color: #6124cf;
}

.mail-inbox {
  min-width: 0;
  margin: 18px 22px 28px;
  border: 1px solid #e0e4e8;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 3px 14px rgba(31, 42, 55, 0.06);
}

.mail-inbox > header,
.mail-toolbar {
  display: flex;
  align-items: center;
  min-height: 58px;
  border-bottom: 1px solid #e4e7eb;
  padding: 0 20px;
}

.mail-inbox > header {
  justify-content: space-between;
}

.mail-inbox h1 {
  margin: 0;
  font-size: 22px;
}

.mail-inbox > header button,
.mail-toolbar button {
  min-width: 38px;
  min-height: 32px;
  border: 0;
  border-radius: 4px;
  background: transparent;
  color: #59626e;
  font-weight: 600;
}

.mail-inbox > header button:hover,
.mail-toolbar button:hover {
  background: #f0f2f5;
}

.mail-toolbar {
  gap: 12px;
  min-height: 46px;
}

.mail-toolbar span {
  margin-left: auto;
  color: #7b8490;
  font-size: 12px;
}

.mail-list {
  display: grid;
}

.mail-row {
  display: grid;
  grid-template-columns: 22px 26px minmax(120px, 190px) minmax(0, 1fr) 72px;
  align-items: center;
  gap: 10px;
  min-height: 56px;
  border: 0;
  border-bottom: 1px solid #e8ebef;
  background: #fafbfc;
  padding: 0 18px;
  color: #434b56;
  text-align: left;
}

.mail-row:hover {
  box-shadow: 0 2px 8px rgba(38, 46, 58, 0.12);
}

.mail-row.unread {
  background: #fff;
  color: #242a32;
}

.mail-check {
  width: 15px;
  height: 15px;
  border: 1px solid #a9b0ba;
  border-radius: 2px;
}

.mail-star {
  color: #f3aa20;
  font-size: 19px;
}

.mail-row > strong,
.mail-subject,
.mail-subject b,
.mail-subject small {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.mail-row > strong,
.mail-subject b {
  font-size: 14px;
}

.mail-subject small,
.mail-row time {
  color: #7b8490;
  font-size: 12px;
  font-weight: 400;
}

.mail-row time {
  text-align: right;
}

.feed-page h1,
.market-page h1,
.data-main h1 {
  margin: 0 0 18px;
  color: #242a32;
  font-size: 26px;
  line-height: 1.15;
  font-weight: 700;
  letter-spacing: 0;
}

.feed-list {
  display: grid;
  gap: 0;
}

.feed-story {
  display: block;
  align-items: start;
  min-height: 108px;
  border-bottom: 1px solid var(--line);
  padding: 22px 0;
}

.feed-story.with-thumb {
  display: grid;
  grid-template-columns: 194px minmax(0, 1fr);
  gap: 20px;
  min-height: 134px;
}

.feed-thumb {
  display: block;
  width: 194px;
  height: 109px;
  overflow: hidden;
  border: 0;
  border-radius: 4px;
  background: #eef0f3;
  padding: 0;
}

.feed-thumb img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.feed-copy h2 {
  margin: 0 0 8px;
  color: #252b34;
  font-size: 20px;
  line-height: 1.25;
  font-weight: 600;
  letter-spacing: 0;
}

.latest-news-layout .feed-story {
  min-height: 65.5px;
  padding: 0 0 16px;
}

.latest-news-layout .feed-story.with-thumb {
  min-height: 134px;
  padding: 12px 0;
}

.latest-news-layout .feed-copy {
  display: flex;
  flex-wrap: wrap;
  align-content: flex-start;
  align-items: center;
  column-gap: 4px;
}

.latest-news-layout .feed-copy .story-button {
  flex: 0 0 100%;
}

.latest-news-layout .feed-copy h2 {
  margin-bottom: 4px;
  font-weight: 500;
}

.latest-news-layout .feed-copy .story-meta {
  gap: 4px;
  font-size: 12px;
  line-height: 15px;
}

.latest-news-layout .feed-copy .tag-row {
  flex-wrap: nowrap;
  margin: 0;
}

.latest-news-layout .feed-copy .symbol-pill {
  min-height: 20px;
  padding: 0 8px;
}

.compact-feed .feed-story {
  display: block;
  min-height: 0;
  padding: 17px 0;
}

.compact-feed .feed-story.with-thumb {
  display: grid;
  grid-template-columns: 160px minmax(0, 1fr);
  gap: 20px;
  min-height: 118px;
}

.compact-feed .feed-thumb {
  width: 160px;
  height: 90px;
}

.compact-feed .feed-copy h2 {
  font-size: 16px;
}

.portfolio-layout .compact-feed .feed-copy h2 {
  overflow: hidden;
  margin-bottom: 7px;
  font-size: 17px;
  line-height: 1.25;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.portfolio-layout .compact-feed .feed-story.with-thumb .feed-copy h2 {
  white-space: normal;
}

.feed-section-title {
  margin: 28px 0 8px;
  color: #242a32;
  font-size: 24px;
  line-height: 1.15;
  font-weight: 700;
}

.market-subnav {
  display: grid;
  align-content: start;
  gap: 0;
  margin: 0;
  padding: 0;
  color: #343b44;
  font-size: 14px;
  font-weight: 600;
}

.market-subnav::-webkit-scrollbar {
  display: none;
}

.market-subnav a {
  min-height: 29px;
  padding: 3px 4px;
  line-height: 21px;
}

.market-subnav a.active,
.market-subnav a:hover {
  color: var(--green);
}

.market-layout {
  grid-template-columns: minmax(0, 1fr);
}

.market-page-frame {
  display: grid;
  grid-template-columns: 136px minmax(0, 1fr);
  gap: 24px;
  min-width: 0;
}

.market-page-content {
  min-width: 0;
}

.currency-page .data-card h2 {
  display: none;
}

.currency-page .data-card {
  padding-top: 0;
}

body[data-route="currencies"] .ad-space,
body[data-route="markets"] .ad-space,
body[data-route="gold"] .ad-space,
body[data-route="oil"] .ad-space,
body[data-route="quote"] .ad-space,
body[data-route="calendar"] .ad-space {
  height: 123px;
}

body:not([data-route="home"]) .ad-space {
  height: 123px;
}

body[data-route="currencies"] .ad-banner,
body[data-route="markets"] .ad-banner,
body[data-route="gold"] .ad-banner,
body[data-route="oil"] .ad-banner,
body[data-route="quote"] .ad-banner,
body[data-route="calendar"] .ad-banner {
  grid-template-columns: 120px minmax(0, 1fr) 130px;
  gap: 20px;
  width: min(720px, calc(100vw - 48px));
  height: 90px;
  padding: 0 28px;
}

body:not([data-route="home"]) .ad-banner {
  grid-template-columns: 120px minmax(0, 1fr) 130px;
  gap: 20px;
  width: min(720px, calc(100vw - 48px));
  height: 90px;
  padding: 0 28px;
}

body[data-route="currencies"] .ad-banner::after,
body[data-route="markets"] .ad-banner::after,
body[data-route="gold"] .ad-banner::after,
body[data-route="oil"] .ad-banner::after,
body[data-route="quote"] .ad-banner::after,
body[data-route="calendar"] .ad-banner::after {
  right: 150px;
  width: 190px;
  height: 90px;
}

body:not([data-route="home"]) .ad-banner::after {
  right: 150px;
  width: 190px;
  height: 90px;
}

body[data-route="currencies"] .ad-banner span,
body[data-route="markets"] .ad-banner span,
body[data-route="gold"] .ad-banner span,
body[data-route="oil"] .ad-banner span,
body[data-route="quote"] .ad-banner span,
body[data-route="calendar"] .ad-banner span {
  width: 110px;
  height: 60px;
  font-size: 24px;
}

body:not([data-route="home"]) .ad-banner span {
  width: 110px;
  height: 60px;
  font-size: 24px;
}

body[data-route="currencies"] .ad-banner strong,
body[data-route="markets"] .ad-banner strong,
body[data-route="gold"] .ad-banner strong,
body[data-route="oil"] .ad-banner strong,
body[data-route="quote"] .ad-banner strong,
body[data-route="calendar"] .ad-banner strong {
  font-size: 22px;
}

body:not([data-route="home"]) .ad-banner strong {
  font-size: 22px;
}

body[data-route="currencies"] .ad-banner > button,
body[data-route="markets"] .ad-banner > button,
body[data-route="gold"] .ad-banner > button,
body[data-route="oil"] .ad-banner > button,
body[data-route="quote"] .ad-banner > button,
body[data-route="calendar"] .ad-banner > button {
  min-height: 38px;
  padding: 8px 18px;
}

body:not([data-route="home"]) .ad-banner > button {
  min-height: 38px;
  padding: 8px 18px;
}

body[data-route="quote"] .ad-space,
body[data-route="gold"] .ad-space,
body[data-route="oil"] .ad-space,
body[data-route="calendar"] .ad-space,
body[data-route="markets"] .ad-space,
body[data-route="currencies"] .ad-space {
  height: 283px;
}

body[data-route="quote"] .ad-banner,
body[data-route="gold"] .ad-banner,
body[data-route="oil"] .ad-banner,
body[data-route="calendar"] .ad-banner,
body[data-route="markets"] .ad-banner,
body[data-route="currencies"] .ad-banner {
  grid-template-columns: 180px minmax(0, 1fr) 170px;
  gap: 30px;
  width: min(970px, calc(100vw - 48px));
  height: 250px;
  padding: 0 44px;
}

body[data-route="quote"] .ad-banner::after,
body[data-route="gold"] .ad-banner::after,
body[data-route="oil"] .ad-banner::after,
body[data-route="calendar"] .ad-banner::after,
body[data-route="markets"] .ad-banner::after,
body[data-route="currencies"] .ad-banner::after {
  right: 210px;
  width: 270px;
  height: 190px;
}

body[data-route="quote"] .ad-banner span,
body[data-route="gold"] .ad-banner span,
body[data-route="oil"] .ad-banner span,
body[data-route="calendar"] .ad-banner span,
body[data-route="markets"] .ad-banner span,
body[data-route="currencies"] .ad-banner span {
  width: 150px;
  height: 82px;
  font-size: 38px;
}

body[data-route="quote"] .ad-banner strong,
body[data-route="gold"] .ad-banner strong,
body[data-route="oil"] .ad-banner strong,
body[data-route="calendar"] .ad-banner strong,
body[data-route="markets"] .ad-banner strong,
body[data-route="currencies"] .ad-banner strong {
  font-size: 34px;
}

body[data-route="quote"] .ad-banner > button,
body[data-route="gold"] .ad-banner > button,
body[data-route="oil"] .ad-banner > button,
body[data-route="calendar"] .ad-banner > button,
body[data-route="markets"] .ad-banner > button,
body[data-route="currencies"] .ad-banner > button {
  min-height: 50px;
  padding: 12px 26px;
}

body[data-route="currencies"] .main-area,
body[data-route="markets"] .main-area,
body[data-route="gold"] .main-area,
body[data-route="oil"] .main-area,
body[data-route="quote"] .main-area,
body[data-route="calendar"] .main-area {
  padding-top: 28px;
}

.page-heading {
  margin-bottom: 22px;
}

.page-heading p {
  margin: 0 0 8px;
  color: var(--green);
  font-size: 17px;
  font-weight: 700;
}

.page-heading h1 {
  margin: 0;
  color: #20262f;
  font-size: clamp(36px, 4vw, 54px);
  line-height: 1.05;
  font-weight: 700;
  letter-spacing: 0;
}

.page-heading span {
  display: block;
  margin-top: 10px;
  color: #697280;
  font-size: 18px;
  font-weight: 700;
}

.topic-main,
.data-main,
.quote-page {
  min-width: 0;
}

.topic-lead,
.data-card,
.converter-card,
.portfolio-card,
.quote-hero {
  border-bottom: 1px solid var(--line);
  padding: 0 0 18px;
  margin-bottom: 18px;
}

.topic-lead h2 {
  margin: 0 0 10px;
  color: #20262f;
  font-size: clamp(28px, 3vw, 42px);
  line-height: 1.12;
  font-weight: 700;
}

.topic-lead p {
  margin: 0 0 12px;
  color: #596271;
  font-size: 18px;
  line-height: 1.55;
}

.topic-list {
  display: grid;
  gap: 0;
}

.data-card,
.converter-card,
.portfolio-card {
  padding: 18px 0 24px;
}

.data-card h2,
.converter-card h2,
.portfolio-card h2 {
  margin: 0 0 12px;
  color: #2b3139;
  font-size: 24px;
  font-weight: 700;
}

.market-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 16px;
}

.market-table th,
.market-table td {
  border-bottom: 1px solid #e4e8ee;
  padding: 12px 10px;
  text-align: left;
  vertical-align: middle;
}

.market-table th {
  color: #6f7884;
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
}

.world-indices-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 12px 0 14px;
}

.world-indices-title h2 {
  margin: 0;
  font-size: 20px;
}

.world-indices-title span {
  font-size: 24px;
}

.market-overview-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-bottom: 24px;
}

.overview-market-card h3 {
  margin: 0 0 9px;
  font-size: 14px;
}

.overview-market-card {
  min-width: 0;
}

.overview-table-head,
.overview-market-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 58px 74px 54px;
  align-items: center;
  min-width: 0;
}

.overview-table-head {
  grid-template-columns: minmax(0, 1fr) 132px 54px;
  height: 35px;
  border: 1px solid #dfe3e8;
  padding: 0 8px;
  color: #4e5763;
  font-size: 11px;
}

.overview-table-head span:nth-child(2) {
  text-align: right;
}

.overview-market-row {
  width: 100%;
  height: 40px;
  border: 1px solid #dfe3e8;
  border-top: 0;
  padding: 0 8px;
  background: #fff;
  text-align: left;
}

.overview-market-row strong {
  overflow: hidden;
  color: var(--blue);
  font-size: 12px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.overview-market-row .hot-spark {
  width: 58px;
  height: 23px;
}

.overview-market-row span,
.overview-market-row em {
  font-size: 11px;
  font-style: normal;
  text-align: right;
  white-space: nowrap;
}

.currency-market-table {
  table-layout: fixed;
  border: 1px solid #dfe3e8;
  font-size: 14px;
}

.currency-market-table th,
.currency-market-table td {
  height: 40px;
  border-right: 1px solid #e4e8ee;
  padding: 7px 9px;
  white-space: nowrap;
}

.currency-market-table th:last-child,
.currency-market-table td:last-child {
  border-right: 0;
}

.currency-market-table th:nth-child(1) { width: 14%; }
.currency-market-table th:nth-child(2) { width: 37%; }
.currency-market-table th:nth-child(3) { width: 11%; }
.currency-market-table th:nth-child(4) { width: 11%; }
.currency-market-table th:nth-child(5) { width: 11%; }
.currency-market-table th:nth-child(6) { width: 16%; }

.currency-name {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.currency-name .hot-spark {
  flex: 0 0 104px;
  width: 104px;
  height: 28px;
}

.range-meter {
  position: relative;
  display: block;
  width: 100%;
  min-width: 118px;
  height: 25px;
  color: #727b86;
}

.range-meter::before {
  position: absolute;
  top: 7px;
  right: 3px;
  left: 3px;
  height: 2px;
  background: #b9c0c8;
  content: "";
}

.range-meter i {
  position: absolute;
  top: 2px;
  left: var(--range-marker);
  width: 0;
  height: 0;
  border-right: 5px solid transparent;
  border-bottom: 7px solid #59616c;
  border-left: 5px solid transparent;
  transform: translateX(-50%);
}

.range-meter small {
  position: absolute;
  right: 0;
  bottom: -1px;
  left: 0;
  display: flex;
  justify-content: space-between;
  font-size: 9px;
  font-weight: 400;
}

.range-meter b {
  font-weight: 400;
}

.calendar-layout {
  display: block;
}

.calendar-page {
  width: 100%;
  min-width: 0;
}

.calendar-tabs {
  display: flex;
  align-items: center;
  gap: 24px;
  height: 49px;
  border-bottom: 1px solid var(--line);
}

.calendar-tabs button {
  border: 0;
  background: transparent;
  color: #20262f;
  padding: 0;
  font-size: 14px;
  font-weight: 600;
}

.calendar-tabs button.active {
  font-weight: 700;
}

.calendar-heading {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 84px;
}

.calendar-heading h1 {
  margin: 0;
  font-size: 20px;
}

.calendar-heading button {
  border: 1px solid #dfe3e8;
  border-radius: 999px;
  padding: 7px 14px;
  background: #fff;
  color: #303740;
  font-size: 13px;
}

.calendar-heading span {
  margin-left: auto;
  font-size: 25px;
}

.calendar-week {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 8px;
}

.calendar-day {
  min-height: 203px;
  border: 1px solid #dfe3e8;
  padding: 12px 8px;
  background: #fff;
}

.calendar-day:nth-child(2) {
  border-color: #4e84d8;
}

.calendar-day h2 {
  margin: 0 0 10px;
  font-size: 13px;
  line-height: 1.25;
}

.calendar-pill {
  display: flex;
  align-items: center;
  gap: 4px;
  min-height: 34px;
  margin-bottom: 8px;
  border: 1px solid #e5ca44;
  border-radius: 999px;
  padding: 5px 8px;
  font-size: 11px;
  white-space: nowrap;
}

.calendar-pill i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #efbd18;
}

.calendar-pill.ipo { border-color: #7c43d4; }
.calendar-pill.ipo i { background: #7c43d4; }
.calendar-pill.earnings { border-color: #3f7fca; }
.calendar-pill.earnings i { background: #3f7fca; }

.calendar-day small {
  color: #7b8490;
  font-size: 10px;
}

.calendar-lower-ad {
  width: 300px;
  margin: 16px 0 0 auto;
}

.calendar-lower-ad .rail-ad {
  min-height: 260px;
}

.calendar-news {
  margin-top: 24px;
}

.quote-link {
  border: 0;
  background: transparent;
  color: var(--blue);
  padding: 0;
  font-weight: 700;
}

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

.converter-grid label {
  display: grid;
  gap: 6px;
  color: #596271;
  font-weight: 600;
}

.converter-grid input {
  width: 100%;
  border: 1px solid #dfe4ec;
  border-radius: 8px;
  padding: 12px;
  color: #20262f;
  font-weight: 700;
}

.quote-hero {
  display: block;
  padding-bottom: 24px;
}

.quote-summary {
  padding-bottom: 15px;
}

.quote-exchange {
  margin: 0 0 7px;
  color: #505964;
  font-size: 12px;
}

.quote-title-row,
.quote-price-row,
.quote-chart-toolbar,
.quote-chart-toolbar > div {
  display: flex;
  align-items: center;
}

.quote-title-row {
  gap: 12px;
  border-bottom: 1px solid var(--line);
  padding-bottom: 11px;
}

.quote-title-row h1 {
  margin: 0;
  color: #20262f;
  font-size: 22px;
  line-height: 1.2;
}

.quote-title-row button {
  border: 0;
  background: transparent;
  color: #303740;
  font-size: 23px;
  line-height: 1;
}

.quote-price-row {
  gap: 10px;
  margin-top: 10px;
}

.quote-price-row strong {
  color: #20262f;
  font-size: 32px;
  line-height: 1.1;
}

.quote-price-row span {
  font-size: 18px;
  font-weight: 700;
}

.quote-summary small {
  display: block;
  margin-top: 3px;
  color: #555f6c;
  font-size: 11px;
}

.quote-chart-card {
  overflow: hidden;
  border: 1px solid #dfe3e8;
  border-radius: 4px;
  background: #fff;
}

.quote-chart-toolbar {
  justify-content: space-between;
  min-height: 58px;
  padding: 0 16px;
  border-bottom: 1px solid #edf0f3;
  font-size: 12px;
}

.quote-chart-toolbar > div {
  gap: 13px;
}

.quote-chart-toolbar button {
  border: 0;
  border-radius: 3px;
  padding: 6px 8px;
  background: transparent;
  color: #303740;
}

.quote-chart-toolbar button.active {
  background: #eef5ff;
  color: var(--blue);
}

.quote-chart-toolbar span {
  white-space: nowrap;
}

.quote-chart-canvas {
  position: relative;
  height: 330px;
  padding: 18px 42px 18px 16px;
}

.quote-chart-svg {
  width: 100%;
  height: 100%;
}

.quote-grid-lines path {
  fill: none;
  stroke: #d9dde2;
  stroke-width: 1;
  vector-effect: non-scaling-stroke;
}

.quote-axis {
  position: absolute;
  right: 7px;
  padding: 2px 4px;
  color: #555f6b;
  background: #f1f3f5;
  font-size: 10px;
}

.quote-axis.top { top: 18px; }
.quote-axis.bottom { bottom: 18px; }

.quote-page .data-card {
  padding-top: 10px;
}

.tool-tile,
.author-chip {
  width: 100%;
  border: 1px solid #dfe4ec;
  border-radius: 8px;
  background: #fff;
  color: #2c333d;
  margin-bottom: 10px;
  padding: 12px 14px;
  text-align: left;
  font-weight: 700;
}

.tool-tile:hover,
.author-chip:hover {
  border-color: var(--green);
  color: var(--green);
}

.author-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 18px;
}

.author-chip {
  margin: 0;
  text-align: center;
}

.market-sidebar {
  min-width: 0;
  padding: 24px 12px 44px;
  border-left: 1px solid #d7dde4;
  background: #fff;
}

.market-sidebar::after {
  content: none;
}

.sidebar-sticky {
  position: sticky;
  top: 133px;
  display: grid;
  gap: 12px;
}

.sidebar-sticky .stock-search {
  margin-bottom: 0;
}

.sidebar-ad {
  min-height: 300px;
}

.stock-search {
  display: flex;
  height: 40px;
  margin: 0 0 10px;
  border: 1px solid #dfe3e8;
  border-radius: 999px;
  background: #fff;
}

.stock-search::before {
  content: "⌕";
  display: grid;
  place-items: center;
  width: 40px;
  color: #8a929e;
  font-size: 24px;
}

.stock-search input {
  min-width: 0;
  width: 100%;
  border: 0;
  outline: 0;
  border-radius: 999px;
  color: #333b46;
  font-size: 16px;
}

.stock-search input::placeholder {
  color: #808995;
}

.hot-card {
  border: 1px solid #e3e6eb;
  border-radius: 5px;
  background: #fff;
  box-shadow: 0 2px 8px rgba(20, 28, 36, 0.14);
  padding: 6px 0;
}

.hot-card h2 {
  margin: 0;
  padding: 0 12px 4px;
  color: #29313a;
  font-size: 16px;
  font-weight: 500;
}

.sidebar-widgets {
  display: grid;
  gap: 12px;
}

.sidebar-account-card,
.sidebar-data-card,
.sidebar-calendar-card,
.sidebar-earnings-card {
  overflow: hidden;
  border: 1px solid #e3e6eb;
  border-radius: 5px;
  background: #fff;
  box-shadow: 0 2px 8px rgba(20, 28, 36, 0.14);
}

.sidebar-account-card {
  padding: 14px 16px 16px;
  text-align: center;
}

.sidebar-account-card h2,
.sidebar-data-card h2,
.sidebar-calendar-card h2,
.sidebar-earnings-card h2 {
  margin: 0;
  color: #29313a;
  font-size: 18px;
  line-height: 1.2;
  font-weight: 700;
}

.sidebar-account-card h2 {
  text-align: left;
}

.sidebar-account-card p {
  margin: 18px 0 14px;
  color: #343b45;
  font-weight: 600;
}

.sidebar-account-card a,
.sidebar-calendar-empty a,
.sidebar-manage-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  border: 1px solid #333a43;
  border-radius: 999px;
  background: #fff;
  color: #303740;
  padding: 0 18px;
  font-weight: 700;
}

.sidebar-data-card h2 {
  padding: 14px 16px 8px;
}

.sidebar-quote-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 68px 94px;
  align-items: center;
  gap: 6px;
  min-height: 55px;
  border-bottom: 1px dashed #d7dce3;
  padding: 5px 12px;
}

.sidebar-quote-row:last-child {
  border-bottom: 0;
}

.sidebar-quote-name {
  min-width: 0;
}

.sidebar-quote-name strong,
.sidebar-quote-name small,
.sidebar-quote-row b,
.sidebar-quote-row b small {
  display: block;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.sidebar-quote-name strong {
  color: var(--blue);
  font-size: 13px;
}

.sidebar-quote-name small {
  margin-top: 2px;
  color: #343b45;
  font-size: 12px;
}

.sidebar-quote-row .hot-spark {
  width: 68px;
  height: 28px;
}

.sidebar-quote-row b {
  color: #252c35;
  font-size: 13px;
  text-align: right;
}

.sidebar-quote-row b small {
  margin-top: 3px;
  color: var(--green);
  font-size: 11px;
}

.sidebar-quote-row b small.down {
  color: var(--red);
}

.sidebar-calendar-card,
.sidebar-earnings-card {
  padding: 16px;
}

.sidebar-calendar-card > header,
.sidebar-earnings-card > header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.sidebar-calendar-card > header span,
.sidebar-earnings-card > header span {
  flex: 0 0 auto;
  border: 1px solid #dce1e7;
  border-radius: 999px;
  padding: 6px 12px;
  color: #424a55;
  font-weight: 600;
}

.sidebar-calendar-empty {
  padding-top: 22px;
  text-align: center;
}

.sidebar-calendar-empty b {
  display: block;
  font-size: 22px;
}

.sidebar-calendar-empty p,
.sidebar-earnings-card p {
  margin: 8px 0 14px;
  color: #707987;
  font-size: 13px;
  line-height: 1.5;
}

.sidebar-earnings-card > div {
  padding-top: 14px;
}

.sidebar-earnings-card > div > a {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr);
  gap: 8px;
  border-top: 1px dashed #d9dde3;
  padding: 9px 0;
}

.sidebar-earnings-card > div > a span {
  overflow: hidden;
  color: #555e69;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.sidebar-manage-link {
  justify-self: center;
  min-width: 190px;
}

.hot-stock {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 68px 78px;
  gap: 7px;
  align-items: center;
  width: 100%;
  min-height: 39px;
  border: 0;
  border-bottom: 1px dashed #d6dbe2;
  background: #fff;
  padding: 4px 12px;
  text-align: left;
}

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

.hot-stock strong {
  display: block;
  color: var(--blue);
  font-size: 13px;
  font-weight: 600;
}

.hot-stock span {
  display: block;
  overflow: hidden;
  color: #3f4650;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.hot-stock b {
  color: #313944;
  font-size: 13px;
  text-align: right;
}

.hot-spark {
  width: 66px;
  height: 26px;
}

.list-footer {
  display: flex;
  gap: 10px;
  justify-content: center;
  padding-top: 28px;
}

.load-more,
.refresh-button {
  min-width: 128px;
  border: 1px solid #d6dce5;
  border-radius: 999px;
  background: #fff;
  color: #303740;
  padding: 9px 18px;
  font-weight: 700;
}

.load-more:hover,
.refresh-button:hover {
  border-color: var(--green);
  color: var(--green);
}

.article-dialog {
  width: min(760px, calc(100vw - 28px));
  max-height: min(760px, calc(100vh - 28px));
  border: 0;
  border-radius: 8px;
  padding: 0;
  box-shadow: 0 24px 70px rgba(16, 19, 24, 0.28);
}

.article-dialog::backdrop {
  background: rgba(16, 19, 24, 0.56);
}

.article-dialog article {
  position: relative;
  padding: 30px;
}

.dialog-close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 36px;
  height: 36px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: #fff;
  font-size: 24px;
  line-height: 1;
}

.article-source {
  margin: 0 42px 8px 0;
  color: var(--green);
  font-weight: 700;
}

.article-dialog h2 {
  margin: 0;
  color: #1f2630;
  font-size: clamp(24px, 4vw, 36px);
  line-height: 1.18;
  font-weight: 700;
}

.detail-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 12px 0 20px;
  color: var(--muted);
  font-size: 14px;
}

.detail-body {
  display: grid;
  gap: 14px;
  color: #20252d;
  line-height: 1.75;
  font-size: 17px;
}

.detail-body p {
  margin: 0;
}

.site-footer {
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  gap: 70px;
  width: 100%;
  min-height: 220px;
  margin-right: 0;
  padding: 54px 32px 42px;
  background: #f2f4f6;
  color: #303740;
  font-size: 13px;
}

.footer-brand,
.footer-links {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.footer-brand {
  gap: 8px;
}

.footer-brand-mark {
  width: 230px;
  height: 48px;
}

.footer-brand-mark .brand-word {
  font-size: 25px;
}

.footer-brand-mark .brand-finance {
  font-size: 14px;
}

.footer-social {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  margin-top: 20px;
  border-radius: 50%;
  background: #303740;
  color: #fff;
  font-size: 20px;
  font-weight: 700;
}

.footer-links {
  gap: 5px;
  line-height: 1.35;
}

.footer-links a:hover,
.footer-links a:focus {
  color: var(--green);
}

.loading,
.empty,
.error {
  grid-column: 1 / -1;
  padding: 24px;
  color: var(--muted);
  background: #fff;
}

.admin-body {
  min-height: 100vh;
  background: #f6f8fb;
}

.admin-shell {
  display: grid;
  place-items: center;
  min-height: 100vh;
  padding: 24px;
}

.admin-panel {
  width: min(680px, 100%);
  border: 1px solid #dfe4ec;
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 16px 40px rgba(23, 31, 42, 0.12);
  padding: 32px;
}

.admin-brand {
  width: min(320px, 100%);
  height: 72px;
  margin-bottom: 26px;
}

.admin-form {
  display: grid;
  gap: 16px;
}

.admin-form[hidden] {
  display: none !important;
}

.admin-form h1 {
  margin: 0;
  font-size: 30px;
  line-height: 1.15;
}

.admin-form p {
  margin: 0;
  color: #697280;
  line-height: 1.6;
}

.admin-form label {
  display: grid;
  gap: 7px;
  color: #39404a;
  font-weight: 700;
}

.admin-form input {
  width: 100%;
  border: 1px solid #dbe1e8;
  border-radius: 10px;
  padding: 12px 14px;
}

.admin-form button {
  border: 0;
  border-radius: 999px;
  background: var(--green);
  color: #fff;
  padding: 13px 20px;
  font-weight: 700;
}

.admin-message {
  min-height: 22px;
  color: var(--green);
  font-weight: 700;
}

.google-config-form {
  margin-top: 28px;
  border-top: 1px solid #e2e6eb;
  padding-top: 28px;
}

.admin-section-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
}

.google-config-status {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: #7a828d;
  font-size: 13px;
  font-weight: 700;
  white-space: nowrap;
}

.google-config-status::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #aab1ba;
}

.google-config-status.enabled {
  color: var(--green);
}

.google-config-status.enabled::before {
  background: var(--green);
}

.admin-brand-fields {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.logo-preview {
  display: grid;
  place-items: center;
  height: 120px;
  border: 1px dashed #c9d1dd;
  border-radius: 12px;
  background: #f8fafc;
}

.logo-preview img {
  max-width: 260px;
  max-height: 88px;
  object-fit: contain;
}

@media (max-width: 520px) {
  .admin-brand-fields {
    grid-template-columns: 1fr;
  }

  .admin-section-heading {
    display: grid;
  }
}

@media (max-width: 1400px) {
  .utility-nav {
    gap: 34px;
  }

  .market-inner {
    grid-template-columns: 74px minmax(0, 1fr);
    gap: 32px;
    padding: 3.5px 24px 12.5px;
  }

  .quote-strip {
    gap: 24px;
  }

  .quote-card button {
    grid-template-columns: minmax(0, 1fr) 56px;
  }

  .sparkline {
    width: 56px;
    height: 24px;
  }

  .main-area {
    padding-right: 24px;
    padding-left: 24px;
  }

  .news-grid {
    gap: 24px;
  }

  .latest-news-layout {
    grid-template-columns: minmax(0, 1fr);
  }

  .topic-news-layout {
    grid-template-columns: minmax(0, 1fr);
  }

  .latest-news-layout .scroll-ad-rail,
  .topic-news-layout .scroll-ad-rail {
    display: none;
  }

  .market-sidebar {
    padding-left: 24px;
  }
}

@media (min-width: 1401px) {
  .topbar {
    grid-template-columns: 118px minmax(0, 687px) minmax(304px, 1fr) 190px;
  }
}

@media (max-width: 1180px) {
  .topbar {
    grid-template-columns: 170px minmax(260px, 1fr) auto;
    padding-left: 32px;
  }

  .account-tools {
    display: none;
  }

  .primary-nav {
    gap: 4px;
    padding-right: 12px;
    padding-left: 12px;
    font-size: 13px;
  }

  .primary-nav .nav-menu > a {
    padding-right: 7px;
    padding-left: 7px;
  }

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

  .market-sidebar {
    border-left: 0;
    border-top: 1px solid var(--line);
  }

  .sidebar-sticky {
    position: static;
  }

  .site-footer {
    width: 100%;
    margin-right: 0;
  }

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

  .calendar-week {
    grid-template-columns: repeat(7, 150px);
    overflow-x: auto;
    padding-bottom: 8px;
  }

  .scroll-ad-rail,
  body[data-route="home"] .home-ad-slot {
    height: auto;
    margin-bottom: 0;
  }
}

@media (max-width: 1080px) {
  .topbar {
    grid-template-columns: 1fr;
    height: auto;
    gap: 14px;
    padding: 16px;
  }

  .utility-nav {
    gap: 22px;
    font-size: 17px;
  }

  .search {
    grid-template-columns: minmax(0, 1fr) 76px;
  }

  .market-inner {
    grid-template-columns: 1fr;
    padding: 12px 16px;
    align-content: center;
  }

  .market-band {
    height: auto;
  }

  .quote-strip {
    display: flex;
    gap: 24px;
    overflow-x: auto;
    padding-bottom: 6px;
    scroll-snap-type: x proximity;
  }

  .quote-card {
    flex: 0 0 270px;
    scroll-snap-align: start;
  }

  .ad-space {
    height: 150px;
  }

  .ad-banner {
    height: 104px;
  }

  .ad-banner strong {
    font-size: 24px;
  }

  .news-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  body[data-route="home"] .news-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  body[data-route="home"] .lead-zone,
  body[data-route="home"] .lead-zone + .latest-card,
  body[data-route="home"] .home-continuation,
  body[data-route="home"] .home-ad-slot {
    grid-column: 1;
    grid-row: auto;
  }

  body[data-route="home"] .lead-zone,
  body[data-route="home"] .lead-top {
    min-height: 0;
    height: auto;
  }

  body[data-route="home"] .home-section-title {
    position: static;
    grid-column: 1;
    grid-row: auto;
  }

  body[data-route="home"] .feature-column,
  body[data-route="home"] .lead-zone + .latest-card {
    min-height: 0;
    height: auto;
  }

  body[data-route="home"] .stack-card {
    display: block;
    grid-template-rows: none;
  }

  body[data-route="home"] .lead-zone + .latest-card {
    display: block;
  }

  .topic-layout,
  .data-layout,
  .quote-layout,
  .search-layout,
  .feed-layout,
  .market-layout,
  .quote-hero {
    grid-template-columns: 1fr;
  }

  .latest-news-layout,
  .topic-news-layout,
  .portfolio-layout,
  .article-page-layout {
    grid-template-columns: 1fr;
  }

  .scroll-ad-rail,
  .home-ad-slot,
  .portfolio-ad-slot {
    display: none;
  }

  .article-related {
    width: 100%;
    max-width: none;
    margin: 0;
    border-top: 1px solid var(--line);
    border-left: 0;
    padding: 22px 0 0;
  }

  .article-page {
    width: 100%;
    max-width: none;
    margin-left: 0;
  }

  .converter-grid,
  .author-grid {
    grid-template-columns: 1fr 1fr;
  }

  .market-table {
    display: block;
    overflow-x: auto;
    white-space: nowrap;
  }

  .main-area {
    padding: 28px 18px;
  }
}

@media (max-width: 680px) {
  .site-header {
    position: sticky;
    width: 100%;
    background: #f5f7f9;
  }

  .topbar {
    grid-template-columns: 44px minmax(0, 1fr) 76px;
    grid-template-rows: 46px 42px;
    grid-template-areas:
      "menu brand account"
      "search search search";
    align-items: center;
    gap: 8px;
    width: 100%;
    max-width: none;
    height: 124px;
    margin: 0;
    padding: 12px 0;
    background: #f5f7f9;
  }

  .mobile-menu-button {
    display: grid;
    grid-area: menu;
    place-items: center;
    width: 40px;
    height: 40px;
    border: 0;
    background: transparent;
    color: #242a32;
    font-size: 24px;
    line-height: 1;
    justify-self: center;
  }

  .brand {
    grid-area: brand;
    justify-self: center;
    justify-content: center;
    gap: 2px;
    width: min(154px, 100%);
    height: 42px;
  }

  .brand-word {
    font-size: 28px;
  }

  .brand-finance {
    font-size: 14px;
  }

  .site-header .brand-logo {
    object-position: center;
  }

  .search {
    grid-area: search;
    grid-template-columns: 34px minmax(0, 1fr);
    height: 42px;
    background: #f1f3f6;
  }

  .search button {
    order: -1;
    border-radius: 999px 0 0 999px;
    background: transparent;
    color: #2b3139;
    font-size: 18px;
  }

  .search input {
    padding: 0 12px 0 0;
    border-radius: 0 999px 999px 0;
    font-size: 15px;
    font-weight: 600;
  }

  .utility-nav {
    display: none;
  }

  .account-tools {
    display: flex;
    grid-area: account;
    justify-content: center;
    gap: 0;
  }

  .account-tools .icon-button,
  .account-tools .mail-button {
    display: none;
  }

  .login-button {
    min-width: 72px;
    height: 38px;
    font-size: 15px;
    font-weight: 700;
  }

  .primary-nav {
    display: none;
  }

  .site-header.mobile-open .primary-nav {
    position: absolute;
    top: 124px;
    right: 0;
    left: 0;
    z-index: 95;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    width: 100%;
    height: auto;
    max-height: calc(100vh - 124px);
    gap: 0;
    overflow-x: hidden;
    overflow-y: auto;
    padding: 6px 16px 20px;
    border-top: 1px solid #e5e8ed;
    border-bottom: 3px solid var(--green);
    background: #fff;
    box-shadow: 0 14px 28px rgba(24, 32, 41, 0.16);
  }

  body.mobile-menu-open {
    overflow: hidden;
  }

  .site-header.mobile-open .mobile-menu-button {
    color: var(--green);
  }

  .site-header.mobile-open .nav-menu {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 42px;
    width: 100%;
    height: auto;
    min-height: 44px;
    border-bottom: 1px solid #edf0f3;
  }

  .site-header.mobile-open .nav-menu > a {
    display: flex;
    align-items: center;
    width: 100%;
    height: 44px;
    padding: 0 10px;
    font-size: 16px;
    font-weight: 650;
  }

  .nav-submenu-toggle {
    display: grid;
    place-items: center;
    width: 42px;
    height: 44px;
    border: 0;
    background: transparent;
    color: #58616d;
    font-size: 19px;
    transition: transform 160ms ease;
  }

  .site-header.mobile-open .nav-dropdown {
    position: static;
    grid-column: 1 / -1;
    display: none;
    min-width: 0;
    padding: 4px 0 10px 12px;
    border: 0;
    border-radius: 0;
    background: #f7f9fb;
    box-shadow: none;
    white-space: normal;
  }

  .site-header.mobile-open .nav-menu.mobile-expanded .nav-dropdown {
    display: grid;
  }

  .site-header.mobile-open .nav-menu.mobile-expanded .nav-submenu-toggle {
    transform: rotate(180deg);
  }

  .site-header.mobile-open .nav-dropdown a {
    min-height: 38px;
    padding: 9px 12px;
    font-size: 15px;
    line-height: 20px;
  }

  .market-band {
    height: 68px;
    border-top: 3px solid var(--green);
  }

  body[data-route="latest"] .market-band {
    display: none;
  }

  body[data-route="latest"] .content-shell {
    border-top: 3px solid var(--green);
  }

  .market-inner {
    display: block;
    height: 100%;
    padding: 0;
  }

  .region-picker {
    display: none;
  }

  .quote-strip {
    display: flex;
    gap: 0;
    height: 100%;
    overflow-x: auto;
    padding: 10px 0 8px;
  }

  .quote-card {
    flex: 0 0 112px;
    border-right: 1px solid #e1e5eb;
    padding: 0 12px 0 16px;
  }

  .quote-card button {
    display: block;
    min-height: 48px;
  }

  .quote-name {
    font-size: 12px;
    line-height: 1.05;
  }

  .quote-price {
    margin-top: 2px;
    font-size: 12px;
    line-height: 1.05;
  }

  .quote-change {
    margin-top: 3px;
    font-size: 12px;
    line-height: 1.05;
  }

  .quote-change-value,
  .sparkline {
    display: none;
  }

  .ad-space {
    display: none;
  }

  .main-area {
    padding: 18px 16px 24px;
  }

  body[data-route="latest"] .main-area,
  body[data-route="article"] .main-area {
    padding-top: 18px;
  }

  .latest-feed-page > h1 {
    height: auto;
    margin: 8px 0 12px;
    padding: 0 0 20px;
    border-bottom: 1px solid var(--line);
    font-size: 42px;
    line-height: 1.15;
  }

  .topic-news-layout .feed-page > h1 {
    height: auto;
    margin-bottom: 12px;
    padding-bottom: 10px;
    font-size: 28px;
    line-height: 34px;
  }

  .news-pagination {
    justify-content: flex-start;
    overflow-x: auto;
    padding-bottom: 12px;
    scrollbar-width: none;
  }

  .news-pagination::-webkit-scrollbar {
    display: none;
  }

  .article-page h1 {
    font-size: 30px;
  }

  .article-summary {
    font-size: 17px;
  }

  .inline-feed-ad {
    grid-template-columns: 92px minmax(0, 1fr);
    gap: 12px;
    min-height: 88px;
    padding: 12px 0;
  }

  .inline-ad-visual {
    width: 92px;
    height: 52px;
    padding: 18px 8px 6px;
  }

  .inline-ad-visual b {
    top: 4px;
    left: 6px;
    font-size: 9px;
  }

  .inline-ad-copy strong {
    font-size: 15px;
  }

  body[data-route="latest"] .latest-news-layout .feed-story {
    min-height: 0;
    padding: 18px 0;
  }

  body[data-route="latest"] .latest-news-layout .feed-story.with-thumb {
    grid-template-columns: 118px minmax(0, 1fr);
    gap: 16px;
    min-height: 118px;
    padding: 18px 0;
  }

  body[data-route="latest"] .latest-news-layout .feed-thumb {
    grid-column: 1;
    grid-row: 1;
    width: 118px;
    height: 82px;
    border-radius: 8px;
  }

  body[data-route="latest"] .latest-news-layout .feed-copy {
    grid-column: 2;
    grid-row: 1;
    display: block;
  }

  body[data-route="latest"] .latest-news-layout .feed-story:not(.with-thumb) .feed-copy {
    grid-column: auto;
  }

  body[data-route="latest"] .latest-news-layout .feed-copy h2 {
    margin-bottom: 6px;
    font-size: 21px;
    line-height: 1.34;
    font-weight: 600;
  }

  body[data-route="latest"] .latest-news-layout .feed-copy .story-meta {
    display: flex;
    margin-top: 2px;
    font-size: 14px;
    line-height: 20px;
  }

  body[data-route="latest"] .latest-news-layout .feed-copy .tag-row {
    display: flex;
    flex-wrap: wrap;
    margin-top: 7px;
  }

  body[data-route="latest"] .latest-news-layout .inline-feed-ad {
    grid-template-columns: 118px minmax(0, 1fr);
    gap: 16px;
    min-height: 148px;
    padding: 16px 0;
  }

  body[data-route="latest"] .latest-news-layout .inline-ad-visual {
    width: 118px;
    height: 118px;
    border-radius: 10px;
    padding: 50px 10px 10px;
  }

  body[data-route="latest"] .latest-news-layout .inline-ad-visual b {
    top: 10px;
    left: 10px;
    font-size: 12px;
  }

  body[data-route="latest"] .latest-news-layout .inline-ad-copy strong {
    font-size: 20px;
    line-height: 1.25;
  }

  body[data-route="latest"] .latest-news-layout .inline-ad-copy small {
    margin-top: 10px;
    font-size: 14px;
  }

  .filter-row {
    display: none;
  }

  .news-grid {
    gap: 0;
  }

  .feature-image {
    border-radius: 5px;
  }

  .feature-card h1 {
    margin: 14px 0 8px;
    font-size: 27px;
    line-height: 1.18;
    font-weight: 600;
    text-align: center;
  }

  .feature-summary {
    display: block;
    margin: 0 0 6px;
    color: #505865;
    font-size: 16px;
    line-height: 1.35;
    text-align: center;
  }

  .feature-card .story-meta {
    display: flex;
    justify-content: center;
    font-size: 12px;
  }

  .mini-story h3,
  .plain-story h3,
  .latest-story h3 {
    font-size: 17px;
    line-height: 1.25;
    font-weight: 600;
  }

  .chart-thumb {
    display: none;
  }

  .mini-story,
  .plain-story,
  .latest-story {
    padding: 13px 0;
  }

  .story-meta,
  .latest-meta {
    font-size: 12px;
    font-weight: 400;
  }

  .symbol-pill {
    min-height: 19px;
    padding: 1px 7px;
    font-size: 11px;
  }

  .latest-card h2 {
    display: none;
  }

  .home-continuation {
    order: 4;
    margin-top: 12px;
    padding-top: 14px;
  }

  .home-section-title {
    grid-column: 1;
    margin-bottom: 8px;
    font-size: 20px;
  }

  .lead-zone,
  .lead-top {
    display: contents;
  }

  .feature-card {
    order: 1;
  }

  .stack-card {
    order: 2;
  }

  .latest-card {
    order: 3;
  }

  .home-continuation h2 {
    font-size: 20px;
  }

  .feed-page h1,
  .market-page h1,
  .data-main h1 {
    margin-bottom: 12px;
    font-size: 28px;
  }

  .feed-story,
  .compact-feed .feed-story {
    min-height: 88px;
    padding: 12px 0;
  }

  .feed-story.with-thumb,
  .compact-feed .feed-story.with-thumb {
    grid-template-columns: minmax(0, 1fr) 92px;
    gap: 12px;
  }

  .feed-thumb,
  .compact-feed .feed-thumb {
    grid-column: 2;
    grid-row: 1;
    width: 92px;
    height: 52px;
  }

  .feed-copy {
    grid-column: 1;
    grid-row: 1;
  }

  .feed-copy h2,
  .compact-feed .feed-copy h2 {
    font-size: 17px;
    line-height: 1.25;
    font-weight: 600;
  }

  .portfolio-layout .compact-feed .feed-copy h2,
  .portfolio-layout .compact-feed .feed-story.with-thumb .feed-copy h2 {
    white-space: normal;
  }

  .market-subnav {
    margin-bottom: 14px;
    font-size: 14px;
  }

  .market-sidebar {
    padding: 24px 16px;
  }

  .converter-grid,
  .author-grid {
    grid-template-columns: 1fr;
  }

  .quote-hero p {
    font-size: 38px;
  }

  .hot-stock {
    grid-template-columns: minmax(0, 1fr) 78px;
  }

  .hot-stock b {
    display: none;
  }

  .site-footer {
    grid-template-columns: 1fr;
    gap: 24px;
    padding: 24px 18px 34px;
  }
}

@media (max-width: 1100px) {
  .auth-hero {
    grid-template-columns: minmax(0, 1fr) minmax(350px, 400px);
    padding-right: 5vw;
    padding-left: 5vw;
  }

  .auth-visual-copy {
    left: 7vw;
  }

  .auth-mailbox {
    left: 28%;
  }

  .mail-header {
    grid-template-columns: 190px minmax(240px, 1fr) auto;
  }

  .mail-workspace {
    grid-template-columns: 200px minmax(0, 1fr);
  }
}

@media (max-width: 760px) {
  .auth-topbar {
    min-height: 64px;
    padding: 0 18px;
  }

  .auth-brand .brand-word {
    font-size: 27px;
  }

  .auth-topbar nav {
    display: none;
  }

  .auth-hero {
    grid-template-columns: minmax(0, 1fr);
    min-height: calc(100vh - 64px);
    margin: 0;
    padding: 24px 16px 64px;
  }

  .auth-visual-copy,
  .auth-mail-app,
  .auth-mailbox,
  .auth-storage {
    display: none;
  }

  .auth-visual::before {
    width: 42%;
  }

  .login-panel {
    grid-column: 1;
    width: min(430px, 100%);
    min-height: auto;
    margin: 0 auto;
    border-radius: 14px;
    padding: 32px 24px;
  }

  .login-panel h1 {
    margin-bottom: 26px;
    font-size: 24px;
  }

  .register-shell {
    min-height: calc(100vh - 64px);
    padding: 0;
  }

  .register-panel {
    width: 100%;
    min-height: calc(100vh - 64px);
    border-radius: 0;
    box-shadow: none;
    padding: 34px 24px 48px;
  }

  .register-panel h1 {
    font-size: 27px;
  }

  .register-intro {
    margin-bottom: 28px;
    font-size: 16px;
  }

  .register-fields input,
  .register-actions .auth-next {
    height: 54px;
  }

  .auth-options {
    align-items: flex-start;
    flex-direction: column;
    gap: 5px;
  }

  .mail-header {
    grid-template-columns: auto minmax(0, 1fr);
    gap: 12px;
    padding: 0 14px;
  }

  .mail-product strong,
  .mail-account span {
    display: none;
  }

  .mail-account {
    grid-column: 1 / -1;
    display: none;
  }

  .mail-workspace {
    display: block;
  }

  .mail-nav {
    display: flex;
    overflow-x: auto;
    flex-direction: row;
    gap: 4px;
    border-right: 0;
    border-bottom: 1px solid #e0e4e9;
    padding: 10px 12px;
  }

  .mail-nav a {
    flex: 0 0 auto;
    padding: 0 12px;
  }

  .mail-compose {
    flex: 0 0 auto;
    min-height: 42px;
    margin: 0;
    padding: 0 15px;
  }

  .mail-inbox {
    margin: 12px;
  }

  .mail-toolbar button:nth-of-type(n + 2) {
    display: none;
  }

  .mail-row {
    grid-template-columns: 18px 22px minmax(84px, 112px) minmax(0, 1fr);
    gap: 7px;
    padding: 0 10px;
  }

  .mail-row time {
    display: none;
  }

  .mail-subject small {
    display: none;
  }
}

@media (max-width: 900px) {
  .article-interstitial {
    grid-template-columns: auto minmax(0, 1fr) auto;
    width: min(680px, 100%);
  }

  .article-ad-art {
    display: none;
  }
}

@media (max-width: 680px) {
  .article-page,
  .article-stream .article-page {
    width: 100%;
    max-width: 100%;
    margin-left: 0;
  }

  .article-interstitial {
    grid-template-columns: 1fr auto;
    gap: 12px;
    min-height: 118px;
    margin-top: 34px;
    padding: 18px;
  }

  .article-interstitial > strong {
    grid-column: 1 / -1;
    grid-row: 2;
    font-size: 19px;
  }

  .article-interstitial > b {
    grid-column: 2;
    grid-row: 1;
  }

  .sidebar-quote-row {
    grid-template-columns: minmax(0, 1fr) 78px 100px;
  }
}
