@import url("https://fonts.googleapis.com/css2?family=Roboto:wght@400;500;700;900&display=swap");

:root {
  color-scheme: light;
  --bg: #f2f5fa;
  --panel: #ffffff;
  --panel-soft: #f7f9fc;
  --navy: #001f62;
  --navy-strong: #001747;
  --navy-soft: #06307a;
  --line: #d9e1ec;
  --text: #102247;
  --muted: #66758f;
  --shadow: 0 14px 30px rgba(0, 31, 98, 0.09);
  --radius-lg: 16px;
  --radius-md: 12px;
  --radius-sm: 9px;
  --font-sans: "Roboto", "Helvetica Neue", Arial, sans-serif;
}

.tracker-dashboard {
  display: grid;
  gap: 16px;
}

.tracker-filter-bar {
  display: grid;
  grid-template-columns: minmax(250px, 1.35fr) minmax(300px, 1.7fr) minmax(260px, 1fr);
  gap: 22px;
  align-items: end;
  padding: 18px 24px;
  background: #fff;
  border-bottom: 1px solid #cfd9e8;
}

.tracker-filter-bar.tracker-filter-bar-spaced {
  grid-template-columns: repeat(4, minmax(180px, 1fr));
  gap: 16px;
  padding-top: 22px;
  padding-bottom: 22px;
}

.tracker-filter-bar.tracker-filter-bar-compact {
  grid-template-columns: minmax(280px, 1.4fr) minmax(360px, 1.6fr) minmax(240px, 1fr);
}

.tracker-context-block strong {
  display: flex;
  align-items: center;
  min-height: 38px;
  color: #10274f;
  font-size: 13px;
  letter-spacing: 0;
  text-transform: none;
}

.tracker-filter-bar label,
.tracker-filter-bar > div {
  display: grid;
  gap: 7px;
  color: #001f62;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.035em;
  text-transform: uppercase;
}

.tracker-filter-bar select {
  width: 100%;
  min-height: 38px;
  padding: 0 38px 0 12px;
  color: #13264a;
  background: #fff;
  border: 1px solid #b9c8de;
  border-radius: 7px;
  font: inherit;
  font-size: 13px;
  font-weight: 750;
  text-transform: none;
}

.tracker-toggle {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.tracker-toggle button {
  min-height: 38px;
  padding: 0 14px;
  color: #123168;
  background: #fff;
  border: 1px solid #b9cbea;
  border-radius: 7px;
  font-size: 12px;
  font-weight: 850;
  cursor: pointer;
}

.tracker-toggle button.active {
  color: #fff;
  background: #001f62;
  border-color: #001f62;
}

.tracker-kpi-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin: 0 24px;
  background: #fff;
  border: 1px solid #ccd8e8;
  border-radius: 8px;
  box-shadow: 0 3px 10px rgba(18, 48, 96, 0.04);
  overflow: hidden;
}

.tracker-kpi {
  min-height: 86px;
  padding: 15px 18px;
  border-right: 1px solid #d8e1ed;
}

.tracker-kpi:last-child {
  border-right: 0;
}

.tracker-kpi span,
.tracker-kpi small {
  display: block;
  color: #657695;
  font-size: 10.5px;
  font-weight: 800;
}

.tracker-kpi span {
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.tracker-kpi strong {
  display: block;
  margin: 4px 0 3px;
  color: #001f62;
  font-size: 21px;
  line-height: 1;
}

.tracker-kpi strong.positive {
  color: #008a4b;
}

.tracker-kpi strong.negative {
  color: #c73535;
}

.tracker-chart-card {
  position: relative;
  margin: 0 24px 20px;
  padding: 18px;
}

.sector-visits-filters {
  grid-template-columns: minmax(260px, 1.2fr) minmax(280px, 1fr) minmax(220px, 0.85fr);
}

.sector-visits-player-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin: 0 24px 18px;
  padding: 14px 16px;
  border: 1px solid #d8e2f0;
  border-radius: 10px;
  background: #fff;
}

.sector-visits-player-bar > div:first-child {
  display: grid;
  gap: 3px;
  min-width: 160px;
}

.sector-visits-player-bar span {
  color: #001f62;
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.sector-visits-player-bar small {
  color: #667a9b;
}

.sector-visits-player-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

.sector-visits-player-actions button {
  min-height: 34px;
  padding: 0 13px;
  border: 1px solid #c8d5e8;
  border-radius: 18px;
  background: #fff;
  color: #536b91;
  font: inherit;
  font-size: 0.8rem;
  font-weight: 700;
  cursor: pointer;
}

.sector-visits-player-actions button:hover,
.sector-visits-player-actions button.active {
  border-color: #1767c7;
  background: #edf5ff;
  color: #001f62;
}

.sector-visits-ranking {
  margin: 0 24px 24px;
  padding: 18px;
}

.sector-visits-ranking .table-shell {
  margin-top: 14px;
}

.sector-visits-ranking td:not(:first-child),
.sector-visits-ranking th:not(:first-child) {
  text-align: right;
}

.sector-visits-ranking td.positive {
  color: #13834b;
  font-weight: 800;
}

.sector-visits-ranking td.negative {
  color: #c73535;
  font-weight: 800;
}

@media (max-width: 900px) {
  .sector-visits-player-bar {
    align-items: flex-start;
    flex-direction: column;
  }

  .sector-visits-player-actions {
    justify-content: flex-start;
  }
}

.tracker-chart-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  padding-bottom: 13px;
  border-bottom: 2px solid #1762bd;
}

.tracker-chart-heading h3 {
  margin: 0;
  color: #001f62;
  font-size: 14px;
  text-transform: uppercase;
}

.tracker-chart-heading p {
  margin: 5px 0 0;
  color: #647693;
  font-size: 12px;
}

.tracker-chart-unit {
  flex: 0 0 auto;
  padding: 5px 9px;
  color: #526987;
  background: #f2f6fc;
  border: 1px solid #d7e1ef;
  border-radius: 5px;
  font-size: 10px;
  font-weight: 800;
}

.tracker-chart-shell {
  position: relative;
  padding-top: 14px;
}

.tracker-chart-tooltip {
  position: absolute;
  z-index: 8;
  min-width: 215px;
  padding: 9px 11px;
  color: #fff;
  background: rgba(0, 31, 98, 0.94);
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 7px;
  box-shadow: 0 8px 20px rgba(0, 31, 98, 0.2);
  pointer-events: none;
}

.tracker-chart-tooltip strong {
  display: block;
}

.tracker-chart-tooltip strong {
  margin-bottom: 3px;
  font-size: 11px;
}

.tracker-chart-tooltip span {
  display: grid;
  grid-template-columns: 8px minmax(80px, 1fr) auto;
  align-items: center;
  gap: 7px;
  padding: 3px 0;
  color: #dce8fb;
  font-size: 10.5px;
}

.tracker-chart-tooltip span i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
}

.tracker-chart-tooltip span b {
  color: #fff;
  font-weight: 700;
}

.tracker-hover-zone {
  cursor: crosshair;
}

.tracker-chart-svg {
  display: block;
  width: 100%;
  min-height: 430px;
}

.tracker-chart-svg text {
  fill: #61728f;
  font-size: 10.5px;
  font-weight: 750;
}

.tracker-data-line,
.tracker-end-label {
  transition: opacity 160ms ease;
}

.tracker-end-label text {
  font-size: 10px;
  font-weight: 900;
  paint-order: stroke;
  stroke: #fff;
  stroke-width: 3px;
  stroke-linejoin: round;
}

.tracker-event-marker text {
  font-size: 9.5px;
  font-weight: 900;
  letter-spacing: 0.01em;
}

.tracker-chart-legend {
  display: flex;
  justify-content: center;
  gap: 22px;
  color: #17315f;
  font-size: 11px;
  font-weight: 800;
}

.tracker-chart-legend button {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 6px 9px;
  color: #17315f;
  background: #fff;
  border: 1px solid transparent;
  border-radius: 6px;
  font: inherit;
  cursor: pointer;
}

.tracker-chart-legend button:hover,
.tracker-chart-legend button.active {
  background: #f3f7fc;
  border-color: #d4dfed;
}

.tracker-chart-legend button:not(.active) {
  color: #91a0b6;
  text-decoration: line-through;
}

.tracker-chart-legend i {
  width: 20px;
  height: 3px;
  border-radius: 3px;
}

/* --- Drag-select range banner --- */
.tracker-range-banner {
  position: absolute;
  top: 40px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 8;
  display: flex;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 6px 12px;
  padding: 9px 12px;
  background: rgba(240, 245, 252, 0.97);
  border: 1px solid #b0c4e4;
  border-radius: 8px;
  box-shadow: 0 4px 16px rgba(0, 31, 98, 0.13);
  font-size: 11.5px;
  color: #17315f;
  max-width: 460px;
  min-width: 220px;
  width: max-content;
  pointer-events: auto;
}

/* display:flex above would override the HTML [hidden] attribute's user-agent
   display:none, making the banner always visible as an empty gray square.
   This rule restores the expected hidden behavior. */
.tracker-range-banner[hidden] {
  display: none !important;
}

.rng-period {
  font-weight: 700;
  white-space: nowrap;
}

.rng-period small {
  font-weight: 400;
  color: #6a7ea1;
}

.rng-deltas {
  display: flex;
  flex-direction: column;
  gap: 4px;
  flex: 1 1 240px;
}

.rng-row {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.rng-row i {
  width: 14px;
  height: 3px;
  border-radius: 2px;
  flex-shrink: 0;
}

.rng-row b { font-weight: 700; margin-right: 2px; }

.rng-pos { color: #1a7f3c; font-weight: 700; }
.rng-neg { color: #c0392b; font-weight: 700; }

.rng-clear {
  margin-left: auto;
  padding: 4px 10px;
  font-size: 11px;
  font-weight: 600;
  color: #6a7ea1;
  background: #fff;
  border: 1px solid #c6d6ec;
  border-radius: 6px;
  cursor: pointer;
  white-space: nowrap;
  flex-shrink: 0;
}

.rng-clear:hover { background: #e8eef8; color: #17315f; }

@media (max-width: 900px) {
  .tracker-filter-bar,
  .tracker-kpi-grid {
    grid-template-columns: 1fr;
  }

  .tracker-kpi {
    border-right: 0;
    border-bottom: 1px solid #d8e1ed;
  }
}

/* Retail dashboard landing page */
.dashboard-home {
  min-height: 100vh;
  overflow-x: hidden;
  background: #eef2f8;
}

.home-shell {
  min-height: 100vh;
  display: grid;
  grid-template-rows: auto 1fr auto;
  background:
    radial-gradient(circle at 50% 46%, rgba(255, 255, 255, 0.72), rgba(238, 242, 248, 0) 38%),
    #eef2f8;
}

.home-header {
  min-height: 76px;
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 14px 28px;
  color: #ffffff;
  background: #001f62;
  border-bottom: 1px solid rgba(255, 255, 255, 0.16);
  position: sticky;
  top: 0;
  z-index: 200;
}

.home-brand {
  display: inline-flex;
  align-items: center;
  padding-right: 18px;
  border-right: 1px solid rgba(255, 255, 255, 0.28);
}

.home-brand img {
  width: 88px;
  height: auto;
  filter: brightness(0) invert(1);
}

.home-brand-copy {
  display: grid;
  gap: 3px;
}

.home-brand-copy strong {
  font-size: 1.22rem;
  line-height: 1;
  letter-spacing: -0.01em;
}

.home-brand-copy span {
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.78rem;
}

.home-main {
  display: grid;
  align-content: center;
  justify-items: center;
  gap: 28px;
  width: min(1080px, calc(100vw - 40px));
  margin: 0 auto;
  padding: 32px 0 32px;
}

.home-intro {
  text-align: center;
}

.home-eyebrow {
  margin: 0 0 10px;
  color: #2f64b4;
  font-size: 0.7rem;
  font-weight: 900;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.home-intro h1 {
  margin: 0;
  color: #001f62;
  font-size: clamp(1.75rem, 2.5vw, 2.35rem);
  letter-spacing: -0.04em;
}

.home-intro > p {
  margin: 9px 0 0;
  color: #66758f;
  font-size: 0.96rem;
}

.home-intro-contacts {
  margin-top: 22px;
  justify-content: center;
}

.home-dashboard-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 320px));
  justify-content: center;
  gap: 30px;
  width: 100%;
}

.home-dashboard-card {
  position: relative;
  min-height: 300px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 13px;
  overflow: hidden;
  padding: 38px 28px 30px;
  border: 1px solid #d4deeb;
  border-radius: 13px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 10px 28px rgba(0, 31, 98, 0.045);
  color: #001f62;
  text-align: center;
  text-decoration: none;
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

a.home-dashboard-card:hover,
a.home-dashboard-card:focus-visible {
  transform: translateY(-6px);
  border-color: #6f98d6;
  box-shadow: 0 20px 42px rgba(0, 31, 98, 0.13);
  outline: none;
}

.home-card-icon {
  display: grid;
  place-items: center;
  width: 92px;
  height: 92px;
  margin-bottom: 4px;
  border-radius: 24px;
  background: #f1f6fd;
}

.home-card-icon svg {
  width: 70px;
  height: 70px;
  fill: none;
  stroke: #1f63c4;
  stroke-width: 3;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.home-card-title {
  color: #001f62;
  font-size: 1.16rem;
  font-weight: 900;
  letter-spacing: -0.02em;
}

.home-card-description {
  min-height: 38px;
  max-width: 230px;
  color: #6b7990;
  font-size: 0.8rem;
  line-height: 1.45;
}

.home-card-action {
  margin-top: 5px;
  color: #1f63c4;
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.home-dashboard-card.coming-soon {
  background: rgba(248, 250, 253, 0.82);
  color: #7283a0;
  box-shadow: none;
}

.home-dashboard-card.coming-soon .home-card-icon {
  background: #f4f6f9;
}

.home-dashboard-card.coming-soon .home-card-icon svg {
  stroke: #7295cf;
}

.home-dashboard-card.coming-soon .home-card-title,
.home-dashboard-card.coming-soon .home-card-action {
  color: #526b9c;
}

.coming-soon-ribbon {
  position: absolute;
  top: 22px;
  right: -43px;
  width: 170px;
  padding: 7px 0;
  transform: rotate(45deg);
  background: #5d8ed4;
  color: #ffffff;
  font-size: 0.62rem;
  font-weight: 900;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  box-shadow: 0 2px 8px rgba(0, 31, 98, 0.14);
}

.home-footer {
  min-height: 80px;
  display: grid;
  justify-items: center;
  align-content: center;
  gap: 8px;
  padding: 15px 24px 17px;
  border-top: 1px solid #1f63c4;
  background: #ffffff;
  color: #001f62;
  text-align: center;
}

.home-footer-logo-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: transparent;
  text-decoration: none;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}

.home-footer-logo-link:focus-visible {
  outline: 2px solid #1f63c4;
  outline-offset: 4px;
  border-radius: 8px;
}

/* Logo: hide the white PNG, use mask-image with navy fill (reliable on all mobile browsers) */
.home-footer img {
  display: none !important;
}

.home-footer-logo-link::before {
  content: "";
  display: block;
  width: 88px;
  height: 30px;
  background-color: #001f62;
  -webkit-mask-image: url("./assets/btg-logo.png");
  -webkit-mask-size: contain;
  -webkit-mask-repeat: no-repeat;
  -webkit-mask-position: center;
  mask-image: url("./assets/btg-logo.png");
  mask-size: contain;
  mask-repeat: no-repeat;
  mask-position: center;
}

/* Same for cheat-sheet header logo (white on navy bg — keep white) */
.cheat-header-logo {
  filter: none !important;
}

.home-footer strong {
  font-size: 0.72rem;
}

.home-footer span {
  color: #3f66a7;
  font-size: 0.65rem;
}

.home-contact-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(205px, 1fr));
  gap: 0;
  margin-top: 0;
}

.home-contact {
  display: grid;
  gap: 3px;
  min-width: 0;
  padding: 0 24px;
  border-left: 1px solid #d8e2f0;
}

.home-contact:first-child {
  border-left: 0;
}

.home-contact b {
  color: #001f62;
  font-size: 0.74rem;
  line-height: 1.15;
}

.home-contact a {
  color: #1f63c4;
  font-size: 0.68rem;
  line-height: 1.2;
  text-decoration: none;
  white-space: nowrap;
}

.home-contact a:hover,
.home-contact a:focus-visible {
  text-decoration: underline;
}

/* Sector Data uses the same visual shell as the landing page. */
.sector-home-page {
  min-height: 100vh;
  overflow-x: hidden;
  background: #eef2f8;
}

.sector-home-shell {
  min-height: 100vh;
  display: grid;
  grid-template-rows: auto 1fr auto;
  background:
    radial-gradient(circle at 50% 30%, rgba(255, 255, 255, 0.74), rgba(238, 242, 248, 0) 42%),
    #eef2f8;
}

.sector-home-back {
  display: grid;
  flex: 0 0 38px;
  width: 38px;
  height: 38px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 50%;
  background: rgba(91, 137, 213, 0.25);
  color: #ffffff;
  text-decoration: none;
  transition: background 160ms ease, transform 160ms ease;
}

.sector-home-back:hover,
.sector-home-back:focus-visible {
  background: rgba(91, 137, 213, 0.42);
  outline: none;
  transform: translateX(-2px);
}

.sector-home-back span {
  margin-top: -3px;
  font-family: Georgia, serif;
  font-size: 34px;
  line-height: 1;
}

.sector-home-page .home-header.product-header-mode {
  min-height: 132px;
  flex-wrap: wrap;
  align-content: center;
  padding-bottom: 0;
}

.sector-home-page .home-header.product-header-mode .home-brand-copy {
  flex: 1 1 420px;
}

.sector-home-page .home-header.product-header-mode .home-brand-copy strong {
  font-size: clamp(1.25rem, 2vw, 1.65rem);
}

.sector-detail-header-meta {
  display: grid;
  justify-items: end;
  gap: 3px;
  margin-left: auto;
  text-align: right;
}

.sector-detail-header-meta[hidden],
.sector-detail-tabs[hidden] {
  display: none;
}

.sector-detail-header-meta strong {
  color: #ffffff;
  font-size: 0.86rem;
}

.sector-detail-header-meta span {
  color: #c5d5f0;
  font-size: 0.68rem;
}

.sector-detail-tabs {
  display: flex;
  flex: 1 0 100%;
  min-height: 44px;
  align-items: stretch;
  padding-left: 24px;
}

.sector-detail-tabs button {
  position: relative;
  min-width: 150px;
  padding: 0 18px;
  border: 0;
  background: transparent;
  color: #8eafe0;
  cursor: pointer;
  font: inherit;
  font-size: 0.78rem;
  font-weight: 850;
}

.sector-detail-tabs button:hover,
.sector-detail-tabs button.active {
  color: #ffffff;
}

.sector-detail-tabs button.active::after {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 3px;
  background: #ffffff;
  content: "";
}

.sector-home-main {
  width: min(1480px, calc(100vw - 32px));
  margin: 0 auto;
  padding: 24px 0 30px;
}

.sector-home-main #hub-root {
  width: 100%;
}

.sector-home-page.sector-product-detail .sector-home-main {
  width: 100%;
  max-width: none;
  padding: 0;
}

.sector-home-page.sector-product-detail .sector-page-panel {
  width: 100%;
}

.sector-home-page .sector-page-panel {
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.sector-home-page .sector-page-panel > .panel-header {
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
  padding: 0;
  text-align: center;
}

.sector-home-page .sector-page-panel > .panel-header h2 {
  font-size: clamp(1.45rem, 2vw, 1.9rem);
  letter-spacing: -0.04em;
}

.sector-home-page .sector-page-panel > .panel-header .panel-subtitle {
  margin-top: 7px;
  font-size: 0.9rem;
}

@media (max-width: 760px) {
  .sector-home-main {
    width: min(100% - 20px, 1360px);
    padding: 20px 0 34px;
  }

  .sector-home-page .sector-page-panel {
    padding: 20px 10px 12px;
  }
}

@media (max-width: 820px) {
  .home-main {
    align-content: start;
    padding-top: 48px;
  }

  .home-dashboard-grid {
    grid-template-columns: 1fr;
    width: min(420px, 100%);
  }

  .home-dashboard-card {
    min-height: 240px;
  }

  .home-contact-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    width: 100%;
    gap: 0;
  }

  .home-contact {
    padding: 0 10px;
  }

  .home-contact a {
    font-size: 0.61rem;
  }
}

@media (max-width: 620px) {
  .home-footer {
    padding-top: 18px;
    padding-bottom: 18px;
  }

  .home-contact-grid {
    grid-template-columns: 1fr;
    width: min(360px, 100%);
    gap: 9px;
  }

  .home-contact {
    padding: 0;
    border-left: 0;
  }

  .home-contact a {
    font-size: 0.66rem;
  }
}

@media (max-width: 520px) {
  .home-header {
    padding: 14px 18px;
  }

  .home-brand img {
    width: 72px;
  }

  .home-brand-copy strong {
    font-size: 1.05rem;
  }

  .home-brand-copy span {
    font-size: 0.68rem;
  }
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
}

body {
  background: linear-gradient(180deg, #eef3f9 0%, var(--bg) 100%);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 14px;
  -webkit-font-smoothing: antialiased;
  text-rendering: geometricPrecision;
}

.page-shell {
  min-height: 100vh;
}

.app-header {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 24px;
  padding: 22px 40px 24px;
  background:
    radial-gradient(circle at 14% 0%, rgba(255, 255, 255, 0.10) 0%, rgba(255, 255, 255, 0) 30%),
    linear-gradient(180deg, var(--navy) 0%, var(--navy-strong) 100%);
  color: #ffffff;
  border-bottom: 1px solid rgba(255, 255, 255, 0.16);
}

.brand-lockup {
  display: flex;
  align-items: center;
  gap: 18px;
}

.btg-logo-link {
  display: inline-flex;
  align-items: center;
  border-radius: 8px;
}

.btg-logo-link:focus-visible {
  outline: 2px solid rgba(255, 255, 255, 0.72);
  outline-offset: 4px;
}

.btg-logo-image {
  width: 205px;
  height: auto;
  object-fit: contain;
}

.header-kicker,
.panel-kicker {
  margin: 0 0 8px;
  color: rgba(255, 255, 255, 0.78);
  font: 800 0.72rem/1 var(--font-sans);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.brand-copy h1,
.panel-header h2 {
  margin: 0;
  letter-spacing: -0.03em;
}

.brand-copy h1 {
  font-size: clamp(1.9rem, 2.3vw, 2.55rem);
  font-weight: 900;
}

.header-note {
  margin: 8px 0 0;
  color: rgba(255, 255, 255, 0.76);
  max-width: 620px;
  line-height: 1.5;
}

.header-status {
  min-width: 210px;
  display: grid;
  gap: 4px;
  padding: 13px 15px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.06);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
  text-align: right;
}

.market-feed-box {
  min-width: 290px;
}

.status-label {
  color: rgba(255, 255, 255, 0.7);
  font: 800 0.72rem/1 var(--font-sans);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.header-status strong {
  font-size: 1.08rem;
}

.status-note {
  color: rgba(255, 255, 255, 0.74);
  font-size: 0.84rem;
}

.content-shell {
  width: min(1680px, calc(100vw - 32px));
  margin: 16px auto 34px;
  display: grid;
  gap: 18px;
}

.top-nav {
  position: sticky;
  top: 12px;
  z-index: 5;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 8px;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 10px 24px rgba(0, 31, 98, 0.08);
  backdrop-filter: blur(8px);
}

.top-nav-button {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 44px;
  padding: 0 16px;
  border: 1px solid #d7dfeb;
  border-radius: 10px;
  background: #ffffff;
  color: #41516e;
  font: 700 0.86rem/1 var(--font-sans);
  text-decoration: none;
  cursor: pointer;
  letter-spacing: 0.01em;
}

.top-nav-button.active,
.top-nav-button:hover,
.top-nav-button:focus-visible {
  background: var(--navy);
  border-color: var(--navy);
  color: #ffffff;
  outline: none;
}

.panel {
  padding: 21px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--panel);
  box-shadow: 0 12px 28px rgba(0, 31, 98, 0.07);
}

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

.panel-kicker-dark {
  color: #6a7ea1;
}

.panel-subtitle {
  margin: 8px 0 0;
  color: var(--muted);
  line-height: 1.5;
  max-width: 780px;
}

h1,
h2,
h3,
h4,
th,
button,
select,
input {
  font-family: var(--font-sans);
}

h2,
h3,
h4 {
  color: var(--navy);
  font-weight: 900;
  letter-spacing: -0.025em;
}

.panel-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 30px;
  padding: 0 12px;
  border-radius: 999px;
  background: #e6eefb;
  color: var(--navy);
  font: 800 0.78rem/1 var(--font-sans);
}

.hero-grid,
.macro-grid,
.ownership-grid,
.subsector-grid {
  display: grid;
  gap: 14px;
}

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

.hero-grid-three {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-bottom: 16px;
}

.hero-card,
.macro-card,
.ownership-card,
.subsector-card,
.module-card {
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: linear-gradient(180deg, #fbfdff 0%, var(--panel-soft) 100%);
}

.table-module {
  padding: 0;
}

.hero-label {
  display: block;
  margin-bottom: 10px;
  color: var(--muted);
  font: 800 0.74rem/1 var(--font-sans);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.hero-card strong,
.macro-card strong,
.ownership-card h3,
.subsector-card h3,
.module-card h3 {
  display: block;
  color: var(--navy);
}

.hero-card strong {
  font-size: 1.12rem;
  line-height: 1.35;
}

.hero-card p,
.module-note,
.macro-card span,
.ownership-card p,
.subsector-card p {
  margin: 10px 0 0;
  color: var(--muted);
  line-height: 1.55;
}

.module-topline {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.table-toolbar {
  display: grid;
  gap: 14px;
  margin-bottom: 16px;
}

.table-toolbar-split {
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  gap: 18px;
}

.secondary-action {
  min-height: 40px;
  padding: 0 16px;
  border: 1px solid #cdd8eb;
  border-radius: 999px;
  background: #ffffff;
  color: var(--navy);
  font: 700 0.88rem/1 var(--font-sans);
  cursor: pointer;
}

.secondary-action:hover,
.secondary-action:focus-visible {
  border-color: var(--navy);
  outline: none;
}

.status-banner {
  margin: 0 0 16px;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid #d6e2f5;
  background: #f5f8fd;
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 700;
}

.status-banner[data-tone="success"] {
  border-color: #c8e7d2;
  background: #eff9f2;
  color: #1a7f42;
}

.status-banner[data-tone="error"] {
  border-color: #f0c8c8;
  background: #fff3f3;
  color: #a53b3b;
}

.table-context-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin: 0 0 16px;
  padding: 10px 14px;
  border: 1px solid #e1e8f4;
  border-radius: 12px;
  background: #f8fbff;
  color: var(--muted);
  font-size: 0.88rem;
  font-weight: 700;
}

.filter-block {
  display: grid;
  gap: 14px;
  margin: 0;
}

.filter-block-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
}

.filter-label {
  display: block;
  margin-bottom: 6px;
  color: var(--muted);
  font: 800 0.74rem/1 var(--font-sans);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.filter-block-header strong {
  color: var(--navy);
  font-size: 1.1rem;
}

.filter-counter {
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 700;
}

.filter-chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.filter-chip {
  min-height: 40px;
  padding: 0 16px;
  border: 1px solid #cdd8eb;
  border-radius: 999px;
  background: #ffffff;
  color: var(--muted);
  font: 700 0.9rem/1 var(--font-sans);
  cursor: pointer;
}

.filter-chip.active,
.filter-chip:hover,
.filter-chip:focus-visible {
  background: var(--navy);
  border-color: var(--navy);
  color: #ffffff;
  outline: none;
}

.metric-chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 0 0 18px;
}

.metric-chip {
  min-height: 38px;
  padding: 0 14px;
  border: 1px solid #cdd8eb;
  border-radius: 999px;
  background: #ffffff;
  color: var(--muted);
  font: 700 0.88rem/1 var(--font-sans);
  cursor: pointer;
}

.metric-chip.active,
.metric-chip:hover,
.metric-chip:focus-visible {
  background: #e6eefb;
  border-color: #9cb6e6;
  color: var(--navy);
  outline: none;
}

.metric-toolbar-block {
  display: grid;
  gap: 8px;
  min-width: 250px;
}

.metric-toolbar-block .metric-chip-row {
  margin: 0;
  justify-content: flex-end;
}

.market-summary-strip {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 14px;
  margin: 0 0 16px;
}

.market-summary-card {
  padding: 16px 18px;
  border: 1px solid #d9e2f0;
  border-radius: 14px;
  background: linear-gradient(180deg, #ffffff 0%, #f5f8fd 100%);
}

.market-summary-label {
  display: block;
  margin-bottom: 8px;
  color: var(--muted);
  font: 800 0.72rem/1 var(--font-sans);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.market-summary-value {
  display: block;
  color: var(--navy);
  font-size: 1.16rem;
  line-height: 1.25;
}

.market-summary-note {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.4;
}

.market-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(360px, 0.8fr);
  gap: 16px;
}

.data-table-shell {
  overflow-x: auto;
  border: 1px solid #cfd9ea;
  border-radius: 10px;
  background: #ffffff;
}

.comp-table-shell,
.performance-table-shell {
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.75);
}

.data-table {
  width: 100%;
  min-width: 980px;
  border-collapse: collapse;
  font-size: 0.86rem;
}

.comp-table {
  min-width: 1520px;
  font-size: 0.88rem;
}

.performance-table {
  min-width: 900px;
}

.data-table th,
.data-table td {
  padding: 9px 11px;
  border-bottom: 1px solid #e7eef8;
  text-align: left;
  white-space: nowrap;
}

.data-table th {
  background: var(--navy);
  color: #ffffff;
  border-bottom: 1px solid #153a87;
  font-weight: 900;
  letter-spacing: -0.01em;
}

.data-table td {
  font-weight: 500;
}

.comp-table thead th {
  text-align: center;
  vertical-align: middle;
}

.comp-table thead tr:nth-child(2) th {
  background: #4d8bd8;
  color: #ffffff;
}

.comp-table thead th[rowspan="2"] {
  text-align: left;
}

.comp-table tbody td {
  text-align: center;
  vertical-align: middle;
}

.comp-table tbody td.company-cell {
  text-align: left;
}

.comp-table thead tr:first-child th:nth-child(2),
.comp-table thead tr:first-child th:nth-child(3),
.comp-table thead tr:first-child th:nth-child(4),
.comp-table thead tr:first-child th:nth-child(5),
.comp-table thead tr:first-child th:nth-child(6) {
  border-left: 3px solid rgba(255, 255, 255, 0.16);
}

.performance-table thead th {
  text-align: left;
}

.table-sort-button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  padding: 0;
  border: 0;
  background: transparent;
  color: #ffffff;
  font: inherit;
  font-weight: 800;
  cursor: pointer;
}

.table-sort-button::after {
  content: "↕";
  margin-left: auto;
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.8rem;
  line-height: 1;
}

.table-sort-button:hover::after,
.table-sort-button:focus-visible::after,
.table-sort-button.active::after {
  color: rgba(255, 255, 255, 0.92);
}

.table-sort-button.active[data-direction="asc"]::after {
  content: "↑";
}

.table-sort-button.active[data-direction="desc"]::after {
  content: "↓";
}

.table-sort-button:focus-visible {
  outline: 0;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.table-sort-button {
  justify-content: space-between;
  gap: 10px;
  min-height: 28px;
}

.table-sort-button::after {
  content: none;
}

.table-sort-button .sort-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  flex: 0 0 18px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  color: rgba(255, 255, 255, 0.68);
  font-size: 0.74rem;
  line-height: 1;
  transition: background 120ms ease, color 120ms ease, transform 120ms ease;
}

.table-sort-button .sort-icon::before {
  content: "↕";
}

.table-sort-button:hover .sort-icon,
.table-sort-button:focus-visible .sort-icon,
.table-sort-button.active .sort-icon {
  background: rgba(255, 255, 255, 0.2);
  color: rgba(255, 255, 255, 0.96);
}

.table-sort-button.active[data-direction="asc"] .sort-icon::before {
  content: "↑";
}

.table-sort-button.active[data-direction="desc"] .sort-icon::before {
  content: "↓";
}

.table-sort-button.active .sort-icon {
  transform: scale(1.04);
}

.table-sort-button > span:first-child {
  flex: 1 1 auto;
  min-width: 0;
  text-align: left;
}

.table-sort-button .sort-icon {
  margin-left: auto;
  font-weight: 800;
  letter-spacing: 0;
}

.table-sort-button .sort-icon::before,
.table-sort-button.active[data-direction="asc"] .sort-icon::before,
.table-sort-button.active[data-direction="desc"] .sort-icon::before {
  content: none !important;
}

.performance-table th {
  vertical-align: middle;
}

.performance-table th .table-sort-button {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 6px;
  width: 100%;
  min-height: 30px;
}

.performance-table th .table-sort-button::before,
.performance-table th .table-sort-button::after,
.performance-table th .table-sort-button .sort-icon::before,
.performance-table th .table-sort-button .sort-icon::after {
  content: none !important;
  display: none !important;
}

.performance-table th .table-sort-button > span:first-child {
  order: 2;
  display: inline-block;
  flex: 0 1 auto;
  min-width: 0;
  text-align: left;
}

.performance-table th .table-sort-button .sort-icon {
  order: 1;
  margin-left: 0;
  width: 18px;
  height: 18px;
  flex: 0 0 18px;
  font-size: 0.72rem;
  font-weight: 800;
}

.performance-table th .table-sort-button.active .sort-icon {
  transform: scale(1.04);
}

.data-table tbody tr:hover {
  background: #f7faff;
}

.comp-table tbody tr.summary-row:hover,
.comp-table tbody tr.median-row:hover {
  background: transparent;
}

.empty-table-cell {
  color: var(--muted);
  font-weight: 700;
}

.company-cell {
  min-width: 170px;
  font-weight: 700;
}

.summary-row {
  background: #d8d8d8;
  font-weight: 800;
}

.summary-row td,
.median-row td {
  color: #0c2045;
}

.median-row {
  background: #c8c8c8;
  font-weight: 800;
}

.positive-cell {
  color: #0f8c4b;
  font-weight: 700;
}

.negative-cell {
  color: #b23b3b;
  font-weight: 700;
}

.performance-table td:nth-child(1),
.performance-table td:nth-child(2),
.performance-table td:nth-child(4),
.performance-table td:nth-child(5),
.performance-table td:nth-child(6),
.performance-table td:nth-child(7) {
  white-space: nowrap;
}

.performance-chart-module {
  display: grid;
  gap: 16px;
  margin-top: 18px;
}

.chart-stack {
  display: grid;
  gap: 18px;
}

.chart-module-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
}

.chart-module-header strong {
  display: block;
  color: var(--navy);
  font-size: 1.08rem;
}

.chart-module-note {
  max-width: 760px;
  margin: 8px 0 0;
  color: var(--muted);
  line-height: 1.5;
}

.chart-window-row {
  justify-content: flex-start;
  flex-wrap: wrap;
  margin: 0;
}

.chart-controls-shell {
  padding: 14px 18px;
  border: 1px solid #dbe5f4;
  border-radius: 16px;
  background: linear-gradient(180deg, #ffffff 0%, #f7fafe 100%);
}

.chart-controls-grid {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 14px 18px;
}

.chart-control-field {
  display: grid;
  gap: 8px;
  flex: 0 0 220px;
  max-width: 220px;
}

.chart-controls-grid .metric-toolbar-block {
  flex: 1 1 540px;
  min-width: min(540px, 100%);
}

.chart-controls-grid .metric-chip-row {
  row-gap: 10px;
}

.chart-select,
.chart-date-input {
  min-height: 44px;
  padding: 0 14px;
  border: 1px solid #cbd7ea;
  border-radius: 12px;
  background: #ffffff;
  color: var(--text);
  font: 700 0.92rem/1 var(--font-sans);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

.chart-select:focus-visible,
.chart-date-input:focus-visible {
  outline: 2px solid rgba(11, 45, 114, 0.18);
  border-color: #9fb8e3;
}

.chart-panel {
  display: grid;
  gap: 16px;
  padding: 18px 18px 20px;
  border: 1px solid #d7e1f0;
  border-radius: 18px;
  background: #ffffff;
  box-shadow: 0 10px 24px rgba(12, 32, 69, 0.05);
}

.chart-panel-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  padding-bottom: 12px;
  border-bottom: 1px solid #e4ecf7;
}

.chart-header-values {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  flex-wrap: wrap;
  max-width: 42%;
}

.chart-value-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 34px;
  padding: 8px 12px;
  border: 1px solid #cdd9ee;
  border-radius: 10px;
  background: #f5f8fd;
  color: #10326b;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.2;
  text-align: right;
}

.chart-panel-header strong {
  display: block;
  color: var(--navy);
  font-size: 1.08rem;
}

.chart-panel-note {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.45;
}

.chart-panel-toolbar {
  display: flex;
  align-items: flex-start;
  justify-content: flex-start;
  margin: -2px 0 14px;
}

.chart-panel-control {
  max-width: 320px;
}

.chart-panel-toolbar-split {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 12px 14px;
  padding: 12px 14px;
  border: 1px solid #e3ebf7;
  border-radius: 14px;
  background: linear-gradient(180deg, #fbfcff 0%, #f5f8fd 100%);
}

.chart-panel-toolbar-split .chart-panel-control {
  flex: 0 0 180px;
  max-width: 180px;
}

.chart-panel-toolbar-split .chart-focus-control {
  flex: 1 1 300px;
  max-width: 320px;
  min-width: 220px;
}

.chart-panel-toolbar-split .chart-date-control {
  flex: 0 0 152px;
  max-width: 152px;
}

.chart-window-toolbar {
  flex: 1 1 420px;
  min-width: min(420px, 100%);
}

.chart-window-toolbar .chart-window-row {
  gap: 8px;
  row-gap: 8px;
}

.performance-controls-bar {
  align-items: flex-end;
}

.price-controls-bar {
  align-items: flex-start;
}

.price-controls-bar .chart-focus-control {
  flex: 1 1 100%;
  max-width: 100%;
}

.price-controls-bar .chart-date-control {
  flex: 0 0 152px;
  max-width: 152px;
}

.price-controls-bar .chart-window-toolbar {
  flex: 1 1 420px;
}

.chart-panel-toolbar-split .filter-label {
  margin-bottom: 5px;
  font-size: 0.68rem;
  letter-spacing: 0.05em;
}

.chart-panel-toolbar-split .chart-select,
.chart-panel-toolbar-split .chart-date-input {
  min-height: 40px;
  padding: 0 12px;
  border-radius: 10px;
  font-size: 0.88rem;
}

.chart-panel-toolbar-split .chart-window-chip {
  min-height: 36px;
  padding: 0 12px;
  font-size: 0.82rem;
}

.performance-chart-shell {
  position: relative;
  overflow: hidden;
  border: 1px solid #cfdaeb;
  border-radius: 16px;
  background: linear-gradient(180deg, #ffffff 0%, #f6f9fe 100%);
}

.performance-chart-svg {
  display: block;
  width: 100%;
  height: 440px;
  cursor: crosshair;
}

.price-chart-svg {
  height: 340px;
}

.chart-tooltip {
  position: absolute;
  top: 18px;
  left: 18px;
  z-index: 3;
  width: min(360px, calc(100% - 36px));
  max-height: calc(100% - 36px);
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 14px 16px;
  border: 1px solid #cad7eb;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 18px 32px rgba(12, 32, 69, 0.16);
  backdrop-filter: blur(8px);
  pointer-events: auto;
}

.chart-tooltip-title {
  display: block;
  margin-bottom: 10px;
  color: var(--navy);
  font-size: 0.95rem;
  font-weight: 800;
}

.chart-tooltip-list {
  display: grid;
  gap: 6px;
}

.chart-tooltip-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  font-size: 0.86rem;
}

.chart-tooltip-row strong {
  color: var(--text);
}

.chart-tooltip-row span {
  font-weight: 800;
}

.chart-meta-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.chart-meta-note {
  color: var(--muted);
  font-size: 0.88rem;
  font-weight: 700;
}

.chart-selection-card {
  display: grid;
  gap: 14px;
  padding: 16px;
  border: 1px solid #dbe5f4;
  border-radius: 16px;
  background: linear-gradient(180deg, #f9fbff 0%, #f3f7fd 100%);
}

.chart-selection-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.chart-selection-header strong {
  color: var(--navy);
  font-size: 1.02rem;
}

.chart-selection-note {
  color: var(--muted);
  font-size: 0.88rem;
  font-weight: 700;
  text-align: right;
}

.chart-selection-table-shell {
  background: #ffffff;
}

.chart-selection-table {
  min-width: 640px;
}

.chart-placeholder {
  min-height: 260px;
  display: grid;
  place-items: center;
  border: 1px dashed #bfd0ea;
  border-radius: 14px;
  background: linear-gradient(180deg, #f9fbff 0%, #f1f6fd 100%);
  text-align: center;
}

.chart-placeholder span {
  display: block;
  color: var(--navy);
  font-size: 1.1rem;
  font-weight: 800;
}

.chart-placeholder small {
  display: block;
  margin-top: 8px;
  color: var(--muted);
}

.contacts-footer {
  width: min(1660px, calc(100vw - 32px));
  margin: 0 auto 34px;
  border-top: 1px solid #dbe5f4;
  border-bottom: 1px solid #dbe5f4;
  border-left: 0;
  border-right: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  overflow: hidden;
}

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

.contact-card {
  display: grid;
  align-content: start;
  gap: 4px;
  min-height: 72px;
  padding: 14px 18px;
  border-right: 1px solid #dbe5f4;
  background: transparent;
}

.contact-card:last-child {
  border-right: 0;
}

.contact-name {
  color: var(--navy);
  font-size: 0.96rem;
  font-weight: 800;
  line-height: 1.15;
}

.contact-link {
  color: #5e7396;
  font-size: 0.84rem;
  font-weight: 600;
  line-height: 1.25;
  text-decoration: none;
  word-break: break-word;
}

.contact-link:hover,
.contact-link:focus-visible {
  color: var(--navy);
  text-decoration: underline;
  outline: none;
}

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

.macro-card {
  min-height: 116px;
  display: grid;
  gap: 8px;
}

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

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

.sector-stack {
  display: grid;
  gap: 16px;
}

.sector-block {
  display: grid;
  gap: 14px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: linear-gradient(180deg, #fbfdff 0%, var(--panel-soft) 100%);
}

.sector-block-header strong {
  display: block;
  color: var(--navy);
  font-size: 1.04rem;
}

.sector-block-header p {
  margin: 8px 0 0;
  color: var(--muted);
  line-height: 1.5;
}

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

.sector-mini-card {
  display: grid;
  gap: 8px;
  padding: 16px;
  border: 1px solid #dbe5f4;
  border-radius: 14px;
  background: #ffffff;
}

.sector-mini-card strong {
  color: var(--navy);
  font-size: 0.98rem;
}

.sector-mini-card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.45;
}

.sector-page-panel {
  background:
    radial-gradient(circle at 100% 0%, rgba(37, 105, 194, 0.055), transparent 28%),
    #ffffff;
}

.sector-catalog {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-top: 0;
}

.sector-catalog-group {
  display: grid;
  align-content: start;
  gap: 9px;
  min-height: 0;
  padding: 12px;
  border: 1px dashed #9bb2d1;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.66);
}

.sector-catalog-group:first-child {
  grid-column: auto;
  min-height: 0;
}

.sector-catalog-group-header {
  display: block;
  padding-bottom: 8px;
  border-bottom: 1px solid #dbe4f1;
}

.sector-catalog-group-header > div {
  display: flex;
  align-items: baseline;
  gap: 10px;
}

.sector-catalog-index {
  color: #7a91b2;
  font-size: 0.69rem;
  font-weight: 900;
  letter-spacing: 0.08em;
}

.sector-catalog-group-header h3 {
  margin: 0;
  color: #001f62;
  font-size: 0.96rem;
}

.sector-catalog-group-header p {
  display: none;
}

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

.sector-dashboard-tile {
  position: relative;
  display: flex;
  min-height: 47px;
  align-items: center;
  gap: 6px;
  padding: 8px 9px;
  overflow: hidden;
  border: 1px solid #d6e0ee;
  border-radius: 8px;
  background: #ffffff;
}

.sector-dashboard-tile::before {
  position: absolute;
  top: 0;
  right: 0;
  left: auto;
  width: 3px;
  height: 100%;
  background: #c5d2e4;
  content: "";
}

.sector-dashboard-tile.available {
  border-color: #9bbbe4;
  cursor: pointer;
  box-shadow: 0 7px 18px rgba(0, 31, 98, 0.07);
  transition: border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

.sector-dashboard-tile.available::before {
  background: #1768c4;
}

.sector-dashboard-tile.available:hover,
.sector-dashboard-tile.available:focus-visible {
  border-color: #1768c4;
  outline: none;
  box-shadow: 0 13px 25px rgba(0, 31, 98, 0.13);
  transform: translateY(-2px);
}

.sector-dashboard-tile.pending {
  background: #f8fafc;
}

.sector-dashboard-status {
  display: none;
}

.sector-dashboard-tile.available .sector-dashboard-status {
  background: #e3effd;
  color: #0758b7;
}

.sector-dashboard-tile strong {
  flex: 1 1 auto;
  color: #09275f;
  font-size: 0.75rem;
  line-height: 1.15;
}

.sector-dashboard-tile.pending strong {
  color: #09275f;
}

.sector-dashboard-tile p {
  display: none;
}

.sector-dashboard-action {
  flex: 0 0 auto;
  margin: 0;
  color: #8290a5;
  font-size: 0.63rem;
  font-weight: 850;
}

.sector-dashboard-tile.available .sector-dashboard-action {
  color: #0758b7;
}

.sector-dashboard-tile.loading {
  opacity: 0.7;
  pointer-events: none;
  cursor: wait;
}

.sector-dashboard-tile.loading .sector-dashboard-action {
  display: flex;
  align-items: center;
  gap: 4px;
  color: #0758b7;
}

.sector-dashboard-tile.loading .sector-dashboard-action::after {
  content: "";
  display: inline-block;
  width: 10px;
  height: 10px;
  border: 2px solid #c2d4ec;
  border-top-color: #0758b7;
  border-radius: 50%;
  animation: sector-tile-spin 0.7s linear infinite;
}

@keyframes sector-tile-spin {
  to { transform: rotate(360deg); }
}

@media (max-width: 1000px) {
  .sector-catalog {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .sector-catalog-group:first-child {
    grid-column: auto;
  }

  .sector-catalog-group:first-child .sector-dashboard-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 650px) {
  .sector-catalog-group-header {
    grid-template-columns: 1fr;
    gap: 7px;
    align-items: start;
  }

  .sector-catalog-group-header p {
    text-align: left;
  }

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

.subsector-card header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 10px;
}

.subsector-card header span {
  color: var(--muted);
  font-size: 0.84rem;
  font-weight: 700;
}

.subsector-card ul {
  margin: 14px 0 0;
  padding-left: 18px;
  color: var(--text);
  line-height: 1.6;
}

@media (max-width: 1240px) {
  .top-nav {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .market-summary-strip,
  .hero-grid,
  .hero-grid-three,
  .macro-grid,
  .ownership-grid,
  .subsector-grid,
  .market-grid {
    grid-template-columns: 1fr 1fr;
  }

  .table-toolbar-split {
    grid-template-columns: 1fr;
  }

  .metric-toolbar-block .metric-chip-row {
    justify-content: flex-start;
  }

  .chart-module-header,
  .chart-selection-header {
    flex-direction: column;
  }

  .chart-controls-grid {
    grid-template-columns: 1fr;
  }

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

  .chart-window-row {
    justify-content: flex-start;
  }

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

  .contact-card {
    min-height: auto;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .contact-card:last-child {
    border-bottom: 0;
  }
}

@media (max-width: 860px) {
  .app-header {
    flex-direction: column;
    align-items: flex-start;
    padding: 22px 20px;
  }

  .content-shell {
    width: min(100%, calc(100vw - 20px));
    margin: 14px auto 24px;
  }

  .top-nav {
    grid-template-columns: 1fr;
  }

  .hero-grid,
  .hero-grid-three,
  .macro-grid,
  .ownership-grid,
  .subsector-grid,
  .market-grid {
    grid-template-columns: 1fr;
  }

  .table-context-row,
  .filter-block-header {
    align-items: flex-start;
    flex-direction: column;
  }

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

  .module-topline {
    flex-direction: column;
  }

  .panel-header {
    flex-direction: column;
  }

  .performance-chart-svg {
    height: 360px;
  }

  .chart-meta-row {
    align-items: flex-start;
    flex-direction: column;
  }

  .chart-panel-header {
    flex-direction: column;
  }

  .chart-header-values {
    max-width: 100%;
    justify-content: flex-start;
  }

  .chart-panel-control {
    max-width: 100%;
    width: 100%;
  }

  .chart-panel-toolbar-split .chart-panel-control,
  .chart-window-toolbar {
    flex: 1 1 100%;
    max-width: 100%;
    min-width: 100%;
  }

  .chart-panel-toolbar-split {
    padding: 12px;
  }

  .chart-selection-note {
    text-align: left;
  }
}

/* Cheat Sheet internal product shell */
.cheat-sheet-page {
  min-width: 320px;
  min-height: 100vh;
  margin: 0;
  background: #e9eef6;
  color: #10254a;
}

.cheat-shell {
  width: min(100%, 1536px);
  min-height: 100vh;
  margin: 0 auto;
  background: #e9eef6;
  box-shadow: 0 0 36px rgba(0, 31, 98, 0.05);
}

.cheat-header {
  display: flex;
  align-items: center;
  min-height: 84px;
  padding: 0 24px;
  background: #001f62;
  color: #ffffff;
}

.cheat-back-button {
  display: grid;
  flex: 0 0 38px;
  width: 38px;
  height: 38px;
  margin-right: 16px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 50%;
  background: rgba(91, 137, 213, 0.25);
  color: #ffffff;
  text-decoration: none;
  transition: background 160ms ease, transform 160ms ease;
}

.cheat-back-button:hover {
  background: rgba(91, 137, 213, 0.42);
  transform: translateX(-2px);
}

.cheat-back-button span {
  margin-top: -3px;
  font-family: Georgia, serif;
  font-size: 34px;
  font-weight: 400;
  line-height: 1;
}

.cheat-logo-link {
  display: flex;
  align-items: center;
  padding-right: 18px;
  border-right: 1px solid rgba(255, 255, 255, 0.28);
}

.cheat-header-logo {
  display: block;
  width: 122px;
  height: auto;
  object-fit: contain;
}

.cheat-title-lockup {
  display: grid;
  gap: 2px;
  padding-left: 18px;
}

.cheat-title-lockup h1 {
  margin: 0;
  color: #ffffff;
  font-size: clamp(1.25rem, 2vw, 1.55rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.1;
}

.cheat-title-lockup p {
  margin: 0;
  color: #c5d5f0;
  font-size: 0.78rem;
  font-weight: 500;
}

.cheat-header-meta {
  display: grid;
  justify-items: end;
  gap: 6px;
  margin-left: auto;
  color: #c5d5f0;
  font-size: 0.7rem;
}

.cheat-live-note {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 9px;
  border: 1px solid rgba(31, 173, 107, 0.34);
  border-radius: 999px;
  background: rgba(31, 173, 107, 0.12);
  color: #8ff0bd;
  font-size: 0.68rem;
  font-weight: 900;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  white-space: nowrap;
}

.cheat-live-note::before {
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: #39d98a;
  box-shadow: 0 0 0 3px rgba(57, 217, 138, 0.16);
  content: "";
}

.cheat-header-meta button {
  min-height: 30px;
  padding: 0 13px;
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: 999px;
  background: transparent;
  color: #ffffff;
  cursor: pointer;
  font: inherit;
  font-size: 0.7rem;
  font-weight: 850;
}

.cheat-header-meta button:hover {
  background: #ffffff;
  color: #001f62;
}

.cheat-tabs {
  display: flex;
  align-items: stretch;
  min-height: 47px;
  padding: 0 24px;
  overflow: hidden;
  border-bottom: 1px solid rgba(255, 255, 255, 0.16);
  background: #001f62;
}

.cheat-tab {
  position: relative;
  flex: 0 1 auto;
  min-width: 0;
  padding: 0 21px;
  border: 0;
  background: transparent;
  color: #8eafe0;
  cursor: pointer;
  font: inherit;
  font-size: 0.88rem;
  font-weight: 700;
  transition: color 150ms ease, background 150ms ease;
}

.cheat-tab:hover {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.04);
}

.cheat-tab.active {
  color: #ffffff;
}

.cheat-tab.active::after {
  position: absolute;
  right: 0;
  bottom: -1px;
  left: 0;
  height: 3px;
  background: #ffffff;
  content: "";
}

.cheat-content {
  padding: 13px 24px 18px;
}

.cheat-content-card {
  min-height: 680px;
  overflow: hidden;
  border: 1px solid #d1dbe8;
  border-radius: 9px;
  background: #ffffff;
  box-shadow: 0 2px 8px rgba(0, 31, 98, 0.035);
}

.cheat-card-meta {
  padding: 17px 16px 4px;
  color: #59708f;
  font-size: 0.77rem;
  font-weight: 500;
}

.cheat-content-frame {
  display: block;
  width: 100%;
  min-height: 620px;
  border: 0;
  background: #ffffff;
}

.embedded-dashboard-page {
  min-width: 1020px;
  min-height: 0;
  margin: 0;
  padding: 16px 16px 8px;
  overflow-x: hidden;
  overflow-y: auto;
  background: #ffffff;
  scrollbar-width: none;
}

.embedded-dashboard-shell,
.embedded-dashboard-shell body {
  overflow-x: hidden;
  overflow-y: auto;
  scrollbar-width: none;
}

.embedded-dashboard-shell::-webkit-scrollbar,
.embedded-dashboard-shell body::-webkit-scrollbar,
.embedded-dashboard-page::-webkit-scrollbar {
  width: 0;
  height: 0;
}

.embedded-dashboard-shell::-webkit-scrollbar-corner,
.embedded-dashboard-shell body::-webkit-scrollbar-corner,
.embedded-dashboard-page::-webkit-scrollbar-corner {
  background: transparent;
}

.embedded-dashboard-page #hub-root {
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 0;
}

.embedded-dashboard-page .embedded-data-panel {
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: #ffffff;
  box-shadow: none;
}

.embedded-dashboard-page .dataset-section:first-child,
.embedded-dashboard-page .comp-toolbar:first-child {
  margin-top: 0;
}

.embedded-dashboard-page .dataset-section {
  box-shadow: none;
}

.embedded-dashboard-page .dataset-section:last-child {
  margin-bottom: 0;
}

.embedded-dashboard-page .comp-dynamic-table-shell {
  overflow-x: hidden;
}

.embedded-dashboard-page .comp-dynamic-table {
  width: 100%;
  min-width: 0;
  table-layout: fixed;
}

.embedded-dashboard-page .comp-dynamic-table th,
.embedded-dashboard-page .comp-dynamic-table td {
  min-width: 0;
  padding: 9px 4px;
  overflow: hidden;
  font-size: clamp(0.62rem, 0.72vw, 0.76rem);
  line-height: 1.18;
  text-overflow: clip;
}

.embedded-dashboard-page .comp-dynamic-table th {
  height: 44px;
  padding: 7px 3px;
  white-space: normal;
  overflow-wrap: anywhere;
}

.embedded-dashboard-page .comp-dynamic-table td {
  white-space: nowrap;
}

.embedded-dashboard-page .comp-dynamic-table th:nth-child(1),
.embedded-dashboard-page .comp-dynamic-table td:nth-child(1) {
  width: 17%;
  min-width: 0;
  max-width: none;
}

.embedded-dashboard-page .comp-dynamic-table th:nth-child(2),
.embedded-dashboard-page .comp-dynamic-table td:nth-child(2) {
  width: 5.5%;
  min-width: 0;
}

.embedded-dashboard-page .comp-dynamic-table th:nth-child(3),
.embedded-dashboard-page .comp-dynamic-table td:nth-child(3),
.embedded-dashboard-page .comp-dynamic-table th:nth-child(4),
.embedded-dashboard-page .comp-dynamic-table td:nth-child(4) {
  width: 6.2%;
  min-width: 0;
}

.embedded-dashboard-page .comp-dynamic-table th:nth-child(5),
.embedded-dashboard-page .comp-dynamic-table td:nth-child(5),
.embedded-dashboard-page .comp-dynamic-table th:nth-child(6),
.embedded-dashboard-page .comp-dynamic-table td:nth-child(6) {
  width: 7%;
  min-width: 0;
}

.embedded-dashboard-page .comp-dynamic-table th:nth-child(7),
.embedded-dashboard-page .comp-dynamic-table td:nth-child(7),
.embedded-dashboard-page .comp-dynamic-table th:nth-child(8),
.embedded-dashboard-page .comp-dynamic-table td:nth-child(8) {
  width: 6.1%;
  min-width: 0;
}

.embedded-dashboard-page .comp-dynamic-table th:nth-child(9),
.embedded-dashboard-page .comp-dynamic-table td:nth-child(9),
.embedded-dashboard-page .comp-dynamic-table th:nth-child(10),
.embedded-dashboard-page .comp-dynamic-table td:nth-child(10) {
  width: 7.3%;
  min-width: 0;
}

.embedded-dashboard-page .comp-dynamic-table th:nth-child(11),
.embedded-dashboard-page .comp-dynamic-table td:nth-child(11),
.embedded-dashboard-page .comp-dynamic-table th:nth-child(17),
.embedded-dashboard-page .comp-dynamic-table td:nth-child(17) {
  width: 6.2%;
  min-width: 0;
}

.embedded-dashboard-page .comp-dynamic-table th:nth-child(n+12):nth-child(-n+16),
.embedded-dashboard-page .comp-dynamic-table td:nth-child(n+12):nth-child(-n+16) {
  width: 4.2%;
  min-width: 0;
}

.embedded-dashboard-page .comp-dynamic-table .company-cell {
  padding-left: 10px;
  white-space: normal;
}

.embedded-dashboard-page .comp-dynamic-table .sticky-col {
  position: static;
}

.embedded-dashboard-page .comp-dynamic-table td.sticky-col {
  background: transparent;
}

.embedded-dashboard-page .comp-dynamic-table th.sticky-col {
  position: sticky;
  z-index: 4;
}

.embedded-dashboard-page table tbody tr:nth-child(even):not(.subsector-group-row):not(.median-row) {
  background: #f7f9fc;
}

.embedded-dashboard-page table tbody tr:nth-child(odd):not(.subsector-group-row):not(.median-row) {
  background: #ffffff;
}

.embedded-dashboard-page .comp-dynamic-table .subsector-group-row td {
  padding-top: 10px;
  padding-bottom: 10px;
  border-top: 2px solid #7fa6d9;
  border-bottom: 1px solid #aec5e3;
  background: #d9e7f7;
  color: #001f62;
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.075em;
}

.embedded-dashboard-page .comp-dynamic-table .median-row td {
  border-top: 1px solid #9aa9bd;
  border-bottom: 2px solid #7487a3;
  background: #e8edf4;
  color: #19345f;
  font-weight: 800;
}

.embedded-dashboard-page .comp-dynamic-table .median-row td:first-child {
  color: #001f62;
  text-transform: uppercase;
  letter-spacing: 0.035em;
}

.embedded-dashboard-page .comp-dynamic-table tbody tr:not(.subsector-group-row):not(.median-row):hover td {
  background: #edf4fc;
}

@media (max-width: 760px) {
  .cheat-header {
    min-height: 78px;
    padding: 0 14px;
  }

  .cheat-back-button {
    margin-right: 10px;
  }

  .cheat-header-logo {
    width: 98px;
  }

  .cheat-logo-link {
    padding-right: 11px;
  }

  .cheat-title-lockup {
    padding-left: 11px;
  }

  .cheat-title-lockup p {
    font-size: 0.67rem;
  }

  .cheat-tabs {
    padding: 0 8px;
  }

  .cheat-tab {
    flex: 1 1 0;
    padding: 0 15px;
    white-space: normal;
  }

  .cheat-content {
    padding: 10px 8px 20px;
  }

  .cheat-content-card {
    overflow-x: auto;
  }
}

.inflation-dashboard {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.inflation-page-header {
  align-items: flex-start;
}

.inflation-description {
  margin: 8px 0 0;
  color: #536b91;
  font-size: 0.92rem;
  max-width: 760px;
}

.inflation-filter-bar {
  position: sticky;
  top: 10px;
  z-index: 8;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: end;
  padding: 12px;
  border: 1px solid #dbe6f5;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 12px 28px rgba(11, 45, 114, 0.08);
}

.inflation-filter-bar .toolbar-field {
  min-width: 150px;
}

.inflation-filter-bar .toolbar-field select,
.inflation-filter-bar .toolbar-field input {
  min-height: 34px;
}

.inflation-range-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding-bottom: 1px;
}

.inflation-toggle {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 34px;
  padding: 7px 10px;
  border: 1px solid #d5e1f1;
  border-radius: 999px;
  background: #f8fbff;
  color: var(--navy);
  font-size: 0.76rem;
  font-weight: 850;
}

.inflation-toggle input {
  accent-color: var(--navy);
}

.range-pill {
  border: 1px solid #c8d7ed;
  border-radius: 999px;
  background: #ffffff;
  color: var(--navy);
  cursor: pointer;
  font-size: 0.76rem;
  font-weight: 800;
  padding: 8px 11px;
}

.range-pill.active {
  border-color: var(--navy);
  background: var(--navy);
  color: #ffffff;
}

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

.inflation-kpi-card {
  display: flex;
  min-height: 118px;
  flex-direction: column;
  justify-content: space-between;
  gap: 7px;
  border: 1px solid #dde8f6;
  border-radius: 16px;
  background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
  padding: 13px 14px;
}

.inflation-kpi-card span {
  color: #587095;
  font-size: 0.74rem;
  font-weight: 900;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.inflation-kpi-card strong {
  color: var(--navy);
  font-size: 1.42rem;
  line-height: 1;
}

.inflation-kpi-card small {
  color: #3d557a;
  font-size: 0.78rem;
  line-height: 1.25;
}

.inflation-kpi-card em {
  color: #7c8faa;
  font-size: 0.72rem;
  font-style: normal;
}

.inflation-main-chart {
  min-height: 360px;
}

.inflation-main-chart .hub-chart-svg,
.inflation-two-column .hub-chart-svg {
  width: 100%;
  min-height: 280px;
}

.inflation-two-column {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(360px, 0.8fr);
  gap: 14px;
  align-items: stretch;
}

.inflation-two-column h4,
.inflation-main-chart h3 {
  margin: 0 0 8px;
  color: var(--navy);
}

.inflation-two-column .module-card {
  overflow: hidden;
}

.inflation-dashboard .data-table-shell {
  max-height: 520px;
  overflow: auto;
}

.inflation-dashboard .data-table th {
  position: sticky;
  top: 0;
  z-index: 2;
}

@media (max-width: 1280px) {
  .inflation-kpi-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .inflation-two-column {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 820px) {
  .inflation-filter-bar {
    position: static;
  }

  .inflation-kpi-grid {
    grid-template-columns: 1fr;
  }
}

#hub-root {
  display: grid;
  gap: 18px;
}

.panel-header-actions,
.section-block-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.dataset-update-pill {
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  min-height: 40px;
  padding: 7px 11px;
  border: 1px solid #d3dfef;
  border-radius: 12px;
  background: #f7faff;
  color: var(--navy);
  line-height: 1.15;
  box-shadow: 0 4px 12px rgba(0, 31, 98, 0.06);
}

.dataset-update-pill span {
  color: #647895;
  font-size: 0.66rem;
  font-weight: 900;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.dataset-update-pill strong {
  margin-top: 2px;
  color: var(--navy);
  font-size: 0.82rem;
  font-weight: 900;
  white-space: nowrap;
}

.dataset-update-pill small {
  margin-top: 2px;
  color: #647895;
  font-size: 0.7rem;
  font-weight: 700;
  max-width: 190px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ghost-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  text-align: center;
  padding: 0 16px;
  border: 1px solid transparent;
  border-radius: 999px;
  background: #edf3fc;
  color: var(--navy);
  font: 700 0.88rem/1 var(--font-sans);
  cursor: pointer;
}

.ghost-action:hover,
.ghost-action:focus-visible {
  border-color: #cdd8eb;
  background: #e4eefb;
  outline: none;
}

.dataset-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 16px;
  margin-top: 10px;
  color: var(--muted);
  font-size: 0.84rem;
}

.dataset-meta strong {
  color: var(--text);
}

.live-data-callout {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 12px;
  padding: 12px 16px;
  border: 1px solid #cfdced;
  border-radius: 14px;
  background: linear-gradient(90deg, #f4f8ff 0%, #ffffff 100%);
  color: var(--navy);
  box-shadow: 0 8px 20px rgba(0, 31, 98, 0.05);
}

.live-data-callout div {
  display: grid;
  gap: 3px;
}

.live-data-callout strong {
  font: 900 0.86rem/1.2 var(--font-sans);
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.live-data-callout span,
.live-data-callout small {
  color: #637795;
  font: 700 0.82rem/1.35 var(--font-sans);
}

.live-data-callout small {
  white-space: nowrap;
}

.mp-live-data-callout {
  margin-top: 10px;
}

.summary-card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 14px;
  margin-top: 16px;
}

.summary-card {
  padding: 16px 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: linear-gradient(180deg, #fcfdff 0%, #f6f9fe 100%);
}

.summary-card-label {
  display: block;
  margin-bottom: 10px;
  color: var(--muted);
  font: 800 0.74rem/1 var(--font-sans);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.summary-card-value {
  display: block;
  color: var(--navy);
  font-size: 1.24rem;
  line-height: 1.2;
  letter-spacing: -0.03em;
}

.summary-card-note {
  margin: 10px 0 0;
  color: var(--muted);
  line-height: 1.5;
}

.summary-card .dataset-meta {
  margin-top: 12px;
}

.summary-card-value.positive,
.data-table td.positive,
.hub-table td.positive,
.related-company-card .positive {
  color: #1a7f42;
  font-weight: 700;
}

.summary-card-value.negative,
.data-table td.negative,
.hub-table td.negative,
.related-company-card .negative {
  color: #c0392b;
  font-weight: 700;
}

.summary-card-value.neutral,
.data-table td.neutral,
.hub-table td.neutral,
.related-company-card .neutral {
  color: var(--text);
}

.dataset-section {
  margin-top: 18px;
}

.section-block-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  padding-bottom: 18px;
}

.section-block-header h3 {
  margin: 0;
  color: var(--navy);
  font-size: 1.08rem;
  letter-spacing: -0.02em;
}

.section-block-subtitle {
  margin: 8px 0 0;
  color: var(--muted);
  line-height: 1.55;
}

.detail-card {
  margin-top: 12px;
  padding: 16px 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: linear-gradient(180deg, #fbfdff 0%, #f6f9fe 100%);
}

.detail-card strong {
  color: var(--navy);
}

.detail-note {
  margin-top: 10px;
  color: var(--muted);
  line-height: 1.55;
}

.detail-bullet-list {
  margin: 0;
  padding-left: 18px;
  color: var(--text);
}

.detail-bullet-list li + li {
  margin-top: 8px;
}

.toolbar-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 16px;
}

.toolbar-field {
  min-width: 0;
  flex: 1 1 220px;
  display: grid;
  gap: 8px;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: #f7faff;
}

.toolbar-field.compact {
  flex: 0 1 210px;
}

.toolbar-field.chips-only {
  flex: 1 1 320px;
}

.toolbar-field span {
  color: var(--muted);
  font: 800 0.74rem/1 var(--font-sans);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.toolbar-field input,
.toolbar-field select {
  width: 100%;
  min-height: 42px;
  padding: 0 12px;
  border: 1px solid #cdd8eb;
  border-radius: 10px;
  background: #ffffff;
  color: var(--text);
  font: 600 0.92rem/1 var(--font-sans);
}

.toolbar-field input:focus-visible,
.toolbar-field select:focus-visible {
  outline: 2px solid rgba(11, 45, 114, 0.16);
  outline-offset: 1px;
}

.inline-chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.metric-chip {
  min-height: 34px;
  padding: 0 12px;
  border: 1px solid #cdd8eb;
  border-radius: 999px;
  background: #ffffff;
  color: var(--muted);
  font: 700 0.82rem/1 var(--font-sans);
  cursor: pointer;
}

.metric-chip.active,
.metric-chip:hover,
.metric-chip:focus-visible {
  background: var(--navy);
  border-color: var(--navy);
  color: #ffffff;
  outline: none;
}

.chart-panel-shell {
  margin-top: 12px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: linear-gradient(180deg, #fcfdff 0%, #f7faff 100%);
}

.hub-chart-svg {
  width: 100%;
  height: auto;
  display: block;
}

.chart-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

.legend-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 30px;
  padding: 0 10px;
  border-radius: 999px;
  background: #ffffff;
  border: 1px solid #d6e2f5;
  color: var(--text);
  font: 700 0.78rem/1 var(--font-sans);
}

.legend-dot {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  flex: 0 0 auto;
}

.chart-empty-state {
  margin-top: 12px;
  padding: 28px 18px;
  border: 1px dashed #cdd8eb;
  border-radius: var(--radius-md);
  color: var(--muted);
  text-align: center;
  background: #f8fbff;
}

.catalog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 14px;
  margin-top: 16px;
}

.catalog-card {
  position: relative;
  display: grid;
  gap: 14px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: linear-gradient(180deg, #fbfdff 0%, #f6f9fe 100%);
  transition: transform 160ms ease, box-shadow 160ms ease, border-color 160ms ease, background 160ms ease;
}

.catalog-card.clickable {
  cursor: pointer;
}

.catalog-card.clickable:hover,
.catalog-card.clickable:focus-within {
  transform: translateY(-3px);
  border-color: rgba(0, 31, 98, 0.34);
  background: linear-gradient(180deg, #ffffff 0%, #eef5ff 100%);
  box-shadow: 0 18px 34px rgba(0, 31, 98, 0.12);
}

.catalog-card.clickable:focus-visible {
  outline: 3px solid rgba(45, 108, 223, 0.22);
  outline-offset: 3px;
}

.catalog-card.active {
  border-color: rgba(11, 45, 114, 0.22);
  box-shadow:
    inset 0 0 0 1px rgba(11, 45, 114, 0.12),
    0 16px 30px rgba(0, 31, 98, 0.1);
}

.catalog-card-topline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.catalog-card-kicker {
  display: block;
  color: var(--muted);
  font: 800 0.72rem/1 var(--font-sans);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.catalog-card-arrow {
  flex: 0 0 auto;
  color: var(--navy);
  font-size: 0.78rem;
  font-weight: 950;
  opacity: 0.72;
  transition: transform 160ms ease, opacity 160ms ease;
}

.catalog-card.clickable:hover .catalog-card-arrow,
.catalog-card.clickable:focus-within .catalog-card-arrow {
  opacity: 1;
  transform: translateX(4px);
}

.catalog-card-body h3 {
  margin: 10px 0 8px;
  color: var(--navy);
  font-size: clamp(1.05rem, 1.2vw, 1.32rem);
  line-height: 1.14;
}

.catalog-card-body p {
  margin: 0;
  color: var(--muted);
  line-height: 1.55;
}

.catalog-card-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  padding-top: 2px;
}

.catalog-primary-action {
  box-shadow: 0 8px 16px rgba(0, 31, 98, 0.1);
}

.catalog-card.clickable:hover .catalog-primary-action,
.catalog-card.clickable:focus-within .catalog-primary-action {
  filter: brightness(1.04);
}

.pharma-dashboard-section {
  overflow: hidden;
  padding: 0 0 20px;
  border-color: #cfd9e8;
  border-radius: 10px;
  background: #eef2f8;
}

.sector-product-detail .pharma-dashboard-section {
  margin: 0;
  padding-bottom: 0;
  border: 0;
  border-radius: 0;
  background: #eef2f8;
}

.pharma-download-button {
  min-height: 30px;
  margin-top: 5px;
  padding: 0 13px;
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: 999px;
  background: transparent;
  color: #ffffff;
  cursor: pointer;
  font: inherit;
  font-size: 0.7rem;
  font-weight: 850;
}

.pharma-download-button:hover {
  background: #ffffff;
  color: #001f62;
}

.pharma-control-bar {
  display: flex;
  align-items: flex-end;
  gap: 12px;
  flex-wrap: wrap;
  padding: 14px;
  margin: 12px 0 16px;
  border: 1px solid rgba(0, 31, 98, 0.12);
  border-radius: 16px;
  background: rgba(247, 250, 255, 0.92);
}

.pharma-control-bar.redesigned {
  display: grid;
  grid-template-columns: minmax(330px, 1.15fr) minmax(360px, 1.2fr) minmax(310px, 1fr) auto;
  align-items: end;
  gap: 12px 16px;
  margin: 0;
  padding: 16px 24px;
  border: 0;
  border-bottom: 1px solid #d3dce9;
  border-radius: 0;
  background: #ffffff;
}

.pharma-filter-group {
  display: grid;
  gap: 6px;
  min-width: 0;
  padding: 0;
  border: 0;
  background: transparent;
}

.pharma-filter-group.primary {
  border: 0;
  background: transparent;
}

.pharma-filter-group.wide {
  grid-column: auto;
}

.pharma-control-bar.redesigned > .pharma-filter-group:nth-child(1) {
  grid-column: 1;
  grid-row: 1;
}

.pharma-control-bar.redesigned > .pharma-filter-group:nth-child(2) {
  grid-column: 2;
  grid-row: 1;
}

.pharma-control-bar.redesigned > .pharma-filter-group:nth-child(3) {
  grid-column: 3 / 5;
  grid-row: 1;
}

.pharma-control-bar.redesigned > .pharma-filter-group:nth-child(4) {
  grid-column: 1;
  grid-row: 2;
}

.pharma-control-bar.redesigned > .pharma-filter-group:nth-child(5) {
  grid-column: 2;
  grid-row: 2;
}

.pharma-control-bar.redesigned > .pharma-filter-group:nth-child(6) {
  grid-column: 3;
  grid-row: 2;
}

.pharma-filter-group > span,
.pharma-custom-range span {
  color: var(--navy);
  font-size: 0.72rem;
  font-weight: 950;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.pharma-segmented-control {
  display: flex;
  flex-wrap: nowrap;
  gap: 5px;
  align-items: center;
}

.pharma-segmented-control button {
  min-height: 31px;
  padding: 0 10px;
  border: 1px solid #c9d6e8;
  border-radius: 7px;
  background: #ffffff;
  color: var(--navy);
  font: inherit;
  font-size: 0.78rem;
  font-weight: 850;
  cursor: pointer;
  white-space: nowrap;
}

.pharma-segmented-control button:hover {
  border-color: rgba(0, 31, 98, 0.4);
  background: #f4f8ff;
}

.pharma-segmented-control button.active {
  border-color: var(--navy);
  background: var(--navy);
  color: #ffffff;
}

.pharma-compact-select {
  width: 100%;
  min-height: 32px;
  max-width: none;
  border-radius: 7px;
  font-size: 0.78rem;
  font-weight: 850;
}

.pharma-control-bar.redesigned > .pharma-filter-group:nth-child(2) .pharma-segmented-control {
  justify-content: flex-start;
}

.pharma-control-bar.redesigned > .pharma-filter-group:nth-child(2) .pharma-compact-select {
  flex: 0 0 108px;
  width: 108px;
  min-width: 108px;
  max-width: 108px;
  padding-right: 24px;
}

.pharma-custom-range {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  grid-column: 1 / -1;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
}

.pharma-custom-range label {
  display: grid;
  gap: 6px;
  min-width: 160px;
}

.pharma-custom-range select {
  min-height: 34px;
}

.pharma-filter-reset {
  display: flex;
  grid-column: 4;
  grid-row: 2;
  align-items: end;
  justify-content: flex-end;
}

.pharma-filter-reset button {
  min-height: 31px;
  padding: 0 18px;
  border: 1px solid #001f62;
  border-radius: 999px;
  background: #001f62;
  color: #ffffff;
  cursor: pointer;
  font: inherit;
  font-size: 0.72rem;
  font-weight: 900;
}

.pharma-filter-reset button:hover {
  background: #0b367f;
}

.pharma-section-kicker {
  margin: 8px 0 10px;
  color: var(--navy);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.pharma-highlight-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 0;
  margin: 14px 22px 0;
  overflow: hidden;
  border: 1px solid #d4deeb;
  border-radius: 9px;
  background: #ffffff;
}

.sector-product-detail .pharma-highlight-grid {
  margin: 18px 24px 0;
  border-radius: 7px;
  box-shadow: 0 2px 7px rgba(0, 31, 98, 0.035);
}

.pharma-highlight-card {
  display: grid;
  gap: 5px;
  min-height: 84px;
  padding: 12px 14px;
  border: 0;
  border-right: 1px solid #e0e7f1;
  border-radius: 0;
  background: #ffffff;
  box-shadow: none;
}

.pharma-highlight-card:last-child {
  border-right: 0;
}

.pharma-highlight-card.muted {
  background: #f3f6fb;
}

.pharma-highlight-card span {
  color: #61718c;
  font-size: 0.74rem;
  font-weight: 900;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.pharma-highlight-card strong {
  color: var(--navy);
  font-size: clamp(0.98rem, 1.35vw, 1.35rem);
  font-weight: 950;
  line-height: 1.05;
}

.pharma-highlight-card small {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 700;
  line-height: 1.35;
}

.pharma-question-strip {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 12px;
  margin: 2px 0 16px;
  padding: 12px 14px;
  border: 1px solid rgba(0, 31, 98, 0.12);
  border-radius: 14px;
  background: rgba(0, 31, 98, 0.045);
  color: var(--text);
}

.pharma-question-strip strong {
  color: var(--navy);
  font-size: 0.82rem;
  font-weight: 950;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.pharma-question-strip span {
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 750;
}

.pharma-combo-chart-shell {
  position: relative;
  display: grid;
  gap: 12px;
  padding: 14px 16px 12px;
  border: 1px solid rgba(0, 31, 98, 0.12);
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 3px 10px rgba(0, 31, 98, 0.045);
}

.sector-product-detail .compact-inner-section {
  margin: 16px 24px 22px;
  padding: 18px 18px 20px;
  border: 1px solid #d7e0ed;
  border-radius: 7px;
  background: #ffffff;
  box-shadow: 0 2px 8px rgba(0, 31, 98, 0.04);
}

.sector-product-detail .compact-inner-section .section-block-header {
  position: relative;
  padding: 0 0 13px;
  border-bottom: 2px solid #1768c4;
}

.sector-product-detail .compact-inner-section .section-block-header h3 {
  font-size: 0.88rem;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

.sector-product-detail .compact-inner-section .section-block-subtitle {
  max-width: 980px;
  margin-top: 7px;
  font-size: 0.78rem;
  line-height: 1.4;
}

.sector-product-detail .compact-inner-section .dataset-meta {
  margin: 9px 0 10px;
  font-size: 0.72rem;
}

.sector-product-detail .pharma-combo-chart-shell {
  padding: 12px 0 2px;
  border: 0;
  border-radius: 0;
  box-shadow: none;
}

.sector-product-detail .pharma-chart-legend {
  justify-content: center;
  padding: 4px 12px 0;
}

.sector-product-detail .pharma-chart-legend span {
  border: 0;
  background: transparent;
}

.pharma-combo-tooltip {
  position: absolute;
  z-index: 3;
  top: 16px;
  width: 214px;
  max-width: calc(100% - 28px);
  padding: 10px 11px;
  border: 1px solid rgba(0, 31, 98, 0.14);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 12px 24px rgba(0, 31, 98, 0.16);
  backdrop-filter: blur(8px);
  opacity: 0;
  visibility: hidden;
  transform: translateY(4px);
  transition: opacity 120ms ease, transform 120ms ease, visibility 120ms ease;
  pointer-events: none;
}

.pharma-combo-tooltip.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.pharma-combo-tooltip strong {
  display: block;
  margin-bottom: 8px;
  color: var(--navy);
  font-size: 0.82rem;
  font-weight: 950;
}

.pharma-tooltip-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: 5px;
  color: var(--text);
  font-size: 0.76rem;
  font-weight: 750;
}

.pharma-tooltip-row span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
}

.pharma-tooltip-row i {
  width: 8px;
  height: 8px;
  border-radius: 2px;
  flex: 0 0 8px;
}

.pharma-tooltip-row b {
  color: var(--navy);
  font-weight: 950;
  white-space: nowrap;
}

.pharma-tooltip-divider {
  height: 1px;
  margin: 8px 0 5px;
  background: #e1e9f5;
}

.pharma-combo-svg {
  display: block;
  width: 100%;
  height: auto;
}

.pharma-chart-legend {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 6px 14px;
  align-items: center;
  padding-top: 2px;
}

.pharma-chart-legend span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 22px;
  padding: 2px 5px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--text);
  font-size: 0.75rem;
  font-weight: 800;
}

.pharma-chart-legend i {
  width: 11px;
  height: 11px;
  border-radius: 3px;
  flex: 0 0 11px;
}

.pharma-chart-legend .line i {
  height: 3px;
  border-radius: 999px;
}

.pharma-chart-legend .legend-label {
  padding-left: 0;
  border-color: transparent;
  background: transparent;
  color: var(--navy);
  font-weight: 950;
}

.pharma-chart-legend .emphasis {
  padding: 3px 10px;
  background: rgba(0, 31, 98, 0.07);
  color: var(--navy);
  font-weight: 950;
}

.pharma-year-comparison-shell {
  min-height: 0;
}

.pharma-year-legend {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 25px;
  padding: 3px 8px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--text);
  cursor: pointer;
  font: inherit;
  font-size: 0.75rem;
  font-weight: 850;
}

.pharma-year-legend i {
  width: 11px;
  height: 3px;
  border-radius: 999px;
}

.pharma-year-legend:hover {
  background: #f1f5fb;
}

.pharma-year-legend.emphasis {
  background: rgba(0, 31, 98, 0.08);
  color: var(--navy);
  font-weight: 950;
}

.pharma-year-legend.disabled {
  opacity: 0.35;
  text-decoration: line-through;
}

.pharma-year-tooltip .pharma-tooltip-row.current {
  color: var(--navy);
  font-weight: 950;
}

.compact-inner-section {
  margin: 14px 22px 0;
  padding: 14px 18px 18px;
  border: 0;
  border-radius: 9px;
  background: #ffffff;
  box-shadow: none;
}

@media (max-width: 1080px) {
  .pharma-control-bar.redesigned {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .pharma-control-bar.redesigned > .pharma-filter-group:nth-child(n) {
    grid-column: auto;
    grid-row: auto;
  }

  .pharma-filter-group.wide {
    grid-column: auto;
  }

  .pharma-filter-reset {
    grid-column: 2;
    grid-row: auto;
  }
}

@media (max-width: 900px) {
  .pharma-highlight-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .pharma-highlight-card:nth-child(2n) {
    border-right: 0;
  }

  .pharma-highlight-card:last-child {
    grid-column: 1 / -1;
    border-top: 1px solid #e0e7f1;
  }
}

@media (max-width: 700px) {
  .pharma-control-bar.redesigned {
    grid-template-columns: 1fr;
  }

  .pharma-filter-group.wide {
    grid-column: auto;
  }

  .pharma-filter-reset {
    grid-column: auto;
    justify-content: stretch;
  }

  .pharma-filter-reset button {
    width: 100%;
  }

  .pharma-segmented-control {
    flex-wrap: wrap;
  }

  .sector-detail-tabs {
    padding-left: 12px;
  }

  .sector-detail-tabs button {
    min-width: 0;
    flex: 1 1 50%;
  }

  .sector-product-detail .compact-inner-section {
    margin-right: 14px;
    margin-left: 14px;
    padding-right: 14px;
    padding-left: 14px;
  }
}

.catalog-stat-list {
  display: grid;
  gap: 10px;
  margin: 14px 0 0;
}

.catalog-stat-list div {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  color: var(--text);
}

.catalog-stat-list dt {
  color: var(--muted);
  font-weight: 700;
}

.catalog-stat-list dd {
  margin: 0;
  font-weight: 700;
}

.catalog-stat-list.compact {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.catalog-stat-list.compact div {
  display: grid;
  gap: 4px;
  padding: 9px 10px;
  border: 1px solid rgba(0, 31, 98, 0.08);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.72);
}

.sector-dataset-section {
  background: linear-gradient(180deg, #ffffff 0%, #f7faff 100%);
}

.sector-dataset-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 12px;
  margin-top: 14px;
}

.sector-dataset-card {
  display: grid;
  gap: 10px;
  padding: 16px;
  border: 1px solid #d7e1f0;
  border-radius: 16px;
  background: #ffffff;
  transition: transform 160ms ease, box-shadow 160ms ease, border-color 160ms ease;
}

.sector-dataset-card.clickable {
  cursor: pointer;
}

.sector-dataset-card.clickable:hover,
.sector-dataset-card.clickable:focus-within {
  transform: translateY(-2px);
  border-color: rgba(0, 31, 98, 0.32);
  box-shadow: 0 16px 30px rgba(0, 31, 98, 0.11);
}

.sector-dataset-card.active {
  border-color: rgba(0, 31, 98, 0.34);
  box-shadow: inset 0 0 0 1px rgba(0, 31, 98, 0.12);
}

.sector-dataset-card.disabled {
  opacity: 0.68;
}

.sector-dataset-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.sector-dataset-card-top span {
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 950;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.sector-dataset-card-top strong {
  color: var(--navy);
  font-size: 0.76rem;
  font-weight: 950;
}

.sector-dataset-card h4 {
  margin: 0;
  color: var(--navy);
  font-size: 1.1rem;
}

.sector-dataset-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.45;
}

.sector-dataset-card small {
  color: #667792;
  font-size: 0.78rem;
  font-weight: 700;
}

.bar-chart-stack {
  display: grid;
  gap: 12px;
  margin-top: 14px;
}

.bar-row {
  display: grid;
  grid-template-columns: minmax(80px, 120px) minmax(0, 1fr) 70px;
  gap: 12px;
  align-items: center;
}

.bar-row-label,
.bar-row-value {
  font: 700 0.84rem/1.2 var(--font-sans);
  color: var(--text);
}

.bar-track {
  position: relative;
  height: 10px;
  border-radius: 999px;
  background: #e4ebf7;
  overflow: hidden;
}

.bar-fill {
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #2d6cdf 0%, var(--navy) 100%);
}

.company-directory {
  display: grid;
  gap: 14px;
  margin-top: 16px;
}

.company-pill-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 10px;
}

.company-pill {
  display: grid;
  gap: 6px;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #f7faff;
  color: var(--text);
  text-align: left;
  cursor: pointer;
}

.company-pill strong {
  color: var(--navy);
}

.company-pill span {
  color: var(--muted);
  font-size: 0.84rem;
}

.company-pill.active,
.company-pill:hover,
.company-pill:focus-visible {
  border-color: rgba(11, 45, 114, 0.22);
  background: #eef4ff;
  outline: none;
}

.anchor-nav {
  position: sticky;
  top: 12px;
  z-index: 4;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 18px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 10px 24px rgba(7, 28, 76, 0.06);
  backdrop-filter: blur(8px);
}

.anchor-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0 12px;
  border-radius: 999px;
  background: #edf3fc;
  color: var(--navy);
  font: 700 0.82rem/1 var(--font-sans);
  text-decoration: none;
}

.anchor-nav a:hover,
.anchor-nav a:focus-visible {
  background: #dde9fb;
  outline: none;
}

.related-company-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 10px;
  margin-top: 12px;
}

.related-company-card {
  display: grid;
  gap: 6px;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #f8fbff;
}

.related-company-card strong {
  color: var(--navy);
}

.wide-table-shell {
  margin-top: 12px;
}

.hub-table {
  min-width: 1180px;
}

.hub-table th,
.hub-table td {
  white-space: nowrap;
  vertical-align: middle;
}

.hub-table th {
  background: var(--navy);
  color: #ffffff;
  font-size: 0.82rem;
}

.hub-table td {
  text-align: center;
}

.hub-table th:first-child,
.hub-table td:first-child {
  text-align: left;
}

.hub-table td:nth-child(2) {
  text-align: left;
}

.empty-state-panel {
  display: grid;
  gap: 8px;
  padding: 32px 24px;
  border: 1px dashed #cdd8eb;
  border-radius: var(--radius-md);
  background: #f8fbff;
  color: var(--muted);
  text-align: center;
}

.error-state {
  border-color: rgba(192, 57, 43, 0.25);
  color: #9f2f24;
}

@media (max-width: 1100px) {
  .toolbar-field.compact,
  .toolbar-field.chips-only {
    flex: 1 1 100%;
  }

  .anchor-nav {
    top: 8px;
  }

  .comp-toolbar > .toolbar-row-compact {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-template-areas:
      "subsector search"
      "sort export";
    row-gap: 14px;
    min-height: 0;
  }
}

@media (max-width: 860px) {
  .panel-header-actions,
  .section-block-header,
  .section-block-actions {
    flex-direction: column;
    align-items: flex-start;
  }

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

  .comp-toolbar > .toolbar-row-compact {
    grid-template-columns: 1fr;
    grid-template-areas:
      "subsector"
      "search"
      "sort"
      "export";
    row-gap: 14px;
    min-height: 0;
  }

  .toolbar-field {
    flex-basis: 100%;
  }

  .catalog-grid,
  .summary-card-grid,
  .company-pill-grid,
  .related-company-grid {
    grid-template-columns: 1fr;
  }

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

.comp-page-panel {
  overflow: hidden;
}

.comp-toolbar {
  display: grid;
  gap: 10px;
  margin: 18px 0 24px;
  clear: both;
}

.action-menu,
.toolbar-dropdown {
  position: relative;
}

.action-menu summary,
.toolbar-dropdown summary {
  list-style: none;
}

.action-menu summary::-webkit-details-marker,
.toolbar-dropdown summary::-webkit-details-marker {
  display: none;
}

.action-popover,
.toolbar-popover {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  z-index: 12;
  min-width: 240px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #ffffff;
  box-shadow: 0 20px 36px rgba(7, 28, 76, 0.12);
}

.action-popover {
  display: grid;
  gap: 8px;
}

.action-popover button {
  min-height: 40px;
  padding: 0 12px;
  border: 1px solid #d6e2f5;
  border-radius: 10px;
  background: #f8fbff;
  color: var(--navy);
  font: 700 0.86rem/1 var(--font-sans);
  text-align: left;
  cursor: pointer;
}

.action-popover button:hover,
.action-popover button:focus-visible {
  background: #eef4ff;
  outline: none;
}

.action-popover-tight {
  min-width: 220px;
}

.toolbar-popover {
  display: grid;
  gap: 10px;
  width: min(360px, calc(100vw - 48px));
}

.toolbar-row-compact {
  margin-top: 0;
  align-items: stretch;
}

.toolbar-row-compact .toolbar-field {
  padding: 12px 14px;
  background: #fbfdff;
}

.toolbar-row-compact .toolbar-field-wide {
  flex: 1 1 360px;
}

.toolbar-row-compact .toolbar-field.compact {
  flex: 0 1 188px;
}

.comp-toolbar > .toolbar-row-compact {
  display: grid;
  grid-template-columns: minmax(190px, 0.72fr) minmax(360px, 1.55fr) minmax(170px, 0.62fr) minmax(150px, 0.48fr);
  grid-template-areas: "subsector search sort export";
  column-gap: 22px;
  row-gap: 14px;
  margin-top: 0;
  align-items: end;
  padding: 0 0 4px;
  min-height: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.comp-toolbar > .toolbar-row-compact .toolbar-field {
  min-height: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  align-self: end;
}

.comp-toolbar > .toolbar-row-compact .toolbar-field > label,
.comp-toolbar-download > span {
  display: block;
  margin: 0 0 8px;
  color: #536783;
  font: 850 0.68rem/1 var(--font-sans);
  letter-spacing: 0.075em;
  text-transform: uppercase;
}

.comp-toolbar > .toolbar-row-compact .toolbar-field select,
.comp-toolbar > .toolbar-row-compact .toolbar-field input,
.comp-toolbar-download .secondary-action {
  min-height: 38px;
  border-color: #cddbf0;
  border-radius: 12px;
  background: #ffffff;
}

.comp-toolbar > .toolbar-row-compact .toolbar-field-wide {
  min-width: 0;
  flex: initial;
}

.comp-toolbar > .toolbar-row-compact .toolbar-field.compact {
  min-width: 0;
  flex: initial;
}

.comp-filter-subsector {
  grid-area: subsector;
}

.comp-filter-search {
  grid-area: search;
}

.search-input-shell {
  position: relative;
  display: flex;
  align-items: center;
  min-width: 0;
}

.search-input-shell input {
  width: 100%;
  padding-right: 58px;
}

.search-clear-button {
  position: absolute;
  right: 10px;
  border: 0;
  background: transparent;
  color: #1b5fc1;
  cursor: pointer;
  font: 800 0.72rem/1 var(--font-sans);
  letter-spacing: 0.02em;
}

.search-clear-button:hover {
  color: #082b70;
}

.comp-filter-sort {
  grid-area: sort;
}

.comp-toolbar-download {
  grid-area: export;
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 0;
  min-width: 0;
  min-height: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  align-self: end;
}

.comp-toolbar-download > span {
  color: #536783;
}

.comp-toolbar-download .secondary-action {
  display: flex;
  width: 100%;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  text-align: center;
}

.comp-toolbar-download .action-popover {
  right: 0;
}

.comp-dynamic-table-shell {
  margin-top: 18px;
  overflow: auto;
  border-radius: 14px;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.comp-dynamic-table-shell::-webkit-scrollbar {
  width: 0;
  height: 0;
}

.comp-dynamic-table-shell::-webkit-scrollbar-corner {
  background: transparent;
}

.comp-dynamic-table {
  min-width: 1980px;
  table-layout: auto;
  border-collapse: separate;
  border-spacing: 0;
}

.comp-dynamic-table th,
.comp-dynamic-table td {
  text-align: center;
  padding: 12px 14px;
  font-size: 0.9rem;
  line-height: 1.25;
  white-space: nowrap;
}

.comp-dynamic-table th:first-child,
.comp-dynamic-table td:first-child {
  text-align: left;
}

.comp-dynamic-table th {
  position: sticky;
  top: 0;
  z-index: 3;
  padding-top: 13px;
  padding-bottom: 13px;
  border-bottom: 1px solid #163b87;
  box-shadow: inset 0 -1px 0 rgba(255, 255, 255, 0.08);
}

.comp-dynamic-table .sticky-col {
  position: sticky;
  background: #ffffff;
  z-index: 2;
}

.comp-dynamic-table th.sticky-col {
  z-index: 4;
  background: var(--navy);
}

.comp-dynamic-table th:nth-child(1),
.comp-dynamic-table td:nth-child(1) {
  left: 0;
  width: 238px;
  min-width: 238px;
  max-width: 238px;
}

.comp-dynamic-table th:nth-child(2),
.comp-dynamic-table td:nth-child(2) {
  width: 80px;
  min-width: 80px;
}

.comp-dynamic-table th:nth-child(3),
.comp-dynamic-table td:nth-child(3) {
  width: 100px;
  min-width: 100px;
}

.comp-dynamic-table th:nth-child(4),
.comp-dynamic-table td:nth-child(4),
.comp-dynamic-table th:nth-child(5),
.comp-dynamic-table td:nth-child(5),
.comp-dynamic-table th:nth-child(6),
.comp-dynamic-table td:nth-child(6),
.comp-dynamic-table th:nth-child(7),
.comp-dynamic-table td:nth-child(7),
.comp-dynamic-table th:nth-child(8),
.comp-dynamic-table td:nth-child(8),
.comp-dynamic-table th:nth-child(9),
.comp-dynamic-table td:nth-child(9),
.comp-dynamic-table th:nth-child(10),
.comp-dynamic-table td:nth-child(10),
.comp-dynamic-table th:nth-child(11),
.comp-dynamic-table td:nth-child(11),
.comp-dynamic-table th:nth-child(12),
.comp-dynamic-table td:nth-child(12),
.comp-dynamic-table th:nth-child(13),
.comp-dynamic-table td:nth-child(13),
.comp-dynamic-table th:nth-child(14),
.comp-dynamic-table td:nth-child(14),
.comp-dynamic-table th:nth-child(15),
.comp-dynamic-table td:nth-child(15),
.comp-dynamic-table th:nth-child(16),
.comp-dynamic-table td:nth-child(16),
.comp-dynamic-table th:nth-child(17),
.comp-dynamic-table td:nth-child(17) {
  min-width: 104px;
}

.company-cell {
  font-weight: 700;
  white-space: normal;
  line-height: 1.35;
}

.company-ticker-inline {
  color: var(--muted);
  font-weight: 700;
  white-space: nowrap;
}

.subsector-group-row td {
  background: #eef3fb;
  color: var(--navy);
  font: 800 0.82rem/1 var(--font-sans);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.median-row td {
  background: #f5f8fd;
  font-weight: 700;
}

.median-row td:first-child {
  color: var(--navy);
}

.fallback-value {
  position: relative;
}

.fallback-value::after {
  content: "";
  position: absolute;
  left: 22%;
  right: 22%;
  bottom: 7px;
  border-bottom: 1px dotted #7f91b1;
}

.comp-dynamic-table tbody tr:hover td {
  background: #f8fbff;
}

.comp-dynamic-table tbody tr:hover .sticky-col {
  background: #f8fbff;
}

.median-row .sticky-col {
  background: #f5f8fd;
}

.subsector-group-row .sticky-col {
  background: #eef3fb;
}

.comp-chart-toolbar {
  margin-top: 14px;
}

.comp-chart-toolbar .toolbar-row-compact {
  gap: 10px;
}

.comp-chart-toolbar .toolbar-field {
  min-height: 60px;
  padding: 9px 11px;
}

.comp-chart-toolbar .toolbar-field span {
  font-size: 0.66rem;
  white-space: nowrap;
}

.comp-chart-toolbar .toolbar-field select {
  min-height: 34px;
  padding: 0 9px;
  font-size: 0.82rem;
}

.comp-chart-toolbar .metric-chip {
  min-height: 28px;
  padding: 0 9px;
  font-size: 0.72rem;
  white-space: nowrap;
}

.comp-chart-toolbar .inline-chip-row {
  gap: 6px;
}

.chart-info-note {
  margin-top: 12px;
  padding: 11px 14px;
  border: 1px solid #e1d4bf;
  border-radius: 12px;
  background: #fcf8f1;
  color: #6d4f16;
  font-size: 0.88rem;
  font-weight: 700;
  line-height: 1.4;
}

.bubble-chart-shell {
  margin-top: 14px;
  margin-bottom: 0;
  padding: 18px 18px 10px;
  border-radius: 18px;
  background: linear-gradient(180deg, #ffffff 0%, #f7fafe 100%);
  overflow-x: auto;
}

.bubble-chart-shell .hub-chart-svg {
  min-width: 980px;
}

.bubble-chart-shell .chart-legend {
  gap: 6px;
  margin-top: 8px;
  margin-bottom: 0;
}

.bubble-chart-shell .legend-chip {
  min-height: 24px;
  padding: 0 8px;
  font-size: 0.7rem;
}

.bubble-chart-shell .legend-dot {
  width: 8px;
  height: 8px;
}

.chart-zoom-note {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 10px;
  color: var(--muted);
  font-size: 0.84rem;
  font-weight: 700;
}

.chart-zoom-actions {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.chart-zoom-state {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 0 10px;
  border: 1px solid #d7e0ef;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.88);
  color: #35527f;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.chart-zoom-button {
  min-width: 32px;
  min-height: 32px;
  padding: 0;
  font-size: 1rem;
  font-weight: 800;
  line-height: 1;
}

.chart-reset-action {
  min-height: 32px;
  padding: 0 12px;
}

.chart-reset-action:disabled {
  opacity: 0.45;
  cursor: default;
}

.chart-plot-overlay {
  fill: rgba(255, 255, 255, 0.001);
  cursor: crosshair;
  pointer-events: all;
  touch-action: none;
}

.chart-selection-rect {
  fill: rgba(11, 45, 114, 0.12);
  stroke: rgba(11, 45, 114, 0.7);
  stroke-width: 1.4;
  stroke-dasharray: 5 4;
  pointer-events: none;
}

@media (max-width: 1200px) {
  .comp-toolbar > .toolbar-row-compact {
    grid-template-columns: minmax(200px, 0.8fr) minmax(300px, 1.4fr);
    grid-template-areas:
      "subsector search"
      "sort export";
    row-gap: 14px;
    min-height: 0;
  }
}

@media (max-width: 720px) {
  .comp-toolbar > .toolbar-row-compact {
    grid-template-columns: 1fr;
    grid-template-areas:
      "subsector"
      "search"
      "sort"
      "export";
    row-gap: 14px;
    min-height: 0;
  }
}

.mp-page-panel {
  overflow: hidden;
}

.mp-period-summary-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin-top: 6px;
}

.mp-period-summary-card {
  display: grid;
  gap: 12px;
  padding: 16px 18px;
  border: 1px solid #d9e4f2;
  border-radius: 16px;
  background: linear-gradient(180deg, #ffffff 0%, #f6f9fe 100%);
}

.mp-period-summary-period {
  color: var(--navy);
  font-size: 1rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.mp-period-summary-block {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid transparent;
}

.mp-period-summary-block.top {
  background: rgba(26, 127, 66, 0.08);
  border-color: rgba(26, 127, 66, 0.18);
}

.mp-period-summary-block.bottom {
  background: rgba(192, 57, 43, 0.08);
  border-color: rgba(192, 57, 43, 0.18);
}

.mp-period-summary-label {
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 2px;
}

.mp-period-summary-block.top .mp-period-summary-label,
.mp-period-summary-block.top .mp-period-value {
  color: #1a7f42;
}

.mp-period-summary-block.bottom .mp-period-summary-label,
.mp-period-summary-block.bottom .mp-period-value {
  color: #c0392b;
}

.mp-period-summary-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 2px 0;
}

.mp-period-ticker {
  font-size: 0.85rem;
  font-weight: 600;
  color: inherit;
  min-width: 48px;
}

.mp-period-value {
  font-size: 0.85rem;
  font-weight: 700;
  white-space: nowrap;
}

.mp-ibov-reference-row td {
  background: #f0f5fc;
  font-size: 0.88rem;
  border-bottom: 2px solid #c2d4ec;
}

.mp-ibov-reference-row td strong {
  font-weight: 700;
  color: var(--navy);
}

.mp-toolbar {
  display: grid;
  gap: 12px;
  margin: 16px 0 20px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #ffffff;
  box-shadow: 0 10px 24px rgba(0, 31, 98, 0.05);
}

.macro-theme-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 14px;
}

.macro-theme-card {
  display: grid;
  gap: 14px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: linear-gradient(180deg, #fbfdff 0%, #f6f9fe 100%);
  transition: transform 160ms ease, box-shadow 160ms ease, border-color 160ms ease, background 160ms ease;
}

.macro-theme-card.clickable {
  cursor: pointer;
}

.macro-theme-card.clickable:hover,
.macro-theme-card.clickable:focus-within {
  transform: translateY(-3px);
  border-color: rgba(0, 31, 98, 0.34);
  background: linear-gradient(180deg, #ffffff 0%, #eef5ff 100%);
  box-shadow: 0 18px 34px rgba(0, 31, 98, 0.12);
}

.macro-theme-card.clickable:focus-visible {
  outline: 3px solid rgba(45, 108, 223, 0.22);
  outline-offset: 3px;
}

.macro-theme-card-top,
.macro-theme-detail-top {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.macro-theme-card-source {
  margin-left: auto;
  color: var(--muted);
  font-size: 0.82rem;
}

.macro-theme-card-arrow {
  color: var(--navy);
  font-size: 0.78rem;
  font-weight: 950;
  opacity: 0.72;
  transition: transform 160ms ease, opacity 160ms ease;
}

.macro-theme-card.clickable:hover .macro-theme-card-arrow,
.macro-theme-card.clickable:focus-within .macro-theme-card-arrow {
  opacity: 1;
  transform: translateX(4px);
}

.macro-theme-card h3,
.macro-chart-card h4,
.macro-prose-card h4,
.macro-supporting-card h4 {
  margin: 0;
}

.macro-theme-card-subtitle,
.macro-theme-card-description {
  margin: 6px 0 0;
  color: var(--muted);
  line-height: 1.45;
}

.macro-theme-card-reading {
  display: grid;
  gap: 4px;
  padding: 12px 14px;
  border: 1px solid #d9e4f2;
  border-radius: 14px;
  background: #ffffff;
}

.macro-theme-card-reading span,
.macro-prose-kicker {
  color: var(--muted);
  font: 800 0.74rem/1 var(--font-sans);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.macro-theme-card-reading strong {
  color: var(--navy);
  font-size: 1rem;
}

.macro-theme-card-meta {
  display: grid;
  gap: 6px;
  color: var(--muted);
  font-size: 0.85rem;
}

.macro-theme-card-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.status-badge {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 10px;
  border-radius: 999px;
  font: 800 0.74rem/1 var(--font-sans);
  border: 1px solid transparent;
  white-space: nowrap;
}

.status-badge[data-status="updated"],
.status-badge[data-status="pass"],
.status-badge[data-status="ok"] {
  background: rgba(21, 115, 71, 0.12);
  color: #157347;
  border-color: rgba(21, 115, 71, 0.22);
}

.status-badge[data-status="stale"],
.status-badge[data-status="warn"],
.status-badge[data-status="fallback"] {
  background: rgba(180, 83, 9, 0.12);
  color: #a24a05;
  border-color: rgba(180, 83, 9, 0.22);
}

.status-badge[data-status="api-issue"],
.status-badge[data-status="manual-update-required"],
.status-badge[data-status="fail"] {
  background: rgba(180, 35, 24, 0.11);
  color: #b42318;
  border-color: rgba(180, 35, 24, 0.2);
}

.status-badge[data-status="analyst-comment-updated"] {
  background: rgba(11, 45, 114, 0.1);
  color: var(--navy);
  border-color: rgba(11, 45, 114, 0.2);
}

.macro-meta-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 16px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #f8fbff;
  color: var(--muted);
  font-size: 0.86rem;
  margin-bottom: 16px;
}

.macro-prose-grid,
.macro-chart-grid,
.macro-audit-grid,
.macro-supporting-grid {
  display: grid;
  gap: 14px;
}

.macro-prose-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin: 14px 0;
}

.macro-prose-card,
.macro-supporting-card {
  display: grid;
  gap: 10px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: #fbfdff;
}

.macro-prose-card p,
.macro-supporting-card span {
  margin: 0;
  color: var(--text);
  line-height: 1.5;
}

.macro-chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.macro-related-chip {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 0 10px;
  border-radius: 999px;
  background: #eaf1fc;
  color: var(--navy);
  font: 700 0.8rem/1 var(--font-sans);
}

.macro-supporting-grid,
.macro-audit-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-top: 14px;
}

.macro-chart-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-top: 14px;
}

.macro-chart-card {
  display: grid;
  gap: 12px;
}

.macro-chart-card-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
}

.macro-chart-card-header h4 {
  color: var(--navy);
}

.macro-heatmap-shell {
  overflow-x: auto;
}

.macro-heatmap-grid {
  display: grid;
  gap: 4px;
  align-items: center;
}

.macro-heatmap-header,
.macro-heatmap-row-label,
.macro-heatmap-cell,
.macro-heatmap-corner {
  min-height: 34px;
  border-radius: 8px;
}

.macro-heatmap-header {
  display: flex;
  align-items: center;
  justify-content: center;
  background: #edf3fb;
  color: var(--muted);
  font: 700 0.74rem/1 var(--font-sans);
}

.macro-heatmap-row-label {
  display: flex;
  align-items: center;
  padding: 0 10px;
  background: #f7faff;
  color: var(--text);
  font: 700 0.78rem/1.2 var(--font-sans);
}

.macro-heatmap-cell {
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  font: 700 0.76rem/1 var(--font-sans);
}

.macro-table-shell {
  margin-top: 14px;
}

.macro-full-table {
  max-height: 540px;
}

.macro-full-table .data-table {
  min-width: 1200px;
}

@media (max-width: 1200px) {
  .macro-prose-grid,
  .macro-chart-grid,
  .macro-audit-grid,
  .macro-supporting-grid {
    grid-template-columns: 1fr;
  }
}

.mp-toolbar-row {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 12px;
}

.mp-field {
  min-width: 0;
  flex: 0 1 220px;
  display: grid;
  gap: 7px;
}

.mp-field-wide {
  flex: 1 1 320px;
}

.mp-field span {
  color: var(--muted);
  font: 800 0.72rem/1 var(--font-sans);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.mp-field input,
.mp-field select {
  width: 100%;
  min-height: 42px;
  padding: 0 12px;
  border: 1px solid #ccd8ea;
  border-radius: 10px;
  background: #ffffff;
  color: var(--text);
  font: 700 0.9rem/1 var(--font-sans);
}

.mp-field input:focus-visible,
.mp-field select:focus-visible {
  outline: 2px solid rgba(11, 45, 114, 0.16);
  outline-offset: 1px;
}

.mp-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-left: auto;
}

.mp-chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.mp-table-shell {
  overflow-x: auto;
  border-radius: 14px;
}

.mp-performance-table {
  min-width: 980px;
}

.mp-performance-table th,
.mp-performance-table td {
  vertical-align: middle;
}

.mp-performance-table th:first-child,
.mp-performance-table td:first-child {
  width: 74px;
  min-width: 74px;
  text-align: center;
}

.mp-performance-table th:nth-child(2),
.mp-performance-table td:nth-child(2) {
  width: 120px;
  min-width: 120px;
}

.mp-performance-table th:nth-child(3),
.mp-performance-table td:nth-child(3) {
  width: 260px;
  min-width: 260px;
}

.mp-plain-header {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  font-weight: 800;
}

.mp-sort-button {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  width: 100%;
  min-height: 30px;
  padding: 0;
  border: 0;
  background: transparent;
  color: #ffffff;
  font: inherit;
  font-weight: 800;
  cursor: pointer;
}

.mp-sort-button:focus-visible {
  outline: none;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.mp-sort-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 14px;
  flex: 0 0 14px;
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.75rem;
  line-height: 1;
}

.mp-sort-button.active .mp-sort-icon,
.mp-sort-button:hover .mp-sort-icon {
  color: #ffffff;
}

.mp-chart-panel {
  display: grid;
  gap: 12px;
  padding: 12px;
  border: 1px solid #d7e1f0;
  border-radius: 12px;
  background: #ffffff;
}

.mp-chart-toolbar {
  display: flex;
  align-items: flex-end;
  justify-content: flex-start;
}

.mp-chart-toolbar-split {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: end;
}

.mp-window-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  flex: 1 1 340px;
}

.mp-chart-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 10px;
  align-items: center;
}

.mp-chart-legend-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 28px;
  padding: 0 10px;
  border: 1px solid #d6e1f0;
  border-radius: 999px;
  background: #f8fbff;
  color: var(--text);
  font-size: 0.76rem;
  font-weight: 700;
}

.mp-chart-legend-chip.focus {
  border-color: rgba(21, 115, 71, 0.22);
  background: rgba(21, 115, 71, 0.06);
}

.mp-chart-legend-chip.benchmark {
  border-color: rgba(11, 45, 114, 0.22);
  background: rgba(11, 45, 114, 0.06);
}

.mp-chart-legend-swatch {
  display: inline-block;
  width: 10px;
  height: 10px;
  border-radius: 999px;
  flex: 0 0 10px;
}

.mp-chart-legend-swatch.benchmark {
  box-shadow: 0 0 0 2px rgba(11, 45, 114, 0.18);
}

.mp-chart-shell {
  position: relative;
  overflow: hidden;
  padding: 4px;
  border: 1px solid #cfd9ea;
  border-radius: 12px;
  background: #ffffff;
}

.mp-chart-shell svg {
  display: block;
  width: 100%;
  height: auto;
}

.mp-stock-chart-shell {
  min-height: 340px;
}

.mp-stock-empty-state {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  min-height: 96px;
  padding: 14px 16px;
  border: 1px dashed #cbd8ea;
  border-radius: 12px;
  background: linear-gradient(180deg, #fbfdff 0%, #f6f9fe 100%);
}

.mp-stock-empty-state strong {
  display: block;
  color: var(--navy);
  font-size: 0.98rem;
  font-weight: 900;
}

.mp-stock-empty-state p {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.45;
}

.mp-stock-suggestion-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 7px;
  max-width: 560px;
}

.mp-chart-tooltip {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 2;
  width: min(190px, calc(100% - 20px));
  max-height: calc(100% - 20px);
  overflow-y: auto;
  padding: 7px 9px;
  border: 1px solid #cad7eb;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.74);
  box-shadow: 0 8px 18px rgba(12, 32, 69, 0.08);
  backdrop-filter: blur(8px);
  opacity: 0;
  visibility: hidden;
  transform: translateY(6px);
  transition: opacity 120ms ease, transform 120ms ease, visibility 120ms ease;
  pointer-events: auto;
  overscroll-behavior: contain;
}

.mp-chart-tooltip.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.mp-chart-tooltip-title {
  display: block;
  margin-bottom: 6px;
  color: var(--navy);
  font-size: 0.78rem;
  font-weight: 800;
}

.mp-chart-tooltip-list {
  display: grid;
  gap: 3px;
}

.mp-chart-tooltip-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  font-size: 0.74rem;
}

.mp-chart-tooltip-row span {
  color: var(--text);
}

.mp-chart-tooltip-label {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.mp-chart-tooltip-dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 999px;
  flex: 0 0 8px;
}

.mp-chart-tooltip-row strong {
  font-weight: 800;
}

.mp-chart-tooltip-row.focus span,
.mp-chart-tooltip-row.benchmark span {
  font-weight: 800;
}

.mp-chart-tooltip-row.benchmark span {
  color: var(--navy);
}

.mp-stock-tooltip-grid {
  display: grid;
  gap: 10px;
}

.mp-stock-tooltip-grid div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  font-size: 0.8rem;
}

.mp-stock-tooltip-grid span {
  color: var(--muted);
}

.mp-stock-tooltip-grid strong {
  color: var(--text);
}

.mp-date-field {
  flex: 0 0 170px;
  max-width: 170px;
}

.mp-date-input {
  min-height: 40px;
}

.mp-chart-toolbar-split .mp-field-wide {
  flex: 1 1 300px;
}

.mp-short-section {
  margin-top: 10px;
}

.mp-short-top-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-top: 16px;
}

.mp-short-mini-table {
  display: grid;
  gap: 10px;
  padding: 16px 16px 12px;
  border: 1px solid #d7dfeb;
  border-radius: 8px;
  background: #ffffff;
}

.mp-short-mini-header {
  margin-bottom: 10px;
}

.mp-short-mini-header strong {
  color: var(--navy);
  font-size: 0.92rem;
  text-transform: uppercase;
}

.mp-mini-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.84rem;
}

.mp-short-mini-scroll {
  max-height: 430px;
  overflow: auto;
}

.mp-short-mini-scroll .mp-mini-table thead th {
  position: sticky;
  top: 0;
  background: var(--navy);
  color: #ffffff;
  z-index: 1;
}

.mp-mini-table th,
.mp-mini-table td {
  padding: 7px 8px;
  border-bottom: 1px solid #e6edf8;
  text-align: left;
  white-space: nowrap;
}

.mp-mini-table tbody tr:nth-child(even) {
  background: #f3f6fb;
}

.mp-mini-table tbody tr:nth-child(odd) {
  background: #ffffff;
}

.mp-mini-table th:last-child,
.mp-mini-table td:last-child {
  text-align: right;
}

.mp-link-button {
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--navy);
  font: inherit;
  font-weight: 800;
  cursor: pointer;
}

.mp-link-button:hover,
.mp-link-button:focus-visible {
  text-decoration: underline;
  text-underline-offset: 3px;
  outline: none;
}

.mp-sector-table,
.mp-short-history-table,
.mp-short-full-table,
.mp-short-recent-table {
  min-width: 920px;
}

.mp-sector-bar-table {
  min-width: 960px;
}

.mp-sector-bar-table tbody tr {
  cursor: pointer;
}

.mp-sector-group-row td {
  background: #eef4fd;
  border-top: 2px solid #bfd0e8;
  color: var(--navy);
  font-weight: 900;
}

.mp-sector-company-row td:first-child {
  padding-left: 22px;
}

.mp-sector-company-row td {
  background: #ffffff;
}

.mp-sector-bar-cell {
  display: grid;
  grid-template-columns: minmax(180px, 1fr) 54px;
  gap: 12px;
  align-items: center;
}

.mp-sector-bar-track {
  display: block;
  height: 7px;
  overflow: hidden;
  border-radius: 999px;
  background: #e8edf5;
  box-shadow: inset 0 1px 2px rgba(0, 31, 98, 0.12);
}

.mp-sector-bar-track i {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #1f63c4 0%, var(--navy) 100%);
}

.mp-sector-bar-cell strong {
  color: #1359bd;
  text-align: right;
}

.mp-short-full-table .mp-sort-button {
  justify-content: flex-start;
}

.mp-short-history-selected {
  margin: 0 0 14px;
  padding: 12px 14px;
  border: 1px solid #dbe4f2;
  border-radius: 12px;
  background: #ffffff;
}

.mp-short-history-selected strong {
  color: var(--navy);
  font-size: 0.98rem;
}

.mp-short-history-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin: 0 0 16px;
}

.mp-short-evolution-section {
  margin-top: 14px;
  display: grid;
  gap: 10px;
}

.mp-short-visual-card {
  padding: 14px 14px 12px;
  border: 1px solid #d5dfed;
  border-radius: 18px;
  background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
  box-shadow: 0 10px 24px rgba(0, 31, 98, 0.06);
}

.mp-optional-map {
  padding: 0;
  overflow: hidden;
}

.mp-optional-map > summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 13px 16px;
  cursor: pointer;
  list-style: none;
}

.mp-optional-map > summary::-webkit-details-marker {
  display: none;
}

.mp-optional-map > summary span {
  color: var(--navy);
  font-size: 0.94rem;
  font-weight: 950;
}

.mp-optional-map > summary small {
  color: #6a7ea1;
  font-size: 0.78rem;
  font-weight: 800;
}

.mp-optional-map[open] {
  padding: 16px;
}

.mp-optional-map[open] > summary {
  margin: -16px -16px 14px;
  border-bottom: 1px solid #dbe6f4;
  background: #f8fbff;
}

.mp-short-map-shell {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 250px;
  gap: 18px;
  align-items: center;
}

.mp-short-map-shell.compact {
  display: block;
}

.mp-short-map-svg {
  min-width: 980px;
  width: 100%;
}

.mp-short-map-sidebar {
  padding: 16px;
  border: 1px solid #dbe6f4;
  border-radius: 16px;
  background: #ffffff;
  box-shadow: 0 10px 24px rgba(0, 31, 98, 0.07);
}

.mp-short-map-sidebar > span {
  color: #647895;
  font-size: 0.68rem;
  font-weight: 900;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.mp-short-map-sidebar > strong {
  display: block;
  margin-top: 6px;
  color: var(--navy);
  font-size: 1.18rem;
  font-weight: 900;
}

.mp-short-map-sidebar > small {
  display: block;
  margin-top: 4px;
  color: #647895;
  font-weight: 700;
}

.mp-short-map-stats {
  display: grid;
  gap: 8px;
  margin-top: 14px;
}

.mp-short-map-stats div {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  padding-top: 8px;
  border-top: 1px solid #edf2f8;
}

.mp-short-map-stats span {
  color: #647895;
  font-size: 0.74rem;
  font-weight: 800;
}

.mp-short-map-stats strong {
  color: var(--navy);
  font-size: 0.82rem;
  font-weight: 900;
}

.mp-short-line-panel {
  margin-top: 0;
}

.mp-short-line-summary {
  display: grid;
  grid-template-columns: repeat(3, minmax(118px, 1fr));
  gap: 8px;
  margin-top: 12px;
}

.mp-short-line-summary div {
  padding: 10px 12px;
  border: 1px solid #dbe6f4;
  border-radius: 12px;
  background: #ffffff;
  box-shadow: 0 8px 18px rgba(0, 31, 98, 0.05);
}

.mp-short-line-summary span,
.mp-short-line-summary small {
  display: block;
  color: #6a7ea1;
  font-size: 0.68rem;
  font-weight: 850;
}

.mp-short-line-summary span {
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.mp-short-line-summary strong {
  display: block;
  margin-top: 5px;
  color: var(--navy);
  font-size: 1rem;
  font-weight: 950;
}

.mp-short-line-summary strong.positive {
  color: #157347;
}

.mp-short-line-summary strong.negative {
  color: #b42318;
}

.mp-short-line-summary small {
  margin-top: 3px;
}

.mp-short-mover-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  margin-top: 10px;
}

.mp-short-mover-pill {
  padding: 10px 11px;
  border: 1px solid #dbe6f4;
  border-radius: 12px;
  background: #ffffff;
}

.mp-short-mover-pill.up {
  border-color: rgba(21, 115, 71, 0.22);
  background: rgba(21, 115, 71, 0.045);
}

.mp-short-mover-pill.down {
  border-color: rgba(180, 35, 24, 0.22);
  background: rgba(180, 35, 24, 0.045);
}

.mp-short-mover-pill span,
.mp-short-mover-pill small {
  display: block;
  color: #6a7ea1;
  font-size: 0.68rem;
  font-weight: 850;
}

.mp-short-mover-pill span {
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.mp-short-mover-pill strong {
  display: block;
  margin-top: 5px;
  color: var(--navy);
  font-size: 0.94rem;
  font-weight: 950;
}

.mp-short-mover-pill.up strong {
  color: #157347;
}

.mp-short-mover-pill.down strong {
  color: #b42318;
}

.mp-short-mover-pill small {
  margin-top: 3px;
}

.mp-short-line-chart-shell {
  position: relative;
  margin-top: 10px;
  padding: 12px 14px 8px;
  border: 1px solid #d7e2f2;
  border-radius: 18px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.96) 0%, rgba(247, 250, 255, 0.98) 100%),
    radial-gradient(circle at 12% 8%, rgba(31, 99, 196, 0.08), transparent 32%);
  overflow-x: auto;
  scrollbar-color: #b8c8df #eef3fa;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.75);
}

.mp-short-line-svg {
  min-width: 940px;
  min-height: 0;
}

.mp-short-line-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 8px;
  max-height: none;
  overflow: visible;
  padding-right: 4px;
}

.mp-short-line-legend span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 23px;
  padding: 0 8px;
  border: 1px solid #d8e3f1;
  border-radius: 999px;
  background: #ffffff;
  color: var(--navy);
  font-size: 0.68rem;
  font-weight: 850;
}

.mp-short-line-legend span.muted {
  color: #536783;
  font-weight: 750;
}

.mp-short-line-legend i {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  flex: 0 0 10px;
}

.mp-short-trend-tooltip {
  width: min(260px, calc(100% - 20px));
}

.mp-short-trend-tooltip-list {
  display: grid;
  gap: 5px;
  margin-top: 7px;
}

.mp-short-trend-tooltip-list div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.mp-short-trend-tooltip-list span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
  color: #536783;
  font-size: 0.72rem;
  font-weight: 800;
}

.mp-short-trend-tooltip-list span i {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  flex: 0 0 8px;
}

.mp-short-trend-tooltip-list strong {
  color: var(--navy);
  font-size: 0.75rem;
  font-weight: 950;
}

.mp-short-trend-controls {
  display: grid;
  justify-items: end;
  gap: 10px;
  min-width: min(100%, 680px);
}

.mp-short-trend-select-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px;
}

.mp-inline-select {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #6a7ea1;
  font-size: 0.7rem;
  font-weight: 900;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.mp-inline-select select {
  min-height: 36px;
  min-width: 150px;
  padding: 0 10px;
  border: 1px solid #cdd8eb;
  border-radius: 10px;
  background: #ffffff;
  color: var(--navy);
  font: 850 0.82rem/1 var(--font-sans);
  text-transform: none;
  letter-spacing: 0;
}

.mp-short-window-row {
  justify-content: flex-end;
}

.mp-short-recent-shell {
  max-height: 292px;
  overflow: auto;
}

.mp-short-recent-table {
  min-width: 100%;
}

.mp-subsection-header {
  margin-top: 4px;
}

.mp-subsection-header h4 {
  color: var(--navy);
  font-size: 0.95rem;
}

.mp-mini-chart {
  padding: 14px 16px;
  border: 1px solid #dbe4f2;
  border-radius: 14px;
  background: #ffffff;
}

.mp-mini-chart strong {
  display: block;
  margin-bottom: 10px;
  color: var(--navy);
  font-size: 0.92rem;
}

.mp-short-product-section {
  border-color: #cfdced;
  background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
}

.mp-short-product-header {
  align-items: flex-start;
  border-bottom: 1px solid rgba(0, 31, 98, 0.12);
  gap: 24px;
  padding-bottom: 30px;
  margin-bottom: 28px;
}

.mp-short-product-header .section-block-subtitle {
  max-width: 720px;
  margin-top: 12px;
  line-height: 1.55;
}

.mp-short-update-card,
.mp-short-product-header .mp-data-quality-badge {
  box-sizing: border-box;
  min-height: 62px;
  border-radius: 8px;
}

.mp-short-update-card {
  display: grid;
  align-content: center;
  gap: 2px;
  min-width: 0;
  padding: 9px 13px;
  border: 1px solid #cfdbec;
  background: #f7faff;
  color: var(--navy);
}

.mp-short-update-card span {
  color: #637795;
  font-size: 0.65rem;
  font-weight: 900;
  letter-spacing: 0.06em;
  line-height: 1;
  text-transform: uppercase;
}

.mp-short-update-card strong {
  margin-top: 2px;
  color: var(--navy);
  font-size: 0.82rem;
  font-weight: 900;
  line-height: 1.1;
}

.mp-short-update-card small {
  overflow: hidden;
  color: #637795;
  font-size: 0.67rem;
  font-weight: 700;
  line-height: 1.15;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.mp-short-product-header .mp-data-quality-badge {
  justify-content: center;
  padding: 10px 14px;
  border-radius: 8px;
  text-align: center;
  line-height: 1.2;
}


.mp-data-quality-badge {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 7px 11px;
  border-radius: 999px;
  font-size: 0.74rem;
  font-weight: 900;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.mp-data-quality-badge.ok {
  border: 1px solid #b9dfc8;
  background: #eef8f1;
  color: #157347;
}

.mp-data-quality-badge.warn {
  border: 1px solid #f2d4a8;
  background: #fff7e8;
  color: #9a5b00;
}

.mp-short-snapshot-grid,
.mp-short-movers-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
}

.mp-short-snapshot-card,
.mp-short-mover-card {
  display: flex;
  min-height: 116px;
  flex-direction: column;
  justify-content: space-between;
  gap: 7px;
  border: 1px solid #dbe6f5;
  border-radius: 16px;
  background: #ffffff;
  padding: 13px 14px;
  box-shadow: 0 10px 24px rgba(11, 45, 114, 0.05);
}

.mp-short-snapshot-card span,
.mp-short-mover-card span {
  color: #5c7398;
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.mp-short-snapshot-card strong,
.mp-short-mover-card strong {
  color: var(--navy);
  font-size: 1.05rem;
  line-height: 1.1;
}

.mp-short-snapshot-card small,
.mp-short-mover-card small {
  color: #536b91;
  font-size: 0.77rem;
  line-height: 1.25;
}

.mp-short-control-bar {
  margin: 0 0 12px;
}

.mp-clear-company-button {
  align-self: end;
  min-height: 42px;
}

.mp-short-context-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

.mp-short-context-bar span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 30px;
  padding: 0 10px;
  border: 1px solid #dbe6f4;
  border-radius: 999px;
  background: #ffffff;
  color: #536783;
  font-size: 0.76rem;
  font-weight: 800;
}

.mp-short-context-bar strong {
  color: var(--navy);
  font-size: 0.68rem;
  font-weight: 950;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.mp-short-quick-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}

.mp-short-quick-actions .metric-chip:disabled {
  cursor: not-allowed;
  opacity: 0.45;
}

.mp-crowding-tag {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  background: #eef4fc;
  color: var(--navy);
  font-size: 0.72rem;
  font-weight: 850;
  padding: 5px 9px;
  white-space: nowrap;
}

.mp-crowding-rank-list {
  display: grid;
  gap: 9px;
}

.mp-crowding-rank-row {
  display: grid;
  grid-template-columns: 34px minmax(180px, 0.9fr) minmax(180px, 1.25fr) minmax(260px, 1fr) auto;
  gap: 12px;
  align-items: center;
  width: 100%;
  border: 1px solid #dbe6f5;
  border-radius: 13px;
  background: #ffffff;
  cursor: pointer;
  padding: 10px 12px;
  text-align: left;
}

.mp-crowding-rank-row:hover {
  border-color: var(--navy);
  box-shadow: 0 8px 18px rgba(0, 31, 98, 0.08);
}

.mp-crowding-rank-index {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 999px;
  background: #eef4fc;
  color: var(--navy);
  font-weight: 900;
}

.mp-crowding-rank-name {
  display: grid;
  gap: 2px;
}

.mp-crowding-rank-name strong {
  color: var(--navy);
  font-size: 0.9rem;
}

.mp-crowding-rank-name small,
.mp-crowding-rank-metrics {
  color: #607797;
  font-size: 0.75rem;
  line-height: 1.25;
}

.mp-crowding-rank-bar {
  position: relative;
  height: 10px;
  overflow: hidden;
  border-radius: 999px;
  background: #eef3fb;
}

.mp-crowding-rank-bar i {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #8fb0e8 0%, var(--navy) 100%);
}

.mp-subsector-short-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.mp-subsector-short-card {
  display: flex;
  min-height: 104px;
  flex-direction: column;
  align-items: flex-start;
  justify-content: space-between;
  gap: 8px;
  border: 1px solid #dbe6f5;
  border-radius: 15px;
  background: #ffffff;
  color: var(--navy);
  cursor: pointer;
  padding: 12px 13px;
  text-align: left;
}

.mp-subsector-short-card:hover,
.mp-subsector-short-card.active {
  border-color: var(--navy);
  box-shadow: 0 10px 24px rgba(11, 45, 114, 0.10);
}

.mp-subsector-short-card span {
  font-size: 0.78rem;
  font-weight: 900;
}

.mp-subsector-short-card strong {
  font-size: 1.24rem;
}

.mp-subsector-short-card small {
  color: #607797;
  font-size: 0.74rem;
  line-height: 1.25;
}

.mp-short-methodology {
  border: 1px solid #dbe6f5;
  border-radius: 14px;
  background: #ffffff;
  padding: 12px 14px;
}

.mp-short-methodology summary {
  color: var(--navy);
  cursor: pointer;
  font-weight: 900;
}

.mp-short-methodology p {
  color: #536b91;
  font-size: 0.86rem;
  line-height: 1.55;
  margin: 10px 0 0;
}

.mp-short-trend-summary {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 12px;
}

.mp-short-trend-summary article {
  display: grid;
  gap: 5px;
  border: 1px solid #dbe6f5;
  border-radius: 13px;
  background: #ffffff;
  padding: 11px 12px;
}

.mp-short-trend-summary span {
  color: #5c7398;
  font-size: 0.7rem;
  font-weight: 900;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.mp-short-trend-summary strong {
  color: var(--navy);
  font-size: 1.16rem;
}

.mp-short-trend-summary small {
  color: #607797;
  font-size: 0.75rem;
}

@media (max-width: 1240px) {
  /* period summary (DAY/MTD/YTD) and 3-col rankings stay full-width until 860px */
  .mp-short-history-grid,
  .mp-short-map-shell,
  .mp-short-mover-strip,
  .mp-short-snapshot-grid,
  .mp-short-movers-grid,
  .mp-subsector-short-grid,
  .mp-short-trend-summary {
    grid-template-columns: 1fr 1fr;
  }

  .mp-crowding-rank-row {
    grid-template-columns: 32px minmax(160px, 1fr);
  }

  .mp-crowding-rank-bar,
  .mp-crowding-rank-metrics,
  .mp-crowding-rank-row .mp-crowding-tag {
    grid-column: 2;
  }

  .mp-chart-toolbar-split {
    align-items: stretch;
  }
}

@media (max-width: 860px) {
  .mp-short-update-card,
  .mp-short-product-header .mp-data-quality-badge {
    min-height: 52px;
    width: 100%;
  }

  .mp-period-summary-grid,
  .mp-short-top-grid,
  .mp-short-history-grid,
  .mp-short-map-shell,
  .mp-short-mover-strip,
  .mp-short-snapshot-grid,
  .mp-short-movers-grid,
  .mp-subsector-short-grid,
  .mp-short-trend-summary {
    grid-template-columns: 1fr;
  }

  /* Rankings: horizontal scroll so all 3 stay visible side-by-side */
  .mp-short-top-grid-wrapper {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  .mp-short-top-grid {
    grid-template-columns: repeat(3, minmax(220px, 1fr)) !important;
    width: max-content;
    min-width: 100%;
  }

  .mp-toolbar-row {
    align-items: stretch;
  }

  .mp-field,
  .mp-field-wide {
    flex: 1 1 100%;
  }

  .mp-actions {
    margin-left: 0;
    width: 100%;
    justify-content: flex-start;
    flex-wrap: wrap;
  }

  .mp-chart-tooltip {
    position: static;
    width: 100%;
    max-height: none;
    border-top: 1px solid #dfe8f6;
    border-left: 0;
    border-right: 0;
    border-bottom: 0;
    border-radius: 0;
    box-shadow: none;
    background: rgba(255, 255, 255, 0.98);
  }
}

/* ============================================================
   MOBILE RESPONSIVE — global pass
   ============================================================ */

/* -- Sector detail tabs: wrap into rows on mobile, never horizontal scroll -- */
@media (max-width: 700px) {
  .sector-detail-tabs {
    flex-wrap: wrap;
    min-height: 0;
    height: auto;
    padding: 6px 10px 4px;
    gap: 2px;
    overflow-x: visible;
  }

  .sector-detail-tabs button {
    min-width: 0;
    min-height: 34px;
    padding: 0 12px;
    border-radius: 6px;
    font-size: 0.7rem;
    flex: 0 0 auto;
  }

  /* Header: compact, hide subtitle and meta */
  .sector-home-page .home-header.product-header-mode {
    min-height: 0;
    gap: 8px;
    padding-bottom: 4px;
  }

  .sector-detail-header-meta {
    display: none !important;
  }

  .home-header.product-header-mode .home-brand-copy span {
    display: none;
  }

  .home-header.product-header-mode .home-brand-copy strong {
    font-size: 1rem;
  }
}

/* -- Sector catalog: 1-column on very small phones -- */
@media (max-width: 500px) {
  .sector-catalog {
    grid-template-columns: 1fr;
  }
}

/* -- Mobile: comprehensive compact pass (≤700px) -- */
@media (max-width: 700px) {
  /* KPI grid: 2×2 */
  .tracker-kpi-grid {
    grid-template-columns: repeat(2, 1fr);
    margin: 0;
    border-radius: 0;
    border-left: 0;
    border-right: 0;
  }

  .tracker-kpi {
    min-height: 68px;
    padding: 10px 12px;
    border-right: 1px solid #d8e1ed;
    border-bottom: 1px solid #d8e1ed;
  }

  .tracker-kpi:nth-child(2n) { border-right: 0; }
  .tracker-kpi:nth-last-child(-n+2) { border-bottom: 0; }

  .tracker-kpi strong { font-size: 18px; }
  .tracker-kpi span, .tracker-kpi small { font-size: 9.5px; }

  /* Filter bar: compact, stacked */
  .tracker-filter-bar {
    padding: 10px 12px;
    gap: 8px;
  }

  .tracker-filter-bar select,
  .tracker-toggle button {
    min-height: 42px;
  }

  /* Toggle view buttons: wrap, full width row */
  .tracker-toggle {
    gap: 5px;
  }

  .tracker-toggle button {
    flex: 1 1 auto;
    font-size: 11px;
    padding: 0 10px;
  }

  /* Charts: scrollable, proper aspect ratio */
  .tracker-chart-shell {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  .tracker-chart-svg {
    min-width: 640px;
    min-height: 0;
    height: 251px; /* 640 × 440/1120 */
  }

  /* Chart card: full bleed */
  .tracker-chart-card {
    margin: 0 0 12px;
    padding: 12px 10px 10px;
    border-radius: 0;
    border-left: 0;
    border-right: 0;
  }

  .tracker-chart-heading {
    flex-direction: column;
    gap: 4px;
    padding-bottom: 9px;
  }

  .tracker-chart-heading h3 { font-size: 11px; }
  .tracker-chart-heading p { font-size: 10px; }

  /* Section cards: full bleed, tight */
  .dataset-section {
    padding: 12px 10px 10px;
    border-radius: 0;
    margin-left: 0;
    margin-right: 0;
  }

  /* Panel headers: smaller */
  .sector-page-panel .panel-header h2 { font-size: 1rem; }
  .sector-page-panel .panel-header .panel-subtitle { font-size: 0.75rem; }

  /* Download/action row: stack */
  .sector-product-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
    padding: 8px 12px;
  }

  /* Sector dataset cards */
  .sector-dataset-grid { grid-template-columns: 1fr; gap: 8px; }
  .sector-dataset-card { padding: 12px; }
}

/* -- Comp table and data tables: horizontal scroll on mobile -- */
@media (max-width: 900px) {
  .comp-table-shell,
  .performance-table-shell {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  /* Sticky first column so company names stay visible while scrolling */
  .comp-table tbody td:first-child,
  .comp-table thead th[rowspan="2"]:first-child {
    position: sticky;
    left: 0;
    z-index: 2;
    background: #fff;
    box-shadow: 2px 0 6px rgba(0, 31, 98, 0.08);
  }

  .comp-table thead th[rowspan="2"]:first-child {
    background: var(--navy);
  }
}

/* -- Market Performance: more verticalization below 860px existing breakpoint -- */
@media (max-width: 600px) {
  .mp-toolbar {
    padding: 12px 14px;
    gap: 10px;
  }

  .mp-field label,
  .mp-field-wide label {
    font-size: 10px;
  }

  .mp-field select,
  .mp-field input,
  .mp-field-wide select,
  .mp-field-wide input {
    min-height: 44px;
    font-size: 13px;
  }

  .mp-actions button,
  .mp-actions a {
    min-height: 44px;
    font-size: 12px;
  }

  .mp-chart-shell {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  .mp-chart-shell svg {
    min-width: 600px;
  }
}

/* -- Index page: tighter on very small phones -- */
@media (max-width: 400px) {
  .home-brand-copy span {
    display: none;
  }

  .home-main {
    padding-top: 28px;
    padding-bottom: 48px;
    gap: 22px;
  }

  .home-dashboard-card {
    min-height: 190px;
    padding: 22px 18px 18px;
    gap: 9px;
  }

  .home-card-icon {
    width: 72px;
    height: 72px;
  }

  .home-card-icon svg {
    width: 54px;
    height: 54px;
  }
}

/* =====================================================================
   MOBILE OVERFLOW FIXES — prevents content from being cut off (≤700px)
   ===================================================================== */
@media (max-width: 700px) {
  /* Pharma / Sindusfarma: collapse multi-column grid to 1 column */
  .pharma-control-bar.redesigned {
    grid-template-columns: 1fr !important;
    padding: 10px 12px;
    gap: 8px;
    border-bottom: 1px solid #d3dce9;
  }

  /* Override all explicit nth-child grid placements so they stack */
  .pharma-control-bar.redesigned > .pharma-filter-group {
    grid-column: 1 !important;
    grid-row: auto !important;
  }

  /* Segmented control buttons: wrap + touch-friendly */
  .pharma-segmented-control {
    flex-wrap: wrap;
    gap: 4px;
  }

  .pharma-segmented-control button {
    flex: 1 1 auto;
    min-height: 38px;
    font-size: 0.7rem;
    padding: 0 8px;
    white-space: normal;
    text-align: center;
  }

  /* Reset pharma-compact-select width */
  .pharma-compact-select {
    width: 100%;
    min-height: 38px;
  }

  /* Period custom range: stack date pickers */
  .pharma-custom-range {
    flex-direction: column;
    gap: 6px;
  }

  .pharma-custom-range label {
    width: 100%;
  }

  /* Tracker filter bar: always 1-col, no min-width columns */
  .tracker-filter-bar,
  .tracker-filter-bar.tracker-filter-bar-spaced {
    grid-template-columns: 1fr !important;
  }

  /* Toggle buttons fill width */
  .tracker-toggle {
    width: 100%;
  }

  .tracker-toggle button {
    flex: 1 1 0;
    text-align: center;
  }

  /* Home index cards: slightly shorter on mobile, content visible */
  .home-dashboard-card {
    min-height: 240px;
    padding: 26px 18px 22px;
    gap: 10px;
  }

  /* Sector catalog on the home page: always 1-col */
  .sector-home-main {
    width: 100%;
    padding: 12px 0 20px;
  }

  /* Prevent any element from overflowing its parent */
  .tracker-dashboard,
  .dataset-section,
  .tracker-chart-card,
  .pharma-dashboard-section {
    max-width: 100%;
    overflow-x: hidden;
  }

  /* Sector catalog cards compact */
  .catalog-card {
    padding: 12px 14px;
  }

  /* Remove excessive inner padding on panel headers */
  .sector-home-page .sector-page-panel > .panel-header {
    padding: 12px 14px 10px;
  }
}

/* Extra tight on very small screens */
@media (max-width: 400px) {
  .pharma-segmented-control button {
    font-size: 0.65rem;
    padding: 0 6px;
    min-height: 36px;
  }

  .tracker-kpi strong {
    font-size: 16px;
  }

  .home-header {
    padding: 10px 14px;
    gap: 10px;
  }
}

/* ─── Cheat-sheet mobile: hide meta (date/badge), compact header ─── */
@media (max-width: 700px) {
  /* Hide the "As of..." + LIVE badge that overflow on phones */
  .cheat-header-meta {
    display: none;
  }

  /* Reduce logo size so header fits in one line */
  .cheat-header-logo {
    width: 72px !important;
  }

  .cheat-logo-link {
    padding-right: 10px;
  }

  .cheat-title-lockup {
    padding-left: 10px;
  }

  .cheat-title-lockup h1 {
    font-size: 1rem;
  }

  .cheat-title-lockup p {
    display: none;
  }

  .cheat-back-button {
    width: 32px;
    height: 32px;
    flex: 0 0 32px;
    margin-right: 8px;
  }

  /* Full-bleed iframe card, no padding wasting space */
  .cheat-content {
    padding: 6px 0 0;
  }

  .cheat-content-card {
    border-radius: 0;
    border-left: none;
    border-right: none;
  }

  /* Embedded iframe: reset min-width so content fits mobile screen */
  .embedded-dashboard-page {
    min-width: 0 !important;
    padding: 10px 10px 6px;
  }

  /* Comp dynamic table: switch from hidden overflow to horizontal scroll */
  .embedded-dashboard-page .comp-dynamic-table-shell {
    overflow-x: auto !important;
    -webkit-overflow-scrolling: touch;
  }

  .embedded-dashboard-page .comp-dynamic-table {
    min-width: 680px !important;
    table-layout: auto !important;
  }

  /* Fix white 1px line between Company and Rating columns on mobile.
     Root cause: all th have position:sticky z-index:3; Company th has z-index:4.
     That z-index difference creates a paint-layer boundary visible as a white seam.
     Fix: keep vertical sticking (top:0) but remove left-sticking and equalize z-index
     so no paint boundary exists between adjacent header cells. */
  .embedded-dashboard-page .comp-dynamic-table th.sticky-col {
    position: sticky !important;
    left: auto !important;
    z-index: 3 !important;
  }

  .embedded-dashboard-page .comp-dynamic-table th,
  .embedded-dashboard-page .comp-dynamic-table td {
    font-size: 0.7rem;
    padding: 7px 5px;
    white-space: nowrap;
  }

  /* Data/performance/coverage tables: ensure horizontal scroll shell */
  .embedded-dashboard-page .data-table-shell {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    max-width: 100%;
  }

  /* SIR/market data tables: keep minimum width for readability */
  .embedded-dashboard-page .mp-table-shell {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  /* Catalog cards: fill 100% width on narrow screens */
  .catalog-grid {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  /* Range banner inside chart: cap width and ensure readable */
  .tracker-range-banner {
    font-size: 10.5px;
    max-width: calc(100vw - 40px);
  }

  /* Live market data callout: compact on mobile (was too large) */
  .live-data-callout {
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
    padding: 9px 12px;
    border-radius: 10px;
    margin-top: 8px;
  }

  .live-data-callout strong {
    font-size: 0.76rem;
  }

  .live-data-callout span,
  .live-data-callout small {
    font-size: 0.72rem;
    white-space: normal;
  }

  /* SIR Trend Line: make it scroll horizontally (chart is wide), not overflow page */
  .mp-short-evolution-section {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  .mp-short-visual-card {
    min-width: 340px;
  }

  /* SIR trend summary KPIs: stack to 1 col */
  .mp-short-trend-summary {
    grid-template-columns: 1fr !important;
  }

  /* SIR 3-ranking tables (Short Position / SIR / Borrow Rate):
     keep 3-col layout but wrap in horizontal scroll so they stay side-by-side */
  .mp-short-top-grid-wrapper {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  .mp-short-top-grid {
    grid-template-columns: repeat(3, minmax(220px, 1fr)) !important;
    width: max-content;
    min-width: 100%;
  }

  /* SIR short mover pills: wrap instead of overflow */
  .mp-short-mover-strip {
    flex-wrap: wrap;
    gap: 8px;
  }

  .mp-short-mover-pill {
    min-width: 140px;
    flex: 1 1 140px;
  }
}
