@import url("https://fonts.googleapis.com/css2?family=IBM+Plex+Sans+Arabic:wght@500;600;700;800;900&display=swap");

:root {
  --bg: #f4f0e8;
  --panel: #0f1217;
  --panel-soft: #171a1f;
  --panel-accent: #1f242a;
  --brand: #f6a31a;
  --surface: #ffffff;
  --surface-soft: #f7f4ef;
  --text: #111111;
  --muted: #8a857e;
  --line: #d9d2c7;
  --green: #5de08b;
  --red: #ff6b70;
  --gold: #d6c36b;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: Inter, Arial, Helvetica, sans-serif;
}

body {
  min-height: 100vh;
  overflow-x: clip;
}

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

.page-shell {
  width: 100%;
}

.site-header {
  background: #090b0e;
  color: #ffffff;
}

.header-search-band {
  background: var(--brand);
}

.header-search-inner {
  width: min(1544px, calc(100% - 56px));
  margin: 0 auto;
  padding: 4px 0 5px;
}

.subnav-band {
  background: #090b0e;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.subnav-inner {
  width: min(1544px, calc(100% - 56px));
  margin: 0 auto;
  padding: 10px 0 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.subnav {
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
  gap: clamp(16px, 2.2vw, 34px);
  flex-wrap: wrap;
}

.subnav a {
  color: #ffffff;
  font-size: 16px;
  font-weight: 600;
}

.subnav-dropdown {
  position: relative;
  display: inline-flex;
  align-items: center;
  padding-bottom: 10px;
  margin-bottom: -10px;
}

.subnav-dropdown-trigger {
  color: #ffffff;
  font-size: 16px;
  font-weight: 600;
}

.subnav-dropdown::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 100%;
  height: 14px;
}

.subnav-dropdown-menu {
  position: absolute;
  top: calc(100% + 2px);
  left: 0;
  min-width: 220px;
  padding: 10px;
  border-radius: 18px;
  background: #13181d;
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.28);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(4px);
  transition: opacity 150ms ease, transform 150ms ease, visibility 0s linear 220ms;
  z-index: 40;
}

.subnav-dropdown-menu-root {
  min-width: 224px;
}

.subnav-dropdown:hover .subnav-dropdown-menu,
.subnav-dropdown:focus-within .subnav-dropdown-menu {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateY(0);
  transition-delay: 0s;
}

.subnav-dropdown-menu a {
  display: block;
  padding: 10px 12px;
  border-radius: 12px;
  color: #ffffff;
  font-size: 14px;
  font-weight: 700;
}

.subnav-dropdown-menu a:hover {
  background: rgba(255, 255, 255, 0.08);
}

.subnav-submenu {
  position: relative;
}

.subnav-submenu::after {
  content: "";
  position: absolute;
  top: -10px;
  left: 100%;
  width: 24px;
  height: calc(100% + 20px);
}

.subnav-submenu-trigger {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.subnav-submenu-trigger::after {
  content: "›";
  color: rgba(255, 255, 255, 0.72);
  font-size: 16px;
  line-height: 1;
}

.subnav-submenu-menu {
  position: absolute;
  top: 0;
  left: calc(100% + 4px);
  min-width: 220px;
  padding: 10px;
  border-radius: 18px;
  background: #13181d;
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.28);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateX(-4px);
  transition: opacity 140ms ease, transform 140ms ease, visibility 0s linear 320ms;
  z-index: 45;
}

.subnav-submenu:hover .subnav-submenu-menu,
.subnav-submenu:focus-within .subnav-submenu-menu {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateX(0);
  transition-delay: 0s;
}

.subnav-last-update {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin-left: auto;
  color: #ffffff;
  white-space: nowrap;
  flex-shrink: 0;
}

.subnav-last-update-label {
  color: #a7b0bc;
  font-size: 13px;
  font-weight: 700;
}

.subnav-last-update strong {
  font-size: 15px;
  font-weight: 800;
  color: #ffffff;
}

.site-footer {
  width: min(1544px, calc(100% - 32px));
  margin: 28px auto 0;
  padding: 22px;
  border-radius: 30px 30px 0 0;
  background:
    radial-gradient(circle at 10% 0%, rgba(93, 224, 139, 0.14), transparent 28%),
    radial-gradient(circle at 90% 0%, rgba(246, 163, 26, 0.16), transparent 30%),
    linear-gradient(135deg, #090b0e 0%, #121820 55%, #0b0f14 100%);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-bottom: 0;
  box-shadow: 0 -18px 42px rgba(8, 12, 18, 0.12);
}

.site-footer-inner {
  display: grid;
  grid-template-columns: minmax(280px, 0.9fr) minmax(0, 1.4fr);
  gap: clamp(18px, 4vw, 64px);
  align-items: start;
}

.site-footer-brand {
  display: grid;
  gap: 12px;
}

.site-footer-logo {
  width: max-content;
  color: #ffffff;
  font-size: clamp(36px, 5vw, 64px);
  line-height: 0.9;
  font-weight: 950;
  letter-spacing: -0.08em;
}

.site-footer-brand p {
  max-width: 560px;
  margin: 0;
  color: rgba(255, 255, 255, 0.72);
  font-size: clamp(15px, 1.45vw, 21px);
  line-height: 1.45;
  font-weight: 750;
}

.site-footer-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.site-footer-badges span {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 7px 11px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: rgba(255, 255, 255, 0.82);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.site-footer-nav {
  display: grid;
  grid-template-columns: repeat(3, minmax(130px, 1fr));
  gap: 16px;
}

.site-footer-nav section {
  display: grid;
  gap: 8px;
}

.site-footer-nav h2 {
  margin: 0 0 4px;
  color: rgba(255, 255, 255, 0.42);
  font-size: 12px;
  font-weight: 950;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.site-footer-nav a {
  width: max-content;
  max-width: 100%;
  color: rgba(255, 255, 255, 0.86);
  font-size: 15px;
  font-weight: 850;
  line-height: 1.2;
  transition: color 160ms ease, transform 160ms ease;
}

.site-footer-nav a:hover {
  color: var(--green);
  transform: translateX(3px);
}

.site-footer-bottom {
  margin-top: 20px;
  padding-top: 14px;
  border-top: 1px solid rgba(255, 255, 255, 0.09);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  color: rgba(255, 255, 255, 0.52);
  font-size: 12px;
  font-weight: 800;
}


.site-header-inner {
  width: min(1544px, calc(100% - 56px));
  margin: 0 auto;
  min-height: 100px;
  display: grid;
  grid-template-columns: minmax(140px, 164px) minmax(0, 1fr) auto;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.language-switch {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 0 16px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.08);
  color: #ffffff;
  font-size: 14px;
  font-weight: 900;
  text-decoration: none;
  letter-spacing: 0.02em;
  white-space: nowrap;
}

.language-switch:hover {
  background: rgba(255, 255, 255, 0.14);
}

body.lang-ar {
  font-family: "IBM Plex Sans Arabic", "Noto Kufi Arabic", "Cairo", "Tahoma", Arial, sans-serif;
  font-weight: 600;
  letter-spacing: -0.012em;
  -webkit-font-smoothing: antialiased;
  text-rendering: geometricPrecision;
}

body.lang-ar h1,
body.lang-ar h2,
body.lang-ar h3,
body.lang-ar .news-title,
body.lang-ar .page-title,
body.lang-ar .homepage-market-title,
body.lang-ar .homepage-summary-value,
body.lang-ar .market-card-value,
body.lang-ar .metric-value,
body.lang-ar .stock-price,
body.lang-ar .news-daily-brief-title,
body.lang-ar .news-flat-title,
body.lang-ar .stock-news-title,
body.lang-ar .popup-title,
body.lang-ar .insider-page-title {
  font-family: "IBM Plex Sans Arabic", "Noto Kufi Arabic", "Cairo", "Tahoma", Arial, sans-serif;
  font-weight: 800;
  letter-spacing: -0.035em;
}

body.lang-ar .subnav a,
body.lang-ar .language-switch,
body.lang-ar .chip,
body.lang-ar .news-filter-chip,
body.lang-ar .news-page-filter-pill,
body.lang-ar .market-card-label,
body.lang-ar .metric-label,
body.lang-ar .news-meta,
body.lang-ar .eyebrow {
  font-family: "IBM Plex Sans Arabic", "Noto Kufi Arabic", "Cairo", "Tahoma", Arial, sans-serif;
  font-weight: 800;
}

body.lang-ar .subnav,
body.lang-ar .site-footer-nav,
body.lang-ar .news-flat-item,
body.lang-ar .stock-news-item,
body.lang-ar .homepage-hero,
body.lang-ar .news-brief-summary,
body.lang-ar .news-page-search-card,
body.lang-ar .news-page-filter-card {
  text-align: right;
}

body.lang-ar .search-strip,
body.lang-ar .news-brief-search-row,
body.lang-ar .auth-panel-head,
body.lang-ar .news-popup-head,
body.lang-ar .homepage-analysis-head,
body.lang-ar .live-market-panel-head {
  direction: rtl;
}

body.lang-ar .subnav-dropdown-menu,
body.lang-ar .subnav-submenu-menu {
  left: auto;
  right: 0;
}

.header-indices {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  min-width: 0;
  overflow-x: auto;
  scrollbar-width: none;
}

.header-indices::-webkit-scrollbar {
  display: none;
}

.header-indices .metric-card,
.header-indices .breadth-card {
  flex: 0 0 auto;
  min-width: 176px;
}

.logo-slot {
  min-width: 164px;
  height: 34px;
  display: inline-flex;
  align-items: center;
  color: #ffffff;
  font-family: Blackpast, Inter, Arial, Helvetica, sans-serif;
  font-size: 24px;
  font-weight: 800;
  letter-spacing: 0.02em;
}


.login-wrap {
  display: flex;
  align-items: center;
  justify-content: flex-end;
}

.login-button {
  border: none;
  background: transparent;
  color: #ffffff;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font: inherit;
  font-size: 17px;
  font-weight: 700;
  cursor: pointer;
  padding: 0;
}

.login-icon {
  width: 32px;
  height: 32px;
  border-radius: 12px;
  background:
    radial-gradient(circle at 50% 38%, rgba(255, 255, 255, 0.92) 0 2px, transparent 2.2px),
    linear-gradient(180deg, rgba(246, 163, 26, 0.22), rgba(94, 224, 139, 0.08));
  border: 1px solid rgba(246, 163, 26, 0.34);
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.04),
    0 0 18px rgba(246, 163, 26, 0.12);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.login-icon::before {
  content: "";
  position: absolute;
  inset: 6px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  clip-path: polygon(24% 0, 76% 0, 100% 24%, 100% 76%, 76% 100%, 24% 100%, 0 76%, 0 24%);
}

.login-icon::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 7px;
  width: 15px;
  height: 9px;
  transform: translateX(-50%);
  border-radius: 10px 10px 7px 7px;
  border: 1.6px solid rgba(255, 255, 255, 0.9);
  border-top-color: transparent;
  box-shadow: 0 -7px 0 -5px rgba(255, 255, 255, 0.9);
}

.login-button:hover .login-icon {
  border-color: rgba(246, 163, 26, 0.5);
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.05),
    0 0 22px rgba(246, 163, 26, 0.18);
}

.metric-card,
.breadth-card {
  min-height: 50px;
  background: linear-gradient(180deg, rgba(29, 35, 44, 0.92), rgba(20, 24, 31, 0.96));
  border: 1px solid rgba(255, 255, 255, 0.06);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
  border-radius: 18px;
  padding: 8px 12px 9px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-width: 0;
}

.strip-link {
  position: relative;
  transition: transform 140ms ease, border-color 140ms ease, background-color 140ms ease, box-shadow 140ms ease;
  border: 1px solid transparent;
  cursor: pointer;
}

.strip-link:hover {
  transform: translateY(-2px);
  border-color: rgba(255, 255, 255, 0.08);
  box-shadow: 0 10px 22px rgba(0, 0, 0, 0.22);
}

.strip-link:focus-visible {
  outline: 2px solid rgba(255, 183, 37, 0.9);
  outline-offset: 2px;
}

.metric-label {
  margin: 0;
  color: #bcc5d1;
  font-size: 12px;
  font-weight: 700;
}

.metric-main {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px;
}

.metric-main.single {
  justify-content: flex-start;
}

.metric-main strong,
.breadth-card strong {
  color: #f7f9fb;
  font-size: clamp(18px, 1.45vw, 22px);
  line-height: 1;
  font-weight: 800;
  min-width: 0;
}

.metric-change {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 2px;
  flex-shrink: 0;
}

.metric-change span {
  font-size: clamp(11px, 0.85vw, 13px);
  line-height: 1;
  font-weight: 700;
}

.positive .metric-change,
.positive strong.tone,
.breadth-card.positive strong {
  color: var(--green);
}

.negative .metric-change,
.negative strong.tone,
.breadth-card.negative strong {
  color: var(--red);
}

.neutral .metric-change,
.neutral strong.tone,
.breadth-card.neutral strong {
  color: var(--gold);
}

.breadth-card {
  justify-content: center;
  gap: 6px;
}

.turnover-status-card {
  justify-content: center;
}

.turnover-status-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 1px minmax(0, 0.84fr);
  align-items: center;
  gap: 10px;
  width: 100%;
}

.turnover-status-pane {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
}

.turnover-status-divider {
  width: 1px;
  height: 28px;
  background: rgba(255, 255, 255, 0.12);
}

.turnover-status-card .tone {
  font-size: clamp(14px, 1vw, 16px);
}

.turnover-status-card.open .tone {
  color: var(--green);
}

.turnover-status-card.closed .tone {
  color: var(--red);
}

.breadth-card.positive {
  background: linear-gradient(180deg, rgba(21, 35, 26, 0.96), rgba(16, 28, 20, 0.98));
}

.breadth-card.negative {
  background: linear-gradient(180deg, rgba(37, 24, 28, 0.96), rgba(29, 18, 22, 0.98));
}

.breadth-card.neutral {
  background: linear-gradient(180deg, rgba(24, 28, 35, 0.96), rgba(17, 21, 27, 0.98));
}

.breadth-card.positive .metric-label {
  color: #bff0cf;
}

.breadth-card.negative .metric-label {
  color: #ffc2c5;
}

.breadth-card.neutral .metric-label {
  color: #a7b0bc;
}

.search-strip {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 14px;
  min-height: 38px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 4px 8px 4px 14px;
}

.search-input-wrap {
  position: relative;
  flex: 1 1 auto;
  min-width: 0;
}

.search-input {
  width: 100%;
  border: none;
  background: transparent;
  color: var(--text);
  font: inherit;
  font-size: clamp(13px, 1.1vw, 16px);
  font-weight: 500;
  outline: none;
  padding: 1px 0;
}

.search-input::placeholder {
  color: var(--muted);
  opacity: 1;
}

.search-results {
  position: absolute;
  top: calc(100% + 10px);
  left: -6px;
  right: 0;
  z-index: 20;
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 20px;
  box-shadow: 0 18px 44px rgba(14, 18, 23, 0.14);
  padding: 10px;
}

.search-result-item {
  width: 100%;
  border: none;
  background: transparent;
  border-radius: 14px;
  padding: 12px 14px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
  text-align: left;
  cursor: pointer;
}

.search-result-item:hover,
.search-result-item.active {
  background: #f4f0e8;
}

.search-result-code {
  color: #0e1217;
  font-size: 15px;
  font-weight: 800;
}

.search-result-name {
  color: #6f6962;
  font-size: 14px;
  font-weight: 500;
}

.search-empty {
  color: #7d776f;
  font-size: 14px;
  padding: 12px 14px;
}

.search-button {
  border: none;
  background: #0e1217;
  color: #ffffff;
  min-width: 110px;
  min-height: 28px;
  border-radius: 10px;
  font: inherit;
  font-size: 14px;
  font-weight: 700;
  flex-shrink: 0;
  cursor: pointer;
}

.auth-panel {
  position: fixed;
  inset: 0;
  z-index: 60;
  background: rgba(9, 11, 14, 0.5);
  backdrop-filter: blur(6px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  overflow: auto;
}

.auth-card {
  width: min(520px, calc(100vw - 32px));
  max-height: min(calc(100vh - 48px), 920px);
  overflow: auto;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 24px;
  padding: 22px;
  background: #fbfaf6;
  color: var(--text);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.24);
}

.auth-panel-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
}

.auth-kicker {
  margin: 0 0 4px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.auth-title {
  margin: 0;
  font-size: 28px;
  font-weight: 800;
}

.auth-close {
  border: none;
  background: #171a1f;
  color: #ffffff;
  width: 36px;
  height: 36px;
  border-radius: 999px;
  font: inherit;
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
}

.news-popup-panel {
  position: fixed;
  inset: 0;
  z-index: 75;
  background: rgba(9, 11, 14, 0.58);
  backdrop-filter: blur(6px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.news-popup-card {
  width: min(760px, calc(100% - 32px));
  max-height: min(80vh, 900px);
  overflow: auto;
  border: 1px solid rgba(17, 17, 17, 0.08);
  border-radius: 24px;
  padding: 22px;
  background: #fbfaf6;
  color: #111111;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.24);
}

.news-popup-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
}

.news-popup-kicker {
  margin: 0 0 6px;
  color: #6c655c;
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.news-popup-title {
  margin: 0;
  color: #111111;
  font-size: 28px;
  line-height: 1.2;
  font-weight: 800;
}

.news-popup-meta {
  margin: 8px 0 0;
  color: #5d5751;
  font-size: 14px;
  font-weight: 700;
}

.news-popup-close {
  border: none;
  background: #171a1f;
  color: #ffffff;
  width: 36px;
  height: 36px;
  border-radius: 999px;
  font: inherit;
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
  flex-shrink: 0;
}

.news-popup-body {
  color: #1c1c1c;
  font-size: 15px;
  line-height: 1.55;
  font-weight: 500;
  white-space: normal;
}

.news-popup-section + .news-popup-section {
  margin-top: 12px;
}

.news-popup-section-label {
  margin: 0 0 5px;
  color: #746b61;
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.news-popup-brief {
  margin: 0;
  color: #171717;
  font-size: 17px;
  line-height: 1.42;
  font-weight: 700;
}

.news-popup-feed-title {
  margin: 0;
  color: #34302b;
  font-size: 16px;
  line-height: 1.4;
  font-weight: 600;
}

.news-popup-actions {
  margin: 12px 0;
}

.news-popup-action-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 18px;
  border-radius: 999px;
  background: #171a1f;
  color: #ffffff;
  text-decoration: none;
  font-size: 14px;
  font-weight: 800;
}

.news-popup-action-link:hover {
  background: #272c33;
}

.news-popup-action-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.14);
  font-size: 15px;
}

.news-popup-detail {
  color: #1c1c1c;
  font-size: 15px;
  line-height: 1.5;
  font-weight: 500;
}

.stock-news-item-popup {
  width: 100%;
  text-align: left;
  cursor: pointer;
  font: inherit;
}

.stock-news-item-popup:hover {
  background: #f2ece2;
}

.auth-tabs {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #f1ece3;
  border-radius: 999px;
  padding: 4px;
  margin-bottom: 18px;
}

.auth-tab {
  border: none;
  background: transparent;
  color: #615a51;
  min-width: 108px;
  min-height: 38px;
  border-radius: 999px;
  font: inherit;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
}

.auth-tab.active {
  background: #090b0e;
  color: #ffffff;
}

.hidden {
  display: none;
}

.auth-form {
  display: grid;
  gap: 12px;
}

.auth-form.hidden {
  display: none;
}

.auth-field {
  display: grid;
  gap: 8px;
  font-weight: 700;
}

.auth-field input {
  width: 100%;
  min-height: 48px;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 0 16px;
  background: #ffffff;
  color: var(--text);
  font: inherit;
  font-size: 15px;
}

.auth-check {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  color: #4d4740;
  font-size: 14px;
  font-weight: 500;
}

.auth-check input {
  margin-top: 3px;
}

.auth-note {
  margin: 0;
  color: #5e5850;
  font-size: 14px;
  line-height: 1.5;
}

.auth-criteria {
  border: 1px solid #e7dfd4;
  border-radius: 14px;
  padding: 12px 14px;
  background: #f7f2ea;
}

.auth-criteria-title {
  margin: 0 0 6px;
  color: #4f493f;
  font-size: 13px;
  font-weight: 800;
}

.auth-criteria-list {
  margin: 0;
  padding-left: 18px;
  color: #615950;
  font-size: 13px;
  line-height: 1.55;
}

.auth-criteria-item {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 8px;
  margin-left: -18px;
  color: #7b7268;
}

.auth-criteria-icon {
  width: 18px;
  flex: 0 0 18px;
  font-size: 13px;
  font-weight: 900;
  color: #b6484c;
}

.auth-criteria-item.is-met {
  color: #345f41;
}

.auth-criteria-item.is-met .auth-criteria-icon {
  color: #16804a;
}

.auth-inline-actions {
  display: flex;
  align-items: center;
  justify-content: flex-start;
}

.auth-submit,
.auth-logout {
  border: none;
  min-height: 48px;
  padding: 0 18px;
  border-radius: 14px;
  background: #090b0e;
  color: #ffffff;
  font: inherit;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
}

.auth-settings-button {
  border: none;
  min-height: 48px;
  padding: 0 18px;
  border-radius: 14px;
  background: #efe8dc;
  color: #111111;
  font: inherit;
  font-size: 15px;
  font-weight: 800;
  cursor: pointer;
  box-shadow: inset 0 0 0 1px rgba(17, 17, 17, 0.08);
}

.auth-settings-button:hover {
  background: #e7dece;
}

.auth-link-button {
  border: none;
  padding: 0;
  background: transparent;
  color: #171a1f;
  font: inherit;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.01em;
  cursor: pointer;
}

.auth-link-button:hover {
  color: #f6a31a;
}

.auth-link-button-prominent {
  min-height: 42px;
  padding: 0 16px;
  border-radius: 12px;
  background: #f7efe3;
  color: #111111;
  font-size: 16px;
  font-weight: 900;
  box-shadow: inset 0 0 0 1px rgba(17, 17, 17, 0.08);
}

.auth-link-button-prominent:hover {
  background: #f3e4cf;
  color: #111111;
}

.auth-link-button-accent {
  color: #d18a07;
  font-size: 16px;
  font-weight: 800;
}

.auth-link-button-accent:hover {
  color: #ab6f00;
}

@media (max-width: 900px) {
  .auth-panel {
    padding: 16px;
    align-items: stretch;
  }

  .auth-card {
    width: 100%;
    max-height: calc(100vh - 32px);
    border-radius: 20px;
    padding: 18px;
    margin: auto;
  }

  .auth-title {
    font-size: 24px;
  }

  .auth-tabs {
    width: 100%;
    display: grid;
    grid-template-columns: 1fr 1fr;
  }

  .auth-tab {
    min-width: 0;
  }
}

.auth-footer {
  margin-top: 16px;
  display: grid;
  gap: 12px;
}

.auth-status {
  margin: 0;
  font-size: 14px;
  color: #666058;
}

.auth-status.error {
  color: #bb2b31;
}

.auth-status.success {
  color: #12703c;
}

.settings-shell {
  width: min(1544px, calc(100% - 56px));
  margin: 18px auto 48px;
  display: grid;
  gap: 20px;
}

.settings-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(280px, 0.8fr);
  gap: 20px;
}

.settings-hero-copy,
.settings-hero-card,
.settings-panel,
.settings-account-card,
.settings-access-gate {
  background: var(--surface);
  border: 1px solid rgba(17, 17, 17, 0.08);
  border-radius: 28px;
  box-shadow: 0 18px 44px rgba(14, 18, 23, 0.08);
}

.settings-hero-copy {
  padding: 30px;
}

.settings-hero-card {
  padding: 28px;
  display: grid;
  gap: 14px;
  align-content: start;
}

.settings-hero-card strong {
  font-size: 34px;
  font-weight: 900;
}

.settings-hero-card span,
.settings-hero-card p {
  color: #6d665d;
}

.settings-main {
  display: grid;
  grid-template-columns: minmax(250px, 0.52fr) minmax(0, 1fr);
  gap: 20px;
  align-items: start;
}

.settings-account-card,
.settings-panel {
  padding: 24px;
}

.settings-account-card {
  display: grid;
  gap: 18px;
  position: sticky;
  top: 18px;
}

.settings-account-row {
  display: grid;
  gap: 6px;
}

.settings-account-label {
  color: #857d74;
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.settings-account-value {
  color: #111111;
  font-size: 18px;
  font-weight: 800;
  word-break: break-word;
}

.settings-account-note {
  margin: 0;
  color: #655e56;
  font-size: 14px;
  line-height: 1.5;
}

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

.settings-profile-stat {
  display: grid;
  gap: 8px;
  padding: 16px;
  border-radius: 18px;
  background: #f8f2e8;
  border: 1px solid rgba(17, 17, 17, 0.08);
}

.settings-profile-stat-label {
  color: #857b70;
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.settings-profile-stat strong {
  color: #111111;
  font-size: 25px;
  font-weight: 900;
  line-height: 1;
}

.settings-profile-stat p {
  margin: 0;
  color: #665f56;
  font-size: 13px;
  line-height: 1.45;
}

.settings-panels {
  display: grid;
  gap: 20px;
}

.settings-panel-head {
  display: grid;
  gap: 6px;
  margin-bottom: 18px;
}

.settings-panel-head strong {
  font-size: 22px;
  font-weight: 900;
}

.settings-panel-head span,
.settings-panel-head p {
  color: #6e665d;
  font-size: 14px;
  line-height: 1.5;
  margin: 0;
}

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

.settings-notification-brief {
  display: grid;
  gap: 14px;
  padding: 18px 20px;
  border-radius: 22px;
  border: 1px solid rgba(17, 17, 17, 0.08);
  background:
    linear-gradient(135deg, rgba(17, 17, 17, 0.05), rgba(255, 255, 255, 0) 46%),
    #faf6ef;
}

.settings-notification-brief-copy {
  display: grid;
  gap: 6px;
}

.settings-notification-brief-copy strong {
  color: #111111;
  font-size: 18px;
  font-weight: 900;
}

.settings-notification-brief-copy p,
.settings-inline-status {
  margin: 0;
  color: #6b635a;
  font-size: 14px;
  line-height: 1.5;
}

.settings-inline-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.settings-secondary-button {
  border: none;
  min-height: 44px;
  padding: 0 18px;
  border-radius: 999px;
  background: #111111;
  color: #ffffff;
  font: inherit;
  font-size: 13px;
  font-weight: 800;
  cursor: pointer;
}

.settings-secondary-button:disabled {
  opacity: 0.6;
  cursor: progress;
}

.settings-secondary-button-muted {
  background: #e7dfd2;
  color: #111111;
}

.settings-field {
  display: grid;
  gap: 8px;
}

.settings-field span {
  color: #111111;
  font-size: 15px;
  font-weight: 800;
}

.settings-field input {
  width: 100%;
  min-height: 52px;
  border-radius: 18px;
  border: 1px solid #d9d2c7;
  padding: 0 18px;
  font: inherit;
  font-size: 15px;
  background: #ffffff;
  color: #111111;
}

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

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

.settings-select {
  width: 100%;
  height: 48px;
  border-radius: 14px;
  border: 1px solid #d9d2c7;
  padding: 0 14px;
  font: inherit;
  font-size: 14px;
  font-weight: 800;
  background: #ffffff;
  color: #111111;
}

.settings-password-strength-card {
  display: grid;
  gap: 12px;
  padding: 16px 18px;
  border-radius: 20px;
  border: 1px solid rgba(17, 17, 17, 0.08);
  background: #fbf7ef;
}

.settings-password-strength-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.settings-password-strength-head strong {
  color: #111111;
  font-size: 16px;
  font-weight: 900;
}

.settings-password-strength-head span {
  color: #6b6258;
  font-size: 13px;
  font-weight: 800;
}

.settings-password-strength-bar {
  width: 100%;
  height: 10px;
  border-radius: 999px;
  background: #e8ded0;
  overflow: hidden;
}

.settings-password-strength-bar span {
  display: block;
  width: 0;
  height: 100%;
  border-radius: inherit;
  background: #d9871c;
  transition: width 180ms ease, background 180ms ease;
}

.settings-password-strength-bar span[data-tone="weak"] {
  background: #bb2b31;
}

.settings-password-strength-bar span[data-tone="good"] {
  background: #d9871c;
}

.settings-password-strength-bar span[data-tone="strong"] {
  background: #12703c;
}

.settings-notification-table {
  width: 100%;
  border-collapse: collapse;
  border-spacing: 0;
  overflow: hidden;
  border-radius: 18px;
  border: 1px solid rgba(17, 17, 17, 0.08);
}

.settings-notification-table th,
.settings-notification-table td {
  padding: 14px 16px;
  text-align: left;
  border-bottom: 1px solid rgba(17, 17, 17, 0.08);
}

.settings-notification-table tr:last-child th,
.settings-notification-table tr:last-child td {
  border-bottom: none;
}

.settings-notification-table thead th {
  background: #f7f2ea;
  color: #5f584f;
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.settings-notification-table tbody th {
  color: #111111;
  font-size: 15px;
  font-weight: 800;
}

.settings-toggle-cell {
  width: 140px;
  text-align: center;
}

.settings-checkbox {
  width: 18px;
  height: 18px;
  accent-color: #111111;
}

.settings-push-note {
  margin: 12px 0 0;
  color: #7b746c;
  font-size: 13px;
  font-weight: 700;
}

.settings-alert-rule-card {
  margin-top: 16px;
  padding: 18px;
  border-radius: 22px;
  border: 1px solid rgba(17, 17, 17, 0.08);
  background:
    linear-gradient(135deg, rgba(255, 169, 30, 0.12), rgba(255, 255, 255, 0) 42%),
    #fbf6ee;
}

.settings-alert-rule-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 16px;
}

.settings-alert-rule-head strong {
  display: block;
  color: #111111;
  font-size: 18px;
  font-weight: 900;
}

.settings-alert-rule-head span,
.settings-switch-row span,
.settings-rule-check span {
  color: #6b6258;
  font-size: 13px;
  font-weight: 800;
}

.settings-switch-row,
.settings-rule-check {
  display: inline-flex;
  align-items: center;
  gap: 9px;
}

.settings-alert-rule-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 14px;
}

.settings-rule-check {
  border: 1px solid rgba(17, 17, 17, 0.08);
  border-radius: 16px;
  padding: 12px 14px;
  background: rgba(255, 255, 255, 0.72);
}

.settings-submit {
  border: none;
  min-height: 50px;
  padding: 0 18px;
  border-radius: 14px;
  background: #090b0e;
  color: #ffffff;
  font: inherit;
  font-size: 15px;
  font-weight: 800;
  cursor: pointer;
}

.settings-submit:disabled {
  opacity: 0.65;
  cursor: progress;
}

.settings-status {
  min-height: 22px;
  margin: 0;
  color: #655f57;
  font-size: 14px;
  font-weight: 700;
}

.settings-status.success {
  color: #12703c;
}

.settings-status.error {
  color: #bb2b31;
}

.settings-access-gate {
  padding: 30px;
  display: grid;
  gap: 14px;
}

.settings-access-gate h2 {
  margin: 0;
  font-size: 34px;
  line-height: 1.08;
}

.settings-access-gate p {
  margin: 0;
  color: #655f57;
  font-size: 15px;
  line-height: 1.6;
}

.settings-access-button {
  border: none;
  min-height: 48px;
  padding: 0 20px;
  border-radius: 999px;
  background: #090b0e;
  color: #ffffff;
  font: inherit;
  font-size: 15px;
  font-weight: 800;
  cursor: pointer;
  justify-self: start;
}

@media (max-width: 1100px) {
  .settings-hero,
  .settings-main {
    grid-template-columns: 1fr;
  }

  .settings-account-card {
    position: static;
  }
}

@media (max-width: 720px) {
  .settings-shell {
    width: min(100%, calc(100% - 28px));
  }

  .settings-hero-copy,
  .settings-hero-card,
  .settings-account-card,
  .settings-panel,
  .settings-access-gate {
    border-radius: 22px;
    padding: 20px;
  }

  .settings-grid-two,
  .settings-grid-three,
  .settings-alert-rule-grid {
    grid-template-columns: 1fr;
  }

  .settings-profile-grid {
    grid-template-columns: 1fr;
  }

  .settings-notification-table th,
  .settings-notification-table td {
    padding: 12px;
  }
}

.stock-shell {
  width: min(1480px, calc(100% - 40px));
  margin: 18px auto 48px;
}

.stock-hero {
  background: #090b0e;
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 28px;
  padding: 28px;
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(280px, 0.8fr);
  gap: 20px;
  color: #ffffff;
}

.stock-overview {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.stock-eyebrow {
  margin: 0 0 8px;
  color: #9ba4af;
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.stock-title {
  margin: 0;
  color: #ffffff;
  font-size: clamp(20px, 2.25vw, 31px);
  font-weight: 800;
  line-height: 1.02;
}

.stock-subtitle {
  margin: 8px 0 0;
  color: #c0c8d0;
  font-size: 15px;
  font-weight: 600;
}

.stock-meta {
  margin-top: 18px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.stock-info-card {
  background: #14181d;
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 18px;
  padding: 14px 16px;
  min-width: 0;
}

.stock-info-card span {
  display: block;
  color: #97a0ab;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

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

.stock-info-head-side {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.stock-info-head em {
  color: #97a0ab;
  font-size: 9px;
  line-height: 1;
  font-style: normal;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  opacity: 0.9;
}

.stock-info-help-wrap {
  position: relative;
  display: inline-flex;
  align-items: center;
}

.stock-info-help {
  width: 18px;
  height: 18px;
  border: 1px solid rgba(255,255,255,0.18);
  border-radius: 999px;
  background: transparent;
  color: #97a0ab;
  font-size: 11px;
  line-height: 1;
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  cursor: help;
}

.stock-info-tooltip {
  position: absolute;
  right: 0;
  top: calc(100% + 8px);
  width: 220px;
  padding: 10px 12px;
  border-radius: 10px;
  background: #1a2027;
  border: 1px solid rgba(255,255,255,0.08);
  color: #d8dee6;
  font-size: 11px;
  line-height: 1.35;
  font-weight: 500;
  box-shadow: 0 14px 28px rgba(0,0,0,0.28);
  opacity: 0;
  pointer-events: none;
  transform: translateY(-4px);
  transition: opacity 160ms ease, transform 160ms ease;
  z-index: 20;
}

.stock-info-help-wrap:hover .stock-info-tooltip,
.stock-info-help-wrap:focus-within .stock-info-tooltip {
  opacity: 1;
  transform: translateY(0);
}

.stock-info-head em {
  color: #97a0ab;
  font-size: 9px;
  line-height: 1;
  font-style: normal;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  opacity: 0.9;
}

.stock-info-head + strong {
  margin-top: 10px;
}


.stock-info-card strong {
  display: block;
  margin-top: 8px;
  color: #ffffff;
  font-size: 17px;
  line-height: 1.18;
  font-weight: 800;
  white-space: normal;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.stock-info-card strong.signal-positive {
  color: var(--green);
}

.stock-info-card strong.signal-negative {
  color: var(--red);
}

.stock-info-card strong.signal-watch {
  color: var(--gold);
}

.stock-info-card strong.signal-flash {
  animation: signalFlash 1.1s ease-in-out infinite alternate;
}

@keyframes signalFlash {
  from { opacity: 1; filter: drop-shadow(0 0 0 rgba(0,0,0,0)); }
  to { opacity: 0.72; filter: drop-shadow(0 0 10px currentColor); }
}

.stock-stats {
  background: #13181e;
  color: #ffffff;
  border-radius: 24px;
  padding: 22px 22px 18px;
  display: grid;
  gap: 14px;
  align-content: start;
}

.stock-price {
  display: flex;
  align-items: baseline;
  gap: 12px;
  flex-wrap: wrap;
}

.stock-currency-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 30px;
  padding: 0 10px;
  border-radius: 999px;
  background: #1b2128;
  color: #cfd6dd;
  font-size: 12px;
  line-height: 1;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.stock-index-badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 30px;
  padding: 0 12px;
  border-radius: 999px;
  background: rgba(15, 123, 89, 0.16);
  border: 1px solid rgba(68, 200, 149, 0.28);
  color: #8ef0c2;
  font-size: 12px;
  line-height: 1;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.stock-index-badge.hidden {
  display: none;
}

.stock-index-badge-dot {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: #42df9e;
  box-shadow: 0 0 14px rgba(66, 223, 158, 0.75);
}

.stock-index-weight {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 0 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #d9e0e7;
  font-size: 12px;
  line-height: 1;
  font-weight: 800;
  white-space: nowrap;
}

.stock-price strong {
  font-size: clamp(34px, 4vw, 48px);
  line-height: 1;
  font-weight: 800;
}

.stock-index-weight.hidden {
  display: none;
}

.stock-change {
  font-size: 20px;
  line-height: 1;
  font-weight: 700;
}

.stock-change.positive {
  color: var(--green);
}

.stock-change.negative {
  color: var(--red);
}

.stock-change.neutral {
  color: var(--gold);
}

.stock-chart-panel {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.stock-chart-header {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.stock-chart-title {
  color: #ffffff;
  font-size: 18px;
  line-height: 1.15;
  font-weight: 800;
}

.stock-chart-tone {
  font-size: 13px;
  font-weight: 700;
}

.stock-chart-tone.positive { color: var(--green); }
.stock-chart-tone.negative { color: var(--red); }
.stock-chart-tone.neutral { color: var(--gold); }

.stock-chart-box {
  position: relative;
  min-height: 220px;
  background: #14181d;
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 18px;
  padding: 14px 14px 14px 18px;
}

.stock-chart-svg {
  width: 100%;
  height: 220px;
  display: block;
  overflow: visible;
}

.stock-chart-grid-line {
  stroke: rgba(255,255,255,0.08);
  stroke-width: 1;
  stroke-dasharray: 4 8;
}

.stock-chart-line {
  fill: none;
  stroke-width: 4;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.stock-chart-line.positive {
  stroke: var(--green);
  filter: drop-shadow(0 0 3px rgba(68, 233, 138, 0.45));
}

.stock-chart-line.negative {
  stroke: var(--red);
  filter: drop-shadow(0 0 3px rgba(255, 96, 109, 0.45));
}

.stock-chart-line.neutral {
  stroke: var(--gold);
  filter: drop-shadow(0 0 3px rgba(224, 204, 107, 0.35));
}

.stock-chart-empty {
  position: absolute;
  pointer-events: none;
  inset: 14px 14px 14px 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #8f98a3;
  font-size: 14px;
  font-weight: 600;
}

.stock-chart-empty.hidden {
  display: none;
}

.stock-chart-tooltip {
  position: absolute;
  transform: translate(-50%, calc(-100% - 12px));
  pointer-events: none;
  z-index: 3;
  min-width: 104px;
  padding: 10px 12px;
  border-radius: 12px;
  background: rgba(20, 24, 29, 0.96);
  border: 1px solid rgba(255,255,255,0.08);
  box-shadow: 0 10px 26px rgba(0,0,0,0.32);
  color: #d7dde4;
  text-align: left;
}

.stock-chart-tooltip span {
  display: block;
  font-size: 11px;
  font-weight: 700;
  color: #8e99a6;
}

.stock-chart-tooltip strong {
  display: block;
  margin-top: 4px;
  font-size: 15px;
  font-weight: 800;
  color: #ffffff;
}

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

.stock-stat-card {
  background: #171b21;
  border-radius: 18px;
  padding: 14px;
}

.stock-stat-card span {
  display: block;
  color: #9ba4af;
  font-size: 13px;
  font-weight: 700;
}

.stock-stat-card strong {
  display: block;
  margin-top: 8px;
  color: #ffffff;
  font-size: 22px;
  line-height: 1.1;
  font-weight: 800;
}

.stock-data-box {
  margin-top: 0;
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: 22px;
  color: #111111;
}

.stock-lower-row {
  margin-top: 18px;
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(280px, 0.82fr);
  gap: 20px;
  align-items: start;
}

.stock-data-title {
  margin: 0 0 16px;
  color: #111111;
  font-size: 24px;
  line-height: 1.1;
  font-weight: 800;
}

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

.stock-data-item {
  background: #f7f4ef;
  border: 1px solid #ebe3d8;
  border-radius: 16px;
  padding: 14px 16px;
  min-width: 0;
}

.stock-data-item-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.stock-data-item span {
  display: block;
  color: #4e4a44;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.stock-data-item strong {
  display: block;
  margin-top: 8px;
  color: #111111;
  font-size: 17px;
  line-height: 1.18;
  font-weight: 800;
  white-space: normal;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.stock-message {
  width: min(900px, calc(100% - 56px));
  pointer-events: none;
  margin: 32px auto;
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: 24px;
  color: #5d5751;
  font-size: 18px;
  font-weight: 500;
}

.stock-news-box {
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: 20px;
  color: #111111;
}

.stock-intelligence-box {
  background: linear-gradient(180deg, #fffdf8 0%, #f7f2e8 100%);
}

.stock-intelligence-band {
  margin-top: 18px;
  padding: 22px 24px;
}

.stock-intelligence-band .stock-news-header {
  margin-bottom: 6px;
}

.stock-intelligence-band .stock-intelligence-title {
  font-size: 28px;
  line-height: 1;
}

.stock-intelligence-band .stock-news-meta {
  margin-bottom: 10px;
}

.stock-intelligence-band .stock-intelligence-body {
  max-width: none;
  font-size: 17px;
  line-height: 1.55;
}

.stock-intelligence-latest {
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid rgba(153, 130, 88, 0.18);
  color: #6d6457;
  font-size: 14px;
  line-height: 1.45;
  font-weight: 700;
}

.stock-intelligence-latest .stock-intelligence-link {
  font-weight: 800;
}

.stock-side-stack {
  display: grid;
  gap: 18px;
  align-content: start;
  min-width: 0;
}

.stock-insider-box {
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: 20px;
  color: #111111;
}

.stock-insider-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.stock-insider-list {
  margin-top: 14px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-height: 420px;
  overflow: auto;
  padding-right: 4px;
}

.stock-insider-table-wrap {
  border: 1px solid #ebe3d8;
  border-radius: 16px;
  overflow: hidden;
  background: #f7f4ef;
}

.stock-insider-table {
  width: 100%;
  border-collapse: collapse;
}

.stock-insider-table thead th {
  padding: 12px 14px;
  text-align: left;
  color: #6c655c;
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border-bottom: 1px solid #ebe3d8;
  background: #f2ece2;
}

.stock-insider-table tbody td {
  padding: 14px;
  color: #111111;
  font-size: 14px;
  line-height: 1.35;
  font-weight: 700;
  border-top: 1px solid #ebe3d8;
  vertical-align: middle;
}

.stock-insider-table tbody tr:first-child td {
  border-top: none;
}

.stock-insider-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 68px;
  height: 32px;
  padding: 0 12px;
  border-radius: 999px;
  background: #111111;
  color: #ffffff;
  text-decoration: none;
  font-size: 12px;
  font-weight: 800;
}

.stock-insider-link:hover {
  background: #2a2a2a;
}

.news-shell {
  width: min(1544px, calc(100% - 56px));
  margin: 22px auto 58px;
  display: grid;
  gap: 18px;
}

.news-hero {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
}

.news-center-hero {
  position: relative;
  overflow: hidden;
  min-height: 230px;
  align-items: stretch;
  padding: clamp(24px, 3vw, 42px);
  border-radius: 38px;
  background:
    radial-gradient(circle at 12% 12%, rgba(246, 163, 26, 0.35), transparent 30%),
    radial-gradient(circle at 88% 14%, rgba(93, 224, 139, 0.16), transparent 28%),
    linear-gradient(135deg, #0a0d11 0%, #151a20 58%, #2d2419 100%);
  color: #ffffff;
  box-shadow: 0 20px 50px rgba(40, 30, 18, 0.16);
}

.news-center-hero::after {
  content: "";
  position: absolute;
  inset: auto -8% -45% 34%;
  height: 220px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.11), transparent);
  transform: rotate(-8deg);
}

.news-center-hero .news-hero-copy {
  position: relative;
  z-index: 1;
  display: grid;
  align-content: end;
  max-width: 850px;
}

.news-center-hero .news-kicker {
  color: rgba(255, 255, 255, 0.58);
}

.news-center-hero .news-title {
  color: #ffffff;
  font-size: clamp(48px, 7vw, 104px);
  letter-spacing: -0.07em;
}

.news-center-hero .news-subtitle {
  color: rgba(255, 255, 255, 0.76);
  max-width: 740px;
  font-size: clamp(15px, 1.5vw, 20px);
}

.news-hero-status {
  position: relative;
  z-index: 1;
  align-self: end;
  min-width: 260px;
  padding: 18px;
  border-radius: 26px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(16px);
  display: grid;
  gap: 8px;
}

.news-hero-status span,
.news-hero-status em {
  color: rgba(255, 255, 255, 0.64);
  font-style: normal;
  font-size: 11px;
  line-height: 1.35;
  font-weight: 850;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.news-hero-status strong {
  color: #ffffff;
  font-size: 30px;
  line-height: 1;
  font-weight: 950;
  letter-spacing: -0.04em;
}

.news-command-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 14px;
  border-radius: 24px;
  border: 1px solid rgba(217, 210, 199, 0.9);
  background: rgba(255, 255, 255, 0.72);
  box-shadow: 0 12px 28px rgba(42, 31, 17, 0.06);
}

.news-command-bar p {
  margin: 0;
  color: #71695f;
  font-size: 13px;
  line-height: 1.45;
  font-weight: 750;
}

.news-kicker {
  margin: 0 0 10px;
  color: #7a746d;
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.news-title {
  margin: 0;
  color: #111111;
  font-size: clamp(30px, 3.1vw, 48px);
  line-height: 0.98;
  font-weight: 800;
}

.news-subtitle {
  margin: 12px 0 0;
  color: #5d5751;
  font-size: 16px;
  line-height: 1.4;
  font-weight: 600;
  max-width: 760px;
}

.news-page-tabs {
  flex-shrink: 0;
}

.news-feed-box {
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 34px;
  padding: clamp(18px, 2vw, 28px);
  box-shadow: 0 18px 44px rgba(42, 31, 17, 0.08);
}

.news-feed-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.news-feed-list {
  margin-top: 18px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.news-feed-list.is-brief {
  grid-template-columns: minmax(0, 1fr);
  gap: 18px;
}

.stock-news-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.stock-news-title {
  color: #111111;
  font-size: 22px;
  line-height: 1.1;
  font-weight: 800;
}

.stock-intelligence-title {
  font-size: 26px;
}

.stock-news-tabs {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.news-view-tabs.hidden {
  display: none;
}

.stock-news-tab {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 38px;
  padding: 0 14px;
  border-radius: 999px;
  border: 1px solid #ddd3c5;
  background: #f7f4ef;
  color: #111111;
  font: inherit;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
}

.stock-news-tab.active {
  background: #111111;
  border-color: #111111;
  color: #ffffff;
}

.stock-news-tab-icon {
  width: 22px;
  height: 22px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: rgba(17, 17, 17, 0.08);
  font-size: 12px;
  line-height: 1;
}

.stock-news-tab.active .stock-news-tab-icon {
  background: rgba(255, 255, 255, 0.16);
}

.stock-news-meta {
  margin-top: 10px;
  color: #6c655c;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.stock-news-list {
  margin-top: 14px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-height: 560px;
  overflow: auto;
  padding-right: 4px;
}

.stock-intelligence-body {
  margin-top: 14px;
  color: #2a2621;
  font-size: 15px;
  line-height: 1.55;
  font-weight: 600;
}

.stock-intelligence-link {
  color: #111111;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

.stock-intelligence-link:hover {
  color: #3e5d49;
}

.stock-news-item {
  display: block;
  padding: 14px 14px 12px;
  border-radius: 16px;
  background: #f7f4ef;
  border: 1px solid #ebe3d8;
  color: #111111;
  text-decoration: none;
}

.stock-news-item:hover {
  background: #f2ece2;
}

.stock-news-item-disabled {
  cursor: default;
}

.stock-news-item-disabled:hover {
  background: #f7f4ef;
}

.stock-news-item-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.stock-news-item-type {
  color: #6c655c;
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.stock-news-item-time {
  color: #6c655c;
  font-size: 11px;
  font-weight: 700;
  white-space: nowrap;
}

.stock-news-item-title {
  margin-top: 8px;
  color: #111111;
  font-size: 15px;
  line-height: 1.35;
  font-weight: 800;
}

.stock-news-item-subtitle {
  margin-top: 6px;
  color: #5d5751;
  font-size: 13px;
  line-height: 1.35;
  font-weight: 600;
}

.stock-news-item-brief {
  margin-top: 10px;
  color: #26221d;
  font-size: 14px;
  line-height: 1.45;
  font-weight: 650;
}

.stock-news-empty {
  padding: 16px;
  border-radius: 16px;
  background: #f7f4ef;
  border: 1px solid #ebe3d8;
  color: #5d5751;
  font-size: 14px;
  font-weight: 600;
}

.news-insider-table-wrap {
  margin-top: 0;
  overflow-x: auto;
}

.news-insider-table {
  min-width: 980px;
  table-layout: fixed;
}

.news-insider-table td:nth-child(2),
.news-insider-table td:nth-child(6),
.news-insider-table td:nth-child(7),
.news-insider-table td:nth-child(8) {
  white-space: nowrap;
}

.news-insider-table th,
.news-insider-table td {
  vertical-align: middle;
}

.news-insider-table td:nth-child(3) {
  white-space: normal;
  word-break: break-word;
}

.news-insider-col-date {
  width: 100px;
}

.news-insider-col-ticker {
  width: 72px;
}

.news-insider-col-company {
  width: 250px;
}

.news-insider-col-order {
  width: 92px;
}

.news-insider-col-type {
  width: 140px;
}

.news-insider-col-price,
.news-insider-col-vwap {
  width: 92px;
}

.news-insider-col-amount {
  width: 108px;
}

.news-insider-col-disclosure {
  width: 82px;
}

.news-insider-disclosure-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 999px;
  background: #111111;
  color: #ffffff;
  text-decoration: none;
  font-size: 16px;
  font-weight: 900;
  transition: background 140ms ease, transform 140ms ease;
}

.news-insider-disclosure-link:hover {
  background: #2a2a2a;
  transform: translateY(-1px);
}

.news-insider-disclosure-link:focus-visible {
  outline: 2px solid rgba(214, 168, 83, 0.6);
  outline-offset: 2px;
}

.homepage-shell {
  width: min(1544px, calc(100% - 32px));
  margin: 18px auto 0;
  display: grid;
  gap: 14px;
}

.homepage-top-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.16fr) minmax(380px, 0.84fr);
  gap: 14px;
  align-items: start;
}

.homepage-top-grid > * {
  min-width: 0;
}

.homepage-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 16px;
  align-items: stretch;
  width: min(100%, 820px);
  justify-self: start;
  border-radius: 28px;
  padding: 20px;
  background:
    radial-gradient(circle at top right, rgba(246, 163, 26, 0.16), transparent 24%),
    radial-gradient(circle at bottom left, rgba(93, 224, 139, 0.08), transparent 28%),
    linear-gradient(135deg, #0b0f14 0%, #121820 48%, #0d1218 100%);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 18px 42px rgba(8, 12, 18, 0.18);
}

.homepage-news-brief-preview-panel {
  min-height: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.homepage-news-brief-preview {
  flex: 1 1 auto;
  min-height: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.homepage-news-brief-preview-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
}

.homepage-news-brief-preview-head strong {
  color: #14181d;
  font-size: 18px;
  font-weight: 900;
}

.homepage-news-brief-preview-head span {
  color: #7b7368;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.homepage-news-brief-preview-bullets {
  display: grid;
  gap: 8px;
  align-content: start;
  flex: 1 1 auto;
}

.homepage-news-brief-preview-bullets p {
  margin: 0;
  color: #2b2f35;
  font-size: 13px;
  line-height: 1.52;
  font-weight: 650;
}

.homepage-news-brief-preview-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: auto;
  padding-top: 8px;
  border-top: 1px solid #efe5d7;
}

.homepage-news-brief-preview-foot span {
  color: #7b7368;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.homepage-news-brief-more {
  color: #171717;
  font-size: 12px;
  font-weight: 900;
  text-decoration: none;
}

.homepage-news-brief-more:hover {
  text-decoration: underline;
}

.homepage-analysis-panel {
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 28px;
  padding: 16px;
  width: 100%;
  min-width: 0;
  height: 100%;
  box-sizing: border-box;
}

.homepage-hero-copy {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  gap: 8px;
  min-height: 0;
  padding: 6px 6px 2px 2px;
}

.homepage-intelligence-title {
  margin: 0 0 6px;
  color: #ffffff;
  font-size: clamp(26px, 2.6vw, 38px);
  line-height: 1.02;
  font-weight: 950;
  letter-spacing: -0.04em;
}

.homepage-intelligence-brief {
  flex: 1;
  max-width: 100%;
}

.homepage-intelligence-brief p {
  margin: 0;
  color: rgba(255, 255, 255, 0.82);
  font-size: 14px;
  line-height: 1.62;
  font-weight: 600;
  max-width: none;
  width: 100%;
}

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

.homepage-intelligence-grid article {
  min-height: 112px;
  padding: 14px;
  border: 1px solid #eadfce;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.72);
  display: grid;
  align-content: space-between;
  gap: 8px;
}

.homepage-intelligence-grid span,
.homepage-intelligence-grid small {
  color: #7a6f64;
  font-size: 11px;
  font-weight: 800;
}


.homepage-intelligence-grid span {
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.homepage-intelligence-grid strong {
  color: #15191e;
  font-size: 18px;
  line-height: 1.08;
  font-weight: 900;
}

.homepage-intelligence-brief strong {
  color: #15191e;
}

.homepage-intelligence-link {
  color: #15191e;
  font-weight: 800;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 2px;
}

.homepage-intelligence-link:hover {
  color: #8f3c12;
}

.homepage-summary-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  min-width: 0;
  align-self: stretch;
}

.homepage-summary-card,
.homepage-pulse-card {
  border-radius: 18px;
  padding: 10px 12px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: #ffffff;
  display: grid;
  gap: 3px;
  box-shadow: none;
}

.homepage-summary-link,
.live-overview-link {
  text-decoration: none;
  transition: transform 140ms ease, box-shadow 140ms ease, border-color 140ms ease, background-color 140ms ease;
  cursor: pointer;
}

.homepage-summary-link:hover,
.live-overview-link:hover {
  transform: translateY(-2px);
  box-shadow: 0 20px 42px rgba(10, 14, 22, 0.18);
}

.homepage-summary-link:focus-visible,
.live-overview-link:focus-visible {
  outline: 2px solid rgba(255, 183, 37, 0.95);
  outline-offset: 2px;
}

.homepage-summary-card span,
.homepage-pulse-card span {
  color: rgba(255, 255, 255, 0.66);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.homepage-summary-label-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.homepage-summary-help-wrap {
  position: relative;
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
}

.homepage-summary-help-wrap .stock-info-help {
  width: 18px;
  height: 18px;
  border-color: rgba(255, 255, 255, 0.16);
  color: rgba(255, 255, 255, 0.7);
}

.homepage-summary-help-wrap .stock-info-tooltip {
  right: -2px;
  top: calc(100% + 10px);
  width: 230px;
  background: #1a2027;
  color: #d8dee6;
  text-transform: none;
  letter-spacing: normal;
}

.homepage-summary-card strong,
.homepage-pulse-card strong {
  font-size: 19px;
  line-height: 1.02;
  font-weight: 900;
}

.homepage-summary-card small,
.homepage-pulse-card small {
  color: rgba(255, 255, 255, 0.78);
  font-size: 10px;
  font-weight: 700;
}

.homepage-summary-card.positive strong,
.homepage-pulse-card.positive strong {
  color: var(--green);
}

.homepage-summary-card.negative strong,
.homepage-pulse-card.negative strong {
  color: var(--red);
}

.homepage-analysis-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.24fr) minmax(420px, 0.96fr);
  gap: 14px;
  align-items: start;
}

.homepage-analysis-hub {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 372px);
  gap: 14px;
  align-items: start;
}

.homepage-analysis-hub > * {
  min-width: 0;
}

.homepage-radar-grid {
  display: grid;
  gap: 12px;
}

.homepage-radar-head-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.homepage-radar-head-tools {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.homepage-panel-jump {
  width: 36px;
  height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  border: 1px solid #e6dccd;
  background: #f7f1e7;
  color: #332c23;
  text-decoration: none;
  font-size: 18px;
  font-weight: 900;
  line-height: 1;
  transition: transform 140ms ease, border-color 140ms ease, background-color 140ms ease, color 140ms ease;
}

.homepage-panel-jump:hover {
  transform: translateY(-1px);
  border-color: #d5c6b2;
  background: #efe5d5;
}

.homepage-radar-mode {
  border: 1px solid #e6dccd;
  background: #f7f1e7;
  color: #3b3329;
  min-height: 38px;
  padding: 0 14px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font: inherit;
  font-size: 13px;
  font-weight: 800;
  cursor: pointer;
  transition: transform 140ms ease, background-color 140ms ease, border-color 140ms ease, color 140ms ease;
}

.homepage-radar-mode:hover {
  transform: translateY(-1px);
  border-color: #d5c6b2;
}

.homepage-radar-mode.active {
  background: #11161c;
  border-color: #11161c;
  color: #ffffff;
}

.homepage-radar-mode-icon {
  width: 18px;
  text-align: center;
  font-size: 13px;
  line-height: 1;
}

.homepage-radar-table-wrap {
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid #e8ddcd;
  background: linear-gradient(180deg, #fbf8f3 0%, #fffdf9 100%);
}

.homepage-radar-table {
  display: grid;
}

.homepage-radar-head,
.homepage-radar-row {
  display: grid;
  grid-template-columns: minmax(88px, 0.82fr) 94px minmax(86px, 0.76fr) minmax(80px, 0.7fr) minmax(92px, 0.84fr) minmax(150px, 1.02fr) minmax(150px, 1.02fr);
  gap: 14px;
  align-items: center;
}

.homepage-radar-head {
  padding: 12px 16px;
  background: #141a20;
  color: rgba(255, 255, 255, 0.84);
}

.homepage-radar-head span {
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.homepage-radar-body {
  display: grid;
}

.homepage-radar-row {
  padding: 12px 16px;
  border-top: 1px solid #ece2d4;
  color: inherit;
  text-decoration: none;
  transition: background-color 140ms ease;
}

.homepage-radar-row:hover {
  background: rgba(243, 236, 224, 0.72);
}

.homepage-radar-ticker {
  color: #1b57c0;
  font-size: 15px;
  font-weight: 900;
}

.homepage-radar-sparkcell {
  display: flex;
  align-items: center;
}

.homepage-radar-spark {
  display: inline-flex;
  align-items: center;
  width: 90px;
  min-width: 90px;
  height: 28px;
}

.homepage-radar-spark-placeholder {
  display: block;
  width: 100%;
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(203, 191, 173, 0.35) 0%, rgba(203, 191, 173, 0.78) 50%, rgba(203, 191, 173, 0.35) 100%);
}

.homepage-radar-spark-svg {
  width: 100%;
  height: 100%;
  overflow: visible;
}

.homepage-radar-spark-svg .homepage-radar-spark-area {
  fill-opacity: 0.12;
}

.homepage-radar-spark-svg .homepage-radar-spark-line {
  fill: none;
  stroke-width: 2.1;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.homepage-radar-spark-svg .homepage-radar-spark-dot {
  stroke: #fffaf1;
  stroke-width: 1.25;
}

.homepage-radar-spark-svg.positive .homepage-radar-spark-area {
  fill: rgba(15, 159, 98, 0.18);
}

.homepage-radar-spark-svg.positive .homepage-radar-spark-line,
.homepage-radar-spark-svg.positive .homepage-radar-spark-dot {
  stroke: #0f9f62;
  fill: #0f9f62;
}

.homepage-radar-spark-svg.negative .homepage-radar-spark-area {
  fill: rgba(200, 59, 67, 0.16);
}

.homepage-radar-spark-svg.negative .homepage-radar-spark-line,
.homepage-radar-spark-svg.negative .homepage-radar-spark-dot {
  stroke: #c83b43;
  fill: #c83b43;
}

.homepage-radar-spark-svg.neutral .homepage-radar-spark-area {
  fill: rgba(168, 116, 28, 0.16);
}

.homepage-radar-spark-svg.neutral .homepage-radar-spark-line,
.homepage-radar-spark-svg.neutral .homepage-radar-spark-dot {
  stroke: #a8741c;
  fill: #a8741c;
}

.homepage-radar-last,
.homepage-radar-change {
  color: #191d23;
  font-size: 14px;
  font-weight: 800;
}

.homepage-radar-high {
  color: #5a4f43;
  font-size: 14px;
  font-weight: 800;
}

.homepage-radar-change.positive { color: #0f9f62; }
.homepage-radar-change.negative { color: #c83b43; }
.homepage-radar-change.neutral { color: #a8741c; }

.homepage-radar-volume-stack {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.homepage-radar-pill {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 0 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
  white-space: nowrap;
  background: #efe6d8;
  color: #4b4339;
}

.homepage-radar-volume-stack .homepage-radar-pill {
  min-height: 24px;
  padding: 0 8px;
  font-size: 10.5px;
}

.homepage-radar-pill.positive {
  background: rgba(23, 136, 83, 0.12);
  color: #0f8a54;
}

.homepage-radar-pill.negative {
  background: rgba(200, 59, 67, 0.12);
  color: #bd3640;
}

.homepage-radar-pill.watch {
  background: rgba(182, 120, 18, 0.14);
  color: #9a6713;
}

.homepage-matrix-wrap {
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid #e8ddcd;
  background: linear-gradient(180deg, #fbf8f3 0%, #f7f1e7 100%);
}

.homepage-matrix-table {
  display: grid;
}

.homepage-matrix-head,
.homepage-matrix-row {
  display: grid;
  grid-template-columns: minmax(120px, 0.9fr) minmax(120px, 0.8fr) minmax(0, 1.5fr);
  gap: 14px;
  align-items: center;
}

.homepage-matrix-head {
  padding: 12px 16px;
  background: #141a20;
  color: rgba(255, 255, 255, 0.82);
}

.homepage-matrix-head span {
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.homepage-matrix-body {
  display: grid;
}

.homepage-matrix-row {
  padding: 13px 16px;
  border-top: 1px solid #ece2d4;
}

.homepage-matrix-row:first-child {
  border-top: 0;
}

.homepage-matrix-row strong {
  color: #14181d;
  font-size: 13px;
  font-weight: 900;
}

.homepage-matrix-row span {
  color: #2f3540;
  font-size: 12px;
  font-weight: 800;
}

.homepage-matrix-row small {
  color: #6a6258;
  font-size: 11px;
  line-height: 1.45;
  font-weight: 700;
}

.homepage-matrix-row.positive span { color: #0b9a5f; }
.homepage-matrix-row.negative span { color: #c83b43; }
.homepage-matrix-row.watch span { color: #ad7518; }

.homepage-analysis-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 12px;
}

.homepage-analysis-head-radar {
  align-items: center;
}

.homepage-analysis-head strong {
  color: #111111;
  font-size: 22px;
  font-weight: 900;
}

.homepage-analysis-head span {
  color: #6c655c;
  font-size: 13px;
  font-weight: 700;
}

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

.homepage-market-table-panel {
  background: #fffdfa;
  border: 1px solid #ece3d6;
  border-radius: 18px;
  padding: 12px 14px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.65);
}

.homepage-market-table-head {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 12px;
  padding-bottom: 8px;
  border-bottom: 1px solid #eee5d8;
}

.homepage-market-table-head strong {
  color: #161616;
  font-size: 15px;
  font-weight: 900;
}

.homepage-market-table-head span {
  display: none;
}

.homepage-market-table-list {
  display: flex;
  flex-direction: column;
}

.homepage-market-table-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 8px;
  width: 100%;
  padding: 9px 0;
  border: 0;
  border-bottom: 1px solid #f0e8dc;
  background: transparent;
  text-align: left;
  cursor: pointer;
}

.homepage-market-table-row:last-child {
  border-bottom: 0;
}

.homepage-market-table-row:hover {
  background: rgba(245, 238, 226, 0.55);
}

.homepage-halt-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 9px 0;
  border: 0;
  border-bottom: 1px solid #f0e8dc;
  background: transparent;
  text-align: left;
  cursor: pointer;
}

.homepage-halt-row:last-child {
  border-bottom: 0;
}

.homepage-halt-row:hover {
  background: rgba(245, 238, 226, 0.55);
}

.homepage-halt-copy,
.homepage-halt-metrics {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.homepage-halt-copy strong,
.homepage-halt-metrics strong {
  color: #171717;
  font-size: 14px;
  font-weight: 900;
  line-height: 1.15;
}

.homepage-halt-copy span,
.homepage-halt-metrics span {
  font-size: 12px;
  font-weight: 700;
  color: #70685f;
  white-space: nowrap;
}

.homepage-halt-metrics {
  align-items: flex-end;
}

.homepage-halt-metrics.positive strong,
.homepage-halt-metrics.positive span {
  color: #0f8a54;
}

.homepage-halt-metrics.negative strong,
.homepage-halt-metrics.negative span {
  color: #c83d4b;
}

.homepage-market-table-symbol {
  color: #121212;
  font-size: 13px;
  font-weight: 900;
}

.homepage-market-table-price {
  color: #72695f;
  font-size: 11px;
  font-weight: 700;
  white-space: nowrap;
}

.homepage-market-table-change {
  font-size: 12px;
  font-weight: 900;
  white-space: nowrap;
}

.homepage-market-table-change.positive {
  color: #07814f;
}

.homepage-market-table-change.negative {
  color: #c83b43;
}

.homepage-market-table-change.neutral {
  color: #9b7c18;
}

.homepage-market-table-list .live-market-empty {
  margin-top: 12px;
}

.homepage-trending-list {
  gap: 10px;
}

.homepage-feed-list,
.homepage-sector-list,
.homepage-pulse-grid {
  display: grid;
  gap: 8px;
}

.homepage-sector-scroll {
  max-height: 356px;
  overflow-y: auto;
  padding-right: 4px;
}

.homepage-sector-scroll::-webkit-scrollbar {
  width: 8px;
}

.homepage-sector-scroll::-webkit-scrollbar-thumb {
  background: #d9cfbe;
  border-radius: 999px;
}

.homepage-sector-scroll::-webkit-scrollbar-track {
  background: transparent;
}

.homepage-feed-row {
  width: 100%;
  border: 0;
  border-bottom: 1px solid #efe6d8;
  background: transparent;
  border-radius: 0;
  padding: 8px 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  text-align: left;
  cursor: pointer;
}

.homepage-feed-row:hover {
  background: rgba(246, 239, 228, 0.45);
}

.homepage-feed-row:last-child {
  border-bottom: 0;
}

.homepage-feed-copy,
.homepage-feed-metrics {
  display: grid;
  gap: 3px;
}

.homepage-feed-copy strong,
.homepage-feed-metrics strong {
  color: #141414;
  font-size: 13px;
  font-weight: 900;
}

.homepage-feed-copy span,
.homepage-feed-metrics span,
.homepage-feed-metrics small {
  color: #6c655c;
  font-size: 11px;
  font-weight: 700;
}

.homepage-feed-copy span {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.homepage-feed-metrics {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  text-align: right;
}

.homepage-feed-price {
  min-width: 64px;
  text-align: right;
}

.homepage-feed-change {
  min-width: 62px;
  text-align: right;
}

.homepage-feed-time {
  min-width: 58px;
  text-align: right;
}

.homepage-feed-metrics.positive strong,
.homepage-feed-metrics.positive span {
  color: var(--green);
}

.homepage-feed-metrics.negative strong,
.homepage-feed-metrics.negative span {
  color: var(--red);
}

.homepage-feed-metrics.neutral strong,
.homepage-feed-metrics.neutral span {
  color: #9b7c18;
}

.homepage-deep-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(360px, 0.9fr);
  gap: 14px;
}

.homepage-deep-grid-single {
  grid-template-columns: 1fr;
}

.homepage-heatmap-panel {
  border-radius: 26px;
  padding: 16px;
  background: #ffffff;
  border: 1px solid var(--line);
  display: grid;
  gap: 14px;
}

.homepage-heatmap-panel-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
}

.homepage-heatmap-head {
  display: grid;
  gap: 2px;
}

.homepage-heatmap-head strong {
  color: #14181d;
  font-size: 22px;
  font-weight: 900;
  letter-spacing: 0.01em;
}

.homepage-heatmap-head span {
  color: #786f66;
  font-size: 12px;
  font-weight: 700;
}

.homepage-heatmap-controls {
  display: grid;
  gap: 8px;
  justify-items: end;
}

.homepage-heatmap-filter-group {
  display: inline-flex;
  gap: 6px;
  flex-wrap: wrap;
}

.homepage-heatmap-filter {
  border: 1px solid #dfd3bf;
  background: #f7f1e6;
  color: #5f554c;
  border-radius: 999px;
  min-height: 34px;
  padding: 0 12px;
  font: inherit;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
}

.homepage-heatmap-filter.active {
  background: #15191e;
  border-color: #15191e;
  color: #ffffff;
}

.homepage-egx30-heatmap {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 0;
  min-height: 220px;
  align-items: stretch;
  overflow: hidden;
  border-radius: 18px;
  border: 1px solid #e5dac8;
}

.homepage-heatmap-empty {
  grid-column: 1 / -1;
  background: rgba(255, 255, 255, 0.03);
  color: #786f66;
  display: grid;
  place-items: center;
  font-size: 13px;
  font-weight: 700;
  min-height: 220px;
}

.homepage-heatmap-tile {
  padding: 10px;
  display: grid;
  align-content: space-between;
  gap: 6px;
  min-height: 68px;
  text-decoration: none;
  color: #ffffff;
  border-right: 1px solid rgba(255, 255, 255, 0.08);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  transition: transform 0.16s ease, filter 0.16s ease;
}

.homepage-heatmap-tile em {
  font-style: normal;
  font-size: 9px;
  line-height: 1;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.64);
}

.homepage-heatmap-tile:hover {
  transform: translateY(-1px);
  filter: brightness(1.03);
}

.homepage-heatmap-tile strong {
  font-size: 15px;
  line-height: 1;
  font-weight: 900;
}

.homepage-heatmap-tile span {
  font-size: 10px;
  line-height: 1.3;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.72);
}

.homepage-heatmap-tile small {
  font-size: 10px;
  line-height: 1.35;
  font-weight: 800;
  color: rgba(255, 255, 255, 0.88);
}

.homepage-heatmap-tile.positive.soft { background: linear-gradient(180deg, rgba(66, 178, 112, 0.76), rgba(38, 142, 83, 0.82)); }
.homepage-heatmap-tile.positive.medium { background: linear-gradient(180deg, rgba(43, 174, 99, 0.88), rgba(24, 132, 73, 0.92)); }
.homepage-heatmap-tile.positive.strong,
.homepage-heatmap-tile.positive.extreme { background: linear-gradient(180deg, rgba(24, 170, 91, 0.98), rgba(12, 119, 63, 0.98)); }
.homepage-heatmap-tile.negative.soft { background: linear-gradient(180deg, rgba(205, 83, 96, 0.76), rgba(169, 54, 66, 0.84)); }
.homepage-heatmap-tile.negative.medium { background: linear-gradient(180deg, rgba(198, 66, 81, 0.9), rgba(154, 41, 54, 0.94)); }
.homepage-heatmap-tile.negative.strong,
.homepage-heatmap-tile.negative.extreme { background: linear-gradient(180deg, rgba(181, 36, 52, 0.98), rgba(125, 18, 31, 0.98)); }
.homepage-heatmap-tile.neutral { background: linear-gradient(180deg, rgba(90, 96, 104, 0.92), rgba(59, 65, 72, 0.94)); }

.homepage-heatmap-tile.xxl {
  grid-column: span 4;
  min-height: 108px;
}

.homepage-heatmap-tile.xl {
  grid-column: span 3;
  min-height: 98px;
}

.homepage-heatmap-tile.lg {
  grid-column: span 3;
}

.homepage-heatmap-tile.md {
  grid-column: span 2;
}

.homepage-heatmap-tile.sm {
  grid-column: span 2;
}

.homepage-brief-shell {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(320px, 0.85fr) minmax(320px, 0.85fr);
  gap: 18px;
  margin-top: 18px;
}

.homepage-brief-shell > .homepage-analysis-panel {
  grid-column: 1 / 2;
}

.homepage-news-brief-list {
  display: grid;
  gap: 12px;
}

.homepage-news-brief-card {
  border: 1px solid rgba(214, 168, 83, 0.16);
  background: #fbf7f0;
  border-radius: 18px;
  padding: 16px 18px;
  display: grid;
  gap: 10px;
  width: 100%;
  text-align: left;
  cursor: pointer;
  font: inherit;
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.homepage-news-brief-card:hover {
  transform: translateY(-1px);
  border-color: rgba(214, 168, 83, 0.28);
  box-shadow: 0 14px 28px rgba(34, 24, 7, 0.08);
}

.homepage-news-brief-card:focus-visible {
  outline: 2px solid rgba(214, 168, 83, 0.52);
  outline-offset: 2px;
}

.homepage-news-brief-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 14px;
}

.homepage-news-brief-head strong {
  color: #15191e;
  font-size: 16px;
  font-weight: 900;
}

.homepage-news-brief-head span {
  color: #7b7064;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.homepage-news-brief-copy {
  margin: 0;
  color: #2b2f35;
  font-size: 14px;
  line-height: 1.6;
  font-weight: 600;
}

.homepage-news-brief-highlights {
  display: grid;
  gap: 4px;
}

.homepage-news-brief-highlights p {
  margin: 0;
  color: #2b2f35;
  font-size: 12px;
  line-height: 1.45;
  font-weight: 600;
}

.homepage-news-brief-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.homepage-news-brief-tags span {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 10px;
  border-radius: 999px;
  background: rgba(214, 168, 83, 0.12);
  color: #8d7441;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.homepage-news-brief-detail-list {
  display: grid;
  gap: 12px;
}

.homepage-news-brief-detail-item {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 0;
  border-top: 1px solid rgba(17, 17, 17, 0.08);
}

.homepage-news-brief-detail-item:first-child {
  padding-top: 0;
  border-top: none;
}

.homepage-news-brief-detail-copy {
  display: grid;
  gap: 6px;
}

.homepage-news-brief-detail-copy strong {
  color: #171717;
  font-size: 16px;
  line-height: 1.4;
  font-weight: 800;
}

.homepage-news-brief-detail-copy span {
  color: #7c7469;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.homepage-news-brief-detail-copy p {
  margin: 0;
  color: #36312b;
  font-size: 14px;
  line-height: 1.55;
  font-weight: 500;
}

.homepage-charged-shell {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.news-brief-page-shell {
  width: min(1520px, calc(100% - 40px));
  margin: 24px auto 42px;
  display: grid;
  gap: 18px;
}

.news-brief-page-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 18px;
}

.news-brief-page-copy {
  display: grid;
  gap: 8px;
}

.news-brief-page-copy h1 {
  margin: 0;
  color: #12161b;
  font-size: clamp(34px, 4.2vw, 56px);
  line-height: 0.98;
  font-weight: 950;
  letter-spacing: -0.05em;
}

.news-brief-page-copy p:last-child {
  margin: 0;
  color: #625b50;
  font-size: 14px;
  line-height: 1.55;
  font-weight: 650;
  max-width: 68ch;
}

.news-brief-back-link {
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  padding: 0 16px;
  border-radius: 999px;
  background: #11161c;
  color: #ffffff;
  text-decoration: none;
  font-size: 13px;
  font-weight: 900;
}

.news-brief-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 18px;
  align-items: start;
}

.news-center-main,
.news-center-sidebar,
.news-center-feed-box {
  min-width: 0;
}

.news-brief-main {
  display: grid;
  gap: 16px;
}

.news-brief-main-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
}

.news-brief-main-head strong {
  display: block;
  color: #15191e;
  font-size: 22px;
  font-weight: 900;
}

.news-brief-main-head span {
  color: #746b60;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.news-brief-page-list {
  display: grid;
  gap: 16px;
}

.news-brief-page-card {
  position: relative;
  background: linear-gradient(180deg, #ffffff 0%, #fffaf2 100%);
  border: 1px solid #e6dac7;
  border-radius: 28px;
  padding: 18px 20px 20px 26px;
  display: grid;
  gap: 14px;
}

.news-brief-page-card::before {
  content: "";
  position: absolute;
  left: 10px;
  top: 22px;
  bottom: 22px;
  width: 4px;
  border-radius: 999px;
  background: linear-gradient(180deg, #11161c 0%, #f6a31a 100%);
}

.news-brief-page-card-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
}

.news-brief-time-lockup {
  display: flex;
  align-items: baseline;
  gap: 12px;
}

.news-brief-time-lockup span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 74px;
  min-height: 44px;
  padding: 0 12px;
  border-radius: 16px;
  background: #11161c;
  color: #ffffff;
  font-size: 20px;
  font-weight: 950;
  letter-spacing: -0.04em;
}

.news-brief-time-lockup strong {
  color: #16191f;
  font-size: clamp(20px, 2vw, 28px);
  font-weight: 950;
  letter-spacing: -0.045em;
}

.news-brief-page-card-head em {
  color: #7b7368;
  font-size: 11px;
  font-style: normal;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding-top: 10px;
}

.news-brief-page-bullets {
  margin: 0;
  padding: 14px 16px 14px 34px;
  border-radius: 22px;
  background: rgba(246, 240, 232, 0.72);
  border: 1px solid #eee3d4;
  display: grid;
  gap: 8px;
}

.news-brief-page-bullets li {
  color: #252a31;
  font-size: 14px;
  line-height: 1.55;
  font-weight: 650;
}

.news-brief-page-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.news-brief-page-meta span {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 10px;
  border-radius: 999px;
  background: #f6eee2;
  color: #8a7241;
  font-size: 11px;
  font-weight: 850;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.news-brief-page-items {
  display: grid;
  gap: 0;
  overflow: hidden;
  border-radius: 22px;
  border: 1px solid #eee3d4;
  background: #ffffff;
}

.news-brief-page-item {
  display: grid;
  grid-template-columns: 74px minmax(0, 1fr) auto;
  gap: 14px;
  align-items: center;
  padding: 14px;
  border-top: 1px solid #efe5d8;
}

.news-brief-page-item:first-child {
  border-top: 0;
}

.news-brief-page-item-code {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  border-radius: 14px;
  background: #f5ead8;
  color: #7b5b18;
  font-size: 13px;
  font-weight: 950;
  letter-spacing: 0.05em;
}

.news-brief-page-item-copy {
  display: grid;
  gap: 5px;
}

.news-brief-page-item-copy strong {
  color: #171b20;
  font-size: 16px;
  line-height: 1.42;
  font-weight: 900;
}

.news-brief-page-item-copy span {
  color: #7a7267;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.news-brief-page-item-copy p {
  margin: 0;
  color: #37322b;
  font-size: 13px;
  line-height: 1.48;
  font-weight: 600;
}

.news-brief-page-open {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 62px;
  min-height: 38px;
  padding: 0 14px;
  border-radius: 999px;
  background: #14181d;
  color: #ffffff;
  text-decoration: none;
  font-size: 12px;
  font-weight: 900;
}

.news-brief-page-open.muted {
  color: #9b9286;
  background: #f7f1e8;
}

.news-brief-sidebar {
  display: grid;
  gap: 14px;
  align-content: start;
  position: sticky;
  top: 16px;
}

.news-brief-sidebar-card {
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid #e7dccb;
  border-radius: 26px;
  padding: 18px;
  box-shadow: 0 14px 34px rgba(42, 31, 17, 0.06);
  display: grid;
  gap: 8px;
}

.news-brief-sidebar-card strong {
  color: #16191f;
  font-size: 16px;
  font-weight: 900;
}

.news-brief-sidebar-card span {
  color: #72695f;
  font-size: 12px;
  line-height: 1.5;
  font-weight: 650;
}

.news-brief-search-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
}

.news-brief-search-input {
  min-height: 42px;
  border-radius: 14px;
  border: 1px solid #e1d5c1;
  background: #fcf8f1;
  padding: 0 14px;
  color: #171717;
  font: inherit;
  font-size: 13px;
  font-weight: 700;
}

.news-brief-search-button {
  min-height: 42px;
  padding: 0 14px;
  border-radius: 14px;
  border: 0;
  background: #14181d;
  color: #ffffff;
  font: inherit;
  font-size: 12px;
  font-weight: 900;
  cursor: pointer;
}

.news-brief-session-list {
  display: grid;
  gap: 8px;
  max-height: 360px;
  overflow: auto;
  padding-right: 2px;
}

.news-brief-session-button {
  width: 100%;
  min-height: 42px;
  border-radius: 16px;
  border: 1px solid #e6dccd;
  background: #fbf6ef;
  color: #383129;
  text-align: left;
  padding: 0 12px;
  font: inherit;
  font-size: 12px;
  font-weight: 850;
  cursor: pointer;
}

.news-brief-session-button.active {
  background: #14181d;
  border-color: #14181d;
  color: #ffffff;
}

.news-brief-page-empty {
  color: #746b60;
  font-size: 14px;
  font-weight: 700;
}

@media (max-width: 1180px) {
  .homepage-top-grid,
  .news-brief-layout {
    grid-template-columns: minmax(0, 1fr);
  }

  .homepage-hero {
    width: 100%;
  }

  .news-brief-sidebar {
    border-left: 0;
    padding-left: 0;
    position: static;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 860px) {
  .news-shell {
    width: calc(100vw - 20px);
    margin: 10px auto 28px;
    gap: 10px;
  }

  .news-center-hero {
    min-height: auto;
    display: grid;
    padding: 22px;
    border-radius: 28px;
    gap: 20px;
  }

  .news-center-hero .news-title {
    font-size: clamp(42px, 16vw, 70px);
  }

  .news-center-hero .news-subtitle {
    font-size: 14px;
    line-height: 1.45;
  }

  .news-hero-status {
    width: 100%;
    min-width: 0;
    padding: 14px;
    border-radius: 20px;
  }

  .news-command-bar {
    align-items: stretch;
    flex-direction: column;
    padding: 10px;
    border-radius: 22px;
  }

  .news-page-tabs {
    width: 100%;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .news-page-tabs .stock-news-tab {
    justify-content: center;
    padding: 0 10px;
  }

  .news-command-bar p {
    padding: 0 4px 2px;
    font-size: 12px;
  }

  .news-feed-box {
    padding: 14px;
    border-radius: 26px;
  }

  .news-feed-head {
    align-items: flex-start;
    flex-direction: column;
  }

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

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

  .news-brief-page-head,
  .news-brief-page-card-head,
  .homepage-news-brief-preview-head,
  .homepage-news-brief-preview-foot {
    align-items: flex-start;
    flex-direction: column;
  }

  .news-brief-search-row,
  .news-brief-page-item {
    grid-template-columns: minmax(0, 1fr);
  }

  .news-brief-page-card {
    padding: 16px;
    border-radius: 24px;
  }

  .news-brief-page-card::before {
    display: none;
  }

  .news-brief-time-lockup {
    width: 100%;
    justify-content: space-between;
  }

  .news-brief-page-card-head em {
    padding-top: 0;
  }

  .news-brief-page-bullets {
    padding: 12px 12px 12px 28px;
    border-radius: 18px;
  }

  .news-brief-page-item {
    align-items: stretch;
    padding: 12px;
  }

  .news-brief-page-item-code {
    justify-content: flex-start;
    width: fit-content;
    min-width: 72px;
    padding: 0 12px;
  }

  .news-brief-page-open {
    width: 100%;
  }

  .news-brief-session-list {
    max-height: 230px;
  }
}

.homepage-charged-list {
  display: grid;
  gap: 10px;
}

.charged-stock-row {
  width: 100%;
  border: 1px solid #ebe3d8;
  background: linear-gradient(180deg, #fffaf2 0%, #fff6eb 100%);
  border-radius: 18px;
  padding: 14px 16px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  gap: 14px;
  align-items: center;
  text-align: left;
  cursor: pointer;
}

.charged-stock-row:hover {
  background: #f7efe2;
}

.charged-stock-copy {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.charged-stock-copy strong {
  color: #141414;
  font-size: 15px;
  font-weight: 900;
}

.charged-stock-copy span {
  color: #6c655c;
  font-size: 12px;
  font-weight: 700;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.charged-stock-flags {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: center;
}

.charged-stock-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 28px;
  padding: 0 10px;
  border-radius: 999px;
  background: #111111;
  color: #ffffff;
  font-size: 11px;
  font-weight: 800;
  white-space: nowrap;
}

.charged-stock-pill.high-ref {
  background: #1b1d22;
}

.charged-stock-pill.volume {
  background: #d9891b;
}

.charged-stock-metrics {
  display: grid;
  gap: 4px;
  text-align: right;
}

.charged-stock-metrics strong {
  color: #141414;
  font-size: 16px;
  font-weight: 900;
}

.charged-stock-metrics span {
  font-size: 13px;
  font-weight: 800;
}

.charged-stock-metrics.positive strong,
.charged-stock-metrics.positive span {
  color: var(--green);
}

.charged-stock-metrics.negative strong,
.charged-stock-metrics.negative span {
  color: var(--red);
}

.charged-stock-metrics.neutral strong,
.charged-stock-metrics.neutral span {
  color: #9b7c18;
}

.homepage-sector-row {
  display: grid;
  grid-template-columns: minmax(180px, 1fr) minmax(180px, 1.1fr) auto;
  align-items: center;
  gap: 14px;
  padding: 12px 14px;
  border-radius: 18px;
  background: #fbf7f0;
  border: 1px solid #eee6da;
}

.homepage-sector-copy {
  display: grid;
  gap: 4px;
}

.homepage-sector-copy strong {
  color: #141414;
  font-size: 15px;
  font-weight: 800;
}

.homepage-sector-copy span {
  color: #6c655c;
  font-size: 12px;
  font-weight: 700;
}

.homepage-sector-track {
  height: 10px;
  border-radius: 999px;
  background: #efe6da;
  overflow: hidden;
}

.homepage-sector-bar {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: #a68b53;
}

.homepage-sector-bar.positive {
  background: linear-gradient(90deg, #0ea567 0%, #4dd58c 100%);
}

.homepage-sector-bar.negative {
  background: linear-gradient(90deg, #d34d55 0%, #ef7a7f 100%);
}

.homepage-sector-bar.neutral {
  background: linear-gradient(90deg, #caa04a 0%, #e0bf78 100%);
}

.homepage-sector-change {
  font-size: 14px;
  font-weight: 900;
  white-space: nowrap;
}

.homepage-sector-change.positive {
  color: var(--green);
}

.homepage-sector-change.negative {
  color: var(--red);
}

.homepage-sector-change.neutral {
  color: #9b7c18;
}

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

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

  .homepage-analysis-hub {
    grid-template-columns: 1fr;
  }

  .homepage-analysis-grid {
    grid-template-columns: 1fr;
  }

  .homepage-deep-grid {
    grid-template-columns: 1fr;
  }

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

  .homepage-brief-shell > .homepage-analysis-panel {
    grid-column: auto;
  }

  .homepage-hero {
    grid-template-columns: 1fr;
  }

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

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

  .homepage-charged-shell {
    grid-template-columns: 1fr;
  }

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

  .homepage-suspension-meta {
    justify-items: start;
  }

  .homepage-suspension-meta small {
    text-align: left;
  }
}

@media (max-width: 1360px) {
  .homepage-leadership-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 980px) {
  .homepage-summary-grid,
  .homepage-pulse-grid,
  .homepage-leadership-grid {
    grid-template-columns: 1fr;
  }

  .homepage-radar-grid {
    grid-template-columns: 1fr;
  }

  .homepage-matrix-head,
  .homepage-matrix-row {
    grid-template-columns: 1fr;
    gap: 6px;
  }

  .homepage-news-brief-head {
    flex-direction: column;
    align-items: flex-start;
  }

  .homepage-sector-row {
    grid-template-columns: 1fr;
    gap: 10px;
  }

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

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

  .homepage-feed-metrics {
    text-align: left;
  }

  .charged-stock-metrics {
    text-align: left;
  }
}

.trending-stock-row {
  width: 100%;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  padding: 10px 12px;
  border: 1px solid #ece4d8;
  border-radius: 14px;
  background: #fffaf2;
  cursor: pointer;
  text-align: left;
  font: inherit;
}

.trending-stock-row:hover {
  background: #f7efe2;
}

.trending-stock-copy {
  min-width: 0;
}

.trending-stock-copy strong {
  display: block;
  color: #161616;
  font-size: 14px;
  font-weight: 800;
}

.trending-stock-copy span {
  display: block;
  margin-top: 3px;
  color: #6c645a;
  font-size: 11px;
  font-weight: 600;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.trending-stock-metrics {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.trending-stock-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 28px;
  padding: 0 10px;
  border-radius: 999px;
  background: #171a1f;
  color: #ffffff;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.02em;
}

.trending-stock-score {
  color: #171717;
  font-size: 13px;
  font-weight: 800;
}

.trending-stock-score.positive {
  color: #16804a;
}

.trending-stock-score.negative {
  color: #bb2b31;
}

.trending-stock-score.neutral {
  color: #171717;
}

.live-market-shell {
  width: min(1544px, calc(100% - 32px));
  margin: 18px auto 36px;
  display: grid;
  gap: 16px;
}

.live-market-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 16px;
  align-items: stretch;
}

.live-market-copy,
.live-stream-status-card,
.live-market-panel,
.live-market-tape-box,
.live-overview-card {
  background: #ffffff;
  border: 1px solid #e8e0d6;
  border-radius: 24px;
  box-shadow: 0 18px 40px rgba(17, 17, 17, 0.05);
}

.live-market-copy {
  padding: 24px 26px;
}

.live-stream-status-card {
  padding: 20px 22px;
  display: grid;
  gap: 8px;
  align-content: center;
}

.live-stream-status-line {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #141414;
  font-weight: 800;
}

.live-stream-dot {
  width: 11px;
  height: 11px;
  border-radius: 999px;
  background: #b8aea0;
  box-shadow: 0 0 0 6px rgba(184, 174, 160, 0.18);
}

.live-stream-dot.connected {
  background: var(--green);
  box-shadow: 0 0 0 6px rgba(50, 195, 114, 0.16);
}

.live-stream-dot.connecting,
.live-stream-dot.reconnecting,
.live-stream-dot.pending {
  background: var(--gold);
  box-shadow: 0 0 0 6px rgba(237, 179, 40, 0.18);
}

.live-stream-dot.offline {
  background: var(--red);
  box-shadow: 0 0 0 6px rgba(255, 90, 90, 0.18);
}

.live-stream-last-push {
  font-size: 34px;
  line-height: 1;
  font-weight: 800;
  color: #121212;
}

.live-stream-meta {
  color: #6a6259;
  font-size: 14px;
  font-weight: 600;
}

.live-market-overview {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 12px;
}

.live-overview-card {
  padding: 16px 18px;
  display: grid;
  gap: 6px;
}

.live-overview-label {
  color: #776f66;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.live-overview-value {
  color: #141414;
  font-size: 28px;
  line-height: 1.1;
  font-weight: 800;
}

.live-overview-meta {
  font-size: 13px;
  font-weight: 700;
  color: #6a6259;
}

.live-overview-card.positive .live-overview-meta { color: var(--green); }
.live-overview-card.negative .live-overview-meta { color: var(--red); }
.live-overview-card.neutral .live-overview-meta { color: #917642; }

.live-market-board {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.live-market-split {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(340px, 0.75fr);
  gap: 16px;
  align-items: start;
}

.live-market-panel,
.live-market-tape-box,
.live-market-watchlist-box {
  padding: 18px 18px 16px;
}

.live-market-watchlist-box {
  background: #ffffff;
  border: 1px solid #e8e0d6;
  border-radius: 24px;
  box-shadow: 0 18px 40px rgba(17, 17, 17, 0.05);
  display: grid;
  gap: 14px;
}

.live-market-sunburst-box {
  background: #ffffff;
  border: 1px solid #e8e0d6;
  border-radius: 24px;
  box-shadow: 0 18px 40px rgba(17, 17, 17, 0.05);
  padding: 18px 18px 20px;
}

.egx30-shell {
  width: min(1544px, calc(100% - 32px));
  margin: 18px auto 36px;
  display: grid;
  gap: 16px;
}

.egx30-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(360px, 420px);
  gap: 16px;
  align-items: stretch;
}

.egx30-hero-copy,
.egx30-summary-card,
.egx30-chart-box,
.egx30-table-box {
  background: #ffffff;
  border: 1px solid #e8e0d6;
  border-radius: 24px;
  box-shadow: 0 18px 40px rgba(17, 17, 17, 0.05);
}

.egx30-hero-copy {
  padding: 24px 26px;
}

.egx30-summary-card {
  padding: 18px;
  display: grid;
  align-content: start;
  gap: 10px;
}

.egx30-summary-value {
  font-size: 28px;
  line-height: 1;
  font-weight: 900;
  color: #141414;
}

.egx30-summary-subvalue {
  font-size: 22px;
  line-height: 1.1;
  font-weight: 800;
  color: #141414;
}

.egx30-summary-label {
  color: #6a6259;
  font-size: 13px;
  font-weight: 700;
}

.indices-summary-metrics {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin-top: 4px;
}

.indices-summary-metric {
  min-width: 0;
  padding: 10px 11px;
  border: 1px solid #e8e0d6;
  border-radius: 15px;
  background: #faf8f3;
}

.indices-summary-metric span {
  display: block;
  color: #7a7167;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.indices-summary-metric strong {
  display: block;
  margin-top: 5px;
  color: #141414;
  font-size: 16px;
  font-weight: 900;
  line-height: 1.15;
}

.indices-summary-metric .positive,
.indices-summary-status .positive,
#indices-summary-move.positive {
  color: #11a05d;
}

.indices-summary-metric .negative,
.indices-summary-status .negative,
#indices-summary-move.negative {
  color: #e0444f;
}

.indices-summary-metric .neutral,
.indices-summary-status .neutral,
#indices-summary-move.neutral {
  color: #6a6259;
}

.indices-summary-status {
  margin: 0;
  color: #2f2b27;
  font-size: 13px;
  font-weight: 800;
  line-height: 1.45;
}

.indices-summary-foot {
  display: grid;
  grid-template-columns: 0.82fr 1.18fr;
  gap: 8px;
  padding-top: 10px;
  border-top: 1px solid #ede5da;
}

.indices-summary-foot > div {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.egx30-main {
  display: grid;
  grid-template-columns: minmax(380px, 0.95fr) minmax(0, 1.05fr);
  gap: 16px;
  align-items: start;
}

.indices-left-stack {
  display: grid;
  gap: 16px;
  align-content: start;
}

.indices-news-box {
  min-height: 620px;
  display: flex;
  flex-direction: column;
}

.indices-news-list {
  flex: 1 1 auto;
  min-height: 520px;
  max-height: none;
}

.egx30-chart-box,
.egx30-table-box {
  padding: 18px 18px 16px;
}

.egx30-chart-wrap {
  position: relative;
  min-height: 620px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.egx30-pie-svg {
  width: 100%;
  max-width: 620px;
  height: auto;
  overflow: visible;
}

.egx30-pie-slice {
  cursor: pointer;
  transition: opacity 0.15s ease, transform 0.15s ease;
  transform-origin: 310px 310px;
  stroke: rgba(15, 17, 20, 0.55);
  stroke-width: 0.9;
  stroke-linejoin: round;
}

.egx30-pie-slice:hover {
  opacity: 0.92;
}

.egx30-pie-slice.aggregate {
  cursor: default;
  stroke: rgba(88, 62, 28, 0.35);
  stroke-dasharray: 4 3;
}

.egx30-pie-slice.aggregate:hover {
  opacity: 1;
}

.egx30-pie-center {
  position: absolute;
  inset: 50% auto auto 50%;
  transform: translate(-50%, -50%);
  width: 178px;
  height: 178px;
  border-radius: 999px;
  background: #101317;
  color: #ffffff;
  display: grid;
  align-content: center;
  justify-items: center;
  text-align: center;
  box-shadow: 0 18px 34px rgba(0, 0, 0, 0.25);
  pointer-events: none;
}

.egx30-pie-center-label {
  color: #d2b285;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.egx30-pie-center strong {
  font-size: 28px;
  line-height: 1.1;
  font-weight: 900;
}

.egx30-pie-center-change {
  margin-top: 6px;
  font-size: 13px;
  line-height: 1.1;
  font-weight: 900;
}

.egx30-pie-center-change.positive {
  color: var(--green);
}

.egx30-pie-center-change.negative {
  color: var(--red);
}

.egx30-pie-center-change.neutral {
  color: #d2b285;
}

.egx30-pie-center-meta {
  margin-top: 6px;
  color: #c1c9d0;
  font-size: 12px;
  font-weight: 700;
  max-width: 140px;
  line-height: 1.25;
}

.egx30-pie-tooltip {
  position: absolute;
  top: 16px;
  right: 16px;
  max-width: 220px;
  padding: 12px 14px;
  border-radius: 16px;
  background: rgba(12, 15, 18, 0.94);
  color: #ffffff;
  box-shadow: 0 18px 34px rgba(0, 0, 0, 0.28);
  display: grid;
  gap: 4px;
  pointer-events: none;
}

.egx30-pie-tooltip strong {
  font-size: 14px;
  font-weight: 900;
}

.egx30-pie-tooltip span {
  font-size: 12px;
  font-weight: 700;
  color: #ced5dc;
}

.egx30-pie-tooltip .positive {
  color: var(--green);
}

.egx30-pie-tooltip .negative {
  color: var(--red);
}

.egx30-pie-tooltip .neutral {
  color: var(--gold);
}

.egx30-table-wrap {
  overflow: auto;
}

.egx30-table {
  width: 100%;
  border-collapse: collapse;
}

.egx30-table th {
  padding: 12px 10px;
  border-bottom: 1px solid #ece4d8;
  color: #72695f;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-align: left;
  white-space: nowrap;
}

.egx30-table td {
  padding: 13px 10px;
  border-bottom: 1px solid #f0e8db;
  color: #181818;
  font-size: 14px;
  font-weight: 700;
  vertical-align: middle;
}

.egx30-table tbody tr {
  cursor: pointer;
  transition: background 0.15s ease;
}

.egx30-table tbody tr:hover {
  background: #fbf6ee;
}

.egx30-table-symbol {
  font-size: 15px;
  font-weight: 900;
}

.egx30-table-name {
  color: #534d47;
  font-size: 13px;
  font-weight: 700;
}

.egx30-table-change.positive {
  color: var(--green);
}

.egx30-table-change.negative {
  color: var(--red);
}

.egx30-table-change.neutral {
  color: var(--gold);
}

.egx30-table-weight {
  color: #bf6a07;
  font-weight: 900;
}

.indices-switcher,
.sectors-switcher {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 14px;
}

.indices-switch-button,
.sectors-switch-button {
  border: 1px solid #d8ccbb;
  background: #fff8ef;
  color: #5b5146;
  border-radius: 999px;
  padding: 10px 16px;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.03em;
  cursor: pointer;
  transition: transform 140ms ease, border-color 140ms ease, background-color 140ms ease, color 140ms ease, box-shadow 140ms ease;
}

.indices-switch-button:hover,
.sectors-switch-button:hover {
  transform: translateY(-1px);
  border-color: #caa05a;
  box-shadow: 0 12px 24px rgba(17, 17, 17, 0.08);
}

.indices-switch-button.active,
.sectors-switch-button.active {
  background: #15191e;
  border-color: #15191e;
  color: #ffffff;
}

.indices-switch-button.active::before,
.sectors-switch-button.active::before {
  content: "";
  display: inline-block;
  width: 8px;
  height: 8px;
  margin-right: 10px;
  border-radius: 999px;
  background: var(--brand);
  vertical-align: middle;
}

.indices-page-note,
.sectors-page-note {
  margin-top: 12px;
  color: #6a6259;
  font-size: 13px;
  font-weight: 700;
  max-width: 760px;
}

.indices-performance-shell {
  margin-top: 14px;
}

.indices-performance-title {
  margin: 0 0 10px;
  color: #7a6a59;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.indices-performance-switcher {
  margin-top: 0;
}

.indices-table-panel-head {
  display: flex;
  gap: 22px;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 18px;
}

.indices-table-panel-copy {
  flex: 1 1 360px;
  max-width: 520px;
}

.indices-table-toolbar {
  display: grid;
  grid-template-columns: minmax(420px, auto) minmax(250px, auto);
  flex: 0 1 auto;
  gap: 14px;
  align-items: flex-end;
  justify-content: flex-end;
}

.indices-table-control-group {
  min-width: 0;
  display: grid;
  gap: 7px;
  align-items: end;
}

.indices-table-control-group .indices-performance-title {
  margin: 0;
}

.indices-performance-switcher,
.indices-view-switcher {
  display: flex;
  flex-wrap: nowrap;
  gap: 4px;
  margin-top: 0;
  padding: 3px;
  border: 1px solid #eadfce;
  border-radius: 999px;
  background: #fffaf4;
}

.indices-performance-switcher .indices-switch-button,
.indices-view-switcher .indices-switch-button {
  margin-top: 0;
  min-height: 32px;
  border-radius: 999px;
  border-color: transparent;
  padding: 7px 13px;
  font-size: 12px;
  background: transparent;
  color: #5b5146;
  white-space: nowrap;
  box-shadow: none;
  transform: none;
}

.indices-performance-switcher .indices-switch-button:hover,
.indices-view-switcher .indices-switch-button:hover {
  background: #f4eadc;
  border-color: transparent;
  box-shadow: none;
  transform: none;
}

.indices-performance-switcher .indices-switch-button.active,
.indices-view-switcher .indices-switch-button.active {
  background: #15191e;
  border-color: #15191e;
  color: #ffffff;
}

.indices-performance-switcher .indices-switch-button:focus-visible,
.indices-view-switcher .indices-switch-button:focus-visible {
  outline: 2px solid #f5a118;
  outline-offset: 2px;
}

.indices-view-switcher .indices-switch-button {
  min-width: 112px;
  justify-content: center;
}

.indices-bars-wrap.hidden,
.egx30-table-wrap.hidden {
  display: none;
}

.indices-bars-wrap {
  overflow: auto;
}

.indices-bars-head,
.indices-bar-row {
  display: grid;
  grid-template-columns: minmax(90px, 0.7fr) minmax(220px, 1.7fr) minmax(180px, 1.45fr) minmax(90px, 0.7fr) minmax(260px, 1.7fr) minmax(90px, 0.7fr);
  gap: 10px;
  align-items: center;
  min-width: 980px;
}

.indices-bars-head {
  padding: 12px 10px;
  border-bottom: 1px solid #ece4d8;
  color: #72695f;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.indices-bar-row {
  width: 100%;
  border: 0;
  border-bottom: 1px solid #f0e8db;
  background: transparent;
  padding: 13px 10px;
  text-align: left;
  cursor: pointer;
  transition: background 0.15s ease;
}

.indices-bar-row:hover {
  background: #fbf6ee;
}

.indices-bar-symbol {
  color: #141414;
  font-size: 15px;
  font-weight: 900;
}

.indices-bar-name,
.indices-bar-sector,
.indices-bar-price {
  color: #534d47;
  font-size: 13px;
  font-weight: 700;
}

.indices-bar-track {
  position: relative;
  height: 30px;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(200, 59, 67, 0.08) 0%, rgba(200, 59, 67, 0.02) 49.8%, rgba(7, 129, 79, 0.02) 50.2%, rgba(7, 129, 79, 0.08) 100%);
  overflow: hidden;
}

.indices-bar-midline {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 1px;
  background: rgba(21, 25, 30, 0.16);
}

.indices-bar-fill {
  position: absolute;
  top: 4px;
  bottom: 4px;
  border-radius: 999px;
}

.homepage-suspension-list {
  display: grid;
  gap: 10px;
}

.homepage-suspension-row {
  width: 100%;
  border: 1px solid #ece0d0;
  background: linear-gradient(180deg, #fff8f3 0%, #fff3ec 100%);
  border-radius: 18px;
  padding: 14px 16px;
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  gap: 14px;
  align-items: start;
  text-align: left;
  cursor: pointer;
}

.homepage-suspension-row:hover {
  background: #fdf0e8;
}

.homepage-suspension-copy {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.homepage-suspension-copy strong {
  color: #141414;
  font-size: 15px;
  font-weight: 900;
}

.homepage-suspension-copy span {
  color: #746a60;
  font-size: 12px;
  font-weight: 700;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.homepage-suspension-meta {
  display: grid;
  gap: 5px;
  justify-items: end;
  min-width: 0;
}

.homepage-suspension-time {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 0 10px;
  border-radius: 999px;
  background: rgba(177, 34, 49, 0.10);
  color: #a12a38;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.08em;
}

.homepage-suspension-meta small {
  color: #3c332a;
  font-size: 12px;
  line-height: 1.45;
  font-weight: 700;
  text-align: right;
}

.indices-bar-fill.positive {
  background: linear-gradient(90deg, #17a562 0%, #0d8f57 100%);
}

.indices-bar-fill.negative {
  background: linear-gradient(90deg, #cf3645 0%, #b82231 100%);
}

.indices-bar-fill.neutral {
  background: linear-gradient(90deg, #a48749 0%, #8e7653 100%);
}

.indices-bar-value {
  position: absolute;
  top: 50%;
  right: 10px;
  transform: translateY(-50%);
  font-size: 13px;
  font-weight: 900;
  color: #141414;
}

.indices-bar-value.positive {
  color: var(--green);
}

.indices-bar-value.negative {
  color: var(--red);
}

.indices-bar-value.neutral {
  color: var(--gold);
}

.indices-bar-weight {
  color: #bf6a07;
  font-size: 13px;
  font-weight: 900;
}

.sectors-summary-grid {
  display: grid;
  align-content: start;
  gap: 12px;
}

.sectors-summary-head {
  display: grid;
  gap: 4px;
}

.sectors-summary-metrics {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.sectors-summary-tile {
  display: grid;
  gap: 4px;
  padding: 10px 12px;
  border-radius: 16px;
  background: #f8f4ee;
  border: 1px solid #ece2d3;
}

.sectors-summary-tile-wide {
  grid-column: 1 / -1;
}

.sectors-summary-tile span {
  color: #6a6259;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.sectors-summary-tile strong {
  color: #15191e;
  font-size: 20px;
  font-weight: 900;
}

.sectors-summary-leaders {
  display: grid;
  gap: 8px;
  padding-top: 4px;
}

.sectors-summary-line {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
}

.sectors-summary-line span {
  color: #6a6259;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.sectors-summary-line strong {
  color: #15191e;
  font-size: 14px;
  font-weight: 900;
  text-align: right;
}

.sectors-summary-line .positive {
  color: var(--green);
}

.sectors-summary-line .negative {
  color: var(--red);
}

.sectors-summary-line .neutral {
  color: var(--gold);
}

.sector-table-turnover {
  color: #7d5b28;
  font-weight: 900;
}

@media (max-width: 1120px) {
  .egx30-hero,
  .egx30-main {
    grid-template-columns: 1fr;
  }

  .indices-table-panel-head {
    display: grid;
    grid-template-columns: 1fr;
  }

  .indices-table-panel-copy {
    max-width: none;
  }

  .indices-table-toolbar {
    grid-template-columns: minmax(420px, auto) minmax(250px, auto);
    justify-content: flex-start;
  }

  .egx30-chart-wrap {
    min-height: 520px;
  }
}

@media (max-width: 760px) {
  .subnav-dropdown-menu {
    left: 0;
    min-width: 180px;
  }

  .subnav-submenu-menu {
    position: static;
    left: auto;
    top: auto;
    min-width: 0;
    margin-top: 6px;
    box-shadow: none;
    background: rgba(255, 255, 255, 0.03);
  }

  .egx30-shell {
    width: min(calc(100% - 24px), 1544px);
  }

  .egx30-hero-copy,
  .egx30-summary-card,
  .egx30-chart-box,
  .egx30-table-box {
    border-radius: 20px;
  }

  .egx30-chart-wrap {
    min-height: 420px;
  }

  .egx30-pie-center {
    width: 142px;
    height: 142px;
  }

  .egx30-pie-center strong {
    font-size: 22px;
  }

  .indices-table-control-group {
    width: 100%;
  }

  .indices-table-toolbar {
    grid-template-columns: 1fr;
  }

  .indices-performance-switcher,
  .indices-view-switcher {
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  .indices-performance-switcher .indices-switch-button,
  .indices-view-switcher .indices-switch-button {
    flex: 1 0 auto;
    min-width: 0;
  }
}

.live-market-panel-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 16px;
  margin-bottom: 14px;
}

.live-market-panel-copy {
  display: grid;
  gap: 4px;
}

.live-market-panel-head strong {
  color: #141414;
  font-size: 17px;
  font-weight: 800;
}

.live-market-panel-head span {
  color: #6a6259;
  font-size: 13px;
  font-weight: 600;
}

.live-market-list {
  display: grid;
  gap: 10px;
}

.live-market-row {
  width: 100%;
  border: 0;
  background: #f7f2ea;
  border-radius: 18px;
  padding: 14px 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  text-align: left;
  cursor: pointer;
  transition: transform 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

.live-market-row:hover {
  transform: translateY(-1px);
  box-shadow: 0 12px 24px rgba(17, 17, 17, 0.08);
  background: #fbf7f0;
}

.live-market-row-copy,
.live-market-row-metrics {
  display: grid;
  gap: 3px;
}

.live-market-row-copy strong,
.live-market-row-metrics strong {
  color: #141414;
  font-size: 16px;
  font-weight: 800;
}

.live-market-row-copy span,
.live-market-row-metrics span {
  color: #6a6259;
  font-size: 13px;
  font-weight: 600;
}

.live-market-row-metrics {
  text-align: right;
}

.live-market-row-metrics.positive strong { color: var(--green); }
.live-market-row-metrics.negative strong { color: var(--red); }
.live-market-row-metrics.neutral strong { color: #917642; }

.live-market-table-wrap {
  overflow-x: auto;
}

.live-market-table {
  width: 100%;
  border-collapse: collapse;
}

.live-market-table th,
.live-market-table td {
  padding: 14px 12px;
  border-bottom: 1px solid #ebe4d9;
  text-align: left;
}

.live-market-table th {
  color: #776f66;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.live-market-table td {
  color: #141414;
  font-size: 14px;
  font-weight: 600;
  white-space: nowrap;
}

.live-market-table td.positive { color: var(--green); font-weight: 800; }
.live-market-table td.negative { color: var(--red); font-weight: 800; }
.live-market-table td.neutral { color: #917642; font-weight: 800; }

.live-market-table-row {
  cursor: pointer;
  transition: background 160ms ease;
}

.live-market-table-row:hover {
  background: #fff8ec;
}

.live-watchlist-controls {
  display: flex;
  justify-content: flex-end;
}

.live-market-sunburst-wrap {
  position: relative;
  min-height: 620px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.live-market-sunburst-svg {
  width: 100%;
  max-width: 760px;
  height: auto;
  display: block;
  overflow: visible;
}

.live-market-sunburst-center {
  position: absolute;
  inset: 50% auto auto 50%;
  transform: translate(-50%, -50%);
  width: 178px;
  height: 178px;
  border-radius: 999px;
  background: #101317;
  color: #ffffff;
  display: grid;
  align-content: center;
  justify-items: center;
  text-align: center;
  box-shadow: 0 18px 34px rgba(0, 0, 0, 0.25);
  pointer-events: none;
}

.live-market-sunburst-center.is-clickable {
  pointer-events: auto;
  cursor: pointer;
}

.live-sunburst-center-label {
  color: #d2b285;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.live-market-sunburst-center strong {
  color: #ffffff;
  font-size: 28px;
  line-height: 1.1;
  font-weight: 900;
}

.live-sunburst-center-meta {
  color: #c1c9d0;
  font-size: 12px;
  font-weight: 700;
}

.live-market-sunburst-tooltip {
  position: absolute;
  z-index: 6;
  top: 16px;
  right: 16px;
  max-width: 220px;
  padding: 12px 14px;
  border-radius: 16px;
  background: rgba(12, 15, 18, 0.94);
  color: #ffffff;
  box-shadow: 0 18px 34px rgba(0, 0, 0, 0.28);
  display: grid;
  gap: 4px;
  pointer-events: none;
}

.live-market-sunburst-tooltip strong {
  font-size: 14px;
  font-weight: 800;
}

.live-market-sunburst-tooltip span {
  font-size: 12px;
  font-weight: 700;
  color: #ced5dc;
}

.live-sunburst-sector,
.live-sunburst-stock {
  transition: opacity 0.15s ease, transform 0.15s ease;
  transform-origin: 380px 380px;
  vector-effect: non-scaling-stroke;
  stroke-linejoin: round;
}

.live-sunburst-sector:hover,
.live-sunburst-stock:hover {
  opacity: 0.92;
}

.live-watchlist-add {
  border: 0;
  border-radius: 14px;
  background: #101114;
  color: #ffffff;
  font-size: 13px;
  font-weight: 800;
  padding: 10px 14px;
  cursor: pointer;
  transition: transform 160ms ease, opacity 160ms ease;
}

.live-watchlist-add:hover {
  transform: translateY(-1px);
  opacity: 0.92;
}

.live-watchlist-list {
  display: grid;
  gap: 10px;
}

.live-watchlist-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: stretch;
}

.live-watchlist-main {
  width: 100%;
  border: 0;
  background: #f7f2ea;
  border-radius: 18px;
  padding: 14px 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  text-align: left;
  cursor: pointer;
  transition: transform 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

.live-watchlist-main:hover {
  transform: translateY(-1px);
  box-shadow: 0 12px 24px rgba(17, 17, 17, 0.08);
  background: #fbf7f0;
}

.live-watchlist-copy,
.live-watchlist-metrics {
  display: grid;
  gap: 4px;
}

.live-watchlist-copy strong,
.live-watchlist-metrics strong {
  color: #141414;
  font-size: 16px;
  font-weight: 800;
}

.live-watchlist-copy span,
.live-watchlist-metrics span,
.live-watchlist-metrics small {
  color: #6a6259;
  font-size: 13px;
  font-weight: 700;
}

.live-watchlist-metrics {
  text-align: right;
}

.live-watchlist-remove,
.live-watchlist-toggle {
  border: 0;
  border-radius: 14px;
  font-weight: 800;
  cursor: pointer;
  transition: transform 160ms ease, background 160ms ease, color 160ms ease;
}

.live-watchlist-remove {
  min-width: 44px;
  padding: 0 14px;
  background: #121212;
  color: #ffffff;
  font-size: 22px;
}

.live-watchlist-remove:hover,
.live-watchlist-toggle:hover {
  transform: translateY(-1px);
}

.live-watchlist-toggle {
  min-width: 34px;
  height: 34px;
  background: #f2eadf;
  color: #8d7441;
  font-size: 18px;
}

.live-watchlist-toggle.active {
  background: rgba(237, 179, 40, 0.18);
  color: #b67c00;
}

.live-market-empty {
  color: #6a6259;
  font-size: 14px;
  font-weight: 600;
  padding: 16px 0;
}

.live-terminal-shell {
  --terminal-bg: #090b0f;
  --terminal-panel: #11151b;
  --terminal-panel-2: #0c1016;
  --terminal-line: rgba(255, 155, 48, 0.18);
  --terminal-soft: #8d97a3;
  --terminal-text: #f4f7fb;
  --terminal-orange: #ff9b30;
  --terminal-green: #18c86f;
  --terminal-red: #ff626d;
  --terminal-neutral: #a4adba;
  color: var(--terminal-text);
}

.live-terminal-shell,
.live-terminal-shell * {
  font-family: "IBM Plex Sans", sans-serif;
}

.live-terminal-shell .news-title,
.live-terminal-shell .news-kicker,
.live-terminal-shell .news-subtitle {
  color: var(--terminal-text);
}

.live-terminal-copy,
.live-terminal-status-card,
.live-terminal-tape-box,
.live-terminal-watchlist-box,
.live-terminal-sunburst-box,
.live-terminal-overview .live-overview-card {
  background:
    linear-gradient(180deg, rgba(255, 155, 48, 0.06), rgba(255, 155, 48, 0) 24%),
    linear-gradient(180deg, var(--terminal-panel), var(--terminal-panel-2));
  border-color: var(--terminal-line);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.03),
    0 20px 48px rgba(0, 0, 0, 0.35);
}

.live-terminal-copy {
  position: relative;
  overflow: hidden;
}

.live-terminal-copy::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(255, 155, 48, 0.08), transparent 25%),
    repeating-linear-gradient(180deg, rgba(255, 255, 255, 0.02) 0 1px, transparent 1px 7px);
  pointer-events: none;
}

.live-terminal-titlebar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.live-terminal-mode {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 0 12px;
  border-radius: 999px;
  border: 1px solid rgba(255, 155, 48, 0.22);
  background: rgba(255, 155, 48, 0.08);
  color: var(--terminal-orange);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.live-terminal-ribbon {
  margin-top: 18px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.live-terminal-ribbon span {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 0 12px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.06);
  color: #dbe1e8;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.live-terminal-shell .live-stream-status-line {
  color: var(--terminal-text);
}

.live-terminal-shell .live-stream-last-push,
.live-terminal-shell .live-overview-value,
.live-terminal-shell .live-market-table td:nth-child(2),
.live-terminal-shell .live-market-table td:nth-child(4),
.live-terminal-shell .live-market-table td:nth-child(5),
.live-terminal-shell .live-market-table td:nth-child(6),
.live-terminal-shell .live-market-table td:nth-child(7),
.live-terminal-shell .live-watchlist-metrics strong,
.live-terminal-shell .live-watchlist-metrics span,
.live-terminal-shell .live-watchlist-metrics small,
.live-terminal-shell .live-market-sunburst-center strong {
  font-family: "IBM Plex Mono", monospace;
}

.live-terminal-shell .live-stream-last-push {
  color: #ffffff;
}

.live-terminal-overview {
  gap: 10px;
}

.live-terminal-overview .live-overview-card {
  min-height: 106px;
  padding: 14px 16px;
  gap: 7px;
}

.live-terminal-overview .live-overview-label {
  color: #9ba4b0;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.09em;
}

.live-terminal-overview .live-overview-value {
  color: #ffffff;
  font-size: 26px;
  font-weight: 900;
  letter-spacing: -0.04em;
}

.live-terminal-overview .live-overview-meta {
  color: var(--terminal-soft);
  font-size: 12px;
}

.live-terminal-overview .live-overview-card.positive .live-overview-meta { color: var(--terminal-green); }
.live-terminal-overview .live-overview-card.negative .live-overview-meta { color: var(--terminal-red); }
.live-terminal-overview .live-overview-card.neutral .live-overview-meta { color: var(--terminal-orange); }

.live-terminal-shell .live-market-panel-head {
  margin-bottom: 12px;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(255, 155, 48, 0.12);
}

.live-terminal-shell .live-market-panel-head strong {
  color: #f8fafc;
  font-size: 16px;
  font-weight: 900;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.live-terminal-shell .live-market-panel-head span {
  color: var(--terminal-soft);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.live-terminal-shell .live-market-table-wrap {
  border: 1px solid rgba(255, 155, 48, 0.1);
  border-radius: 16px;
  background: rgba(0, 0, 0, 0.16);
}

.live-terminal-shell .live-market-table th {
  background: rgba(255, 155, 48, 0.06);
  border-bottom: 1px solid rgba(255, 155, 48, 0.12);
  color: #9aa3ae;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
}

.live-terminal-shell .live-market-table td {
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  color: #edf1f6;
  font-size: 13px;
  font-weight: 700;
}

.live-terminal-shell .live-market-table-row:hover {
  background: rgba(255, 255, 255, 0.03);
}

.live-terminal-shell .live-market-table td.positive { color: var(--terminal-green); }
.live-terminal-shell .live-market-table td.negative { color: var(--terminal-red); }
.live-terminal-shell .live-market-table td.neutral { color: var(--terminal-orange); }

.live-terminal-shell .live-watchlist-add {
  border: 1px solid rgba(255, 155, 48, 0.2);
  background: rgba(255, 155, 48, 0.1);
  color: #ffd49d;
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.live-terminal-shell .live-watchlist-main {
  border: 1px solid rgba(255, 255, 255, 0.06);
  background: rgba(255, 255, 255, 0.025);
  box-shadow: none;
}

.live-terminal-shell .live-watchlist-main:hover {
  background: rgba(255, 255, 255, 0.04);
}

.live-terminal-shell .live-watchlist-copy strong,
.live-terminal-shell .live-watchlist-metrics strong {
  color: #ffffff;
}

.live-terminal-shell .live-watchlist-copy span,
.live-terminal-shell .live-watchlist-metrics small {
  color: var(--terminal-soft);
}

.live-terminal-shell .live-watchlist-main.positive .live-watchlist-metrics span { color: var(--terminal-green); }
.live-terminal-shell .live-watchlist-main.negative .live-watchlist-metrics span { color: var(--terminal-red); }
.live-terminal-shell .live-watchlist-main.neutral .live-watchlist-metrics span { color: var(--terminal-orange); }

.live-terminal-shell .live-watchlist-remove,
.live-terminal-shell .live-watchlist-toggle {
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.03);
  color: #b8c1cc;
}

.live-terminal-shell .live-watchlist-toggle.active {
  background: rgba(255, 155, 48, 0.14);
  color: #ffc278;
}

.live-terminal-shell .live-market-empty {
  color: var(--terminal-soft);
  padding: 18px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.025);
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.live-terminal-shell .live-market-sunburst-wrap {
  min-height: 680px;
  border-radius: 18px;
  border: 1px solid rgba(255, 155, 48, 0.08);
  background:
    radial-gradient(circle at 50% 50%, rgba(255, 155, 48, 0.08), transparent 34%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.015), rgba(255, 255, 255, 0.01));
  overflow: hidden;
}

.live-terminal-shell .live-market-sunburst-center {
  width: 188px;
  height: 188px;
  background: #07090d;
  border-color: rgba(255, 155, 48, 0.18);
}

.live-terminal-shell .live-sunburst-center-label {
  color: #d7a66a;
}

.live-terminal-shell .live-sunburst-center-meta {
  color: #bcc5cf;
}

.live-terminal-shell .live-market-sunburst-tooltip {
  background: rgba(5, 7, 10, 0.96);
  border: 1px solid rgba(255, 155, 48, 0.18);
}

.live-terminal-shell .live-market-sunburst-tooltip span {
  color: #c4ccd5;
}

@media (max-width: 1200px) {
  .live-terminal-overview {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

@media (max-width: 860px) {
  .live-terminal-overview {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .live-terminal-shell .live-market-table th:nth-child(3),
  .live-terminal-shell .live-market-table td:nth-child(3),
  .live-terminal-shell .live-market-table th:nth-child(6),
  .live-terminal-shell .live-market-table td:nth-child(6) {
    display: none;
  }

  .live-terminal-shell .live-market-sunburst-wrap {
    min-height: 540px;
  }

  .live-terminal-shell .live-market-sunburst-center {
    width: 156px;
    height: 156px;
  }
}

@media (max-width: 1260px) {
  .site-header-inner,
  .header-search-inner,
  .top-stage {
    width: min(1544px, calc(100% - 32px));
  }

  .live-market-shell {
    width: min(1544px, calc(100% - 32px));
  }

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

@media (max-width: 1200px) {
  .live-market-hero {
    grid-template-columns: 1fr;
  }

  .live-market-overview {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

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

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

  .live-market-sunburst-wrap {
    min-height: 620px;
  }

  .site-header-inner {
    grid-template-columns: 1fr auto;
    row-gap: 16px;
  }

  .logo-slot {
    grid-column: 1;
  }

  .login-wrap {
    grid-column: 2;
    justify-content: flex-end;
  }

  .header-indices {
    grid-column: 1 / -1;
    justify-content: flex-start;
  }
}

@media (max-width: 980px) {
  .live-market-overview {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

  .live-watchlist-remove {
    min-height: 44px;
  }

  .live-market-sunburst-wrap {
    min-height: 520px;
  }

  .live-market-sunburst-center {
    width: 146px;
    height: 146px;
  }

  .site-header-inner {
    grid-template-columns: 1fr;
    justify-items: start;
    padding: 14px 0 12px;
    gap: 18px;
  }

  .market-strip {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    padding: 14px;
  }

  .search-strip {
    flex-direction: column;
    align-items: stretch;
    padding: 14px;
  }

  .search-results {
    left: 0;
  }

  .search-button {
    width: 100%;
  }

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

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

  .news-hero {
    flex-direction: column;
    align-items: flex-start;
  }

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

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

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

@media (max-width: 640px) {
  .site-header-inner,
  .header-search-inner,
  .top-stage {
    width: min(1544px, calc(100% - 24px));
  }

  .live-market-shell {
    width: min(1544px, calc(100% - 24px));
  }

  .homepage-shell {
    width: min(1544px, calc(100% - 24px));
  }

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

  .live-market-sunburst-wrap {
    min-height: 420px;
  }

  .live-market-sunburst-center {
    width: 128px;
    height: 128px;
    padding: 12px;
  }

  .live-market-sunburst-center strong {
    font-size: 22px;
  }

  .subnav a,
  .subnav-dropdown-trigger,
  .login-button {
    font-size: 16px;
  }

  .market-strip {
    grid-template-columns: 1fr;
    padding: 14px;
  }

  .metric-main {
    gap: 8px;
  }

  .metric-main strong,
  .breadth-card strong {
    font-size: 24px;
  }

  .metric-card,
  .breadth-card {
    min-height: 68px;
  }

  .search-input,
  .stock-message {
    font-size: 18px;
  }

  .search-button {
    min-width: 100%;
  }

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

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

  .stock-news-header {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* Unified News page: Daily Brief hero, page-level filters, then all news. */
body:has(.news-center-layout) .news-shell {
  width: min(1880px, calc(100% - 48px)) !important;
  max-width: 1880px !important;
  margin: 20px auto 58px !important;
}

body:has(.news-center-layout) .news-center-layout {
  display: block !important;
}

body:has(.news-center-layout) .news-center-feed-box {
  display: grid;
  gap: 18px;
  padding: clamp(18px, 2.2vw, 28px) !important;
  border-radius: 34px !important;
}

body:has(.news-center-layout) .news-center-feed-head {
  display: block !important;
}

body:has(.news-center-layout) .news-center-feed-head .stock-news-title {
  display: block;
  color: #111111;
  font-size: clamp(56px, 6.4vw, 112px);
  line-height: 0.82;
  letter-spacing: -0.075em;
  font-weight: 950;
}

body:has(.news-center-layout) .news-center-feed-head .stock-news-meta {
  margin-top: 12px !important;
  color: #6d675f;
  font-size: clamp(17px, 1.65vw, 28px);
  line-height: 1.08;
  letter-spacing: 0.04em;
  font-weight: 950;
  text-transform: uppercase;
}

body:has(.news-center-layout) .news-page-control-deck {
  display: grid;
  grid-template-columns: minmax(260px, 0.82fr) minmax(0, 1.45fr) minmax(260px, 0.9fr);
  gap: 12px;
  align-items: stretch;
  order: 2;
}

body:has(.news-center-layout) .news-page-search-card,
body:has(.news-center-layout) .news-page-filter-card {
  display: grid;
  gap: 10px;
  min-width: 0;
  padding: 14px;
  border-radius: 24px;
  background: #fffaf3;
  border: 1px solid #e7dccb;
}

body:has(.news-center-layout) .news-page-search-card label,
body:has(.news-center-layout) .news-page-filter-head strong {
  color: #171717;
  font-size: 13px;
  line-height: 1.1;
  font-weight: 950;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

body:has(.news-center-layout) .news-page-filter-head {
  display: flex;
  justify-content: space-between;
  gap: 10px;
}

body:has(.news-center-layout) .news-page-filter-head span {
  color: #847b70;
  font-size: 11px;
  font-weight: 850;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  text-align: right;
}

body:has(.news-center-layout) .news-brief-search-row {
  grid-template-columns: minmax(0, 1fr) auto;
}

body:has(.news-center-layout) .news-brief-search-input {
  min-height: 46px;
}

body:has(.news-center-layout) #news-type-tabs.news-page-tabs,
body:has(.news-center-layout) #news-type-tabs.news-page-tabs.hidden {
  display: flex !important;
  flex-wrap: wrap;
  gap: 8px;
  overflow: visible;
  padding: 0;
}

body:has(.news-center-layout) #news-type-tabs .stock-news-tab {
  min-height: 36px;
  padding: 0 13px;
  border-radius: 999px;
  white-space: nowrap;
  font-size: 12px;
  font-weight: 950;
}

body:has(.news-center-layout) .news-brief-session-list {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 2px;
  max-height: none;
}

body:has(.news-center-layout) .news-brief-session-button {
  flex: 0 0 auto;
}

body:has(.news-center-layout) .news-feed-list.is-brief {
  display: grid;
  gap: 18px;
  order: 3;
}

body:has(.news-center-layout) .news-brief-summary {
  order: 1;
  display: grid;
  gap: 18px;
}

body:has(.news-center-layout) .news-daily-brief-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(170px, 0.34fr) minmax(360px, 0.9fr);
  gap: clamp(16px, 2.4vw, 30px);
  align-items: center;
  padding: clamp(28px, 3.5vw, 54px);
  border-radius: 34px;
  background:
    radial-gradient(circle at 0% 0%, rgba(149, 99, 18, 0.52), transparent 36%),
    linear-gradient(140deg, #2b2112 0%, #11161c 52%, #232016 100%);
  color: #ffffff;
  box-shadow: 0 18px 44px rgba(29, 24, 16, 0.18);
}

body:has(.news-center-layout) .news-daily-brief-copy,
body:has(.news-center-layout) .news-daily-brief-count,
body:has(.news-center-layout) .news-daily-brief-highlights {
  min-width: 0;
}

body:has(.news-center-layout) .news-daily-brief-copy {
  display: grid;
  gap: 14px;
}

body:has(.news-center-layout) .news-daily-brief-copy span,
body:has(.news-center-layout) .news-daily-brief-count span {
  color: rgba(255, 255, 255, 0.64);
  font-size: 13px;
  line-height: 1.15;
  font-weight: 950;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

body:has(.news-center-layout) .news-daily-brief-copy strong {
  color: #ffffff;
  font-size: clamp(56px, 6vw, 100px);
  line-height: 0.86;
  font-weight: 950;
  letter-spacing: -0.075em;
}

body:has(.news-center-layout) .news-daily-brief-copy p {
  margin: 0;
  max-width: 55ch;
  color: rgba(255, 255, 255, 0.82);
  font-size: clamp(17px, 1.35vw, 27px);
  line-height: 1.2;
  font-weight: 900;
}

body:has(.news-center-layout) .news-daily-brief-count {
  display: grid;
  place-items: center;
  gap: 8px;
  min-height: 170px;
  padding: 22px;
  border-radius: 32px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.14);
  text-align: center;
}

body:has(.news-center-layout) .news-daily-brief-count strong {
  color: #63ef9c;
  font-size: clamp(56px, 5.8vw, 94px);
  line-height: 0.82;
  font-weight: 950;
  letter-spacing: -0.07em;
}

body:has(.news-center-layout) .news-daily-brief-count span {
  max-width: 140px;
}

body:has(.news-center-layout) .news-daily-brief-highlights {
  padding: 22px 26px;
  border-radius: 32px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.16);
}

body:has(.news-center-layout) .news-daily-brief-highlights ul {
  display: grid;
  gap: 12px;
  margin: 0;
  padding: 0 0 0 22px;
}

body:has(.news-center-layout) .news-daily-brief-highlights li {
  color: rgba(255, 255, 255, 0.9);
  font-size: clamp(15px, 1.25vw, 24px);
  line-height: 1.28;
  font-weight: 900;
}

body:has(.news-center-layout) .news-daily-brief-tickers {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

body:has(.news-center-layout) .news-daily-brief-tickers span {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  padding: 0 18px;
  border-radius: 999px;
  color: #e6ffef;
  background: rgba(75, 214, 128, 0.16);
  border: 1px solid rgba(92, 229, 145, 0.28);
  font-size: 14px;
  font-weight: 950;
  letter-spacing: 0.05em;
}

body:has(.news-center-layout) .news-brief-page-list {
  display: grid;
  gap: 14px;
}

body:has(.news-center-layout) .news-brief-page-card {
  border-radius: 24px;
}

@media (max-width: 1180px) {
  body:has(.news-center-layout) .news-page-control-deck,
  body:has(.news-center-layout) .news-daily-brief-hero {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 760px) {
  body:has(.news-center-layout) .news-shell {
    width: calc(100% - 20px) !important;
    margin-top: 12px !important;
  }

  body:has(.news-center-layout) .news-center-feed-box {
    padding: 14px !important;
    border-radius: 24px !important;
  }

  body:has(.news-center-layout) .news-center-feed-head .stock-news-title {
    font-size: clamp(42px, 15vw, 72px);
  }

  body:has(.news-center-layout) .news-daily-brief-hero {
    padding: 20px;
    border-radius: 24px;
  }

  body:has(.news-center-layout) .news-daily-brief-copy strong {
    font-size: 42px;
  }

  body:has(.news-center-layout) .news-daily-brief-count {
    min-height: 110px;
  }

  body:has(.news-center-layout) .news-daily-brief-highlights {
    padding: 16px 18px;
    border-radius: 22px;
  }
}

.stock-chart-actions {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.stock-chart-range {
  min-width: 42px;
  height: 28px;
  padding: 0 10px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.1);
  background: #151a21;
  color: #b9c0c8;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.05em;
  cursor: pointer;
}

.stock-chart-range.active {
  background: #222934;
  color: #ffffff;
  border-color: rgba(255,255,255,0.2);
}

.stock-chart-marker {
  cursor: pointer;
}

.stock-chart-marker-label {
  font-size: 13px;
  font-weight: 800;
  text-anchor: middle;
  dominant-baseline: central;
}

.stock-chart-marker.news .stock-chart-marker-dot {
  fill: #f2d14b;
}

.stock-chart-marker.pause .stock-chart-marker-dot {
  fill: #ff8b3d;
}

.stock-chart-marker.high .stock-chart-marker-dot {
  fill: #38ff8f;
}

.stock-chart-marker.low .stock-chart-marker-dot {
  fill: #ff5b66;
}

.stock-chart-title-wrap {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
}

.stock-chart-header-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  width: 100%;
}

.stock-chart-panel {
  gap: 8px;
}

.stock-chart-actions {
  margin-top: 2px;
}

.my-stocks-shell {
  width: min(1544px, calc(100% - 56px));
  margin: 0 auto;
  padding: 32px 0 56px;
}

.my-stocks-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 24px;
  align-items: stretch;
  margin-bottom: 26px;
}

.my-stocks-hero-copy,
.my-stocks-hero-card,
.my-stocks-watch-card,
.my-stocks-open-space {
  border-radius: 34px;
}

.my-stocks-hero-copy {
  padding: 32px 36px;
  background: #111418;
  color: #ffffff;
}

.my-stocks-hero-card {
  background: linear-gradient(180deg, #181d23 0%, #101318 100%);
  color: #ffffff;
  padding: 28px 26px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 14px;
}

.my-stocks-hero-value {
  font-size: 56px;
  font-weight: 800;
  line-height: 1;
}

.my-stocks-hero-label {
  font-size: 14px;
  font-weight: 700;
  color: #aeb6c1;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.my-stocks-hero-note {
  margin: 0;
  font-size: 14px;
  line-height: 1.6;
  color: #d7dde6;
}

.my-stocks-main {
  display: grid;
  grid-template-columns: 390px minmax(0, 1fr);
  gap: 24px;
  align-items: start;
}

.my-stocks-access-gate {
  grid-column: 1 / -1;
  border-radius: 32px;
  padding: 28px 30px;
  background: linear-gradient(180deg, #15191f 0%, #0f1217 100%);
  color: #ffffff;
  box-shadow: 0 24px 50px rgba(15, 18, 23, 0.18);
}

.my-stocks-access-gate h2 {
  margin: 0 0 10px;
  font-size: clamp(28px, 3vw, 42px);
  line-height: 1.02;
}

.my-stocks-access-gate p:not(.my-stocks-open-kicker) {
  margin: 0 0 18px;
  max-width: 720px;
  font-size: 16px;
  line-height: 1.7;
  color: #d4d9e1;
}

.my-stocks-access-button {
  min-height: 52px;
  padding: 0 20px;
  border: none;
  border-radius: 16px;
  background: #f6a31a;
  color: #111111;
  font-size: 15px;
  font-weight: 800;
  cursor: pointer;
}

.my-stocks-watch-card,
.my-stocks-open-space {
  background: #ffffff;
  border: 1px solid rgba(17, 17, 17, 0.08);
  box-shadow: 0 24px 50px rgba(15, 18, 23, 0.08);
}

.my-stocks-watch-card.is-locked,
.my-stocks-open-space.is-locked {
  opacity: 0.58;
}

.my-stocks-watch-card {
  padding: 24px;
  position: sticky;
  top: 20px;
}

.my-stocks-open-space {
  padding: 24px;
  min-height: 760px;
}

.my-stocks-add-panel {
  margin-top: 18px;
  margin-bottom: 20px;
  position: relative;
}

.my-stocks-add-field {
  display: inline-block;
  margin-bottom: 10px;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #7c766e;
}

.my-stocks-add-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
}

.my-stocks-add-input {
  min-width: 0;
  height: 56px;
  border-radius: 18px;
  border: 1px solid rgba(17, 17, 17, 0.12);
  background: #fbf8f3;
  padding: 0 18px;
  font-size: 17px;
  font-weight: 600;
  color: #111111;
}

.my-stocks-add-button {
  height: 56px;
  padding: 0 18px;
  border: none;
  border-radius: 18px;
  background: #0c0f14;
  color: #ffffff;
  font-size: 15px;
  font-weight: 800;
  cursor: pointer;
}

.my-stocks-add-button:disabled,
.my-stocks-add-input:disabled {
  cursor: not-allowed;
  opacity: 0.72;
}

.my-stocks-search-results {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  right: 0;
  z-index: 20;
  border-radius: 22px;
  padding: 10px;
  background: #ffffff;
  border: 1px solid rgba(17, 17, 17, 0.08);
  box-shadow: 0 20px 40px rgba(15, 18, 23, 0.12);
}

.my-stocks-search-item {
  width: 100%;
  border: none;
  background: transparent;
  padding: 12px 14px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  text-align: left;
  cursor: pointer;
}

.my-stocks-search-item:hover,
.my-stocks-search-item.active {
  background: #f5efe6;
}

.my-stocks-search-copy {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}

.my-stocks-search-copy strong {
  font-size: 15px;
}

.my-stocks-search-copy span {
  font-size: 13px;
  color: #6f6a63;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.my-stocks-search-add {
  flex-shrink: 0;
  color: #0b8d57;
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.my-stocks-search-empty {
  padding: 14px 16px;
  color: #6f6a63;
  font-size: 14px;
}

.my-stocks-watchlist-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 14px;
}

.my-stocks-watchlist-head strong {
  font-size: 20px;
  font-weight: 800;
}

.my-stocks-watchlist-head span {
  font-size: 13px;
  font-weight: 700;
  color: #7d776f;
}

.my-stocks-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.my-stock-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  padding: 14px;
  border-radius: 22px;
  background: #f9f6f1;
  border: 1px solid rgba(17, 17, 17, 0.06);
}

.my-stock-main {
  border: none;
  background: transparent;
  padding: 0;
  text-align: left;
  cursor: pointer;
}

.my-stock-topline,
.my-stock-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.my-stock-topline strong {
  font-size: 18px;
  font-weight: 800;
}

.my-stock-price {
  font-size: 15px;
  font-weight: 700;
  color: #1f252c;
}

.my-stock-name {
  margin-top: 6px;
  font-size: 14px;
  font-weight: 600;
  color: #4f4a44;
}

.my-stock-meta {
  margin-top: 10px;
  font-size: 12px;
  font-weight: 700;
  color: #7d776f;
}

.my-stock-remove {
  align-self: start;
  width: 36px;
  height: 36px;
  border-radius: 999px;
  border: none;
  background: #111418;
  color: #ffffff;
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
}

.my-stocks-empty {
  border-radius: 22px;
  border: 1px dashed rgba(17, 17, 17, 0.14);
  background: #fbf8f3;
  padding: 18px;
  color: #6f6a63;
  font-size: 15px;
  line-height: 1.6;
}

.my-stocks-open-stage {
  min-height: 650px;
  margin-top: 18px;
  border-radius: 28px;
  border: 1px dashed rgba(17, 17, 17, 0.14);
  background:
    radial-gradient(circle at top right, rgba(246, 163, 26, 0.12), transparent 34%),
    linear-gradient(180deg, #fcfaf6 0%, #f6f1e7 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px;
}

.my-stocks-open-message {
  max-width: 560px;
  text-align: center;
}

.my-stocks-open-kicker {
  margin: 0 0 10px;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #9b7a36;
}

.my-stocks-open-message h2 {
  margin: 0 0 14px;
  font-size: clamp(32px, 4vw, 54px);
  line-height: 1.02;
}

.my-stocks-open-message p {
  margin: 0;
  font-size: 18px;
  line-height: 1.7;
  color: #5d5851;
}

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

  .my-stocks-watch-card {
    position: static;
  }

  .my-stocks-open-space {
    min-height: 560px;
  }
}

@media (max-width: 640px) {
  .my-stocks-shell {
    width: min(1544px, calc(100% - 24px));
    padding: 24px 0 42px;
  }

  .my-stocks-hero-copy,
  .my-stocks-hero-card,
  .my-stocks-watch-card,
  .my-stocks-open-space {
    border-radius: 26px;
  }

  .my-stocks-hero-copy,
  .my-stocks-hero-card,
  .my-stocks-watch-card,
  .my-stocks-open-space {
    padding: 20px;
  }

  .my-stocks-add-row {
    grid-template-columns: 1fr;
  }

  .my-stocks-add-button {
    width: 100%;
  }

  .my-stocks-open-stage {
    min-height: 420px;
    padding: 22px;
  }

  .my-stocks-open-message p {
    font-size: 16px;
  }
}

.chart-zone-shell {
  display: grid;
  gap: 22px;
  padding: 24px 24px 36px;
}

.chart-zone-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(280px, 0.55fr);
  gap: 18px;
  align-items: stretch;
}

.chart-zone-hero-card,
.chart-zone-main-panel,
.chart-zone-side-box,
.chart-zone-stat-card {
  border: 1px solid rgba(17, 17, 17, 0.08);
  background: linear-gradient(180deg, rgba(255, 250, 244, 0.98) 0%, rgba(247, 240, 229, 0.96) 100%);
  box-shadow: 0 22px 60px rgba(20, 18, 13, 0.08);
}

.chart-zone-hero-card {
  border-radius: 28px;
  padding: 24px;
  display: grid;
  gap: 10px;
  align-content: start;
}

.chart-zone-hero-label,
.chart-zone-toolbar-label,
.chart-zone-side-head span {
  color: #7d776f;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.chart-zone-hero-company {
  color: #5d5851;
  font-size: 15px;
  line-height: 1.6;
}

.chart-zone-hero-price-row {
  display: flex;
  align-items: baseline;
  gap: 10px;
}

.chart-zone-hero-price-row strong {
  font-size: clamp(2rem, 4vw, 3.5rem);
  line-height: 1;
}

.chart-zone-workspace {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(300px, 0.6fr);
  gap: 18px;
  align-items: start;
}

.chart-zone-main-panel {
  border-radius: 30px;
  padding: 18px;
  display: grid;
  gap: 16px;
}

.chart-zone-toolbar {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 14px;
  align-items: end;
}

.chart-zone-toolbar-block {
  display: grid;
  gap: 8px;
  min-width: 0;
}

.chart-zone-toolbar-block-wide {
  min-width: 0;
}

.chart-zone-toolbar > .chart-zone-toolbar-block:nth-child(1) {
  grid-column: span 4;
}

.chart-zone-toolbar > .chart-zone-toolbar-block:nth-child(2) {
  grid-column: span 2;
}

.chart-zone-toolbar > .chart-zone-toolbar-block:nth-child(3) {
  grid-column: span 2;
}

.chart-zone-toolbar > .chart-zone-toolbar-block:nth-child(4) {
  grid-column: span 4;
}

.chart-zone-toolbar > .chart-zone-toolbar-block:nth-child(5) {
  grid-column: 1 / -1;
}

.chart-zone-symbol-pill {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  padding: 14px 18px;
  border-radius: 18px;
  background: rgba(20, 26, 32, 0.94);
  color: #f7f2ea;
}

.chart-zone-symbol-pill strong {
  font-size: 1.15rem;
}

.chart-zone-symbol-pill span {
  color: rgba(247, 242, 234, 0.72);
  font-size: 0.95rem;
}

.chart-zone-chip-row {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 8px;
}

.chart-zone-chip,
.chart-zone-stock-link {
  border: 1px solid rgba(201, 174, 130, 0.72);
  border-radius: 999px;
  background: rgba(255, 250, 244, 0.86);
  color: #1f252c;
  font-weight: 700;
  padding: 11px 18px;
  text-decoration: none;
  cursor: pointer;
}

.chart-zone-chip-muted {
  background: rgba(247, 240, 229, 0.72);
}

.chart-zone-chip.active {
  background: rgba(20, 26, 32, 0.96);
  border-color: rgba(20, 26, 32, 0.96);
  color: #fff7eb;
}

.chart-zone-compare-wrap {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  gap: 8px;
}

.chart-zone-inline-input {
  width: 100%;
  border-radius: 16px;
  border: 1px solid rgba(201, 174, 130, 0.72);
  background: rgba(255, 250, 244, 0.9);
  color: #1f252c;
  padding: 11px 14px;
  font: inherit;
}

.chart-zone-inline-input:focus {
  outline: none;
  border-color: rgba(20, 26, 32, 0.96);
  box-shadow: 0 0 0 3px rgba(20, 26, 32, 0.1);
}

.chart-zone-stock-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: fit-content;
}

.chart-zone-stats-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 12px;
}

.chart-zone-stat-card {
  border-radius: 22px;
  padding: 16px 18px;
  display: grid;
  gap: 6px;
}

.chart-zone-stat-card span {
  color: #7d776f;
  font-size: 0.82rem;
}

.chart-zone-stat-card strong {
  font-size: 1.2rem;
}

.chart-zone-canvas-shell {
  position: relative;
  border-radius: 28px;
  background:
    linear-gradient(180deg, rgba(20, 26, 32, 0.98) 0%, rgba(30, 37, 45, 0.98) 100%),
    radial-gradient(circle at top left, rgba(242, 178, 75, 0.15) 0%, transparent 42%);
  padding: 14px;
  padding-top: 74px;
  min-height: 620px;
  overflow: hidden;
}

.chart-zone-canvas-head {
  position: absolute;
  inset: 16px 18px auto 18px;
  display: flex;
  justify-content: space-between;
  align-items: start;
  gap: 14px;
  z-index: 2;
  pointer-events: none;
}

.chart-zone-canvas-title-group {
  display: grid;
  gap: 5px;
}

.chart-zone-canvas-title-group strong {
  color: #fff7eb;
  font-size: 1rem;
  letter-spacing: 0.02em;
}

.chart-zone-canvas-title-group span {
  color: rgba(255, 247, 235, 0.68);
  font-size: 0.82rem;
}

.chart-zone-canvas-metrics {
  display: inline-flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

.chart-zone-canvas-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(255, 250, 244, 0.1);
  border: 1px solid rgba(255, 247, 235, 0.14);
  color: rgba(255, 247, 235, 0.92);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.chart-zone-canvas-pill.positive {
  background: rgba(78, 211, 122, 0.16);
  color: #8cf0ab;
}

.chart-zone-canvas-pill.negative {
  background: rgba(245, 114, 114, 0.16);
  color: #ff9d9d;
}

.chart-zone-svg {
  width: 100%;
  height: 620px;
  display: block;
}

.chart-zone-grid-line {
  stroke: rgba(255, 247, 235, 0.11);
  stroke-width: 1;
}

.chart-zone-axis-label {
  fill: rgba(255, 247, 235, 0.68);
  font-size: 12px;
  font-family: Inter, sans-serif;
}

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

.chart-zone-candle-wick.positive,
.chart-zone-candle-body.positive,
.chart-zone-volume-bar.positive {
  stroke: #4ed37a;
  fill: #4ed37a;
}

.chart-zone-candle-wick.negative,
.chart-zone-candle-body.negative,
.chart-zone-volume-bar.negative {
  stroke: #f57272;
  fill: #f57272;
}

.chart-zone-candle-wick.neutral,
.chart-zone-candle-body.neutral,
.chart-zone-volume-bar.neutral {
  stroke: #f2b24b;
  fill: #f2b24b;
}

.chart-zone-candle-body {
  opacity: 0.95;
}

.chart-zone-volume-bar {
  opacity: 0.38;
}

.chart-zone-line {
  fill: none;
  stroke-width: 2.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.chart-zone-line.positive { stroke: #4ed37a; }
.chart-zone-line.negative { stroke: #f57272; }
.chart-zone-line.neutral { stroke: #f2b24b; }

.chart-zone-overlay-line {
  fill: none;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.chart-zone-overlay-line.ma20 {
  stroke: rgba(242, 178, 75, 0.92);
}

.chart-zone-overlay-line.ma50 {
  stroke: rgba(132, 172, 255, 0.92);
}

.chart-zone-overlay-line.compare {
  stroke: rgba(255, 247, 235, 0.7);
  stroke-dasharray: 7 6;
}

.chart-zone-marker-dot {
  stroke: rgba(15, 19, 24, 0.72);
  stroke-width: 2;
}

.chart-zone-marker-dot.news { fill: #f2b24b; }
.chart-zone-marker-dot.pause { fill: #ff8e5b; }

.chart-zone-empty {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: rgba(255, 247, 235, 0.7);
  font-size: 1rem;
}

.chart-zone-crosshair-line {
  stroke: rgba(255, 247, 235, 0.22);
  stroke-width: 1;
  stroke-dasharray: 4 4;
}

.chart-zone-tooltip {
  position: absolute;
  pointer-events: none;
  transform: translate(-50%, calc(-100% - 18px));
  min-width: 240px;
  padding: 12px 14px;
  border-radius: 16px;
  background: rgba(255, 250, 244, 0.98);
  color: #1f252c;
  box-shadow: 0 18px 36px rgba(20, 18, 13, 0.18);
  display: grid;
  gap: 4px;
}

.chart-zone-tooltip span,
.chart-zone-tooltip em {
  font-style: normal;
  color: #7d776f;
  font-size: 0.82rem;
}

.chart-zone-tooltip strong {
  font-size: 0.96rem;
  line-height: 1.5;
}

.chart-zone-side-panel {
  display: grid;
  gap: 18px;
}

.chart-zone-side-box {
  border-radius: 28px;
  padding: 18px;
  display: grid;
  gap: 14px;
}

.chart-zone-side-head {
  display: grid;
  gap: 4px;
}

.chart-zone-marker-list {
  display: grid;
  gap: 10px;
}

.chart-zone-marker-item {
  display: grid;
  gap: 4px;
  padding: 12px 14px;
  border-radius: 16px;
  background: rgba(255, 250, 244, 0.76);
  border: 1px solid rgba(217, 200, 167, 0.7);
}

.chart-zone-marker-item strong {
  font-size: 0.96rem;
}

.chart-zone-marker-item span:last-child {
  color: #7d776f;
  font-size: 0.82rem;
}

.chart-zone-marker-badge {
  display: inline-flex;
  width: fit-content;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.chart-zone-marker-badge.news {
  background: rgba(242, 178, 75, 0.18);
  color: #9a6920;
}

.chart-zone-marker-badge.pause {
  background: rgba(245, 114, 114, 0.18);
  color: #b04949;
}

.chart-zone-summary {
  color: #5d5851;
  line-height: 1.75;
}

.chart-zone-summary p {
  margin: 0;
}

.chart-zone-structure-grid,
.chart-zone-recent-list {
  display: grid;
  gap: 10px;
}

.chart-zone-structure-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.chart-zone-structure-card {
  display: grid;
  gap: 6px;
  padding: 14px;
  border-radius: 18px;
  background: rgba(255, 250, 244, 0.76);
  border: 1px solid rgba(217, 200, 167, 0.7);
}

.chart-zone-structure-card span {
  color: #7d776f;
  font-size: 0.74rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.chart-zone-structure-card strong {
  font-size: 0.96rem;
  line-height: 1.45;
}

.chart-zone-recent-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 13px 14px;
  border-radius: 16px;
  border: 1px solid rgba(217, 200, 167, 0.7);
  background: rgba(255, 250, 244, 0.76);
  color: #1f252c;
  text-align: left;
  cursor: pointer;
}

.chart-zone-recent-item strong {
  font-size: 0.96rem;
}

.chart-zone-recent-item span {
  color: #7d776f;
  font-size: 0.82rem;
}

@media (max-width: 980px) {
  .chart-zone-hero,
  .chart-zone-workspace {
    grid-template-columns: 1fr;
  }

  .chart-zone-toolbar {
    grid-template-columns: repeat(6, minmax(0, 1fr));
  }

  .chart-zone-toolbar > .chart-zone-toolbar-block:nth-child(1),
  .chart-zone-toolbar > .chart-zone-toolbar-block:nth-child(4),
  .chart-zone-toolbar > .chart-zone-toolbar-block:nth-child(5) {
    grid-column: 1 / -1;
  }

  .chart-zone-toolbar > .chart-zone-toolbar-block:nth-child(2),
  .chart-zone-toolbar > .chart-zone-toolbar-block:nth-child(3) {
    grid-column: span 3;
  }

  .chart-zone-stats-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 720px) {
  .site-footer {
    width: min(100% - 18px, 1544px);
    padding: 18px;
    border-radius: 24px 24px 0 0;
  }

  .site-footer-inner,
  .site-footer-nav {
    grid-template-columns: 1fr;
  }

  .site-footer-logo {
    font-size: 40px;
  }

  .site-footer-nav {
    gap: 18px;
  }

  .chart-zone-shell {
    padding: 18px 14px 28px;
  }

  .chart-zone-stats-grid {
    grid-template-columns: 1fr;
  }

  .chart-zone-toolbar {
    grid-template-columns: 1fr;
  }

  .chart-zone-toolbar > .chart-zone-toolbar-block:nth-child(1),
  .chart-zone-toolbar > .chart-zone-toolbar-block:nth-child(2),
  .chart-zone-toolbar > .chart-zone-toolbar-block:nth-child(3),
  .chart-zone-toolbar > .chart-zone-toolbar-block:nth-child(4),
  .chart-zone-toolbar > .chart-zone-toolbar-block:nth-child(5) {
    grid-column: 1;
  }

  .chart-zone-compare-wrap,
  .chart-zone-structure-grid {
    grid-template-columns: 1fr;
  }

  .chart-zone-canvas-shell,
  .chart-zone-svg {
    min-height: 500px;
    height: 500px;
  }

  .chart-zone-tooltip {
    min-width: 200px;
  }
}

/* Mobile web shell: first pass for phone-sized screens. */
@media (max-width: 760px) {
  body {
    overflow-x: hidden;
  }

  .site-header {
    position: sticky;
    top: 0;
    z-index: 55;
    box-shadow: 0 10px 26px rgba(4, 6, 9, 0.22);
  }

  .site-header-inner {
    width: calc(100% - 20px);
    min-height: 0;
    padding: 10px 0 8px;
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 8px 10px;
    align-items: center;
  }

  .logo-slot {
    min-width: 0;
    height: auto;
    font-size: 21px;
    letter-spacing: 0.01em;
  }

  .login-wrap {
    justify-self: end;
  }

  .login-button {
    min-height: 34px;
    padding: 0 10px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.08);
    font-size: 0;
  }

  .login-icon {
    width: 24px;
    height: 24px;
  }

  .header-indices {
    grid-column: 1 / -1;
    width: 100%;
    justify-content: flex-start;
    gap: 8px;
    padding: 1px 0 2px;
    scroll-snap-type: x proximity;
  }

  .header-indices .metric-card,
  .header-indices .breadth-card {
    min-width: 132px;
    min-height: 48px;
    border-radius: 14px;
    padding: 7px 9px;
    scroll-snap-align: start;
  }

  .metric-label {
    font-size: 9px;
    letter-spacing: 0.02em;
  }

  .metric-main strong,
  .breadth-card strong {
    font-size: 17px;
  }

  .metric-change span {
    font-size: 10px;
  }

  .header-search-inner,
  .subnav-inner,
  .homepage-shell,
  .site-footer {
    width: calc(100% - 20px);
  }

  .header-search-inner {
    padding: 7px 0;
  }

  .search-strip {
    min-height: 42px;
    padding: 7px 8px 7px 12px;
    border-radius: 14px;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 8px;
  }

  .search-input {
    font-size: 14px;
  }

  .search-button {
    width: auto;
    min-width: 76px;
    min-height: 32px;
    border-radius: 10px;
    font-size: 12px;
  }

  .search-results {
    position: fixed;
    top: 126px;
    left: 10px;
    right: 10px;
    max-height: min(58vh, 420px);
    overflow: auto;
    border-radius: 18px;
    z-index: 80;
  }

  .subnav-band {
    position: sticky;
    top: 103px;
    z-index: 50;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
  }

  .subnav-inner {
    padding: 8px 0;
    display: grid;
    grid-template-columns: 1fr;
    gap: 6px;
  }

  .subnav {
    width: 100%;
    display: flex;
    flex-wrap: nowrap;
    gap: 8px;
    overflow-x: auto;
    scrollbar-width: none;
  }

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

  .subnav > a,
  .subnav-dropdown-trigger {
    flex: 0 0 auto;
    min-height: 34px;
    padding: 8px 12px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.08);
    font-size: 13px;
    line-height: 1;
    white-space: nowrap;
  }

  .subnav-dropdown {
    flex: 0 0 auto;
    padding-bottom: 0;
    margin-bottom: 0;
  }

  .subnav-dropdown-menu,
  .subnav-submenu-menu {
    display: none;
  }

  .subnav-last-update {
    justify-content: flex-start;
    margin-left: 0;
    font-size: 11px;
  }

  .subnav-last-update-label,
  .subnav-last-update strong {
    font-size: 11px;
  }

  .homepage-shell {
    margin-top: 10px;
    gap: 10px;
  }

  .homepage-top-grid,
  .homepage-analysis-hub,
  .homepage-analysis-grid,
  .homepage-deep-grid,
  .homepage-brief-shell,
  .homepage-charged-shell {
    grid-template-columns: 1fr !important;
    gap: 10px;
  }

  .homepage-hero {
    width: 100%;
    border-radius: 24px;
    padding: 16px;
    gap: 14px;
  }

  .homepage-hero-copy {
    padding: 0;
  }

  .news-kicker {
    font-size: 11px;
    letter-spacing: 0.1em;
  }

  .homepage-intelligence-title {
    font-size: clamp(30px, 10vw, 42px);
    line-height: 0.94;
    letter-spacing: -0.06em;
  }

  .homepage-intelligence-brief p {
    font-size: 14px;
    line-height: 1.5;
  }

  .homepage-summary-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }

  .homepage-summary-card,
  .homepage-pulse-card {
    min-height: 82px;
    border-radius: 16px;
    padding: 10px;
  }

  .homepage-summary-card strong,
  .homepage-pulse-card strong {
    font-size: 18px;
  }

  .homepage-analysis-panel {
    border-radius: 22px;
    padding: 14px;
  }

  .homepage-analysis-head {
    align-items: flex-start;
    gap: 10px;
  }

  .homepage-analysis-head strong,
  .live-market-panel-copy strong {
    font-size: 20px;
  }

  .homepage-analysis-head span,
  .live-market-panel-copy span {
    font-size: 12px;
    line-height: 1.35;
  }

  .homepage-news-brief-preview-panel {
    min-height: auto;
  }

  .homepage-news-brief-preview-bullets p {
    font-size: 13px;
    line-height: 1.45;
  }

  .homepage-radar-head-tools {
    width: 100%;
    justify-content: space-between;
  }

  .homepage-radar-head-actions {
    gap: 6px;
    justify-content: flex-end;
  }

  .homepage-radar-mode {
    min-height: 34px;
    padding: 0 11px;
    font-size: 12px;
  }

  .homepage-radar-table-wrap {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  .homepage-radar-table {
    min-width: 720px;
  }

  .homepage-radar-head,
  .homepage-radar-row {
    grid-template-columns: 74px 86px 78px 78px 92px 132px 132px;
    gap: 10px;
    padding-left: 12px;
    padding-right: 12px;
  }

  .homepage-radar-spark {
    width: 76px;
    min-width: 76px;
  }

  .homepage-leadership-grid {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    scroll-snap-type: x proximity;
    padding-bottom: 2px;
  }

  .homepage-market-table-panel {
    flex: 0 0 82%;
    scroll-snap-align: start;
    border-radius: 18px;
  }

  .homepage-sector-scroll {
    max-height: 360px;
  }

  .homepage-sector-row,
  .homepage-feed-row,
  .homepage-market-table-row,
  .homepage-halt-row {
    min-height: 48px;
  }

  .site-footer {
    margin-top: 18px;
    border-radius: 24px 24px 0 0;
  }
}

@media (max-width: 430px) {
  .homepage-summary-grid {
    grid-template-columns: 1fr;
  }

  .homepage-intelligence-title {
    font-size: clamp(28px, 12vw, 38px);
  }

  .homepage-market-table-panel {
    flex-basis: 92%;
  }

  .search-button {
    min-width: 68px;
    padding: 0 10px;
  }
}

/* Mobile repair pass: prevent clipped desktop-width sections on phones. */
@media (max-width: 760px) {
  html,
  body,
  .page-shell {
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
  }

  .site-header-inner,
  .header-search-inner,
  .subnav-inner,
  .homepage-shell,
  .live-market-shell,
  .settings-shell,
  .news-shell,
  .stock-shell,
  .indices-shell,
  .egx30-shell,
  .sectors-shell {
    width: calc(100vw - 20px);
    max-width: calc(100vw - 20px);
    min-width: 0;
  }

  .site-header-inner {
    padding: 8px 0 7px;
    gap: 7px;
  }

  .header-indices:empty {
    display: none;
  }

  .header-indices {
    max-width: 100%;
    overflow-x: auto;
    overflow-y: hidden;
    overscroll-behavior-x: contain;
  }

  .header-indices .metric-card,
  .header-indices .breadth-card {
    flex-basis: 118px;
    min-width: 118px;
    min-height: 42px;
    padding: 6px 8px;
    border-radius: 13px;
  }

  .header-indices .turnover-status-card {
    flex-basis: 146px;
    min-width: 146px;
  }

  .metric-main {
    gap: 6px;
  }

  .metric-main strong,
  .breadth-card strong {
    font-size: 16px;
  }

  .metric-change {
    gap: 1px;
  }

  .metric-change span {
    font-size: 9px;
  }

  .header-search-band {
    border-top: 3px solid var(--brand);
  }

  .header-search-inner {
    padding: 6px 0;
  }

  .search-strip {
    min-height: 40px;
    padding: 6px 7px 6px 11px;
  }

  .search-input {
    min-width: 0;
    font-size: 13px;
  }

  .search-button {
    min-width: 64px;
    min-height: 30px;
    padding: 0 9px;
    font-size: 11px;
  }

  .subnav-band {
    position: static;
  }

  .subnav {
    max-width: 100%;
    padding-bottom: 1px;
  }

  .subnav > a,
  .subnav-dropdown-trigger {
    min-height: 32px;
    padding: 8px 11px;
    font-size: 12px;
  }

  .subnav-last-update {
    display: none;
  }

  .homepage-shell {
    margin-top: 10px;
    overflow: hidden;
  }

  .homepage-top-grid,
  .homepage-analysis-hub,
  .homepage-analysis-grid,
  .homepage-leadership-grid {
    width: 100%;
    max-width: 100%;
    min-width: 0;
  }

  .homepage-hero,
  .homepage-analysis-panel {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    overflow: hidden;
  }

  .homepage-hero {
    border-radius: 22px;
    padding: 15px;
  }

  .homepage-intelligence-title {
    max-width: 100%;
    font-size: clamp(28px, 8.2vw, 34px);
    line-height: 0.98;
    letter-spacing: -0.055em;
    overflow-wrap: break-word;
  }

  .homepage-intelligence-brief,
  .homepage-intelligence-brief p {
    max-width: 100%;
    overflow-wrap: break-word;
  }

  .homepage-intelligence-brief p {
    display: -webkit-box;
    -webkit-line-clamp: 7;
    -webkit-box-orient: vertical;
    overflow: hidden;
    font-size: 13px;
    line-height: 1.5;
  }

  .homepage-summary-grid {
    display: flex;
    gap: 8px;
    width: 100%;
    max-width: 100%;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-snap-type: x proximity;
    padding-bottom: 2px;
  }

  .homepage-summary-card,
  .homepage-pulse-card {
    flex: 0 0 158px;
    min-width: 158px;
    max-width: 158px;
    min-height: 76px;
    overflow: hidden;
    scroll-snap-align: start;
  }

  .homepage-summary-card strong,
  .homepage-pulse-card strong {
    font-size: 17px;
    overflow-wrap: break-word;
  }

  .homepage-summary-card small,
  .homepage-pulse-card small {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .homepage-news-brief-preview-bullets {
    max-height: 132px;
    overflow: hidden;
  }

  .homepage-analysis-head,
  .live-market-panel-head {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: start;
  }

  .homepage-analysis-head strong,
  .live-market-panel-copy strong {
    font-size: 19px;
    line-height: 1.05;
  }

  .homepage-analysis-head span,
  .live-market-panel-copy span {
    display: none;
  }

  .homepage-radar-head-tools {
    width: auto;
  }

  .homepage-radar-head-actions {
    flex-wrap: nowrap;
  }

  .homepage-radar-mode {
    min-height: 32px;
    padding: 0 10px;
    font-size: 11px;
  }

  .homepage-radar-table-wrap,
  .egx30-table-wrap,
  .indices-bars-wrap,
  .live-market-table-wrap,
  .stock-news-list,
  .news-feed-list {
    max-width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  .homepage-leadership-grid {
    display: grid;
    grid-template-columns: 1fr;
    overflow: visible;
  }

  .homepage-market-table-panel {
    flex-basis: auto;
    width: 100%;
  }

  .homepage-sector-scroll {
    max-height: 320px;
  }
}

@media (max-width: 430px) {
  .site-header-inner,
  .header-search-inner,
  .subnav-inner,
  .homepage-shell,
  .live-market-shell,
  .settings-shell,
  .news-shell,
  .stock-shell,
  .indices-shell,
  .egx30-shell,
  .sectors-shell {
    width: calc(100vw - 16px);
    max-width: calc(100vw - 16px);
  }

  .homepage-hero,
  .homepage-analysis-panel {
    border-radius: 20px;
  }

  .homepage-summary-card,
  .homepage-pulse-card {
    flex-basis: 148px;
    min-width: 148px;
    max-width: 148px;
  }
}

/* Mobile repair pass 2: remove hero clipping and force readable stacked cards. */
@media (max-width: 760px) {
  .homepage-shell {
    overflow: visible;
    width: min(calc(100% - 20px), 370px);
    max-width: 370px;
    margin-left: 10px;
    margin-right: 0;
  }

  .homepage-hero {
    width: min(100%, 370px) !important;
    max-width: 370px !important;
    overflow: visible;
  }

  .homepage-hero *,
  .homepage-analysis-panel * {
    min-width: 0;
  }

  .homepage-intelligence-title {
    display: block;
    width: 100%;
    max-width: 318px;
    white-space: normal;
    overflow: visible;
    text-overflow: clip;
    word-break: break-word;
    overflow-wrap: break-word;
    font-size: clamp(22px, 6vw, 25px);
    line-height: 1.08;
  }

  .homepage-intelligence-brief p {
    -webkit-line-clamp: 6;
    max-width: 318px;
  }

  .homepage-summary-grid {
    display: grid;
    grid-template-columns: 1fr;
    overflow: visible;
    padding-bottom: 0;
  }

  .homepage-summary-card,
  .homepage-pulse-card {
    width: 100%;
    min-width: 0;
    max-width: 318px;
    min-height: 68px;
    flex: initial;
  }

  .homepage-summary-card strong,
  .homepage-pulse-card strong,
  .homepage-summary-card small,
  .homepage-pulse-card small {
    white-space: normal;
    overflow-wrap: anywhere;
  }

  .homepage-summary-card small,
  .homepage-pulse-card small {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: clip;
  }

  .homepage-analysis-panel,
  .homepage-news-brief-preview-panel,
  .homepage-radar-panel,
  .homepage-trending-panel,
  .homepage-leadership-panel {
    max-width: 370px;
    overflow: visible;
  }

  .homepage-radar-table-wrap {
    overflow-x: auto;
  }
}

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

/* Mobile app navigation: hamburger button plus an open/close menu panel. */
@media (max-width: 760px) {
  .site-header-inner {
    grid-template-columns: minmax(0, 1fr) auto;
  }

  .mobile-menu-toggle {
    display: inline-flex;
    grid-column: 2;
    grid-row: 1;
    justify-self: end;
    align-self: center;
    width: 42px;
    height: 42px;
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.08);
    color: #ffffff;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
  }

  .mobile-menu-toggle span {
    display: block;
    width: 18px;
    height: 2px;
    border-radius: 999px;
    background: currentColor;
    transition: transform 160ms ease, opacity 160ms ease;
  }

  .mobile-menu-toggle.is-open span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
  }

  .mobile-menu-toggle.is-open span:nth-child(2) {
    opacity: 0;
  }

  .mobile-menu-toggle.is-open span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
  }

  .login-wrap {
    display: none;
  }

  .subnav-band {
    display: none;
    background: transparent;
    border-top: 0;
  }

  body.mobile-menu-open .subnav-band {
    display: block;
  }

  body.mobile-menu-open .subnav-inner {
    width: min(calc(100% - 20px), 370px);
    max-width: 370px;
    margin: 8px 0 10px 10px;
    padding: 10px;
    display: grid;
    gap: 10px;
    border-radius: 22px;
    background:
      radial-gradient(circle at 14% 0%, rgba(82, 255, 148, 0.13), transparent 36%),
      #090b0e;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 18px 40px rgba(4, 6, 9, 0.22);
  }

  body.mobile-menu-open .subnav {
    display: grid;
    grid-template-columns: 1fr;
    gap: 8px;
    overflow: visible;
    padding: 0;
  }

  body.mobile-menu-open .subnav > a,
  body.mobile-menu-open .subnav-dropdown-trigger {
    width: 100%;
    min-height: 42px;
    padding: 0 14px;
    border-radius: 15px;
    background: rgba(255, 255, 255, 0.08);
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 14px;
    line-height: 1;
  }

  body.mobile-menu-open .subnav-dropdown {
    display: grid;
    gap: 8px;
    width: 100%;
  }

  body.mobile-menu-open .subnav-dropdown-menu-root {
    position: static;
    display: grid;
    min-width: 0;
    width: 100%;
    padding: 8px;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(255, 255, 255, 0.08);
    box-shadow: none;
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: none;
  }

  body.mobile-menu-open .subnav-dropdown-menu-root a {
    padding: 10px 12px;
    border-radius: 12px;
    font-size: 13px;
  }

  body.mobile-menu-open .subnav-submenu-menu {
    display: none;
  }

  body.mobile-menu-open .subnav-last-update {
    display: flex;
    padding: 3px 4px 0;
    justify-content: space-between;
    color: rgba(255, 255, 255, 0.76);
  }
}

/* Mobile app rebuild: a phone-first shell across the portal. */
@media (max-width: 760px) {
  :root {
    --mobile-edge: 10px;
    --mobile-card: 22px;
    --mobile-soft: #f8f2e9;
    --mobile-line: #e7dccd;
  }

  html,
  body {
    background:
      radial-gradient(circle at 50% -10%, rgba(246, 163, 26, 0.16), transparent 34%),
      #f1eadf;
  }

  body {
    padding-bottom: 82px;
  }

  .page-shell {
    overflow: clip;
  }

  .site-header {
    position: sticky;
    top: 0;
    z-index: 90;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  }

  .site-header-inner {
    width: calc(100vw - 20px);
    max-width: 430px;
    min-height: 0;
    margin: 0 auto;
    padding: 9px 0 8px;
    gap: 8px;
  }

  .logo-slot {
    font-size: 20px;
    min-width: 0;
  }

  .mobile-menu-toggle {
    width: 40px;
    height: 40px;
    border-radius: 15px;
  }

  .header-indices {
    width: 100%;
    gap: 7px;
    padding: 0 0 1px;
  }

  .header-indices .metric-card,
  .header-indices .breadth-card {
    min-width: 92px;
    flex-basis: 92px;
    min-height: 44px;
    padding: 6px 7px;
    border-radius: 13px;
  }

  .header-indices .turnover-status-card {
    min-width: 110px;
    flex-basis: 110px;
  }

  .metric-label {
    font-size: 8px;
    letter-spacing: 0.02em;
  }

  .metric-main strong,
  .breadth-card strong {
    font-size: 15px;
  }

  .metric-change span {
    font-size: 9px;
  }

  .header-search-band {
    position: sticky;
    top: 98px;
    z-index: 84;
    border-top: 0;
    box-shadow: 0 10px 18px rgba(85, 62, 20, 0.12);
  }

  .header-search-inner {
    width: calc(100vw - 20px);
    max-width: 430px;
    margin: 0 auto;
    padding: 7px 0;
  }

  .search-strip {
    min-height: 40px;
    padding: 6px 7px 6px 12px;
    border-radius: 16px;
    box-shadow: none;
  }

  .search-input {
    font-size: 13px;
  }

  .search-button {
    min-width: 58px;
    min-height: 30px;
    padding: 0 10px;
    border-radius: 11px;
    font-size: 11px;
  }

  .search-results {
    top: 146px;
    left: 10px;
    right: 10px;
    border-radius: 18px;
  }

  body.mobile-menu-open .subnav-inner {
    max-width: 430px;
    margin: 8px auto 10px;
  }

  .mobile-app-nav {
    position: fixed;
    left: 10px;
    right: 10px;
    bottom: 10px;
    z-index: 110;
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 2px;
    padding: 7px;
    border-radius: 24px;
    background: rgba(9, 11, 14, 0.96);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 18px 40px rgba(4, 6, 9, 0.32);
    backdrop-filter: blur(14px);
  }

  .mobile-app-nav-item {
    min-height: 48px;
    border-radius: 18px;
    display: grid;
    justify-items: center;
    align-content: center;
    gap: 4px;
    color: rgba(255, 255, 255, 0.58);
    font-size: 10px;
    font-weight: 900;
  }

  .mobile-app-nav-item.active {
    color: #ffffff;
    background: linear-gradient(180deg, rgba(246, 163, 26, 0.28), rgba(82, 255, 148, 0.13));
  }

  .mobile-app-nav-icon {
    width: 18px;
    height: 18px;
    border-radius: 6px;
    border: 2px solid currentColor;
    opacity: 0.95;
  }

  .mobile-app-nav-icon-market {
    border-radius: 999px;
    border-width: 3px;
  }

  .mobile-app-nav-icon-stocks {
    border-radius: 4px;
    box-shadow: inset 0 -6px 0 currentColor;
  }

  .mobile-app-nav-icon-news {
    border-radius: 4px;
    box-shadow: inset 0 4px 0 currentColor;
  }

  .mobile-app-nav-icon-signals {
    transform: rotate(45deg);
    border-radius: 5px;
  }

  .mobile-app-nav-icon-settings {
    border-radius: 999px;
    box-shadow: inset 0 0 0 4px #090b0e;
  }

  .homepage-shell,
  .stock-shell,
  .news-shell,
  .indices-shell,
  .egx30-shell,
  .sectors-shell,
  .settings-shell,
  .my-stocks-shell,
  .live-market-shell {
    width: calc(100vw - 20px) !important;
    max-width: 430px !important;
    margin: 10px auto 22px !important;
    padding: 0 !important;
    display: grid;
    gap: 10px;
    overflow: visible;
  }

  .homepage-shell,
  .stock-shell,
  .news-shell,
  .indices-shell,
  .egx30-shell,
  .sectors-shell,
  .settings-shell,
  .my-stocks-shell,
  .live-market-shell {
    padding-bottom: 92px !important;
  }

  .homepage-top-grid,
  .homepage-analysis-hub,
  .homepage-analysis-grid,
  .homepage-leadership-grid,
  .egx30-hero,
  .egx30-main,
  .stock-hero,
  .stock-lower-row,
  .news-brief-layout,
  .indices-left-stack,
  .settings-grid,
  .my-stocks-grid,
  .live-market-board,
  .live-market-split {
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 10px !important;
    width: 100%;
  }

  .homepage-hero,
  .homepage-analysis-panel,
  .egx30-hero-copy,
  .egx30-summary-card,
  .egx30-chart-box,
  .egx30-table-box,
  .stock-panel,
  .stock-chart-panel,
  .stock-news-panel,
  .news-hero,
  .news-panel,
  .news-feed-card,
  .settings-card,
  .my-stocks-panel,
  .live-market-panel,
  .live-market-card,
  .auth-card {
    width: 100% !important;
    max-width: 100% !important;
    border-radius: var(--mobile-card) !important;
    overflow: hidden;
    box-shadow: 0 12px 28px rgba(35, 24, 10, 0.07);
  }

  .homepage-hero {
    padding: 18px !important;
    min-height: auto;
    border-radius: 28px !important;
    background:
      radial-gradient(circle at 88% 0%, rgba(246, 163, 26, 0.18), transparent 36%),
      radial-gradient(circle at 0% 100%, rgba(82, 255, 148, 0.13), transparent 34%),
      linear-gradient(135deg, #070a0d 0%, #14181d 58%, #262014 100%);
  }

  .homepage-hero-copy {
    gap: 9px;
  }

  .news-kicker {
    font-size: 10px !important;
    letter-spacing: 0.12em;
  }

  .homepage-intelligence-title,
  .news-title,
  .stock-name {
    max-width: none !important;
    font-size: clamp(27px, 8.1vw, 34px) !important;
    line-height: 0.98 !important;
    letter-spacing: -0.055em !important;
  }

  .homepage-intelligence-brief p,
  .news-subtitle,
  .stock-subtitle {
    max-width: none !important;
    font-size: 13px !important;
    line-height: 1.48 !important;
  }

  .homepage-intelligence-brief p {
    -webkit-line-clamp: 5;
  }

  .homepage-summary-grid {
    margin-top: 8px;
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 8px;
    overflow: visible;
  }

  .homepage-summary-card,
  .homepage-pulse-card {
    max-width: none !important;
    min-width: 0 !important;
    min-height: 74px;
    padding: 11px 12px;
    border-radius: 17px;
  }

  .homepage-summary-card span,
  .homepage-pulse-card span {
    font-size: 10px;
  }

  .homepage-summary-card strong,
  .homepage-pulse-card strong {
    font-size: 20px;
    line-height: 1.02;
  }

  .homepage-summary-card small,
  .homepage-pulse-card small {
    font-size: 11px;
    -webkit-line-clamp: 2;
  }

  .homepage-analysis-panel {
    padding: 14px !important;
    background: rgba(255, 255, 255, 0.86);
    border: 1px solid var(--mobile-line);
  }

  .homepage-analysis-head,
  .live-market-panel-head,
  .homepage-market-table-head,
  .indices-table-panel-head,
  .stock-chart-header-row,
  .stock-news-header {
    display: flex !important;
    align-items: flex-start !important;
    justify-content: space-between !important;
    gap: 10px !important;
    margin-bottom: 10px;
  }

  .homepage-analysis-head strong,
  .live-market-panel-copy strong,
  .homepage-market-table-head strong,
  .egx30-table-box strong {
    font-size: 18px !important;
    line-height: 1.08 !important;
  }

  .homepage-radar-table,
  .egx30-table {
    min-width: 0;
  }

  .homepage-radar-head,
  .homepage-radar-row {
    min-width: 560px;
  }

  .homepage-radar-table-wrap,
  .egx30-table-wrap,
  .indices-bars-wrap,
  .news-feed-list,
  .stock-news-list {
    max-width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  .homepage-market-table-panel {
    padding: 12px;
    border-radius: 18px;
    background: #fffaf3;
    border: 1px solid #eee3d5;
  }

  .homepage-market-table-row,
  .homepage-sector-row,
  .homepage-halt-row,
  .trending-stock-row,
  .news-feed-card,
  .stock-news-card,
  .my-stock-item {
    border-radius: 16px !important;
    padding: 12px !important;
  }

  .homepage-sector-row,
  .homepage-feed-row,
  .charged-stock-row {
    grid-template-columns: 1fr !important;
  }

  .homepage-sector-scroll {
    max-height: 360px;
    overflow-y: auto;
    overscroll-behavior: contain;
  }

  .egx30-hero-copy,
  .egx30-summary-card,
  .egx30-chart-box,
  .egx30-table-box,
  .news-hero,
  .settings-card,
  .my-stocks-panel {
    padding: 16px !important;
  }

  .egx30-chart-wrap {
    min-height: 300px !important;
  }

  .egx30-pie-center {
    width: 118px !important;
    height: 118px !important;
  }

  .egx30-pie-center strong {
    font-size: 19px !important;
  }

  .indices-switcher,
  .sectors-switcher,
  .indices-performance-switcher,
  .indices-view-switcher {
    display: flex !important;
    flex-wrap: nowrap !important;
    overflow-x: auto;
    gap: 6px;
    padding-bottom: 2px;
  }

  .indices-switch-button,
  .sectors-switch-button {
    flex: 0 0 auto;
    min-height: 36px;
    padding: 8px 12px !important;
    font-size: 12px !important;
  }

  .indices-table-toolbar {
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 10px !important;
  }

  .indices-bars-head,
  .indices-bar-row {
    min-width: 720px;
  }

  .stock-hero {
    padding: 18px !important;
    border-radius: 28px !important;
  }

  .stock-price-row {
    flex-wrap: wrap;
  }

  .stock-price {
    font-size: clamp(42px, 14vw, 60px) !important;
  }

  .stock-meta,
  .stock-data-grid {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 8px !important;
  }

  .stock-meta-card,
  .stock-data-card {
    min-height: 72px;
    padding: 12px !important;
    border-radius: 17px !important;
  }

  .stock-chart-panel svg,
  .stock-chart-panel canvas {
    max-width: 100%;
  }

  .chart-zone-canvas-shell,
  .chart-zone-svg {
    min-height: 320px !important;
    height: 320px !important;
  }

  .news-feed-list {
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 10px !important;
  }

  .news-popup-panel {
    padding: 10px;
    align-items: flex-end;
  }

  .news-popup-card {
    width: 100%;
    max-height: 88vh;
    border-radius: 24px 24px 0 0;
    overflow: auto;
  }

  .auth-panel {
    padding: 10px;
    align-items: flex-end;
  }

  .auth-card {
    max-height: 88vh;
    overflow: auto;
    border-radius: 24px 24px 0 0 !important;
  }

  .site-footer {
    display: none;
  }

  .homepage-analysis-panel,
  .egx30-chart-box,
  .egx30-table-box,
  .stock-panel,
  .stock-chart-panel,
  .stock-news-panel,
  .news-panel,
  .settings-card,
  .my-stocks-panel {
    content-visibility: auto;
    contain-intrinsic-size: 360px;
  }
}

@media (min-width: 761px) {
  .mobile-app-nav {
    display: none;
  }
}

@media (max-width: 380px) {
  .homepage-summary-grid,
  .stock-meta,
  .stock-data-grid {
    grid-template-columns: 1fr !important;
  }

  .header-indices .metric-card,
  .header-indices .breadth-card {
    min-width: 86px;
    flex-basis: 86px;
  }
}

/* Mobile app rebuild final override: beat older repair passes and page-specific shells. */
@media (max-width: 760px) {
  body .homepage-shell,
  body .stock-shell,
  body .news-shell,
  body .indices-shell,
  body .egx30-shell,
  body .sectors-shell,
  body .settings-shell,
  body .my-stocks-shell,
  body .live-market-shell {
    width: calc(100vw - 20px) !important;
    max-width: 430px !important;
    margin-left: auto !important;
    margin-right: auto !important;
  }

  body .homepage-hero,
  body .homepage-analysis-panel,
  body .egx30-hero,
  body .egx30-hero-copy,
  body .egx30-summary-card,
  body .egx30-chart-box,
  body .egx30-table-box,
  body .stock-hero,
  body .stock-chart-panel,
  body .stock-panel,
  body .stock-news-panel,
  body .news-hero,
  body .news-panel,
  body .settings-card,
  body .my-stocks-panel {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    box-sizing: border-box;
  }

  body .homepage-hero {
    max-width: 430px !important;
  }

  body .mobile-app-nav {
    display: grid !important;
  }
}

/* Mobile header polish: readable market tape, calmer search, cleaner app bar. */
@media (max-width: 760px) {
  body .site-header {
    background:
      linear-gradient(180deg, #07090c 0%, #0b0e12 100%);
    box-shadow: 0 12px 26px rgba(4, 6, 9, 0.24);
  }

  body .site-header-inner {
    width: calc(100vw - 24px);
    max-width: 430px;
    padding: 12px 0 10px;
    grid-template-columns: minmax(0, 1fr) 42px;
    gap: 12px;
  }

  body .logo-slot {
    font-size: 22px;
    letter-spacing: 0.035em;
  }

  body .mobile-menu-toggle {
    width: 42px;
    height: 42px;
    border-radius: 16px;
    background:
      linear-gradient(180deg, rgba(255, 255, 255, 0.13), rgba(255, 255, 255, 0.05));
    border-color: rgba(255, 255, 255, 0.18);
  }

  body .header-indices {
    grid-column: 1 / -1;
    display: flex;
    gap: 9px;
    width: 100%;
    padding: 0 1px 3px;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-snap-type: x mandatory;
    overscroll-behavior-x: contain;
    mask-image: linear-gradient(90deg, #000 0%, #000 calc(100% - 22px), transparent 100%);
  }

  body .header-indices {
    justify-content: center;
    mask-image: none;
  }

  body .header-indices .metric-card,
  body .header-indices .breadth-card {
    flex: 0 0 118px;
    min-width: 118px;
    min-height: 62px;
    height: 62px;
    padding: 9px 10px 8px;
    border-radius: 17px;
    box-sizing: border-box;
    scroll-snap-align: start;
    background:
      linear-gradient(180deg, rgba(30, 36, 45, 0.98), rgba(15, 18, 24, 0.98));
    border: 1px solid rgba(255, 255, 255, 0.085);
    box-shadow:
      inset 0 1px 0 rgba(255, 255, 255, 0.06),
      0 8px 18px rgba(0, 0, 0, 0.18);
  }

  body .header-indices .turnover-status-card {
    display: none;
  }

  body .metric-label {
    margin: 0 0 5px;
    color: rgba(255, 255, 255, 0.62);
    font-size: 9px;
    line-height: 1;
    letter-spacing: 0.075em;
  }

  body .metric-main,
  body .breadth-main {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 3px;
    align-items: start;
  }

  body .metric-main strong,
  body .breadth-card strong {
    display: block;
    max-width: 100%;
    color: #ffffff;
    font-size: 19px;
    line-height: 0.95;
    letter-spacing: -0.055em;
    white-space: nowrap;
  }

  body .metric-change {
    display: flex;
    gap: 5px;
    align-items: center;
    white-space: nowrap;
  }

  body .metric-change span {
    font-size: 10px;
    line-height: 1;
    font-weight: 950;
  }

  body .header-indices .metric-change span:nth-child(2) {
    display: none;
  }

  body .metric-card.positive .metric-change,
  body .breadth-card.positive .metric-change,
  body .breadth-card.up .metric-change {
    color: #55ee91;
  }

  body .metric-card.negative .metric-change,
  body .breadth-card.negative .metric-change,
  body .breadth-card.down .metric-change {
    color: #ff6672;
  }

  body .turnover-status-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 9px;
    align-items: start;
    width: 100%;
  }

  body .turnover-status-grid .metric-label {
    font-size: 8px;
  }

  body .turnover-status-grid strong {
    font-size: 18px;
    letter-spacing: -0.04em;
  }

  body .turnover-status-divider {
    display: none;
  }

  body .turnover-status-pane {
    min-width: 0;
    display: grid;
    gap: 5px;
  }

  body .turnover-status-pane:last-child {
    justify-items: end;
    text-align: right;
  }

  body .turnover-status-pane:last-child .metric-label {
    display: none;
  }

  body .turnover-status-pane .tone {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 22px;
    padding: 0 8px;
    border-radius: 999px;
    background: rgba(255, 102, 114, 0.12);
    font-size: 12px;
    letter-spacing: 0;
  }

  body .turnover-status-card.closed strong:last-child,
  body .turnover-status-card.closed .turnover-status-grid strong:last-child {
    color: #ff6672;
  }

  body .turnover-status-card.open strong:last-child,
  body .turnover-status-card.open .turnover-status-grid strong:last-child {
    color: #55ee91;
  }

  body .header-search-band {
    top: 128px;
    background:
      linear-gradient(180deg, rgba(9, 11, 14, 0.98), rgba(9, 11, 14, 0.92));
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    box-shadow: 0 12px 22px rgba(4, 6, 9, 0.16);
  }

  body .header-search-inner {
    width: calc(100vw - 24px);
    max-width: 430px;
    padding: 8px 0 10px;
  }

  body .search-strip {
    min-height: 44px;
    padding: 6px 7px 6px 14px;
    border-radius: 18px;
    background: #f9f3ea;
    border: 1px solid rgba(255, 255, 255, 0.22);
    box-shadow:
      inset 0 1px 0 rgba(255, 255, 255, 0.72),
      0 8px 18px rgba(4, 6, 9, 0.13);
  }

  body .search-input {
    color: #202329;
    font-size: 13px;
    font-weight: 750;
  }

  body .search-input::placeholder {
    color: #82786d;
  }

  body .search-button {
    min-width: 58px;
    min-height: 32px;
    border-radius: 13px;
    background: #12161b;
    color: #ffffff;
  }

  body .search-results {
    top: 190px;
  }
}

/* Mobile live-market repair: keep the page inside the app shell while allowing tables to scroll. */
@media (max-width: 760px) {
  body .live-market-hero,
  body .live-market-copy,
  body .live-stream-status-card,
  body .live-market-overview,
  body .live-overview-card,
  body .live-market-board,
  body .live-market-panel,
  body .live-market-tape-box,
  body .live-market-watchlist-box,
  body .live-market-sunburst-box,
  body .live-market-split {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    box-sizing: border-box;
  }

  body .live-market-hero,
  body .live-market-board,
  body .live-market-split {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) !important;
    gap: 10px !important;
  }

  body .live-market-copy,
  body .live-stream-status-card,
  body .live-market-panel,
  body .live-market-tape-box,
  body .live-market-watchlist-box,
  body .live-market-sunburst-box,
  body .live-overview-card {
    padding: 14px !important;
    border-radius: 22px !important;
  }

  body .live-market-overview {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 8px !important;
  }

  body .live-overview-card {
    min-height: 72px;
  }

  body .live-market-table-wrap,
  body .live-market-scroll {
    width: 100%;
    max-width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  body .live-market-table {
    min-width: 620px;
  }

  body .live-market-sunburst-wrap {
    min-height: 320px !important;
  }

  body .live-market-sunburst-center {
    width: 118px !important;
    height: 118px !important;
  }
}

/* News Center repair pass: keep the disclosure desk wide and readable while
   preserving the mobile-app treatment for true phone widths. */
body:has(.news-center-layout) .news-shell {
  box-sizing: border-box;
}

body:has(.news-center-layout) .news-center-layout,
body:has(.news-center-layout) .news-center-main,
body:has(.news-center-layout) .news-center-feed-box,
body:has(.news-center-layout) .news-center-sidebar {
  min-width: 0;
}

body:has(.news-center-layout) .news-center-feed-box {
  overflow: hidden;
}

body:has(.news-center-layout) .news-feed-list.is-brief {
  max-height: none;
  overflow: visible;
}

body:has(.news-center-layout) .news-brief-page-card {
  box-shadow: 0 12px 28px rgba(42, 31, 17, 0.05);
}

body:has(.news-center-layout) .news-brief-page-items {
  max-width: 100%;
  max-height: 520px;
  overflow: auto;
  overscroll-behavior: contain;
}

body:has(.news-center-layout) .news-brief-page-items::-webkit-scrollbar,
body:has(.news-center-layout) .news-brief-session-list::-webkit-scrollbar {
  width: 8px;
}

body:has(.news-center-layout) .news-brief-page-items::-webkit-scrollbar-thumb,
body:has(.news-center-layout) .news-brief-session-list::-webkit-scrollbar-thumb {
  background: #d8cbb8;
  border-radius: 999px;
}

body:has(.news-center-layout) .news-brief-page-items::-webkit-scrollbar-track,
body:has(.news-center-layout) .news-brief-session-list::-webkit-scrollbar-track {
  background: transparent;
}

body:has(.news-center-layout) .news-brief-page-item-copy strong,
body:has(.news-center-layout) .news-brief-page-item-copy p,
body:has(.news-center-layout) .news-brief-page-bullets li {
  overflow-wrap: anywhere;
}

body:has(.news-center-layout) .news-brief-page-bullets li,
body:has(.news-center-layout) .news-brief-page-item-copy p {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

body:has(.news-center-layout) .news-brief-page-bullets li {
  -webkit-line-clamp: 2;
}

body:has(.news-center-layout) .news-brief-page-item-copy p {
  -webkit-line-clamp: 2;
}

body:has(.news-center-layout) .news-center-sidebar {
  border-left: 1px solid rgba(20, 24, 29, 0.1);
  padding-left: 18px;
}

body:has(.news-center-layout) .news-brief-sidebar-card {
  box-shadow: none;
  background: #fffaf3;
}

body:has(.news-center-layout) .news-feed-list.is-brief {
  display: grid;
  gap: 16px;
}

body:has(.news-center-layout) .news-terminal-summary {
  display: grid;
  grid-template-columns: minmax(230px, 0.8fr) minmax(0, 1.4fr);
  gap: 14px;
  align-items: stretch;
  padding: 18px;
  border-radius: 28px;
  background:
    radial-gradient(circle at 10% 0%, rgba(246, 163, 26, 0.22), transparent 34%),
    linear-gradient(135deg, #101419 0%, #1c2228 62%, #2d261b 100%);
  color: #ffffff;
  box-shadow: 0 16px 38px rgba(24, 20, 14, 0.14);
}

body:has(.news-center-layout) .news-terminal-summary-copy {
  display: grid;
  align-content: center;
  gap: 8px;
}

body:has(.news-center-layout) .news-terminal-summary-copy span,
body:has(.news-center-layout) .news-terminal-summary-count span {
  color: rgba(255, 255, 255, 0.58);
  font-size: 11px;
  line-height: 1.25;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

body:has(.news-center-layout) .news-terminal-summary-copy strong {
  color: #ffffff;
  font-size: clamp(30px, 3.3vw, 48px);
  line-height: 0.95;
  font-weight: 950;
  letter-spacing: -0.055em;
}

body:has(.news-center-layout) .news-terminal-summary-copy p {
  max-width: 42ch;
  margin: 0;
  color: rgba(255, 255, 255, 0.74);
  font-size: 13px;
  line-height: 1.45;
  font-weight: 750;
}

body:has(.news-center-layout) .news-terminal-summary-panel {
  display: grid;
  grid-template-columns: 130px minmax(0, 1fr);
  gap: 14px;
  align-items: stretch;
  min-width: 0;
}

body:has(.news-center-layout) .news-terminal-summary-count {
  display: grid;
  align-content: center;
  justify-items: center;
  gap: 4px;
  min-height: 120px;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

body:has(.news-center-layout) .news-terminal-summary-count strong {
  color: #67ee9a;
  font-size: 48px;
  line-height: 0.9;
  font-weight: 950;
  letter-spacing: -0.06em;
}

body:has(.news-center-layout) .news-terminal-summary-count span {
  max-width: 88px;
  text-align: center;
}

body:has(.news-center-layout) .news-terminal-summary-panel ul {
  margin: 0;
  padding: 12px 14px 12px 30px;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.1);
  display: grid;
  align-content: center;
  gap: 8px;
}

body:has(.news-center-layout) .news-terminal-summary-panel li {
  color: rgba(255, 255, 255, 0.88);
  font-size: 13px;
  line-height: 1.42;
  font-weight: 750;
}

body:has(.news-center-layout) .news-terminal-tickers {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

body:has(.news-center-layout) .news-terminal-tickers span {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 10px;
  border-radius: 999px;
  color: #dffbe9;
  background: rgba(103, 238, 154, 0.12);
  border: 1px solid rgba(103, 238, 154, 0.16);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.05em;
}

body:has(.news-center-layout) .news-disclosure-terminal {
  display: grid;
  gap: 14px;
}

body:has(.news-center-layout) .news-disclosure-window {
  display: grid;
  grid-template-columns: 94px minmax(0, 1fr);
  gap: 12px;
  align-items: start;
}

body:has(.news-center-layout) .news-disclosure-window-head {
  position: sticky;
  top: 14px;
  display: grid;
  gap: 6px;
  padding: 12px;
  border-radius: 18px;
  background: #15191e;
  color: #ffffff;
}

body:has(.news-center-layout) .news-disclosure-window-head span {
  font-size: 20px;
  line-height: 0.95;
  font-weight: 950;
  letter-spacing: -0.05em;
}

body:has(.news-center-layout) .news-disclosure-window-head strong {
  color: rgba(255, 255, 255, 0.66);
  font-size: 10px;
  line-height: 1.25;
  font-weight: 900;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

body:has(.news-center-layout) .news-disclosure-table {
  overflow: hidden;
  border-radius: 22px;
  border: 1px solid #eadfce;
  background: #ffffff;
}

body:has(.news-center-layout) .news-disclosure-row {
  display: grid;
  grid-template-columns: 70px 138px minmax(0, 1fr) 92px 64px;
  gap: 12px;
  align-items: center;
  min-width: 0;
  padding: 13px 14px;
  border-top: 1px solid #efe5d8;
}

body:has(.news-center-layout) .news-disclosure-row:first-child {
  border-top: 0;
}

body:has(.news-center-layout) .news-disclosure-code {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  border-radius: 14px;
  background: #11161c;
  color: #ffffff;
  font-size: 13px;
  font-weight: 950;
  letter-spacing: 0.05em;
}

body:has(.news-center-layout) .news-disclosure-type,
body:has(.news-center-layout) .news-disclosure-time {
  color: #756d61;
  font-size: 11px;
  line-height: 1.3;
  font-weight: 900;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

body:has(.news-center-layout) .news-disclosure-copy {
  display: grid;
  gap: 4px;
  min-width: 0;
}

body:has(.news-center-layout) .news-disclosure-copy strong {
  color: #15191e;
  font-size: 15px;
  line-height: 1.32;
  font-weight: 950;
  overflow-wrap: anywhere;
}

body:has(.news-center-layout) .news-disclosure-copy p {
  margin: 0;
  color: #433d36;
  font-size: 12.5px;
  line-height: 1.45;
  font-weight: 650;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

body:has(.news-center-layout) .news-disclosure-open {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 36px;
  border-radius: 999px;
  background: #f3e7d5;
  color: #11161c;
  text-decoration: none;
  font-size: 12px;
  font-weight: 950;
}

body:has(.news-center-layout) .news-disclosure-open.muted {
  color: #a99d8d;
  background: #f7f2ea;
}

body:has(.news-center-layout) .news-center-sidebar #news-type-tabs.news-page-tabs {
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  overflow: visible;
  padding: 0;
}

body:has(.news-center-layout) .news-center-sidebar #news-type-tabs.news-page-tabs.hidden {
  display: grid !important;
}

body:has(.news-center-layout) .news-center-sidebar #news-type-tabs .stock-news-tab {
  width: 100%;
  justify-content: flex-start;
  height: auto;
  min-height: 40px;
  padding: 8px 10px;
  border-radius: 14px;
  font-size: 11px;
  line-height: 1.15;
}

@media (min-width: 761px) {
  body:has(.news-center-layout) .news-shell {
    width: min(1544px, calc(100% - 56px)) !important;
    max-width: 1544px !important;
    margin: 22px auto 58px !important;
    padding: 0 !important;
  }

  body:has(.news-center-layout) .news-center-layout {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) minmax(300px, 340px) !important;
    gap: 20px !important;
    align-items: start;
  }

  body:has(.news-center-layout) .news-center-hero {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(240px, 300px);
    align-items: end;
  }

  body:has(.news-center-layout) .news-center-feed-head {
    align-items: flex-start;
    display: grid;
    grid-template-columns: minmax(210px, 250px) minmax(0, 1fr);
    gap: 18px;
  }

  body:has(.news-center-layout) .news-center-feed-head > div:first-child {
    min-width: 0;
  }

  body:has(.news-center-layout) .news-center-feed-head .stock-news-title {
    display: block;
    max-width: 230px;
    font-size: clamp(30px, 3.2vw, 42px);
    line-height: 0.94;
    letter-spacing: -0.055em;
    font-weight: 950;
  }

  body:has(.news-center-layout) .news-center-feed-head .stock-news-meta {
    max-width: 200px;
    margin-top: 18px;
    font-size: 13px;
    line-height: 1.08;
    letter-spacing: 0.04em;
  }

  body:has(.news-center-layout) #news-type-tabs.news-page-tabs {
    justify-self: end;
    width: 100%;
    min-width: 0;
    max-width: 100%;
    display: flex !important;
    justify-content: flex-start;
    align-content: flex-start;
    gap: 10px;
    padding: 0 2px 8px 0;
    overflow-x: auto;
    overflow-y: hidden;
    flex-wrap: nowrap;
    scrollbar-width: thin;
  }

  body:has(.news-center-layout) #news-type-tabs.news-page-tabs.hidden {
    display: none !important;
  }

  body:has(.news-center-layout) #news-type-tabs .stock-news-tab {
    flex: 0 0 auto;
    min-width: max-content;
    height: 42px;
    padding: 0 16px;
    font-size: 13px;
    font-weight: 900;
  }

  body:has(.news-center-layout) .news-brief-page-card {
    padding: 18px 18px 18px 24px;
  }

  body:has(.news-center-layout) .news-brief-page-card-head {
    align-items: center;
  }

  body:has(.news-center-layout) .news-brief-page-item {
    grid-template-columns: 70px minmax(0, 1fr) auto;
    padding: 12px 14px;
  }
}

@media (min-width: 521px) and (max-width: 760px) {
  body:has(.news-center-layout) .news-shell {
    width: calc(100vw - 24px) !important;
    max-width: none !important;
    margin: 12px auto 28px !important;
  }

  body:has(.news-center-layout) .news-center-layout {
    grid-template-columns: minmax(0, 1fr) !important;
  }
}

@media (max-width: 760px) {
  body:has(.news-center-layout) .news-center-hero,
  body:has(.news-center-layout) .news-command-bar,
  body:has(.news-center-layout) .news-center-feed-box,
  body:has(.news-center-layout) .news-brief-sidebar-card {
    border-radius: 22px !important;
  }

  body:has(.news-center-layout) .news-center-hero {
    padding: 18px !important;
  }

  body:has(.news-center-layout) .news-center-hero .news-title {
    font-size: clamp(34px, 11vw, 58px) !important;
  }

  body:has(.news-center-layout) .news-command-bar {
    display: grid !important;
    grid-template-columns: 1fr !important;
  }

  body:has(.news-center-layout) .news-page-tabs {
    overflow-x: auto;
    display: flex !important;
    flex-wrap: nowrap;
  }

  body:has(.news-center-layout) .news-page-tabs .stock-news-tab {
    flex: 1 0 auto;
    min-width: 86px;
  }

  body:has(.news-center-layout) .news-center-feed-head {
    gap: 10px;
    display: grid;
    grid-template-columns: minmax(0, 1fr);
  }

  body:has(.news-center-layout) .news-center-feed-head .stock-news-title {
    max-width: none;
    font-size: 28px;
    line-height: 1;
  }

  body:has(.news-center-layout) .news-center-feed-head .stock-news-meta {
    max-width: none;
    margin-top: 8px;
    line-height: 1.25;
  }

  body:has(.news-center-layout) .news-brief-page-card {
    padding: 14px !important;
    gap: 10px;
  }

  body:has(.news-center-layout) .news-brief-page-items {
    border-radius: 18px;
    max-height: 380px;
  }

  body:has(.news-center-layout) .news-brief-time-lockup {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    align-items: center;
    gap: 10px;
  }

  body:has(.news-center-layout) .news-brief-time-lockup span {
    min-width: 62px;
    min-height: 36px;
    font-size: 17px;
  }

  body:has(.news-center-layout) .news-brief-time-lockup strong {
    font-size: 21px;
  }

  body:has(.news-center-layout) .news-brief-page-bullets {
    padding: 12px 12px 12px 28px !important;
  }

  body:has(.news-center-layout) .news-brief-page-item {
    grid-template-columns: minmax(0, 1fr) !important;
    gap: 8px;
  }

  body:has(.news-center-layout) .news-brief-page-item-code {
    min-height: 34px;
  }

  body:has(.news-center-layout) .news-brief-page-open {
    width: 100%;
  }

  body:has(.news-center-layout) .news-center-sidebar {
    border-left: 0;
    padding-left: 0;
  }
}

/* News Terminal final layout overrides. Keep filters in the control panel and
   keep the reading surface as summary + timeline instead of nested brief cards. */
body:has(.news-center-layout) .news-center-feed-head {
  display: block !important;
}

body:has(.news-center-layout) .news-center-feed-head .stock-news-title {
  max-width: none !important;
}

body:has(.news-center-layout) .news-center-feed-head .stock-news-meta {
  max-width: none !important;
  margin-top: 8px !important;
}

body:has(.news-center-layout) .news-center-sidebar #news-type-tabs.news-page-tabs,
body:has(.news-center-layout) .news-center-sidebar #news-type-tabs.news-page-tabs.hidden {
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  gap: 8px !important;
  overflow: visible !important;
  padding: 0 !important;
}

body:has(.news-center-layout) .news-center-sidebar #news-type-tabs .stock-news-tab {
  flex: none !important;
  width: 100% !important;
  min-width: 0 !important;
  justify-content: flex-start !important;
  white-space: normal !important;
}

@media (max-width: 980px) {
  body:has(.news-center-layout) .news-terminal-summary {
    grid-template-columns: minmax(0, 1fr);
  }

  body:has(.news-center-layout) .news-terminal-summary-panel {
    grid-template-columns: minmax(0, 1fr);
  }

  body:has(.news-center-layout) .news-terminal-summary-count {
    min-height: 86px;
  }

  body:has(.news-center-layout) .news-disclosure-window {
    grid-template-columns: minmax(0, 1fr);
  }

  body:has(.news-center-layout) .news-disclosure-window-head {
    position: static;
    grid-template-columns: auto minmax(0, 1fr);
    align-items: center;
  }

  body:has(.news-center-layout) .news-disclosure-row {
    grid-template-columns: 64px minmax(0, 1fr) auto;
    grid-template-areas:
      "code copy pdf"
      "type copy time";
  }

  body:has(.news-center-layout) .news-disclosure-code {
    grid-area: code;
  }

  body:has(.news-center-layout) .news-disclosure-type {
    grid-area: type;
  }

  body:has(.news-center-layout) .news-disclosure-copy {
    grid-area: copy;
  }

  body:has(.news-center-layout) .news-disclosure-time {
    grid-area: time;
    text-align: right;
  }

  body:has(.news-center-layout) .news-disclosure-open {
    grid-area: pdf;
    min-width: 54px;
  }
}

@media (max-width: 640px) {
  body:has(.news-center-layout) .news-terminal-summary {
    padding: 14px;
    border-radius: 22px;
  }

  body:has(.news-center-layout) .news-terminal-summary-copy strong {
    font-size: 30px;
  }

  body:has(.news-center-layout) .news-disclosure-row {
    grid-template-columns: minmax(0, 1fr);
    grid-template-areas:
      "code"
      "copy"
      "type"
      "time"
      "pdf";
  }

  body:has(.news-center-layout) .news-disclosure-code,
  body:has(.news-center-layout) .news-disclosure-open {
    width: fit-content;
  }

  body:has(.news-center-layout) .news-disclosure-time {
    text-align: left;
  }

  body:has(.news-center-layout) .news-center-sidebar #news-type-tabs.news-page-tabs,
  body:has(.news-center-layout) .news-center-sidebar #news-type-tabs.news-page-tabs.hidden {
    grid-template-columns: minmax(0, 1fr) !important;
  }
}

/* Final unified News page overrides: one page, no sidebar, summary > filters > news. */
body:has(.news-center-layout) .news-shell {
  width: min(1880px, calc(100% - 48px)) !important;
  max-width: 1880px !important;
  margin: 20px auto 58px !important;
}

body:has(.news-center-layout) .news-center-layout {
  display: block !important;
}

body:has(.news-center-layout) .news-center-sidebar {
  display: none !important;
}

body:has(.news-center-layout) .news-center-feed-box {
  display: grid !important;
  gap: 18px !important;
  padding: clamp(18px, 2.2vw, 28px) !important;
  border-radius: 34px !important;
  overflow: visible !important;
}

body:has(.news-center-layout) .news-center-feed-head,
body:has(.news-center-layout) .news-brief-summary,
body:has(.news-center-layout) .news-page-control-deck,
body:has(.news-center-layout) .news-feed-list.is-brief {
  order: initial !important;
}

body:has(.news-center-layout) .news-center-feed-head .stock-news-title {
  display: block !important;
  max-width: none !important;
  color: #111111 !important;
  font-size: clamp(56px, 6.4vw, 112px) !important;
  line-height: 0.82 !important;
  letter-spacing: -0.075em !important;
  font-weight: 950 !important;
}

body:has(.news-center-layout) .news-center-feed-head .stock-news-meta {
  max-width: none !important;
  margin-top: 12px !important;
  color: #6d675f !important;
  font-size: clamp(17px, 1.65vw, 28px) !important;
  line-height: 1.08 !important;
  letter-spacing: 0.04em !important;
  font-weight: 950 !important;
  text-transform: uppercase !important;
}

body:has(.news-center-layout) .news-page-control-deck {
  display: grid !important;
  grid-template-columns: 1fr !important;
  gap: 12px !important;
  align-items: stretch !important;
}

body:has(.news-center-layout) .news-page-search-card,
body:has(.news-center-layout) .news-page-filter-card {
  display: grid !important;
  gap: 10px !important;
  min-width: 0 !important;
  padding: 14px !important;
  border-radius: 24px !important;
  background: #fffaf3 !important;
  border: 1px solid #e7dccb !important;
}

body:has(.news-center-layout) #news-type-tabs.news-page-tabs,
body:has(.news-center-layout) #news-type-tabs.news-page-tabs.hidden {
  display: flex !important;
  flex-wrap: wrap !important;
  gap: 8px !important;
  overflow: visible !important;
  padding: 0 !important;
}

body:has(.news-center-layout) #news-type-tabs .stock-news-tab {
  flex: 0 0 auto !important;
  min-width: 0 !important;
  min-height: 36px !important;
  padding: 0 13px !important;
  border-radius: 999px !important;
  white-space: nowrap !important;
  font-size: 12px !important;
  font-weight: 950 !important;
}

body:has(.news-center-layout) .news-brief-session-list {
  display: flex !important;
  gap: 8px !important;
  overflow-x: auto !important;
  max-height: none !important;
  padding-bottom: 2px !important;
}

body:has(.news-center-layout) .news-daily-brief-hero {
  display: grid !important;
  grid-template-columns: minmax(0, 1.45fr) minmax(170px, 0.34fr) minmax(360px, 0.9fr) !important;
  gap: clamp(16px, 2.4vw, 30px) !important;
  align-items: center !important;
  padding: clamp(28px, 3.5vw, 54px) !important;
  border-radius: 34px !important;
  background: radial-gradient(circle at 0% 0%, rgba(149, 99, 18, 0.52), transparent 36%), linear-gradient(140deg, #2b2112 0%, #11161c 52%, #232016 100%) !important;
  color: #ffffff !important;
  box-shadow: 0 18px 44px rgba(29, 24, 16, 0.18) !important;
}

body:has(.news-center-layout) .news-daily-brief-copy {
  display: grid !important;
  gap: 14px !important;
  min-width: 0 !important;
}

body:has(.news-center-layout) .news-daily-brief-copy span,
body:has(.news-center-layout) .news-daily-brief-count span {
  color: rgba(255, 255, 255, 0.64) !important;
  font-size: 13px !important;
  line-height: 1.15 !important;
  font-weight: 950 !important;
  letter-spacing: 0.08em !important;
  text-transform: uppercase !important;
}

body:has(.news-center-layout) .news-daily-brief-copy strong {
  color: #ffffff !important;
  font-size: clamp(56px, 6vw, 100px) !important;
  line-height: 0.86 !important;
  font-weight: 950 !important;
  letter-spacing: -0.075em !important;
}

body:has(.news-center-layout) .news-daily-brief-copy p {
  margin: 0 !important;
  max-width: 55ch !important;
  color: rgba(255, 255, 255, 0.82) !important;
  font-size: clamp(17px, 1.35vw, 27px) !important;
  line-height: 1.2 !important;
  font-weight: 900 !important;
}

body:has(.news-center-layout) .news-daily-brief-count {
  display: grid !important;
  place-items: center !important;
  gap: 8px !important;
  min-height: 170px !important;
  padding: 22px !important;
  border-radius: 32px !important;
  background: rgba(255, 255, 255, 0.08) !important;
  border: 1px solid rgba(255, 255, 255, 0.14) !important;
  text-align: center !important;
}

body:has(.news-center-layout) .news-daily-brief-count strong {
  color: #63ef9c !important;
  font-size: clamp(56px, 5.8vw, 94px) !important;
  line-height: 0.82 !important;
  font-weight: 950 !important;
  letter-spacing: -0.07em !important;
}

body:has(.news-center-layout) .news-daily-brief-count span {
  max-width: 140px !important;
}

body:has(.news-center-layout) .news-daily-brief-highlights {
  min-width: 0 !important;
  padding: 22px 26px !important;
  border-radius: 32px !important;
  background: rgba(255, 255, 255, 0.1) !important;
  border: 1px solid rgba(255, 255, 255, 0.16) !important;
}

body:has(.news-center-layout) .news-daily-brief-highlights ul {
  display: grid !important;
  gap: 12px !important;
  margin: 0 !important;
  padding: 0 0 0 22px !important;
}

body:has(.news-center-layout) .news-daily-brief-highlights li {
  color: rgba(255, 255, 255, 0.9) !important;
  font-size: clamp(15px, 1.25vw, 24px) !important;
  line-height: 1.28 !important;
  font-weight: 900 !important;
}

body:has(.news-center-layout) .news-daily-brief-tickers {
  grid-column: 1 / -1 !important;
  display: flex !important;
  flex-wrap: wrap !important;
  gap: 10px !important;
}

body:has(.news-center-layout) .news-daily-brief-tickers span {
  display: inline-flex !important;
  align-items: center !important;
  min-height: 38px !important;
  padding: 0 18px !important;
  border-radius: 999px !important;
  color: #e6ffef !important;
  background: rgba(75, 214, 128, 0.16) !important;
  border: 1px solid rgba(92, 229, 145, 0.28) !important;
  font-size: 14px !important;
  font-weight: 950 !important;
  letter-spacing: 0.05em !important;
}

@media (max-width: 1180px) {
  body:has(.news-center-layout) .news-page-control-deck,
  body:has(.news-center-layout) .news-daily-brief-hero {
    grid-template-columns: minmax(0, 1fr) !important;
  }
}

@media (max-width: 760px) {
  body:has(.news-center-layout) .news-shell {
    width: calc(100% - 20px) !important;
    margin-top: 12px !important;
  }

  body:has(.news-center-layout) .news-center-feed-box {
    padding: 14px !important;
    border-radius: 24px !important;
  }

  body:has(.news-center-layout) .news-center-feed-head .stock-news-title {
    font-size: clamp(42px, 15vw, 72px) !important;
  }

  body:has(.news-center-layout) .news-daily-brief-hero {
    padding: 20px !important;
    border-radius: 24px !important;
  }

  body:has(.news-center-layout) .news-daily-brief-copy strong {
    font-size: 42px !important;
  }
}

/* News page correction: compact Daily Brief + flat news tape, no second brief cards. */
body:has(.news-center-layout) .news-daily-brief-hero {
  grid-template-columns: minmax(220px, 0.9fr) 110px minmax(280px, 1.1fr) !important;
  gap: 14px !important;
  padding: 18px 22px !important;
  border-radius: 26px !important;
  min-height: 0 !important;
}

body:has(.news-center-layout) .news-daily-brief-copy {
  gap: 6px !important;
}

body:has(.news-center-layout) .news-daily-brief-copy span,
body:has(.news-center-layout) .news-daily-brief-count span {
  font-size: 10px !important;
}

body:has(.news-center-layout) .news-daily-brief-copy strong {
  font-size: clamp(30px, 3.2vw, 54px) !important;
  letter-spacing: -0.06em !important;
}

body:has(.news-center-layout) .news-daily-brief-copy p {
  font-size: 13px !important;
  line-height: 1.25 !important;
  font-weight: 850 !important;
}

body:has(.news-center-layout) .news-daily-brief-count {
  min-height: 84px !important;
  padding: 12px !important;
  border-radius: 22px !important;
}

body:has(.news-center-layout) .news-daily-brief-count strong {
  font-size: 42px !important;
}

body:has(.news-center-layout) .news-daily-brief-highlights {
  padding: 12px 16px !important;
  border-radius: 22px !important;
}

body:has(.news-center-layout) .news-daily-brief-highlights ul {
  gap: 6px !important;
  padding-left: 18px !important;
}

body:has(.news-center-layout) .news-daily-brief-highlights li {
  font-size: 13px !important;
  line-height: 1.24 !important;
  font-weight: 850 !important;
  display: -webkit-box !important;
  -webkit-line-clamp: 1 !important;
  -webkit-box-orient: vertical !important;
  overflow: hidden !important;
}

body:has(.news-center-layout) .news-daily-brief-tickers {
  gap: 6px !important;
}

body:has(.news-center-layout) .news-daily-brief-tickers span {
  min-height: 28px !important;
  padding: 0 10px !important;
  font-size: 11px !important;
}

body:has(.news-center-layout) .news-flat-list {
  display: grid !important;
  gap: 0 !important;
  overflow: hidden !important;
  border: 1px solid #eadfce !important;
  border-radius: 24px !important;
  background: #ffffff !important;
}

body:has(.news-center-layout) .news-flat-item {
  display: grid !important;
  grid-template-columns: 74px minmax(0, 1fr) auto !important;
  gap: 14px !important;
  align-items: center !important;
  padding: 14px 16px !important;
  border-top: 1px solid #efe5d8 !important;
}

body:has(.news-center-layout) .news-flat-item:first-child {
  border-top: 0 !important;
}

body:has(.news-center-layout) .news-flat-code {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  min-height: 40px !important;
  border-radius: 14px !important;
  background: #11161c !important;
  color: #ffffff !important;
  font-size: 13px !important;
  font-weight: 950 !important;
  letter-spacing: 0.05em !important;
}

body:has(.news-center-layout) .news-flat-copy {
  display: grid !important;
  gap: 5px !important;
  min-width: 0 !important;
}

body:has(.news-center-layout) .news-flat-copy strong {
  color: #171b20 !important;
  font-size: 16px !important;
  line-height: 1.36 !important;
  font-weight: 950 !important;
  overflow-wrap: anywhere !important;
}

body:has(.news-center-layout) .news-flat-copy span {
  color: #7a7267 !important;
  font-size: 11px !important;
  font-weight: 850 !important;
  letter-spacing: 0.06em !important;
  text-transform: uppercase !important;
}

body:has(.news-center-layout) .news-flat-copy p {
  margin: 0 !important;
  color: #37322b !important;
  font-size: 13px !important;
  line-height: 1.45 !important;
  font-weight: 650 !important;
  display: -webkit-box !important;
  -webkit-line-clamp: 2 !important;
  -webkit-box-orient: vertical !important;
  overflow: hidden !important;
}

body:has(.news-center-layout) .news-flat-open {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  min-width: 68px !important;
  min-height: 38px !important;
  padding: 0 14px !important;
  border-radius: 999px !important;
  background: #14181d !important;
  color: #ffffff !important;
  text-decoration: none !important;
  font-size: 12px !important;
  font-weight: 950 !important;
}

body:has(.news-center-layout) .news-flat-open.muted {
  color: #9b9286 !important;
  background: #f7f1e8 !important;
}

body:has(.news-center-layout) .news-pagination {
  display: flex !important;
  flex-wrap: wrap !important;
  align-items: center !important;
  justify-content: flex-end !important;
  gap: 8px !important;
  margin-top: 14px !important;
  padding: 12px 14px !important;
  border: 1px solid #eadfce !important;
  border-radius: 18px !important;
  background: #ffffff !important;
}

body:has(.news-center-layout) .news-page-numbers {
  display: inline-flex !important;
  flex-wrap: wrap !important;
  gap: 6px !important;
}

body:has(.news-center-layout) .news-page-button,
body:has(.news-center-layout) .news-page-number {
  min-height: 34px !important;
  border: 1px solid #e4d8c8 !important;
  border-radius: 999px !important;
  background: #f8f3eb !important;
  color: #151515 !important;
  font-size: 12px !important;
  font-weight: 950 !important;
  cursor: pointer !important;
}

body:has(.news-center-layout) .news-page-button {
  padding: 0 14px !important;
}

body:has(.news-center-layout) .news-page-number {
  width: 34px !important;
  padding: 0 !important;
}

body:has(.news-center-layout) .news-page-number.active {
  background: #11161c !important;
  border-color: #11161c !important;
  color: #ffffff !important;
}

body:has(.news-center-layout) .news-page-button:disabled {
  opacity: 0.42 !important;
  cursor: not-allowed !important;
}

body:has(.news-center-layout) .news-pagination span {
  color: #776d61 !important;
  font-size: 11px !important;
  font-weight: 850 !important;
  letter-spacing: 0.05em !important;
  text-transform: uppercase !important;
}

body:has(.news-center-layout) .news-brief-page-list,
body:has(.news-center-layout) .news-brief-page-card,
body:has(.news-center-layout) .news-brief-page-items {
  max-height: none !important;
}

/* Insider Trading Desk: make the insider filter feel like a real page, not a
   borrowed news card. */
body:has(.news-center-layout) .insider-desk-page {
  display: grid !important;
  gap: 18px !important;
}

body:has(.news-center-layout) .insider-desk-hero {
  display: grid !important;
  grid-template-columns: minmax(280px, 1.35fr) repeat(4, minmax(126px, 0.6fr)) !important;
  gap: 12px !important;
  align-items: stretch !important;
  padding: 18px !important;
  border-radius: 28px !important;
  background:
    radial-gradient(circle at 14% 20%, rgba(87, 238, 143, 0.16), transparent 34%),
    linear-gradient(135deg, #10151a 0%, #16231c 52%, #332514 100%) !important;
  color: #ffffff !important;
  box-shadow: 0 20px 50px rgba(13, 15, 18, 0.14) !important;
}

body:has(.news-center-layout) .insider-desk-hero-copy {
  display: grid !important;
  gap: 7px !important;
  align-content: center !important;
  min-width: 0 !important;
}

body:has(.news-center-layout) .insider-desk-hero-copy span,
body:has(.news-center-layout) .insider-desk-stat span,
body:has(.news-center-layout) .insider-desk-table-head span {
  color: rgba(255, 255, 255, 0.58) !important;
  font-size: 11px !important;
  font-weight: 950 !important;
  letter-spacing: 0.08em !important;
  text-transform: uppercase !important;
}

body:has(.news-center-layout) .insider-desk-hero-copy strong {
  color: #ffffff !important;
  font-size: clamp(26px, 3.2vw, 44px) !important;
  line-height: 0.96 !important;
  font-weight: 950 !important;
  letter-spacing: -0.06em !important;
}

body:has(.news-center-layout) .insider-desk-hero-copy p {
  max-width: 680px !important;
  margin: 0 !important;
  color: rgba(255, 255, 255, 0.74) !important;
  font-size: 13px !important;
  line-height: 1.45 !important;
  font-weight: 750 !important;
}

body:has(.news-center-layout) .insider-desk-stat {
  display: grid !important;
  align-content: center !important;
  gap: 8px !important;
  min-height: 116px !important;
  padding: 16px !important;
  border: 1px solid rgba(255, 255, 255, 0.12) !important;
  border-radius: 22px !important;
  background: rgba(255, 255, 255, 0.075) !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08) !important;
}

body:has(.news-center-layout) .insider-desk-stat.is-primary {
  background: rgba(87, 238, 143, 0.12) !important;
  border-color: rgba(87, 238, 143, 0.24) !important;
}

body:has(.news-center-layout) .insider-desk-stat strong {
  color: #62f08f !important;
  font-size: clamp(22px, 2vw, 34px) !important;
  line-height: 1 !important;
  font-weight: 950 !important;
  letter-spacing: -0.04em !important;
}

body:has(.news-center-layout) .insider-desk-table-card {
  overflow: hidden !important;
  border: 1px solid #e8ddce !important;
  border-radius: 26px !important;
  background: #ffffff !important;
  box-shadow: 0 16px 34px rgba(24, 19, 14, 0.08) !important;
}

body:has(.news-center-layout) .insider-desk-table-head {
  display: flex !important;
  justify-content: space-between !important;
  gap: 16px !important;
  align-items: center !important;
  padding: 18px 20px !important;
  border-bottom: 1px solid #eee3d6 !important;
  background: linear-gradient(180deg, #fffaf2, #ffffff) !important;
}

body:has(.news-center-layout) .insider-desk-table-head span {
  color: #7d7368 !important;
}

body:has(.news-center-layout) .insider-desk-table-head strong {
  display: block !important;
  margin-top: 4px !important;
  color: #171b20 !important;
  font-size: 18px !important;
  font-weight: 950 !important;
  letter-spacing: -0.03em !important;
}

body:has(.news-center-layout) .insider-desk-table-head em {
  flex: 0 0 auto !important;
  padding: 9px 12px !important;
  border-radius: 999px !important;
  background: #172018 !important;
  color: #62f08f !important;
  font-size: 12px !important;
  font-style: normal !important;
  font-weight: 950 !important;
}

body:has(.news-center-layout) .news-insider-table-wrap {
  width: 100% !important;
  overflow-x: auto !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: #ffffff !important;
}

body:has(.news-center-layout) .news-insider-table {
  width: 100% !important;
  min-width: 1080px !important;
  border-collapse: separate !important;
  border-spacing: 0 !important;
  background: #ffffff !important;
}

body:has(.news-center-layout) .news-insider-table th {
  position: sticky !important;
  top: 0 !important;
  z-index: 1 !important;
  padding: 13px 14px !important;
  border-bottom: 1px solid #e6dbc9 !important;
  background: #f8f1e7 !important;
  color: #6c6257 !important;
  font-size: 11px !important;
  font-weight: 950 !important;
  letter-spacing: 0.07em !important;
  text-align: start !important;
  text-transform: uppercase !important;
  white-space: nowrap !important;
}

body:has(.news-center-layout) .news-insider-table td {
  padding: 14px !important;
  border-bottom: 1px solid #f0e6da !important;
  color: #201c17 !important;
  font-size: 13px !important;
  font-weight: 700 !important;
  vertical-align: middle !important;
}

body:has(.news-center-layout) .news-insider-table tbody tr:nth-child(even) td {
  background: #fffbf6 !important;
}

body:has(.news-center-layout) .news-insider-table tbody tr:hover td {
  background: #effcf3 !important;
}

body:has(.news-center-layout) .news-insider-ticker-link {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  min-width: 58px !important;
  min-height: 32px !important;
  padding: 0 10px !important;
  border-radius: 12px !important;
  background: #11161c !important;
  color: #ffffff !important;
  font-weight: 950 !important;
  text-decoration: none !important;
  letter-spacing: 0.04em !important;
}

body:has(.news-center-layout) .news-insider-order-pill {
  display: inline-flex !important;
  align-items: center !important;
  min-height: 30px !important;
  padding: 0 11px !important;
  border-radius: 999px !important;
  background: #f0eee9 !important;
  color: #2f2b26 !important;
  font-size: 12px !important;
  font-weight: 950 !important;
  white-space: nowrap !important;
}

body:has(.news-center-layout) .news-insider-order-pill.is-buy {
  background: #dcf9e5 !important;
  color: #147a38 !important;
}

body:has(.news-center-layout) .news-insider-order-pill.is-sell {
  background: #ffe3e2 !important;
  color: #bf3030 !important;
}

body:has(.news-center-layout) .news-insider-disclosure-link {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 34px !important;
  height: 34px !important;
  border-radius: 999px !important;
  background: #172018 !important;
  color: #62f08f !important;
  font-size: 16px !important;
  font-weight: 950 !important;
  text-decoration: none !important;
}

@media (max-width: 1180px) {
  body:has(.news-center-layout) .insider-desk-hero {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }

  body:has(.news-center-layout) .insider-desk-hero-copy {
    grid-column: 1 / -1 !important;
  }
}

@media (max-width: 680px) {
  body:has(.news-center-layout) .insider-desk-hero {
    grid-template-columns: minmax(0, 1fr) !important;
    padding: 14px !important;
    border-radius: 22px !important;
  }

  body:has(.news-center-layout) .insider-desk-stat {
    min-height: 88px !important;
  }

  body:has(.news-center-layout) .insider-desk-table-head {
    align-items: flex-start !important;
    flex-direction: column !important;
  }
}

@media (max-width: 940px) {
  body:has(.news-center-layout) .news-daily-brief-hero {
    grid-template-columns: minmax(0, 1fr) !important;
  }
}

@media (max-width: 640px) {
  body:has(.news-center-layout) .news-flat-item {
    grid-template-columns: minmax(0, 1fr) !important;
  }

  body:has(.news-center-layout) .news-flat-code,
  body:has(.news-center-layout) .news-flat-open {
    width: fit-content !important;
  }
}

/* Final shrink pass: Daily Brief must be a compact summary strip, not a hero. */
body:has(.news-center-layout) .news-center-feed-head {
  display: none !important;
}

body:has(.news-center-layout) .news-daily-brief-hero {
  grid-template-columns: minmax(180px, 0.9fr) 78px minmax(260px, 1.25fr) !important;
  gap: 10px !important;
  align-items: center !important;
  padding: 12px 16px !important;
  border-radius: 22px !important;
}

body:has(.news-center-layout) .news-daily-brief-copy {
  gap: 4px !important;
}

body:has(.news-center-layout) .news-daily-brief-copy span,
body:has(.news-center-layout) .news-daily-brief-count span {
  font-size: 9px !important;
  letter-spacing: 0.07em !important;
}

body:has(.news-center-layout) .news-daily-brief-copy strong {
  font-size: clamp(26px, 2.6vw, 40px) !important;
  line-height: 0.9 !important;
}

body:has(.news-center-layout) .news-daily-brief-copy p {
  font-size: 11px !important;
  line-height: 1.2 !important;
}

body:has(.news-center-layout) .news-daily-brief-count {
  min-height: 64px !important;
  padding: 8px !important;
  border-radius: 18px !important;
}

body:has(.news-center-layout) .news-daily-brief-count strong {
  font-size: 34px !important;
}

body:has(.news-center-layout) .news-daily-brief-highlights {
  padding: 10px 13px !important;
  border-radius: 18px !important;
}

body:has(.news-center-layout) .news-daily-brief-highlights ul {
  gap: 4px !important;
  padding-left: 16px !important;
}

body:has(.news-center-layout) .news-daily-brief-highlights li {
  font-size: 11px !important;
  line-height: 1.18 !important;
  font-weight: 850 !important;
}

body:has(.news-center-layout) .news-daily-brief-tickers {
  grid-column: 1 / -1 !important;
  gap: 5px !important;
  max-height: 26px !important;
  overflow: hidden !important;
}

body:has(.news-center-layout) .news-daily-brief-tickers span,
body:has(.news-center-layout) .news-daily-brief-tickers a {
  display: inline-flex !important;
  align-items: center !important;
  border-radius: 999px !important;
  color: #e6ffef !important;
  background: rgba(75, 214, 128, 0.16) !important;
  border: 1px solid rgba(92, 229, 145, 0.28) !important;
  min-height: 24px !important;
  padding: 0 8px !important;
  font-size: 10px !important;
  font-weight: 900 !important;
  letter-spacing: 0.04em !important;
}

body:has(.news-center-layout) .news-daily-brief-tickers a {
  color: inherit;
  text-decoration: none;
}

body:has(.news-center-layout) .news-daily-brief-tickers a:hover,
body:has(.news-center-layout) .news-daily-brief-tickers a:focus-visible {
  filter: brightness(1.16);
  outline: none;
}

@media (max-width: 940px) {
  body:has(.news-center-layout) .news-daily-brief-hero {
    grid-template-columns: minmax(0, 1fr) !important;
  }
}

/* Keep the compact Daily Brief from stacking into a second article on narrow widths. */
@media (max-width: 940px) {
  body:has(.news-center-layout) .news-daily-brief-hero {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) 76px !important;
    padding: 12px 14px !important;
  }

  body:has(.news-center-layout) .news-daily-brief-highlights {
    display: none !important;
  }

  body:has(.news-center-layout) .news-daily-brief-tickers {
    grid-column: 1 / -1 !important;
    max-height: 24px !important;
  }
}

@media (max-width: 520px) {
  body:has(.news-center-layout) .news-daily-brief-hero {
    grid-template-columns: minmax(0, 1fr) !important;
  }

  body:has(.news-center-layout) .news-daily-brief-count {
    display: none !important;
  }
}

/* Final News page scale: section title should not overpower the tape. */
body:has(.news-center-layout) .news-center-feed-head .stock-news-title {
  font-size: clamp(30px, 2.8vw, 46px) !important;
  line-height: 0.98 !important;
  letter-spacing: -0.045em !important;
}

body:has(.news-center-layout) .news-center-feed-head .stock-news-meta {
  font-size: clamp(12px, 1vw, 15px) !important;
  line-height: 1.25 !important;
}

body:has(.news-center-layout) .news-flat-item[data-news-url] {
  cursor: pointer !important;
  transition: background 140ms ease, transform 140ms ease, box-shadow 140ms ease !important;
}

body:has(.news-center-layout) .news-flat-item[data-news-url]:hover,
body:has(.news-center-layout) .news-flat-item[data-news-url]:focus-visible {
  background: #fffaf2 !important;
  box-shadow: inset 4px 0 0 #11161c !important;
  outline: none !important;
}
