:root {
  --bg: #f4f7fb;
  --surface: #ffffff;
  --text: #0f172a;
  --muted: #5d6b82;
  --line: #dce6f3;
  --blue: #0b6bff;
  --green: #079455;
  --red: #d92d20;
  --radius: 8px;
  --shadow-soft: 0 10px 30px rgba(15, 23, 42, 0.04);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  letter-spacing: 0;
}

a {
  color: var(--blue);
  text-decoration: none;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  gap: 26px;
  min-height: 64px;
  padding: 0 22px 0 86px;
  background: rgba(255, 255, 255, 0.96);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(12px);
}

.brand {
  color: var(--text);
  font-size: 18px;
  font-weight: 800;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  width: 190px;
  height: 42px;
  overflow: hidden;
}

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

.brand .logo-dark {
  display: none;
}

body.theme-night .brand .logo-light {
  display: none;
}

body.theme-night .brand .logo-dark {
  display: block;
  mix-blend-mode: screen;
}

.topnav {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #30415d;
  font-size: 13px;
  min-width: 0;
}

.topnav a {
  color: #30415d;
}

.topnav-item {
  display: inline-flex;
  align-items: center;
}

.topnav-item + .topnav-item::before {
  content: "›";
  margin-right: 10px;
  color: #8ba0ba;
}

.top-actions {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 14px;
  color: #233a5c;
}

.top-search-button,
.top-notification-button,
.top-profile-button {
  min-height: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: #223a5c;
  padding: 0;
  box-shadow: none;
}

.top-search-button {
  height: 32px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 800;
}

.top-search-button i {
  color: #2b466d;
  font-size: 17px;
  line-height: 1;
}

.top-notification-button {
  position: relative;
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  font-size: 18px;
}

.notification-badge {
  position: absolute;
  top: 0;
  right: 0;
  min-width: 15px;
  height: 15px;
  display: grid;
  place-items: center;
  border: 1px solid #fff;
  border-radius: 999px;
  background: #1375ff;
  color: #fff;
  font-size: 9px;
  font-weight: 900;
  line-height: 1;
}

.top-profile-button {
  min-width: 160px;
  height: 42px;
  display: grid;
  grid-template-columns: 33px minmax(0, 1fr) 15px;
  align-items: center;
  gap: 9px;
  padding: 5px 12px 5px 6px;
  border-radius: 999px;
  background: #f6f9ff;
  color: #1d3558;
  text-decoration: none;
}

.top-profile-avatar {
  width: 33px;
  height: 33px;
  display: grid;
  place-items: center;
  overflow: hidden;
  border-radius: 50%;
  background: linear-gradient(145deg, #dbeafe, #b8c7d9 45%, #f5d7c7);
  color: #223a5c;
  font-size: 14px;
  font-weight: 900;
}

.top-profile-copy {
  min-width: 0;
  display: grid;
  gap: 1px;
  text-align: left;
}

.top-profile-name,
.top-profile-plan {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  line-height: 1.15;
}

.top-profile-name {
  font-size: 12px;
  font-weight: 900;
}

.top-profile-plan {
  color: #31507a;
  font-size: 10px;
  font-weight: 700;
}

.top-profile-button i {
  color: #405d86;
  font-size: 12px;
}

.account-page {
  background: #fff;
}

.account-auth,
.account-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 460px);
  gap: 24px;
  align-items: start;
  padding: 28px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
}

.account-auth {
  width: min(920px, 100%);
  margin: 34px auto 0;
}

.account-auth-narrow {
  grid-template-columns: 1fr;
  width: min(620px, 100%);
}

.account-form,
.account-inline-form,
.account-position-form {
  display: grid;
  gap: 12px;
}

.account-form {
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
}

.account-form label,
.account-inline-form label,
.account-position-form label {
  display: grid;
  gap: 7px;
  color: #334766;
  font-size: 13px;
  font-weight: 700;
}

.account-inline-form textarea {
  min-height: 82px;
  padding-top: 10px;
  resize: vertical;
}

.account-form-links,
.account-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}

.account-form-links {
  justify-content: space-between;
  font-size: 13px;
  font-weight: 700;
}

.account-field-error,
.account-form .errorlist {
  margin: 0;
  padding: 0;
  color: var(--red);
  font-size: 12px;
  font-weight: 700;
  list-style: none;
}

.account-messages {
  display: grid;
  gap: 8px;
  margin-top: 14px;
}

.account-messages p {
  margin: 0;
  padding: 10px 12px;
  border: 1px solid #cfe0ff;
  border-radius: 6px;
  background: #eef4ff;
  color: #0b57d0;
  font-weight: 700;
}

.account-section {
  box-shadow: none;
}

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

.account-portfolio-card,
.account-empty {
  display: grid;
  gap: 8px;
  min-height: 150px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  color: var(--text);
}

.account-portfolio-card strong {
  font-size: 20px;
  line-height: 1.2;
}

.account-portfolio-card small {
  color: var(--muted);
  font-weight: 700;
}

.account-portfolio-hero {
  grid-template-columns: minmax(0, .9fr) minmax(0, 1.4fr);
}

.account-kpis {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 1px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--line);
}

.account-kpis div {
  display: grid;
  gap: 6px;
  min-height: 98px;
  padding: 14px;
  background: #fff;
}

.account-kpis span,
.account-kpis small {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.account-kpis strong {
  font-size: 20px;
  line-height: 1.15;
}

.account-table-wrap {
  margin-top: 14px;
}

.account-table td:first-child {
  min-width: 180px;
}

.account-table td:first-child span {
  display: block;
  color: var(--muted);
  font-size: 12px;
}

.account-icon-button {
  width: 34px;
  min-height: 34px;
  padding: 0;
  border-color: #f3c5c0;
  background: #fff5f4;
  color: var(--red);
}

.account-position-form {
  grid-template-columns: 1.3fr repeat(3, minmax(120px, .6fr)) 1fr auto;
  align-items: end;
  margin-top: 14px;
}

.account-position-form button {
  white-space: nowrap;
}

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

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

@media (max-width: 1180px) {
  .account-portfolio-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .account-portfolio-hero,
  .account-hero,
  .account-auth {
    grid-template-columns: 1fr;
  }

  .account-kpis {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .account-position-form {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 720px) {
  .account-auth,
  .account-hero {
    padding: 18px;
  }

  .account-portfolio-grid,
  .account-kpis,
  .account-position-form {
    grid-template-columns: 1fr;
  }

  .account-kpis div {
    min-height: 76px;
  }
}

.advanced-search-modal[hidden] {
  display: none;
}

.advanced-search-modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: grid;
  place-items: start center;
  padding: 48px 16px;
}

.advanced-search-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(7, 12, 20, .66);
}

.advanced-search-dialog {
  position: relative;
  width: min(760px, calc(100vw - 32px));
  max-height: min(720px, calc(100vh - 64px));
  display: grid;
  grid-template-rows: auto auto auto auto minmax(0, auto) auto minmax(0, 1fr);
  border: 1px solid #e4e9f2;
  border-radius: 12px;
  background: #fff;
  color: #0e1726;
  box-shadow: 0 28px 80px rgba(2, 8, 23, .28);
  overflow: hidden;
}

.advanced-search-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 28px 40px 12px;
}

.advanced-search-head h2 {
  margin: 0;
  font-size: 24px;
  line-height: 1.2;
}

.advanced-search-head p {
  margin: 8px 0 0;
  color: #526078;
  font-size: 14px;
  line-height: 1.35;
}

.advanced-search-close {
  width: 34px;
  height: 34px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: inherit;
  padding: 0;
  font-size: 26px;
  line-height: 1;
}

.advanced-search-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  padding: 8px 40px 0;
}

.advanced-search-input-wrap {
  height: 36px;
  min-width: 0;
  display: grid;
  grid-template-columns: 22px minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  border: 1px solid #ccd5e4;
  border-radius: 6px;
  background: #fff;
  padding: 0 10px;
}

.advanced-search-input-wrap i {
  color: #667085;
  font-size: 16px;
}

.advanced-search-form input[type="search"] {
  min-width: 0;
  width: 100%;
  height: 100%;
  border: 0;
  background: transparent;
  color: #0e1726;
  padding: 0;
  font-size: 14px;
  font-weight: 700;
  outline: 0;
}

.advanced-search-input-wrap:focus-within {
  border-color: #1f6feb;
  box-shadow: 0 0 0 2px rgba(31, 111, 235, .16);
}

.advanced-search-shortcut {
  display: inline-flex;
  align-items: center;
  height: 22px;
  border: 1px solid #e4e9f2;
  border-radius: 4px;
  background: #f6f8fb;
  color: #667085;
  padding: 0 7px;
  font-size: 11px;
  font-weight: 800;
  white-space: nowrap;
}

.advanced-search-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 14px 40px 0;
}

.advanced-search-tab {
  min-width: 0;
  height: 30px;
  min-height: 0;
  border: 1px solid #d9e1ef;
  border-radius: 6px;
  background: #fff;
  color: #0e1726;
  padding: 0 12px;
  font-size: 12px;
  font-weight: 800;
  white-space: nowrap;
}

.advanced-search-tab.active {
  border-color: #1265f0;
  background: #1265f0;
  color: #fff;
}

.advanced-search-options {
  padding: 14px 40px 0;
}

.advanced-search-check {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #475467;
  font-size: 13px;
  font-weight: 800;
  white-space: nowrap;
}

.advanced-search-check input {
  width: 16px;
  height: 16px;
  accent-color: #1f6feb;
}

.advanced-search-submit {
  height: 36px;
  min-height: 0;
  border: 1px solid #1f6feb;
  border-radius: 4px;
  background: #1f6feb;
  color: #fff;
  padding: 0 18px;
  font-size: 13px;
  font-weight: 900;
}

.advanced-search-discovery {
  padding: 24px 40px 10px;
}

.advanced-search-discovery h3 {
  margin: 0 0 12px;
  color: #0e1726;
  font-size: 13px;
  line-height: 1.2;
}

.advanced-search-cards {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
}

.advanced-search-cards button,
.advanced-search-columns button,
.advanced-search-columns div {
  min-width: 0;
  min-height: 0;
  border: 1px solid #e4e9f2;
  border-radius: 6px;
  background: #fff;
  color: #0e1726;
  padding: 11px 12px;
  text-align: left;
  font-size: 12px;
  font-weight: 900;
  line-height: 1.18;
  white-space: normal;
}

.advanced-search-cards button {
  display: block;
}

.advanced-search-columns button {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.advanced-search-cards button:hover,
.advanced-search-cards button:focus,
.advanced-search-columns button:hover,
.advanced-search-columns button:focus {
  border-color: #1265f0;
  outline: 0;
}

.advanced-search-cards span,
.advanced-search-columns span {
  display: block;
  margin-top: 3px;
  color: #667085;
  font-size: 11px;
  font-weight: 700;
  line-height: 1.25;
}

.advanced-search-columns button span {
  margin-top: 0;
  flex: 0 0 auto;
}

.advanced-search-columns {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  margin-top: 28px;
}

.advanced-search-columns section {
  display: grid;
  gap: 8px;
}

.advanced-search-status {
  min-height: 34px;
  padding: 9px 40px;
  color: #667085;
  font-size: 13px;
  border-bottom: 1px solid #edf1f7;
}

.advanced-search-results {
  min-height: 180px;
  overflow-y: auto;
}

.advanced-result {
  display: grid;
  grid-template-columns: 120px minmax(0, 1fr);
  gap: 14px;
  padding: 14px 40px;
  color: #0e1726;
  border-bottom: 1px solid #edf1f7;
}

.advanced-result:hover,
.advanced-result:focus {
  background: #f4f7fb;
  outline: 0;
}

.advanced-result-type {
  color: #1f6feb;
  font-size: 12px;
  font-weight: 900;
  line-height: 1.3;
}

.advanced-result-title {
  display: block;
  color: #0e1726;
  font-size: 14px;
  font-weight: 900;
  line-height: 1.28;
}

.advanced-result-subtitle {
  display: block;
  margin-top: 4px;
  color: #526078;
  font-size: 12px;
  line-height: 1.35;
}

.advanced-result mark {
  background: #fff3bf;
  color: inherit;
  padding: 0 2px;
  border-radius: 2px;
}

.search-result-empty {
  padding: 18px 40px;
  color: #667085;
  font-size: 13px;
}

body.modal-open {
  overflow: hidden;
}

.side-rail {
  position: fixed;
  inset: 0 auto 0 0;
  z-index: 30;
  width: 56px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
  padding: 16px 8px;
  background: #fff;
  border-right: 1px solid var(--line);
}

.rail-button {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  color: #39506f;
  background: #fff;
  border: 1px solid transparent;
  border-radius: 7px;
  font-size: 16px;
}

.rail-button.active,
.rail-button:hover {
  color: var(--blue);
  background: #eef5ff;
  border-color: #d6e6ff;
}

.page {
  width: min(1760px, calc(100% - 88px));
  margin: 0 24px 0 72px;
  padding: 18px 0 48px;
}

.hero,
.entity-header,
.section,
.panel {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
}

.hero {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 32px;
  align-items: end;
  padding: 36px;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  font-size: 34px;
  line-height: 1.15;
}

h2 {
  font-size: 20px;
}

.eyebrow {
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
}

.search-panel label,
.filters label {
  display: block;
  margin-bottom: 8px;
  color: var(--muted);
  font-size: 14px;
}

.search-row,
.filters {
  display: flex;
  gap: 12px;
}

input,
select,
button,
.button {
  min-height: 42px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fff;
  color: var(--text);
  font: inherit;
}

input,
select {
  width: 100%;
}

button,
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--blue);
  color: #fff;
  border-color: var(--blue);
  font-weight: 700;
  cursor: pointer;
}

.button.secondary {
  background: #eef4ff;
  color: var(--blue);
  border-color: #cfe0ff;
}

.section {
  margin-top: 20px;
  padding: 24px;
}

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

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

.card,
.news-card,
.metric-card {
  display: grid;
  gap: 8px;
  padding: 16px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--text);
}

.ticker {
  color: var(--blue);
  font-weight: 800;
}

.muted {
  color: var(--muted);
}

.two-column,
.dashboard-grid {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(280px, 1fr);
  gap: 20px;
}

.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.tag-list a {
  padding: 8px 12px;
  background: #eef4ff;
  border-radius: 999px;
}

.list {
  display: grid;
  gap: 10px;
}

.list a {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--line);
}

.entity-header {
  display: grid;
  grid-template-columns: 420px minmax(0, 1fr);
  gap: 22px;
  align-items: center;
  padding: 22px 20px;
  border-radius: 8px 8px 0 0;
}

.entity-main {
  display: grid;
  grid-template-columns: 82px minmax(0, 1fr);
  gap: 18px;
  align-items: center;
}

.entity-logo {
  width: 76px;
  height: 76px;
  display: grid;
  place-items: center;
  overflow: hidden;
  color: var(--blue);
  background: linear-gradient(180deg, #f7fbff 0%, #eef6ff 100%);
  border: 1px solid #e1eaf6;
  border-radius: 10px;
  font-size: 30px;
  font-weight: 850;
}

.entity-logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.entity-copy h1,
.entity-copy h2 {
  margin: 0;
  font-size: 22px;
  line-height: 1.2;
}

.entity-title-row {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.ticker-badge,
.quality-badge {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  min-height: 22px;
  padding: 0 8px;
  border-radius: 4px;
  font-size: 11px;
  font-weight: 800;
}

.ticker-badge {
  color: #253858;
  background: #f1f5fb;
  border: 1px solid #d9e4f2;
}

.quality-badge {
  color: #047857;
  background: #ecfdf5;
  border: 1px solid #a7f3d0;
}

.entity-subtitle,
.entity-sector {
  margin: 8px 0 0;
  color: #334766;
  font-size: 13px;
}

.entity-sector {
  color: var(--muted);
}

.kpi-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
}

.kpi-strip div {
  min-height: 84px;
  padding: 4px 18px 0;
  border-left: 1px solid var(--line);
}

.kpi-strip span,
.definition-list dt {
  display: block;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.kpi-strip strong,
.definition-list dd {
  display: block;
  margin-top: 12px;
  color: #0f172a;
  font-size: 21px;
  font-weight: 850;
}

.kpi-strip small {
  display: block;
  margin-top: 8px;
  color: #53657d;
  font-size: 12px;
}

.tabs {
  display: flex;
  gap: 2px;
  overflow-x: auto;
  margin: 0 0 0;
  padding: 0 18px;
  background: #fff;
  border: 1px solid var(--line);
  border-top: 0;
  border-radius: 0 0 8px 8px;
  border-bottom: 1px solid var(--line);
  box-shadow: var(--shadow-soft);
}

.tabs a {
  flex: 0 0 auto;
  padding: 18px 20px 15px;
  color: #263b5d;
  border-bottom: 3px solid transparent;
  font-size: 13px;
  font-weight: 650;
}

.tabs a.active {
  color: var(--blue);
  border-color: var(--blue);
  font-weight: 750;
}

.dashboard-grid {
  margin-top: 20px;
}

.panel {
  padding: 20px;
}

.wide {
  min-width: 0;
}

.chart {
  min-height: 280px;
  border: 1px dashed var(--line);
  border-radius: var(--radius);
  background: linear-gradient(180deg, #fff, #f8fbff);
}

.table-wrap {
  width: 100%;
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

table {
  width: 100%;
  min-width: 720px;
  border-collapse: collapse;
  background: #fff;
}

th,
td {
  padding: 13px 14px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
  font-size: 14px;
}

th {
  color: var(--muted);
  font-weight: 700;
  background: #f9fbfd;
}

.pagination {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-top: 16px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
}

.pagination-summary {
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.pagination-links {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.pagination-links a,
.pagination-links span {
  min-width: 34px;
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 10px;
  border: 1px solid var(--line);
  border-radius: 7px;
  color: var(--text);
  font-size: 13px;
  font-weight: 800;
  text-decoration: none;
}

.pagination-links a:hover,
.pagination-links a:focus-visible,
.pagination-links .active {
  border-color: #1f77ff;
  background: #eef5ff;
  color: #0b6bff;
}

.pagination-links .disabled,
.pagination-links .ellipsis {
  color: var(--muted);
}

.pagination-links .disabled {
  opacity: 0.55;
}

.pagination-links .ellipsis {
  border-color: transparent;
  background: transparent;
}

.definition-list {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px;
  margin: 0;
}

.definition-list dd {
  margin: 0;
  text-align: right;
}

.mutual-funds-page {
  display: grid;
  gap: 18px;
}

.mutual-funds-header {
  align-items: flex-start;
}

.mutual-funds-header h1 {
  margin-bottom: 8px;
}

.mutual-funds-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: flex-end;
}

.mutual-funds-actions .button {
  gap: 8px;
  text-decoration: none;
}

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

.mutual-funds-kpis .metric-card span,
.mutual-funds-best span,
.mutual-fund-sub {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
}

.mutual-funds-kpis .metric-card strong {
  font-size: 28px;
  line-height: 1;
}

.mutual-funds-best {
  display: grid;
  grid-template-columns: auto auto minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  padding: 14px 16px;
  border: 1px solid #cfe0ff;
  border-radius: var(--radius);
  background: #f4f8ff;
}

.mutual-funds-best strong {
  color: var(--blue);
  font-size: 20px;
}

.mutual-funds-best p {
  margin: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.mutual-funds-filters {
  display: grid;
  grid-template-columns: minmax(280px, 2fr) repeat(5, minmax(150px, 1fr)) auto;
}

.mutual-funds-filters button {
  gap: 8px;
}

.mutual-funds-result-meta {
  color: var(--muted);
  font-size: 14px;
}

.mutual-funds-table {
  min-width: 1280px;
}

.mutual-funds-table th:first-child,
.mutual-funds-table td:first-child {
  min-width: 320px;
}

.mutual-funds-table td {
  max-width: 260px;
}

.mutual-funds-table td strong,
.mutual-funds-table td span,
.mutual-fund-link {
  display: block;
}

.mutual-fund-link {
  margin-top: 6px;
  overflow-wrap: anywhere;
  color: var(--blue);
  font-size: 12px;
}

.nowrap {
  white-space: nowrap;
}

.empty {
  color: var(--muted);
  text-align: center;
}

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

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

.mobile-cards {
  display: none;
}

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

.reports-page {
  margin-top: 18px;
  padding: 18px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow-soft);
}

.reports-heading {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 20px;
  padding: 0 4px 4px;
}

.reports-heading h1,
.reports-heading h2 {
  margin-bottom: 8px;
  font-size: 20px;
  line-height: 1.2;
}

.company-files-page {
  margin-top: 18px;
  overflow: hidden;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow-soft);
}

.company-files-heading {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(360px, 720px);
  gap: 22px;
  align-items: center;
  padding: 24px 24px 20px;
  border-bottom: 1px solid var(--line);
}

.company-files-heading h2 {
  margin: 0 0 8px;
  color: #0f172a;
  font-size: 21px;
  line-height: 1.2;
}

.company-files-heading p {
  color: #60708a;
  font-weight: 650;
}

.company-files-tools {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 14px;
  align-items: center;
}

.company-files-search {
  height: 42px;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  padding: 0 14px;
  border: 1px solid #dbe5f2;
  border-radius: 8px;
  background: #fff;
}

.company-files-search i {
  color: #7890ad;
  font-size: 17px;
}

.company-files-search input {
  width: 100%;
  min-width: 0;
  border: 0;
  outline: 0;
  background: transparent;
  color: #102033;
  font: inherit;
}

.company-files-export {
  height: 42px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 0 18px;
  border-radius: 8px;
  background: #f1f5fb;
  color: #14213a;
  font-weight: 800;
  text-decoration: none;
  white-space: nowrap;
}

.company-file-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  padding: 20px;
}

.company-file-card {
  min-height: 250px;
  display: flex;
  flex-direction: column;
  padding: 20px;
  border: 1px solid #e0e8f4;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.035);
}

.company-file-card header {
  min-height: 66px;
  display: grid;
  grid-template-columns: 36px minmax(0, 1fr);
  gap: 14px;
  align-items: start;
}

.company-file-card h3 {
  margin: 0 0 8px;
  color: #14213a;
  font-size: 16px;
  line-height: 1.2;
}

.company-file-card p {
  color: #6b7c96;
  font-size: 12px;
  font-weight: 650;
  line-height: 1.45;
}

.company-file-icon {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 9px;
  font-size: 18px;
}

.company-file-icon.is-blue { background: #dbeafe; color: #2563eb; }
.company-file-icon.is-green { background: #dcfce7; color: #16a34a; }
.company-file-icon.is-violet { background: #f3e8ff; color: #9333ea; }
.company-file-icon.is-yellow { background: #fef3c7; color: #d97706; }
.company-file-icon.is-red { background: #fee2e2; color: #ef4444; }
.company-file-icon.is-cyan { background: #ccfbf1; color: #0d9488; }

.company-file-count {
  align-self: start;
  margin: 14px 0 16px 50px;
  padding: 5px 9px;
  border-radius: 7px;
  background: #eef3f9;
  color: #52647e;
  font-size: 12px;
  font-weight: 850;
}

.company-file-list {
  display: grid;
  gap: 10px;
  margin-top: auto;
}

.company-file-row {
  display: grid;
  grid-template-columns: 22px minmax(0, 1fr) auto;
  grid-template-areas:
    "icon title date"
    "icon title size";
  gap: 3px 10px;
  align-items: start;
  color: #14213a;
  text-decoration: none;
}

.company-file-row strong {
  grid-area: title;
  overflow: visible;
  font-size: 13px;
  font-weight: 800;
  line-height: 1.3;
  text-overflow: clip;
  white-space: normal;
}

.company-file-row small,
.company-file-row em {
  color: #6b7c96;
  font-size: 11px;
  font-style: normal;
  font-weight: 700;
  white-space: nowrap;
}

.company-file-row small {
  grid-area: date;
  justify-self: end;
}

.company-file-row em {
  grid-area: size;
  justify-self: end;
}

.company-file-pdf {
  grid-area: icon;
  width: 20px;
  height: 20px;
  margin-top: 1px;
  display: grid;
  place-items: center;
  border-radius: 6px;
  background: #fee2e2;
  color: #ef4444;
  font-size: 12px;
}

.company-file-empty {
  min-height: 58px;
  display: flex;
  align-items: center;
  color: #8a9ab2;
}

.company-file-more {
  display: inline-flex;
  gap: 8px;
  align-items: center;
  margin-top: 18px;
  color: var(--blue);
  font-weight: 850;
  text-decoration: none;
}

.company-file-more.is-disabled {
  color: #a7b4c7;
}

.breadcrumbs {
  margin-bottom: 12px;
  color: #53657d;
  font-size: 13px;
}

.report-timeline {
  display: grid;
  gap: 12px;
}

.report-row {
  position: relative;
  display: grid;
  grid-template-columns: 150px 28px minmax(0, 1fr);
  gap: 18px;
  align-items: stretch;
}

.report-row::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: -12px;
  left: 182px;
  width: 1px;
  background: #dbe5f2;
}

.report-row:last-child::before {
  bottom: 50%;
}

.report-year {
  padding-top: 26px;
}

.report-year strong {
  display: block;
  color: #102033;
  font-size: 28px;
  line-height: 1;
  font-weight: 850;
}

.report-year span {
  display: block;
  margin-top: 14px;
  color: #5d6d85;
  font-size: 13px;
  line-height: 1.35;
}

.timeline-dot {
  position: relative;
  z-index: 1;
  align-self: start;
  justify-self: center;
  box-sizing: border-box;
  width: 20px;
  height: 20px;
  margin-top: 28px;
  border: 5px solid #f7faff;
  border-radius: 50%;
  background: #b7c5d8;
  box-shadow: 0 0 0 1px #e2e8f0;
}

.timeline-dot.active {
  background: var(--blue);
}

.report-card {
  min-height: 184px;
  display: grid;
  grid-template-columns: 120px minmax(0, 1fr) auto;
  gap: 26px;
  align-items: center;
  padding: 18px 22px;
  background: #fff;
  border: 1px solid #dfe8f5;
  border-radius: var(--radius);
  box-shadow: 0 14px 34px rgba(15, 23, 42, 0.035);
}

.report-cover {
  width: 104px;
  height: 150px;
  display: grid;
  place-items: center;
  overflow: hidden;
  color: var(--blue);
  font-weight: 800;
  background: #f7faff;
  border: 1px solid #e1e8f2;
  border-radius: 6px;
}

.report-cover img {
  width: 100%;
  height: 100%;
  max-height: 150px;
  display: block;
  object-fit: contain;
  object-position: center;
}

.document-card img,
.document-preview,
.m-report-card img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
}

.report-body h3 {
  margin-bottom: 12px;
  font-size: 21px;
  line-height: 1.2;
}

.report-body p {
  color: #40516b;
  font-size: 15px;
}

.report-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 22px;
  margin-top: 30px;
  color: #40516b;
  font-size: 15px;
  font-weight: 650;
}

.report-link {
  justify-self: end;
  color: var(--blue);
  font-size: 14px;
  font-weight: 800;
  white-space: nowrap;
}

.report-link::after {
  content: "›";
  margin-left: 16px;
  font-size: 20px;
  line-height: 0;
}

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

.document-card {
  display: grid;
  gap: 10px;
  padding: 14px;
  color: var(--text);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.document-card img {
  width: 86px;
  height: 112px;
  border: 1px solid var(--line);
  border-radius: 4px;
}

.document-card small {
  color: var(--muted);
}

.document-preview {
  width: 180px;
  height: 236px;
  margin: 22px 0;
  border: 1px solid var(--line);
  border-radius: 4px;
}

.document-viewer-page {
  display: grid;
  gap: 20px;
}

.document-viewer-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.document-viewer-header h1 {
  margin-bottom: 0;
}

.document-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: flex-end;
}

.document-viewer-layout {
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  gap: 20px;
  align-items: start;
}

.document-side {
  display: grid;
  gap: 18px;
}

.document-side .document-preview {
  width: 100%;
  max-width: 190px;
  height: auto;
  aspect-ratio: 0.72;
  margin: 0 auto;
}

.pdf-viewer {
  min-height: 78vh;
  padding: 0;
  overflow: hidden;
}

.pdf-viewer iframe {
  display: block;
  width: 100%;
  height: 78vh;
  border: 0;
  background: #f3f6fb;
}

.readable {
  max-width: 900px;
}

.lead {
  color: #344054;
  font-size: 18px;
}

.seo-copy {
  margin: 16px 0;
  color: #344054;
}

.footer {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 24px 32px;
  color: var(--muted);
  border-top: 1px solid var(--line);
}

body.shellless {
  --bg: #fbfcfe;
  overflow: hidden;
}

body.shellless .side-rail,
body.shellless .topbar,
body.shellless .footer {
  display: none;
}

body.shellless .page {
  width: 100%;
  max-width: none;
  height: 100vh;
  margin: 0;
  padding: 0;
}

body.error-page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow: auto;
}

body.error-page .page {
  flex: 1 0 auto;
  display: grid;
  align-items: center;
  min-height: 0;
  height: auto;
  padding-top: 36px;
  padding-bottom: 56px;
}

body.error-page .footer {
  flex: 0 0 auto;
}

body.error-page .topnav {
  display: none;
}

.not-found-screen {
  position: relative;
  min-height: 420px;
  display: grid;
  place-items: center;
  overflow: visible;
  padding: 58px 20px 64px;
  color: #0b1629;
}

.not-found-shell {
  position: relative;
  z-index: 1;
  width: min(620px, 100%);
  display: grid;
  justify-items: center;
  text-align: center;
}

.not-found-code {
  display: grid;
  grid-template-columns: auto auto auto;
  align-items: center;
  gap: clamp(10px, 2vw, 24px);
  color: #d7e1ee;
  font-size: clamp(62px, 8vw, 96px);
  line-height: 0.76;
  font-weight: 850;
  letter-spacing: 0;
  text-shadow:
    0 1px 0 rgba(255, 255, 255, 0.82),
    0 0 0 rgba(0, 0, 0, 0);
}

.not-found-zero {
  width: clamp(48px, 6vw, 76px);
  aspect-ratio: 1;
  display: block;
  border: clamp(8px, 1.1vw, 12px) solid #1f6fff;
  border-radius: 50%;
  box-shadow:
    0 0 0 1px rgba(18, 85, 210, 0.12) inset;
}

.not-found-copy {
  margin-top: 16px;
}

.not-found-copy h1 {
  margin: 0 0 10px;
  color: inherit;
  font-size: clamp(20px, 2.1vw, 26px);
  line-height: 1.05;
  font-weight: 820;
}

.not-found-copy p {
  margin: 0;
  color: #51607a;
  font-size: 14px;
  line-height: 1.5;
}

.not-found-quote {
  width: min(520px, 100%);
  margin: 28px 0 0;
  color: #14233b;
}

.not-found-quote-mark {
  height: 28px;
  color: #2365ff;
  font-family: Georgia, serif;
  font-size: 44px;
  line-height: 0.8;
  font-weight: 700;
}

.not-found-quote blockquote {
  margin: 0;
  font-size: clamp(15px, 1.4vw, 18px);
  line-height: 1.45;
  font-weight: 450;
}

.not-found-quote figcaption {
  margin-top: 12px;
  color: #2f6eff;
  font-size: 13px;
}

.not-found-quote figcaption span {
  color: #6b7890;
}

@media (max-width: 760px) {
  .not-found-screen {
    align-items: start;
    padding: 44px 14px;
  }

  .not-found-quote {
    margin-top: 24px;
  }
}

@media (max-width: 420px) {
  .not-found-code {
    gap: 10px;
  }

  .not-found-zero {
    border-width: 14px;
  }

  .not-found-copy h1 {
    font-size: 22px;
  }
}

.terminal-shell {
  height: 100vh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: #fff;
  color: #0f172a;
  font-size: 12px;
}

.terminal-header {
  min-height: 78px;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  padding: 18px 16px 14px;
  border-bottom: 1px solid #d9e1ec;
  background: #fff;
}

.terminal-header h1 {
  margin: 0 0 8px;
  font-size: 22px;
  line-height: 1.05;
  font-weight: 800;
  letter-spacing: 0;
}

.terminal-header p {
  margin: 0;
  color: #344054;
  font-size: 12px;
}

.terminal-meta {
  display: flex;
  align-items: center;
  gap: 20px;
  white-space: nowrap;
  color: #0f172a;
  font-size: 12px;
}

.terminal-meta i {
  display: inline-block;
  width: 9px;
  height: 9px;
  margin: 0 4px;
  background: #12b76a;
  border-radius: 50%;
}

.terminal-button,
.terminal-icon-button {
  min-height: 34px;
  padding: 0 17px;
  background: #fff;
  color: #0b63f6;
  border: 1px solid #bfd4f8;
  border-radius: 5px;
  font-size: 12px;
  font-weight: 700;
}

.terminal-button.export,
.terminal-icon-button {
  color: #111827;
  border-color: #d6dfeb;
}

.terminal-icon-button {
  width: 32px;
  padding: 0;
}

.terminal-layout {
  min-height: 0;
  flex: 1;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 312px;
  overflow: hidden;
}

.screener-main {
  min-width: 0;
  display: flex;
  flex-direction: column;
  border-right: 1px solid #d9e1ec;
}

.screener-filters {
  flex: 0 0 auto;
  background: #fff;
  border-bottom: 1px solid #d9e1ec;
}

.filter-row {
  display: flex;
  align-items: end;
  gap: 10px;
  padding: 14px 16px;
}

.filter-row.primary {
  min-height: 86px;
}

.filter-row.secondary {
  min-height: 44px;
  padding-top: 0;
  align-items: center;
}

.screener-filters label {
  display: grid;
  gap: 6px;
  color: #111827;
  font-size: 11px;
  font-weight: 600;
}

.screener-filters label span:first-child {
  color: #1d2939;
}

.screener-filters input,
.screener-filters select {
  height: 32px;
  min-height: 32px;
  padding: 0 11px;
  color: #344054;
  border: 1px solid #d7e0ec;
  border-radius: 4px;
  font-size: 12px;
  background: #fff;
}

.search-field {
  position: relative;
  width: 188px;
}

.search-field b {
  position: absolute;
  right: 11px;
  bottom: 7px;
  color: #53657d;
  font-size: 17px;
  line-height: 1;
}

.screener-filters select {
  width: 142px;
}

.range-field {
  width: 152px;
}

.range-inputs {
  display: grid;
  grid-template-columns: 1fr 1fr;
}

.range-inputs input {
  border-radius: 0;
}

.range-inputs input:first-child {
  border-radius: 4px 0 0 4px;
}

.range-inputs input:last-child {
  margin-left: -1px;
  border-radius: 0 4px 4px 0;
}

.check-stack {
  display: grid;
  gap: 8px;
  min-width: 190px;
  padding-left: 2px;
}

.check-stack label {
  display: flex;
  align-items: center;
  gap: 7px;
  color: #111827;
  font-size: 12px;
  font-weight: 600;
}

.check-stack input {
  width: 13px;
  height: 13px;
  min-height: auto;
  accent-color: #1769ff;
}

.filter-set,
.save-set,
.reset-filters,
.table-footer button {
  min-height: 32px;
  padding: 0 14px;
  background: #fff;
  border: 1px solid #d7e0ec;
  border-radius: 5px;
  color: #1d2939;
  font-size: 12px;
  font-weight: 700;
}

.filter-set {
  color: #0b63f6;
  background: #f8fbff;
  border-color: #bdd4ff;
}

.reset-filters {
  border-color: transparent;
  color: #667085;
}

.found-count {
  margin-left: auto;
  color: #344054;
  font-size: 12px;
}

.found-count strong {
  color: #0b63f6;
  font-size: 16px;
}

.market-table-wrap {
  min-height: 0;
  flex: 1;
  overflow: hidden;
  background: #fff;
}

.market-table {
  width: 100%;
  min-width: 1190px;
  border-collapse: separate;
  border-spacing: 0;
  table-layout: fixed;
  background: #fff;
  font-size: 11px;
}

.market-table th,
.market-table td {
  padding: 7px 8px;
  border-right: 1px solid #dce3ed;
  border-bottom: 1px solid #dce3ed;
  vertical-align: middle;
  text-align: right;
  line-height: 1.2;
}

.market-table th {
  height: 30px;
  background: #fbfcfe;
  color: #101828;
  font-size: 11px;
  font-weight: 700;
  text-align: center;
}

.market-table th span {
  color: #667085;
  font-weight: 500;
}

.market-table tbody tr {
  height: 54px;
}

.market-table tbody tr.selected {
  background: #f3f8ff;
}

.market-table tbody tr.selected .row-marker {
  border-left: 3px solid #1771ff;
}

.market-table .gear,
.market-table .row-marker {
  width: 32px;
  text-align: center;
}

.market-table .company-col {
  width: 116px;
}

.ticker-cell,
.company-cell,
.badges {
  text-align: left !important;
}

.ticker-cell a {
  display: block;
  color: #0069ff;
  font-size: 13px;
  font-weight: 800;
}

.ticker-cell small,
.company-cell small {
  display: block;
  margin-top: 4px;
  color: #667085;
  font-size: 10px;
}

.company-cell strong {
  display: block;
  font-size: 11px;
}

.badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 28px;
  height: 18px;
  padding: 0 5px;
  border-radius: 4px;
  font-size: 10px;
  font-weight: 800;
  line-height: 1;
}

.badge.lq {
  color: #039855;
  background: #eafaf2;
  border: 1px solid #8fe4b4;
}

.badge.hot,
.badge.sell {
  color: #f04438;
  background: #fff1f0;
  border: 1px solid #ffaaa5;
}

.badge.buy {
  color: #039855;
  background: #ecfdf3;
  border: 1px solid #8fe4b4;
}

.market-table .positive {
  color: #009b4d;
}

.market-table .negative {
  color: #f04438;
}

.balance-strong {
  color: #101828;
  font-weight: 800;
}

.sparkline {
  display: block;
  width: 70px;
  height: 23px;
}

.sparkline polyline {
  fill: none;
  stroke: #11a75c;
  stroke-width: 2;
  vector-effect: non-scaling-stroke;
}

.sparkline.spark-down polyline {
  stroke: #f04438;
}

.sparkline.spark-mixed polyline {
  stroke: #12a35a;
}

.rating {
  text-align: center !important;
}

.rating strong {
  display: block;
  margin-bottom: 4px;
  font-size: 13px;
}

.rating span {
  display: block;
  width: 42px;
  height: 4px;
  margin: 0 auto;
  background: #dce5ef;
  border-radius: 999px;
  overflow: hidden;
}

.rating span::before {
  content: "";
  display: block;
  width: var(--score);
  height: 100%;
  background: #12a35a;
}

.trend {
  color: #101828;
  text-align: center !important;
  font-size: 18px;
}

.trend.up {
  color: #12a35a;
}

.trend.down {
  color: #f04438;
}

.table-footer {
  flex: 0 0 36px;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0 16px;
  color: #344054;
  border-top: 1px solid #d9e1ec;
  background: #fff;
  font-size: 12px;
}

.table-footer nav {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 auto;
}

.table-footer button {
  width: 28px;
  min-height: 28px;
  padding: 0;
  color: #344054;
}

.table-footer button.active {
  color: #0b63f6;
  background: #eff6ff;
  border-color: #84b8ff;
}

.table-actions {
  margin-left: auto;
}

.table-actions button {
  width: auto;
  padding: 0 10px;
}

.ticker-panel {
  min-width: 0;
  position: relative;
  overflow-y: auto;
  background: #fff;
  padding: 18px 16px 22px;
}

.close-panel {
  position: absolute;
  top: 15px;
  right: 14px;
  width: 22px;
  min-height: 22px;
  padding: 0;
  border: 0;
  background: transparent;
  color: #344054;
  font-size: 28px;
  line-height: 1;
}

.ticker-title {
  display: flex;
  align-items: center;
  gap: 7px;
}

.ticker-title strong {
  font-size: 21px;
  line-height: 1;
}

.ticker-panel h2 {
  margin: 12px 0 8px;
  font-size: 16px;
}

.ticker-panel p {
  margin: 0 0 18px;
  color: #344054;
  font-size: 12px;
}

.side-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px 18px;
  margin-bottom: 18px;
}

.side-stats span {
  display: block;
  margin-bottom: 6px;
  color: #667085;
  font-size: 12px;
}

.side-stats strong {
  font-size: 13px;
}

.side-stats .positive {
  font-size: 20px;
}

.side-tabs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  margin: 0 -16px 18px;
  border-bottom: 1px solid #d9e1ec;
}

.side-tabs a {
  padding: 11px 8px;
  color: #344054;
  text-align: center;
  border-bottom: 2px solid transparent;
  font-size: 12px;
}

.side-tabs a.active {
  color: #0b63f6;
  border-color: #0b63f6;
  font-weight: 800;
}

.side-section {
  margin-bottom: 19px;
}

.side-section h3 {
  margin: 0 0 10px;
  font-size: 13px;
}

.bar-legend {
  display: flex;
  align-items: center;
  gap: 6px;
  color: #344054;
  font-size: 10px;
}

.bar-legend span {
  width: 9px;
  height: 9px;
  display: inline-block;
}

.bar-legend .buy {
  background: #17a85b;
}

.bar-legend .sell {
  background: #f04438;
}

.bar-chart {
  height: 92px;
  display: flex;
  align-items: end;
  gap: 13px;
  padding: 12px 8px 8px;
  border-bottom: 1px solid #dce3ed;
  background: repeating-linear-gradient(to top, transparent 0 22px, #edf2f7 23px);
}

.bar-chart i {
  position: relative;
  width: 18px;
  height: var(--b);
  background: #16a65b;
  font-style: normal;
}

.bar-chart i::after {
  content: "";
  position: absolute;
  left: 22px;
  bottom: 0;
  width: 18px;
  height: var(--s);
  background: #ef4444;
}

.balance-bars {
  height: 96px;
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 10px 10px;
  border-bottom: 1px solid #dce3ed;
  background: repeating-linear-gradient(to top, transparent 0 23px, #edf2f7 24px);
}

.balance-bars i {
  width: 18px;
  background: #16a65b;
}

.balance-bars i.neg {
  align-self: end;
  background: #ef4444;
}

.mini-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}

.mini-cards div {
  padding: 10px 9px;
  border: 1px solid #dce3ed;
  border-radius: 5px;
}

.mini-cards span {
  display: block;
  color: #344054;
  font-size: 11px;
}

.mini-cards strong {
  display: block;
  margin: 4px 0 7px;
  font-size: 16px;
}

.mini-cards .sparkline {
  width: 65px;
  height: 22px;
}

.blue-area {
  height: 110px;
  border: 1px solid #e1e8f2;
  background:
    linear-gradient(180deg, rgba(49, 130, 255, 0.18), rgba(49, 130, 255, 0.03)),
    url("data:image/svg+xml,%3Csvg width='260' height='105' viewBox='0 0 260 105' xmlns='http://www.w3.org/2000/svg'%3E%3Cpolyline fill='none' stroke='%233b82f6' stroke-width='2' points='0,75 10,64 18,71 28,61 36,68 48,52 58,63 69,43 80,54 90,47 100,31 112,59 124,39 136,48 148,28 160,18 172,24 184,16 196,40 208,34 220,50 232,45 244,58 260,47'/%3E%3C/svg%3E") center / 100% 100% no-repeat;
  border-radius: 4px;
}

.side-section.compact dl {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px 12px;
  margin: 0;
}

.side-section.compact dt {
  color: #344054;
  font-size: 12px;
}

.side-section.compact dd {
  margin: 0;
  font-size: 12px;
  font-weight: 800;
}

@media (max-width: 900px) {
  .company-files-heading {
    grid-template-columns: 1fr;
  }

  .company-files-tools {
    grid-template-columns: 1fr;
  }

  .company-file-grid {
    grid-template-columns: 1fr;
    padding: 16px;
  }

  .company-file-row {
    grid-template-columns: 22px minmax(0, 1fr);
    grid-template-areas:
      "icon title"
      ". date"
      ". size";
  }

  .company-file-row small,
  .company-file-row em {
    justify-self: start;
  }

  .side-rail {
    display: none;
  }

  .topbar,
  .footer,
  .section-header,
  .search-row,
  .filters {
    align-items: stretch;
    flex-direction: column;
  }

  .topbar {
    position: static;
    padding: 14px 16px;
  }

  .top-actions {
    margin-left: 0;
  }

  .topnav {
    overflow-x: auto;
    padding-bottom: 2px;
  }

  .page {
    width: min(100% - 20px, 720px);
    margin: 0 auto;
    padding-top: 12px;
  }

  .hero,
  .entity-header,
  .two-column,
  .dashboard-grid,
  .document-viewer-layout {
    grid-template-columns: 1fr;
  }

  .hero,
  .entity-header,
  .section,
  .panel {
    padding: 18px;
  }

  h1 {
    font-size: 28px;
  }

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

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

  .mutual-funds-header,
  .mutual-funds-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .mutual-funds-kpis {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .mutual-funds-best {
    grid-template-columns: 1fr;
  }

  .mutual-funds-best p {
    white-space: normal;
  }

  .mutual-funds-filters {
    grid-template-columns: 1fr;
  }

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

  .report-row::before,
  .timeline-dot {
    display: none;
  }

  .report-year {
    padding-top: 0;
  }

  .report-card {
    min-height: 0;
    grid-template-columns: 92px minmax(0, 1fr);
    gap: 16px;
    padding: 16px;
  }

  .report-cover {
    width: 78px;
    height: 112px;
  }

  .report-link {
    grid-column: 1 / -1;
    justify-self: start;
  }

  .document-viewer-header {
    display: grid;
  }

  .document-actions {
    justify-content: flex-start;
  }

  .pdf-viewer,
  .pdf-viewer iframe {
    min-height: 70vh;
    height: 70vh;
  }

  .kpi-strip {
    grid-template-columns: repeat(2, 1fr);
  }

  .mobile-cards {
    display: grid;
    gap: 10px;
    margin-top: 14px;
  }
}

@media (max-width: 520px) {
  .kpi-strip {
    grid-template-columns: 1fr;
  }

  table {
    min-width: 640px;
  }

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

/* Stock hub visual refresh */
:root {
  --bg: #ffffff;
  --surface: #ffffff;
  --text: #111827;
  --muted: #60708d;
  --line: #dde7f3;
  --line-soft: #edf2f8;
  --blue: #006bff;
  --green: #08a65a;
  --red: #ff385c;
  --radius: 6px;
  --shadow-soft: 0 1px 2px rgba(17, 24, 39, 0.02);
}

body {
  background: var(--bg);
  color: var(--text);
  font-size: 14px;
}

.side-rail {
  width: 60px;
  gap: 22px;
  padding: 14px 10px;
  border-right-color: #e7eef7;
  box-shadow: 1px 0 0 rgba(0, 0, 0, 0.01);
}

.rail-button {
  width: 36px;
  height: 36px;
  color: #233b63;
  border-radius: 7px;
  font-size: 18px;
}

.rail-button i {
  line-height: 1;
}

.rail-menu {
  margin-bottom: 22px;
  padding: 0;
  background: #fff;
}

.rail-settings {
  margin-top: auto;
}

.rail-admin-edit {
  color: #0969da;
}

.rail-button.active,
.rail-button:hover {
  color: var(--blue);
  background: #eef6ff;
  border-color: #eef6ff;
}

.topbar {
  min-height: 68px;
  padding: 0 22px 0 96px;
  gap: 38px;
  background: rgba(255, 255, 255, 0.98);
  border-bottom-color: #e8eef6;
  box-shadow: 0 1px 0 rgba(16, 24, 40, 0.02);
}

.brand {
  font-size: 20px;
  font-weight: 800;
}

.topnav {
  gap: 13px;
  color: #17315d;
  font-size: 13px;
  font-weight: 600;
}

.topnav a,
.topnav [itemprop="name"] {
  color: #17315d;
  white-space: nowrap;
}

.topnav-item + .topnav-item::before {
  content: "›";
  margin-right: 13px;
  color: #7f91ae;
}

.topnav-item:last-child [itemprop="name"] {
  color: #0f172a;
  font-weight: 800;
}

.top-actions {
  gap: 8px;
}

.top-action {
  min-height: 40px;
  gap: 9px;
  padding: 0 16px;
  border-color: #cfe0ff;
  border-radius: 5px;
  color: var(--blue);
  font-size: 13px;
  font-weight: 800;
}

.top-action.secondary {
  color: #0f172a;
  border-color: #d8e3f2;
}

.top-action.icon-only {
  width: 38px;
  padding: 0;
  color: #42526e;
  background: #fff;
}

.page {
  width: auto;
  max-width: none;
  margin: 0 20px 0 84px;
  padding: 22px 0 34px;
  background: #fff;
}

.stock-shell,
.section,
.panel,
.reports-page {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 6px;
  box-shadow: var(--shadow-soft);
}

.stock-shell {
  position: relative;
  z-index: 5;
  overflow: visible;
}

.entity-header {
  display: grid;
  grid-template-columns: minmax(330px, 0.8fr) minmax(0, 1.2fr);
  gap: 0;
  align-items: stretch;
  padding: 18px 20px 12px;
  border: 0;
  border-radius: 0;
  box-shadow: none;
}

.entity-main {
  grid-template-columns: 72px minmax(0, 1fr);
  gap: 16px;
  align-items: center;
  min-width: 0;
}

.entity-logo {
  width: 64px;
  height: 64px;
  border-color: #e7eef7;
  border-radius: 8px;
  background: #fff;
  font-size: 28px;
  font-weight: 900;
}

.entity-logo img {
  padding: 5px;
}

.entity-copy h2 {
  margin: 0;
  font-size: 22px;
  line-height: 1.05;
  font-weight: 850;
  letter-spacing: 0;
}

.entity-title-row {
  gap: 9px;
  flex-wrap: wrap;
}

.ticker-badge,
.quality-badge,
.hot-badge {
  display: inline-flex;
  align-items: center;
  min-height: 20px;
  padding: 0 7px;
  border-radius: 4px;
  font-size: 11px;
  line-height: 1;
  font-weight: 850;
}

.ticker-badge {
  color: #34405f;
  background: #f3f6fb;
  border: 1px solid #dbe5f1;
}

.index-badge {
  position: relative;
  z-index: 30;
  display: inline-flex;
  align-items: center;
  min-height: 20px;
  padding: 0 7px;
  border-radius: 4px;
  font-size: 11px;
  line-height: 1;
  font-weight: 750;
}

.index-badge[data-tooltip]:hover::after,
.index-badge[data-tooltip]:focus-visible::after {
  content: attr(data-tooltip);
  position: absolute;
  left: 50%;
  bottom: calc(100% + 8px);
  z-index: 1000;
  width: max-content;
  max-width: 260px;
  padding: 7px 9px;
  border: 1px solid #dce6f3;
  border-radius: 6px;
  background: #fff;
  color: #1f2f4a;
  box-shadow: 0 8px 24px rgba(15, 23, 42, .12);
  font-size: 11px;
  line-height: 1.25;
  font-weight: 600;
  white-space: normal;
  transform: translateX(-50%);
}

.index-badge-red {
  color: #e11d48;
  background: #fff1f4;
  border: 1px solid #ff9bad;
}

.index-badge-blue {
  color: #1d4ed8;
  background: #eff6ff;
  border: 1px solid #bfdbfe;
}

.quality-badge {
  color: #008f56;
  background: #eafff3;
  border: 1px solid #98ecc2;
}

.hot-badge {
  color: #f72552;
  background: #fff3f5;
  border: 1px solid #ff6c86;
}

.entity-subtitle,
.entity-sector {
  margin-top: 9px;
  color: #284063;
  font-size: 13px;
  font-weight: 600;
}

.entity-sector {
  margin-top: 8px;
  color: #314a72;
}

.entity-sector span::before {
  content: "•";
  margin: 0 12px;
  color: #8fa0bb;
}

.kpi-strip {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  min-width: 0;
}

.kpi-item {
  min-height: 86px;
  min-width: 0;
  padding: 2px 16px 0;
  border-left: 1px solid var(--line);
}

.kpi-item span,
.definition-list dt {
  color: #435a7d;
  font-size: 12px;
  line-height: 1.3;
  font-weight: 700;
  overflow-wrap: anywhere;
}

.kpi-item strong,
.definition-list dd {
  margin-top: 10px;
  color: #07111f;
  font-size: 20px;
  line-height: 1.05;
  font-weight: 850;
}

.kpi-item small {
  margin-top: 9px;
  color: #304665;
  font-size: 12px;
  line-height: 1.35;
  font-weight: 600;
  overflow-wrap: anywhere;
}

.kpi-item em {
  display: block;
  margin-top: 11px;
  font-style: normal;
  font-size: 13px;
  font-weight: 850;
}

.tabs {
  margin: 0;
  padding: 0 22px;
  gap: 20px;
  border: 0;
  border-top: 1px solid var(--line-soft);
  border-radius: 0;
  box-shadow: none;
}

.tabs a {
  padding: 19px 0 14px;
  color: #233b63;
  border-bottom-width: 3px;
  font-size: 13px;
  font-weight: 700;
}

.tabs a.active {
  color: var(--blue);
}

.section,
.panel,
.reports-page {
  margin-top: 16px;
  padding: 18px;
}

.section h2,
.panel h2,
.reports-heading h1,
.reports-heading h2 {
  margin-bottom: 18px;
  color: #111827;
  font-size: 16px;
  line-height: 1.25;
  font-weight: 850;
}

.dashboard-grid {
  grid-template-columns: minmax(0, 1.9fr) minmax(340px, 0.9fr);
  gap: 16px;
  margin-top: 16px;
}

.chart {
  min-height: 292px;
  border: 0;
  background: #fff;
  border-radius: 0;
}

.table-wrap {
  border: 0;
  border-radius: 0;
}

table {
  min-width: 760px;
}

th,
td {
  padding: 12px 14px;
  border-bottom-color: var(--line-soft);
  color: #17233b;
  font-size: 13px;
}

th {
  color: #435a7d;
  background: #fff;
  font-size: 12px;
  font-weight: 750;
}

.definition-list {
  gap: 13px 18px;
}

.definition-list dd {
  font-size: 13px;
  font-weight: 850;
}

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

.card,
.news-card,
.metric-card {
  border-color: var(--line-soft);
  border-radius: 6px;
  box-shadow: none;
}

@media (max-width: 1280px) {
  .entity-header {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .kpi-strip {
    grid-template-columns: repeat(3, 1fr);
    border-top: 1px solid var(--line-soft);
  }

  .kpi-item:nth-child(3n + 1) {
    border-left: 0;
  }
}

@media (max-width: 900px) {
  .topbar {
    padding: 14px 16px;
  }

  .page {
    width: min(100% - 20px, 720px);
    margin: 0 auto;
  }

  .entity-header {
    padding: 18px;
  }

  .entity-main {
    grid-template-columns: 72px minmax(0, 1fr);
  }

  .entity-logo {
    width: 58px;
    height: 58px;
  }

  .kpi-strip {
    grid-template-columns: repeat(2, 1fr);
  }

  .kpi-item {
    min-height: 86px;
    padding: 14px;
  }

  .kpi-item:nth-child(odd) {
    border-left: 0;
  }

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

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

.dividend-filters {
  display: flex;
  align-items: end;
  gap: 30px;
  margin-top: 16px;
  padding: 0 18px;
}

.dividend-filters label {
  width: 160px;
  color: #314a72;
  font-size: 12px;
  font-weight: 700;
}

.dividend-filters select,
.dividend-filters input {
  height: 38px;
  min-height: 38px;
  margin-top: 8px;
  border-color: #dce7f4;
  color: #0f1f39;
  font-size: 13px;
  font-weight: 650;
}

.dividend-filters .button {
  height: 38px;
  min-height: 38px;
  padding: 0 20px;
}

.dividend-overview {
  margin-top: 16px;
}

.dividend-overview h2 {
  margin-bottom: 14px;
}

.dividend-overview-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(150px, 1fr));
  gap: 10px;
}

.dividend-overview-card {
  min-height: 104px;
  display: grid;
  align-content: space-between;
  gap: 8px;
  padding: 14px;
  border: 1px solid #dce7f4;
  border-radius: 8px;
  background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
}

.dividend-overview-card span {
  color: #314a72;
  font-size: 12px;
  font-weight: 750;
  line-height: 1.3;
}

.dividend-overview-card strong {
  color: #07111f;
  font-size: 24px;
  line-height: 1;
  font-weight: 850;
  font-variant-numeric: tabular-nums;
}

.dividend-overview-card small {
  color: #6b7c95;
  font-size: 11px;
  font-weight: 700;
}

.dividend-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.22fr) minmax(320px, 0.64fr) minmax(300px, 0.62fr);
  gap: 14px;
  margin-top: 16px;
}

.dividend-layout .panel {
  margin-top: 0;
  min-width: 0;
}

.dividend-chart-panel {
  min-height: 300px;
}

.dividend-history,
.dividend-payout-chart,
.dividend-summary-table {
  grid-column: span 2;
}

.dividend-history {
  min-height: 294px;
}

.dividend-policy,
.next-dividend,
.useful-links {
  min-height: 206px;
}

.dividend-policy p {
  margin: 0 0 10px;
  color: #314a72;
  font-size: 13px;
  line-height: 1.5;
  font-weight: 650;
}

.dividend-policy > strong {
  display: block;
  margin-bottom: 4px;
  color: #07111f;
  font-size: 30px;
  line-height: 1;
  font-weight: 850;
}

.dividend-policy > span {
  display: block;
  margin-bottom: 34px;
  color: #314a72;
  font-size: 13px;
  font-weight: 650;
}

.definition-list.compact {
  margin-top: 18px;
}

.useful-links {
  display: grid;
  align-content: start;
  gap: 14px;
}

.useful-links h2 {
  margin-bottom: 6px;
}

.useful-links a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  color: var(--blue);
  font-size: 13px;
  font-weight: 800;
}

.data-note {
  margin: 18px 10px 0;
  color: #314a72;
  font-size: 12px;
  font-weight: 650;
}

@media (max-width: 1280px) {
  .dividend-overview-grid {
    grid-template-columns: repeat(3, minmax(150px, 1fr));
  }

  .dividend-layout {
    grid-template-columns: minmax(0, 1fr) minmax(300px, 0.42fr);
  }

  .dividend-chart-panel,
  .dividend-history,
  .dividend-payout-chart,
  .dividend-summary-table {
    grid-column: span 1;
  }
}

@media (max-width: 900px) {
  .dividend-filters {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    padding: 0;
  }

  .dividend-filters label {
    width: auto;
  }

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

  .dividend-layout {
    grid-template-columns: 1fr;
  }
}

/* Pixel-match stock pages: keep the workspace white, not grey. */
html,
body,
.page,
.footer {
  background: #fff;
}

.footer {
  margin-left: 60px;
  border-top: 1px solid #e5edf7;
}

.stock-shell,
.section,
.panel,
.reports-page {
  border-color: #dfe8f4;
  box-shadow: none;
}

.chart {
  border: 0;
  background: #fff;
}

.wide .chart,
.dividend-chart-panel .chart,
.dividend-payout-chart .chart {
  min-height: 300px;
}

.stock-chart-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 12px;
}

.panel .stock-chart-heading h2 {
  margin-bottom: 0;
}

.stock-chart-periods {
  display: inline-flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 5px;
}

.stock-chart-periods button {
  min-width: 42px;
  height: 32px;
  padding: 0 10px;
  border: 1px solid #dce7f4;
  border-radius: 6px;
  background: #fff;
  color: #314a72;
  font: inherit;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
}

.stock-chart-periods button:hover,
.stock-chart-periods button:focus-visible {
  border-color: #91b9f5;
  color: #0b6bff;
  outline: none;
}

.stock-chart-periods button.active {
  border-color: #d9e7fb;
  background: #edf4ff;
  color: #0b6bff;
}

.chart[data-chart="security-trading"] {
  position: relative;
  min-height: 340px;
}

.chart-history-note {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin: -4px 22px 8px;
  color: #607392;
  font-size: 11px;
  line-height: 1.4;
}

.chart-history-note i {
  flex: 0 0 auto;
  margin-top: 1px;
  color: #0b6bff;
}

.issue-size-chart-heading {
  display: flex;
  align-items: baseline;
  gap: 12px;
  margin: 4px 22px 0;
}

.issue-size-chart-heading h3 {
  margin: 0;
  color: #263b5d;
  font-size: 14px;
}

.issue-size-chart-heading span {
  color: #7f93af;
  font-size: 11px;
}

.issue-size-chart {
  height: 132px;
  min-width: 0;
}

.trading-range-selection {
  position: absolute;
  z-index: 8;
  display: none;
  border-right: 1px solid #0b6bff;
  border-left: 1px solid #0b6bff;
  background: rgba(11, 107, 255, .09);
  pointer-events: none;
}

.trading-range-selection.visible {
  display: block;
}

.trading-range-selection::before,
.trading-range-selection::after {
  position: absolute;
  top: 8px;
  width: 6px;
  height: 20px;
  border: 2px solid #0b6bff;
  border-radius: 4px;
  background: #fff;
  content: "";
}

.trading-range-selection::before {
  left: -5px;
}

.trading-range-selection::after {
  right: -5px;
}

.trading-range-callout {
  position: absolute;
  z-index: 9;
  display: none;
  min-width: 210px;
  padding: 8px 14px;
  transform: translateX(-50%);
  border: 1px solid #e2eaf5;
  border-radius: 6px;
  background: rgba(255, 255, 255, .98);
  box-shadow: 0 6px 18px rgba(31, 55, 90, .12);
  color: #314a72;
  text-align: center;
  pointer-events: none;
}

.trading-range-callout.visible {
  display: block;
}

.trading-range-callout span,
.trading-range-callout strong {
  display: block;
}

.trading-range-callout span {
  margin-bottom: 2px;
  font-size: 11px;
}

.trading-range-callout strong {
  color: #0b6bff;
  font-size: 13px;
}

@media (max-width: 720px) {
  .stock-chart-heading {
    align-items: flex-start;
    flex-direction: column;
  }

  .stock-chart-periods {
    justify-content: flex-start;
    width: 100%;
  }

  .stock-chart-periods button {
    flex: 1 1 42px;
    padding: 0 6px;
  }
}

.dashboard-grid,
.dividend-layout {
  background: #fff;
}

.financials-page {
  margin-top: 16px;
}

.financial-section {
  background: #fff;
  border: 1px solid #dfe8f4;
  border-radius: 6px;
}

.financials-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 10px 0 4px;
}

.financials-toolbar-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 18px;
}

.financials-title {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 12px;
  min-width: 0;
}

.financials-title h1 {
  margin: 0;
  color: #111827;
  font-size: 20px;
  font-weight: 850;
}

.financials-controls span {
  color: #435a7d;
  font-size: 13px;
  font-weight: 750;
}

.financials-title span {
  color: #536682;
  font-size: 13px;
  font-weight: 750;
}

.financials-controls {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
}

.financials-controls button,
.financials-controls a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 28px;
  padding: 0 12px;
  border: 1px solid #dfe8f4;
  border-radius: 999px;
  background: #fff;
  color: #314a72;
  font-size: 12px;
  font-weight: 750;
  text-decoration: none;
}

.financials-controls button.active,
.financials-controls a.active {
  background: #eef6ff;
  color: var(--blue);
  border-color: #cfe0ff;
}

.financial-section {
  margin-top: 14px;
  overflow: hidden;
}

.financial-section header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 10px 14px;
  border-bottom: 1px solid #edf2f8;
}

.financial-section-title {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.financial-source-empty {
  min-height: 220px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  padding: 32px;
  border: 1px solid var(--line);
  background: #fff;
  color: #50627e;
}

.financial-source-empty > i {
  font-size: 34px;
  color: #8ba5c7;
}

.financial-source-empty h2 {
  margin: 0 0 6px;
  color: #14213a;
  font-size: 18px;
}

.financial-source-empty p {
  margin: 0 0 12px;
}

.financial-source-empty a {
  color: var(--blue);
  font-weight: 800;
}

.financial-section h3 {
  margin: 0;
  color: #111827;
  font-size: 14px;
  font-weight: 850;
}

.financial-section-unit {
  display: inline-flex;
  align-items: center;
  min-height: 22px;
  padding: 0 8px;
  border-radius: 999px;
  background: #f3f7fc;
  color: #435a7d;
  font-size: 11px;
  font-weight: 800;
  white-space: nowrap;
}

.financial-section header span {
  color: #435a7d;
  font-size: 12px;
  font-weight: 750;
}

.section-view-controls {
  flex-shrink: 0;
}

.financial-table-wrap {
  width: 100%;
  overflow-x: auto;
}

.financial-table {
  width: max-content;
  min-width: max-content;
  table-layout: auto;
  border-collapse: separate;
  border-spacing: 0;
}

.financial-table th,
.financial-table td {
  height: 26px;
  padding: 4px 5px;
  border-bottom: 1px solid #f1f4f8;
  color: #17233b;
  font-size: 10px;
  line-height: 1.25;
  text-align: right;
  white-space: nowrap;
}

.financial-table tbody tr.group-start th,
.financial-table tbody tr.group-start td {
  border-top: 14px solid #fff;
}

.financial-table tbody tr.total-row th,
.financial-table tbody tr.total-row td {
  color: #0f172a;
  font-weight: 850;
}

.financial-table tbody tr.total-row .metric-col {
  font-weight: 850;
}

.financial-table tbody tr.group-header-row th,
.financial-table tbody tr.group-header-row td {
  font-weight: 850;
}

.financial-table tbody tr.italic-row .metric-col {
  font-style: italic;
}

.financial-table thead th {
  position: sticky;
  top: 0;
  z-index: 2;
  background: #f8fbff;
  color: #1f2d48;
  font-weight: 850;
}

.financial-table th.ttm-col,
.financial-table td.ttm-col {
  background: rgba(4, 198, 216, 0.08);
  border-left: 1px solid #04c6d8;
  border-right: 1px solid #04c6d8;
}

.financial-table thead th.ttm-col {
  background: rgba(4, 198, 216, 0.18);
  color: #06606a;
}

.financial-table tbody tr.total-row td.ttm-col {
  background: rgba(4, 198, 216, 0.14);
}

.financial-table th:not(.metric-col):not(.trend-col),
.financial-table td:not(.metric-col):not(.trend-col) {
  width: 90px;
  min-width: 90px;
  max-width: 90px;
}

.financial-table .metric-col {
  position: sticky;
  left: 0;
  z-index: 3;
  width: 260px;
  min-width: 260px;
  max-width: 260px;
  background: #fff;
  text-align: left;
  font-weight: 500;
  overflow: hidden;
  text-overflow: ellipsis;
}

.financial-table tbody tr.indent-1 .metric-col {
  padding-left: 18px;
}

.financial-table tbody tr.indent-2 .metric-col {
  padding-left: 30px;
}

.financial-table thead .metric-col {
  background: #f8fbff;
}

.financial-table .trend-col {
  position: sticky;
  left: 260px;
  z-index: 3;
  width: 36px;
  min-width: 36px;
  max-width: 36px;
  background: #fff;
  text-align: center;
}

.financial-table thead .trend-col {
  background: #f8fbff;
}

.trend-bars {
  width: 18px;
  height: 14px;
  display: inline-block;
  background:
    linear-gradient(to top, currentColor 72%, transparent 72%) 1px 100% / 3px 100% no-repeat,
    linear-gradient(to top, currentColor 88%, transparent 88%) 6px 100% / 3px 100% no-repeat,
    linear-gradient(to top, currentColor 100%, transparent 100%) 11px 100% / 3px 100% no-repeat,
    linear-gradient(to top, currentColor 58%, transparent 58%) 16px 100% / 3px 100% no-repeat;
  color: #16a34a;
}

.trend-down {
  color: #ff4d43;
  transform: scaleY(-1);
}

.trend-flat {
  color: #9aa8bb;
}

.stock-hero {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(390px, 1fr) minmax(310px, .78fr) minmax(260px, .62fr) minmax(650px, 1.55fr);
  gap: 0;
  align-items: start;
  padding: 24px 24px 14px;
  background: #fff;
  overflow: visible;
}

.stock-hero-main {
  display: grid;
  grid-template-columns: 92px minmax(0, 1fr);
  gap: 21px;
  align-items: start;
  min-width: 0;
}

.stock-hero-logo {
  display: grid;
  gap: 0;
  justify-items: center;
  align-self: start;
}

.stock-hero .entity-logo {
  width: 86px;
  height: 86px;
  border-radius: 7px;
  border-color: #d8e2f0;
  background: var(--issuer-logo-bg, linear-gradient(180deg, #f8fbff 0%, #eef4fb 100%));
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.72),
    0 1px 2px rgba(18, 31, 58, 0.04);
}

.stock-hero .entity-logo img {
  width: 100%;
  height: 100%;
  padding: 12px;
  object-fit: contain;
  filter: drop-shadow(0 1px 2px rgba(18, 31, 58, 0.22));
}

.stock-hero-copy h1,
.stock-hero-copy h2 {
  margin-top: 0;
  font-size: 24px;
  line-height: 1.05;
  font-weight: 720;
}

.stock-hero .entity-title-row {
  position: relative;
  z-index: 40;
  flex-wrap: nowrap;
  align-items: center;
  gap: 8px;
}

.stock-hero .entity-title-row h1,
.stock-hero .entity-title-row h2 {
  flex: 0 1 auto;
  min-width: 0;
}

.stock-hero .ticker-badge,
.stock-hero .index-badge {
  flex: 0 0 auto;
}

.stock-hero-copy .entity-subtitle {
  margin-top: 12px;
  color: #314566;
  font-size: 12px;
  font-weight: 650;
}

.stock-hero-copy .entity-sector {
  margin-top: 10px;
  color: #405577;
  font-size: 11px;
  font-weight: 620;
}

.stock-hero-price-range {
  min-height: 92px;
  padding: 0 22px;
  border-left: 1px solid #e2eaf5;
}

.stock-hero-chart {
  min-height: 110px;
  padding: 0 22px;
  border-left: 0;
}

.stock-hero-price span,
.stock-hero-chart span,
.stock-hero-range span,
.stock-hero-metric span {
  display: block;
  color: #4a5f80;
  font-size: 11px;
  font-weight: 650;
}

.stock-hero-price strong,
.stock-hero-range strong {
  display: block;
  margin-top: 13px;
  color: #0f172a;
  font-size: 20px;
  line-height: 1;
  font-weight: 720;
  white-space: nowrap;
}

.stock-hero-price small {
  display: block;
  margin-top: 13px;
  color: #415777;
  font-size: 11px;
  font-weight: 620;
}

.stock-hero-price em,
.stock-hero-chart strong {
  display: block;
  margin-top: 12px;
  font-style: normal;
  font-size: 12px;
  font-weight: 700;
}

.stock-hero .positive {
  color: #16a34a;
}

.stock-hero .negative {
  color: #ef1f2d;
}

.stock-hero-switch {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  width: 200px;
  margin-left: auto;
  margin-bottom: 8px;
  border: 1px solid #dce7f5;
  border-radius: 6px;
  overflow: hidden;
}

.stock-hero-switch button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 1 1 50%;
  gap: 5px;
  width: auto;
  min-width: 0;
  min-height: 32px;
  padding: 0 8px;
  border: 0;
  border-right: 1px solid #dce7f5;
  background: #fff;
  color: #334a70;
  font-size: 11px;
  font-weight: 650;
}

.stock-hero-switch .stock-period-label,
.stock-hero-switch .stock-period-change {
  display: inline;
  color: inherit;
  font-size: inherit;
  font-weight: 650;
  white-space: nowrap;
}

.stock-hero-switch .stock-period-change {
  display: none;
  font-size: 10px;
  font-weight: 500;
}

.stock-hero-switch button.active .stock-period-change {
  display: inline;
}

.stock-hero-switch button.active .stock-period-change.negative {
  color: #ef1f2d;
}

.stock-hero-switch button.active .stock-period-change.positive {
  color: #16a34a;
}

.stock-hero-switch button:last-child {
  border-right: 0;
}

.stock-hero-switch button.active {
  color: var(--blue);
  background: #edf4ff;
  box-shadow: none;
}

.stock-hero-switch button:focus-visible {
  position: relative;
  z-index: 1;
  outline: 2px solid #75a7f8;
  outline-offset: -2px;
}

.stock-hero-chart {
  position: relative;
}

.stock-hero-chart strong {
  margin-top: 12px;
}

.stock-hero-spark {
  position: absolute;
  right: 22px;
  bottom: 0;
  left: auto;
  width: 200px;
  height: 60px;
}

.stock-hero-price-range {
  display: grid;
  grid-template-columns: minmax(112px, .48fr) minmax(0, .9fr);
  gap: 14px;
  align-items: start;
}

.stock-hero-price-range .stock-hero-price,
.stock-hero-price-range .stock-hero-range {
  min-height: 0;
  padding: 0;
  border-left: 0;
}

.stock-range-track {
  position: relative;
  height: 5px;
  margin-top: 20px;
  border-radius: 999px;
  background: linear-gradient(90deg, #d9e1ee, #c6d0df);
}

.stock-range-track i {
  position: absolute;
  top: 50%;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #001b49;
  transform: translate(-50%, -50%);
  box-shadow: 0 0 0 2px rgba(0, 27, 73, .08);
}

.stock-range-labels {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  margin-top: 12px;
}

.stock-range-labels small {
  color: #4f6280;
  font-size: 10px;
  font-weight: 650;
  white-space: nowrap;
}

.stock-hero-metrics {
  display: grid;
  grid-template-columns: repeat(5, minmax(82px, 1fr));
  align-self: start;
  margin: 0;
  padding: 0 0 0 18px;
  border-left: 1px solid #e2eaf5;
  border-top: 0;
}

.stock-hero-metric {
  min-height: 48px;
  min-width: 0;
  padding: 0 8px;
  border-left: 0;
}

.stock-hero-metric:nth-child(n + 6) {
  padding-top: 13px;
  border-top: 1px solid #e5edf7;
}

.stock-hero-metric:not(:nth-child(5n + 1)) {
  border-left: 1px solid #e5edf7;
}

.stock-hero-metric:nth-child(5n + 1) {
  padding-left: 0;
}

.stock-hero-metric span {
  display: block;
  min-height: 15px;
  font-weight: 650;
}

.stock-hero-metric strong {
  display: block;
  margin-top: 7px;
  color: #101827;
  font-size: 12px;
  line-height: 1.1;
  font-weight: 650;
  white-space: nowrap;
}

@media (max-width: 1700px) {
  .stock-hero {
    grid-template-columns: minmax(320px, 1fr) minmax(260px, .8fr);
  }

  .stock-hero-price-range {
    grid-column: 1 / -1;
    margin-top: 24px;
    padding-top: 22px;
    border-top: 1px solid #e5edf7;
  }

  .stock-hero-metrics {
    grid-column: 1 / -1;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    margin-top: 20px;
    padding: 18px 0 0;
    border-left: 0;
    border-top: 1px solid #e5edf7;
  }
}

@media (max-width: 900px) {
  .stock-hero {
    grid-template-columns: 1fr;
    padding: 22px 18px 16px;
  }

  .stock-hero-main {
    grid-template-columns: 78px minmax(0, 1fr);
    gap: 18px;
  }

  .stock-hero-price,
  .stock-hero-chart,
  .stock-hero-price-range {
    min-height: auto;
    margin-top: 22px;
    padding: 22px 0 0;
    border-left: 0;
    border-top: 1px solid #e5edf7;
  }

  .stock-hero-price-range {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .stock-hero-spark {
    position: static;
    display: block;
    width: 100%;
    margin-top: 10px;
  }

  .stock-hero-metrics {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .stock-hero-metric,
  .stock-hero-metric:first-child {
    padding: 12px 10px;
    border-left: 0;
    border-top: 1px solid #edf2f8;
  }
}
