:root {
  color-scheme: dark;
  --bg: #0b0f14;
  --panel: #151a21;
  --panel-2: #1d2630;
  --line: #2b3542;
  --chart-bg: #10151b;
  --chart-grid: rgba(70, 84, 102, 0.34);
  --text: #f1f4f8;
  --muted: #a7b0bd;
  --green: #22d9a0;
  --red: #ff6478;
  --amber: #f4c15d;
  --blue: #62b4ff;
  --violet: #b089ff;
  --market-footer-height: 48px;
  --font-ui: Arial, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.home-page {
  min-height: 100%;
  overflow: auto;
  background: #090d12;
  color: #f4f7fb;
}

.home-topbar {
  min-height: 72px;
  position: sticky;
  top: 0;
  z-index: 30;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 12px clamp(16px, 4vw, 52px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.11);
  background: rgba(9, 13, 18, 0.92);
  backdrop-filter: blur(18px);
}

.home-brand,
.home-nav,
.home-actions,
.home-proof-row,
.home-tool-links {
  display: flex;
  align-items: center;
}

.home-brand {
  gap: 10px;
  color: #f5f8fc;
  font-size: 20px;
  font-weight: 850;
  text-decoration: none;
  white-space: nowrap;
}

.home-brand-mark {
  width: 28px;
  height: 28px;
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 7px;
  background:
    linear-gradient(135deg, rgba(34, 217, 160, 0.95), rgba(244, 193, 93, 0.9) 52%, rgba(255, 100, 120, 0.95)),
    #111821;
  box-shadow: 0 0 26px rgba(34, 217, 160, 0.22);
}

.home-nav {
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

.home-nav a,
.home-tool-links a {
  color: #dce5ef;
  text-decoration: none;
}

.home-nav a {
  min-height: 34px;
  display: inline-flex;
  align-items: center;
  border: 1px solid transparent;
  border-radius: 6px;
  padding: 0 10px;
  font-size: 13px;
  font-weight: 800;
}

.home-nav a:hover,
.home-nav a:focus-visible {
  border-color: rgba(98, 180, 255, 0.55);
  color: #62b4ff;
  background: rgba(98, 180, 255, 0.12);
}

.home-hero {
  min-height: calc(100svh - 72px);
  position: relative;
  isolation: isolate;
  display: grid;
  align-items: center;
  padding: clamp(54px, 8vw, 112px) clamp(18px, 6vw, 82px) clamp(78px, 9vw, 120px);
  overflow: hidden;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.home-market-scene {
  position: absolute;
  inset: 0;
  z-index: -2;
  background:
    radial-gradient(circle at 74% 28%, rgba(98, 180, 255, 0.2), transparent 26%),
    radial-gradient(circle at 24% 78%, rgba(34, 217, 160, 0.16), transparent 30%),
    linear-gradient(180deg, #101821 0%, #090d12 74%);
}

.home-market-scene::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 3;
  background:
    linear-gradient(90deg, rgba(9, 13, 18, 0.94) 0%, rgba(9, 13, 18, 0.76) 37%, rgba(9, 13, 18, 0.28) 100%),
    linear-gradient(180deg, transparent 70%, #090d12 100%);
}

.home-grid-lines {
  position: absolute;
  inset: 0;
  opacity: 0.34;
  background:
    linear-gradient(rgba(255, 255, 255, 0.09) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.07) 1px, transparent 1px);
  background-size: 74px 74px;
  transform: perspective(700px) rotateX(58deg) translateY(15%);
  transform-origin: center bottom;
}

.home-signal-line {
  position: absolute;
  right: -6%;
  width: 72%;
  height: 4px;
  border-radius: 999px;
  filter: drop-shadow(0 0 18px currentColor);
}

.home-signal-line-a {
  top: 36%;
  color: #22d9a0;
  background: linear-gradient(90deg, transparent, #22d9a0 24%, #f4c15d 58%, transparent);
  transform: rotate(-8deg);
}

.home-signal-line-b {
  top: 49%;
  color: #62b4ff;
  background: linear-gradient(90deg, transparent, #62b4ff 32%, transparent);
  transform: rotate(5deg);
}

.home-signal-line-c {
  top: 61%;
  color: #ff6478;
  background: linear-gradient(90deg, transparent, #ff6478 18%, #f4c15d 44%, transparent);
  transform: rotate(-3deg);
}

.home-ticker-ribbon {
  min-width: 760px;
  position: absolute;
  right: -110px;
  z-index: 1;
  display: flex;
  gap: 14px;
  padding: 10px 14px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(16, 24, 33, 0.72);
  color: #cbd5e1;
  font-size: 12px;
  font-weight: 850;
  text-transform: uppercase;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.32);
}

.home-ribbon-top {
  top: 18%;
  transform: rotate(-4deg);
}

.home-ribbon-bottom {
  bottom: 16%;
  transform: rotate(4deg);
}

.home-orbit-panel {
  width: clamp(112px, 12vw, 160px);
  min-height: 86px;
  position: absolute;
  z-index: 2;
  display: grid;
  align-content: center;
  gap: 6px;
  padding: 14px;
  border: 1px solid rgba(255, 255, 255, 0.17);
  border-radius: 8px;
  background: rgba(19, 28, 38, 0.82);
  box-shadow: 0 26px 70px rgba(0, 0, 0, 0.34);
}

.home-orbit-panel strong {
  color: #9fb0c2;
  font-size: 11px;
  text-transform: uppercase;
}

.home-orbit-panel span {
  color: #f5f8fc;
  font-size: 24px;
  font-weight: 850;
}

.home-orbit-panel-a {
  top: 27%;
  right: 25%;
}

.home-orbit-panel-b {
  top: 43%;
  right: 9%;
}

.home-orbit-panel-c {
  bottom: 22%;
  right: 29%;
}

.home-hero-content {
  width: min(720px, 100%);
}

.home-eyebrow {
  margin: 0 0 12px;
  color: #f4c15d;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

.home-hero h1,
.home-section h2,
.home-tool-strip h2,
.home-final-cta h2 {
  margin: 0;
  color: #ffffff;
  letter-spacing: 0;
}

.home-hero h1 {
  max-width: 760px;
  font-size: clamp(46px, 7vw, 88px);
  line-height: 0.96;
}

.home-hero-copy {
  max-width: 650px;
  margin: 22px 0 0;
  color: #d7e0eb;
  font-size: clamp(17px, 2vw, 22px);
  line-height: 1.48;
}

.home-actions {
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}

.home-button {
  min-height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 7px;
  padding: 0 18px;
  font-size: 14px;
  font-weight: 900;
  text-decoration: none;
}

.home-button-primary {
  border-color: rgba(34, 217, 160, 0.68);
  background: #22d9a0;
  color: #071014;
  box-shadow: 0 14px 36px rgba(34, 217, 160, 0.2);
}

.home-button-secondary {
  background: rgba(255, 255, 255, 0.08);
  color: #f4f7fb;
}

.home-proof-row {
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 22px;
  color: #c1ccd8;
}

.home-proof-row span {
  min-height: 28px;
  display: inline-flex;
  align-items: center;
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 999px;
  padding: 0 10px;
  background: rgba(255, 255, 255, 0.05);
  font-size: 12px;
  font-weight: 850;
}

.home-section,
.home-feature-band,
.home-tool-strip,
.home-final-cta {
  width: min(1180px, calc(100% - 36px));
  margin: 0 auto;
}

.home-intro {
  display: grid;
  grid-template-columns: minmax(240px, 0.8fr) minmax(0, 1.2fr);
  gap: clamp(28px, 6vw, 72px);
  padding: clamp(54px, 8vw, 92px) 0 28px;
}

.home-section h2,
.home-tool-strip h2,
.home-final-cta h2 {
  font-size: clamp(28px, 4vw, 48px);
  line-height: 1.02;
}

.home-intro > p,
.home-tool-strip p,
.home-final-cta p,
.home-feature-card p {
  color: #b8c5d4;
  line-height: 1.62;
}

.home-intro > p {
  margin: 0;
  font-size: 19px;
}

.home-feature-band {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  padding: 34px 0 clamp(56px, 8vw, 96px);
}

.home-feature-card {
  min-height: 230px;
  display: grid;
  align-content: start;
  gap: 12px;
  padding: 18px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  background: #121922;
}

.home-feature-card span {
  color: #62b4ff;
  font-size: 12px;
  font-weight: 900;
}

.home-feature-card h3 {
  margin: 0;
  color: #f6f9fd;
  font-size: 19px;
  line-height: 1.16;
}

.home-feature-card p {
  margin: 0;
  font-size: 14px;
}

.home-tool-strip {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 420px);
  gap: clamp(24px, 5vw, 70px);
  align-items: start;
  padding: clamp(44px, 7vw, 78px) 0;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.home-tool-strip p {
  max-width: 680px;
  margin: 18px 0 0;
  font-size: 17px;
}

.home-tool-links {
  flex-direction: column;
  align-items: stretch;
  gap: 8px;
}

.home-tool-links a {
  min-height: 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 7px;
  padding: 0 14px;
  background: #111923;
  font-size: 14px;
  font-weight: 850;
}

.home-tool-links a::after {
  content: ">";
  color: #22d9a0;
}

.home-tool-links a:first-child {
  border-color: rgba(34, 217, 160, 0.45);
  background: rgba(34, 217, 160, 0.1);
}

.home-final-cta {
  min-height: 360px;
  display: grid;
  justify-items: start;
  align-content: center;
  padding: clamp(56px, 9vw, 112px) 0;
}

.home-final-cta p {
  max-width: 610px;
  margin: 16px 0 26px;
  font-size: 18px;
}

@media (max-width: 980px) {
  .home-topbar {
    align-items: flex-start;
    flex-direction: column;
  }

  .home-nav {
    justify-content: flex-start;
  }

  .home-market-scene::after {
    background:
      linear-gradient(180deg, rgba(9, 13, 18, 0.92) 0%, rgba(9, 13, 18, 0.72) 48%, rgba(9, 13, 18, 0.94) 100%);
  }

  .home-orbit-panel-a {
    top: 20%;
    right: 10%;
  }

  .home-orbit-panel-b {
    top: auto;
    right: 8%;
    bottom: 20%;
  }

  .home-orbit-panel-c {
    display: none;
  }

  .home-intro,
  .home-tool-strip {
    grid-template-columns: 1fr;
  }

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

@media (max-width: 620px) {
  .home-topbar {
    padding: 12px 14px;
  }

  .home-brand {
    font-size: 18px;
  }

  .home-nav {
    gap: 6px;
  }

  .home-nav a {
    min-height: 32px;
    padding: 0 8px;
    font-size: 12px;
  }

  .home-hero {
    min-height: 760px;
    padding: 46px 18px 70px;
  }

  .home-hero h1 {
    font-size: 45px;
  }

  .home-button {
    width: 100%;
  }

  .home-ticker-ribbon {
    min-width: 620px;
    right: -250px;
  }

  .home-orbit-panel {
    opacity: 0.74;
  }

  .home-orbit-panel-a {
    top: 10%;
    right: 16px;
  }

  .home-orbit-panel-b {
    bottom: 11%;
    right: 16px;
  }

  .home-feature-band {
    grid-template-columns: 1fr;
  }

  .home-section,
  .home-feature-band,
  .home-tool-strip,
  .home-final-cta {
    width: min(100% - 28px, 1180px);
  }
}

.intelligence-page {
  overflow: auto;
  background: #11161d;
}

.intelligence-topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  min-height: 76px;
  height: auto;
  flex-wrap: nowrap;
  background: rgba(17, 22, 29, 0.96);
  backdrop-filter: blur(12px);
}

.intelligence-brand {
  min-width: 340px;
  flex: 0 0 340px;
  overflow: hidden;
  font-size: 20px;
  font-weight: 850;
  letter-spacing: 0;
}

.intelligence-brand span:last-child {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.intelligence-topbar {
  gap: 12px;
  padding: 12px 16px;
}

.intelligence-topbar .top-nav {
  flex: 0 0 auto;
  gap: 8px;
}

.intelligence-topbar .nav-link {
  height: 40px;
  padding-inline: 14px;
  font-size: 15px;
}

.intelligence-topbar .top-control {
  flex: 0 1 230px;
  gap: 9px;
  font-size: 15px;
  font-weight: 800;
}

.intelligence-topbar .top-control span {
  flex: 0 0 auto;
}

.intelligence-topbar .top-control select {
  min-width: 128px;
  max-width: 198px;
  min-height: 40px;
  font-size: 15px;
}

.intelligence-topbar #mdi-refresh {
  flex: 0 0 auto;
  width: auto;
  min-height: 40px;
  padding-inline: 13px;
}

.intelligence-page button,
.intelligence-page input,
.intelligence-page select,
.intelligence-page textarea {
  font-family: var(--font-ui);
}

.mdi-top-status {
  display: inline-flex;
  align-items: center;
  flex: 1 1 330px;
  justify-content: flex-end;
  gap: 4px;
  min-width: 300px;
  color: #b4bec9;
  font-size: 10px;
  font-weight: 750;
  white-space: nowrap;
}

.mdi-top-status span {
  min-height: 24px;
  display: inline-flex;
  align-items: center;
  max-width: 235px;
  overflow: hidden;
  padding: 0 7px;
  border: 1px solid #303b46;
  border-radius: 999px;
  background: rgba(238, 242, 246, 0.045);
  text-overflow: ellipsis;
}

.mdi-top-status span:first-child,
.mdi-top-status span:last-child {
  max-width: 118px;
}

.mdi-settings-wrap {
  position: relative;
  flex: 0 0 auto;
}

.mdi-icon-button {
  width: 34px;
  min-width: 34px;
  padding: 0;
  display: inline-grid;
  place-items: center;
  font-size: 17px;
  line-height: 1;
}

.mdi-settings-menu {
  width: min(320px, calc(100vw - 24px));
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  z-index: 50;
  padding: 12px;
  border: 1px solid #33404c;
  border-radius: 8px;
  background: #18212a;
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.38);
}

.mdi-settings-menu[hidden] {
  display: none;
}

.mdi-settings-action {
  width: 100%;
  min-height: 34px;
  justify-content: center;
  border-color: rgba(159, 197, 232, 0.34);
  color: #eef3f8;
  background: rgba(159, 197, 232, 0.1);
  font-weight: 800;
}

.mdi-audit-modal[hidden] {
  display: none;
}

.mdi-subpage-modal[hidden] {
  display: none;
}

.mdi-audit-modal {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: grid;
  place-items: center;
  padding: 18px;
}

body.mdi-audit-open,
body.mdi-subpage-open {
  overflow: hidden;
}

.mdi-subpage-modal {
  position: fixed;
  inset: 0;
  z-index: 82;
  display: grid;
  place-items: center;
  padding: 18px;
}

.mdi-audit-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(7, 10, 14, 0.68);
  backdrop-filter: blur(3px);
}

.mdi-subpage-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(7, 10, 14, 0.68);
  backdrop-filter: blur(3px);
}

.mdi-audit-dialog {
  position: relative;
  z-index: 1;
  width: min(1120px, calc(100vw - 28px));
  max-height: min(820px, calc(100vh - 28px));
  display: grid;
  grid-template-rows: auto auto minmax(0, 1fr);
  overflow: hidden;
  border: 1px solid rgba(159, 197, 232, 0.32);
  border-radius: 9px;
  background: #141c25;
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.58);
}

.mdi-subpage-dialog {
  position: relative;
  z-index: 1;
  width: min(1180px, calc(100vw - 28px));
  max-height: min(850px, calc(100vh - 28px));
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  overflow: hidden;
  border: 1px solid rgba(159, 197, 232, 0.32);
  border-radius: 9px;
  background: #141c25;
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.58);
}

.mdi-audit-header,
.mdi-audit-toolbar {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 12px;
  padding: 12px 14px;
  border-bottom: 1px solid rgba(95, 112, 129, 0.38);
  background: rgba(21, 28, 37, 0.98);
}

.mdi-subpage-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 14px;
  border-bottom: 1px solid rgba(95, 112, 129, 0.38);
  background: rgba(21, 28, 37, 0.98);
}

.mdi-audit-header h2 {
  margin: 0;
  color: #f2f5f8;
  font-size: 20px;
}

.mdi-subpage-header h2 {
  margin: 0;
  color: #f2f5f8;
  font-size: 20px;
}

.mdi-audit-header span,
.mdi-audit-toolbar span {
  color: #aeb8c5;
  font-size: 12px;
}

.mdi-subpage-header span {
  color: #aeb8c5;
  font-size: 12px;
}

.mdi-audit-toolbar {
  min-height: 46px;
  padding-block: 8px;
  background: rgba(18, 25, 34, 0.96);
}

.mdi-audit-toolbar button {
  width: auto;
  min-height: 30px;
  padding: 0 11px;
}

.mdi-audit-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  justify-content: flex-end;
}

.mdi-audit-switch {
  display: inline-flex;
  gap: 3px;
  padding: 3px;
  border: 1px solid rgba(95, 112, 129, 0.42);
  border-radius: 8px;
  background: rgba(13, 19, 27, 0.82);
}

.mdi-audit-switch button {
  min-height: 26px;
  border-color: transparent;
  background: transparent;
  color: #aeb8c5;
}

.mdi-audit-switch button.active {
  border-color: rgba(159, 197, 232, 0.48);
  background: rgba(58, 85, 111, 0.72);
  color: #f2f5f8;
}

.mdi-audit-content {
  min-height: 0;
  display: grid;
  gap: 10px;
  padding: 12px;
  overflow: auto;
}

.mdi-subpage-content {
  min-height: 0;
  padding: 12px;
  overflow: auto;
}

.mdi-audit-summary {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 8px;
}

.mdi-audit-summary div {
  min-height: 72px;
  display: grid;
  align-content: center;
  gap: 4px;
  padding: 10px;
  border: 1px solid rgba(95, 112, 129, 0.34);
  border-radius: 7px;
  background: rgba(20, 29, 38, 0.76);
}

.mdi-audit-summary .mdi-health-ok,
.mdi-audit-row.mdi-audit-ok,
.mdi-provider-ok {
  border-color: rgba(147, 212, 170, 0.62);
  background: rgba(40, 86, 65, 0.24);
}

.mdi-audit-summary .mdi-health-warn,
.mdi-audit-row.mdi-audit-warn,
.mdi-provider-warn {
  border-color: rgba(244, 157, 165, 0.62);
  background: rgba(90, 38, 47, 0.25);
}

.mdi-audit-summary .mdi-health-watch,
.mdi-audit-row.mdi-audit-watch {
  border-color: rgba(230, 207, 139, 0.56);
  background: rgba(76, 66, 35, 0.22);
}

.mdi-health-ok {
  color: #9fd8b5 !important;
}

.mdi-health-warn {
  color: #f3a3aa !important;
}

.mdi-health-watch {
  color: #ead68d !important;
}

.mdi-health-muted {
  color: #aeb8c5 !important;
}

.mdi-audit-summary strong {
  color: #f2f5f8;
  font-size: 20px;
  font-variant-numeric: tabular-nums;
}

.mdi-audit-summary span,
.mdi-audit-storage {
  color: #aeb8c5;
  font-size: 11px;
}

.mdi-audit-storage {
  padding: 8px 10px;
  border: 1px solid rgba(95, 112, 129, 0.25);
  border-radius: 7px;
  background: rgba(17, 23, 31, 0.6);
}

.mdi-audit-heartbeat {
  display: grid;
  grid-template-columns: 1.35fr repeat(3, minmax(0, 1fr));
  gap: 8px;
  padding: 8px;
  border: 1px solid rgba(95, 112, 129, 0.34);
  border-radius: 8px;
  background: rgba(17, 23, 31, 0.62);
}

.mdi-audit-heartbeat.mdi-health-ok {
  border-color: rgba(147, 212, 170, 0.52);
  background: rgba(40, 86, 65, 0.2);
}

.mdi-audit-heartbeat.mdi-health-warn {
  border-color: rgba(244, 157, 165, 0.58);
  background: rgba(90, 38, 47, 0.22);
}

.mdi-audit-heartbeat.mdi-health-watch {
  border-color: rgba(230, 207, 139, 0.52);
  background: rgba(76, 66, 35, 0.2);
}

.mdi-audit-heartbeat > div {
  min-width: 0;
  display: grid;
  align-content: center;
  gap: 4px;
  min-height: 62px;
  padding: 8px 9px;
  border: 1px solid rgba(95, 112, 129, 0.25);
  border-radius: 7px;
  background: rgba(12, 18, 25, 0.45);
}

.mdi-audit-heartbeat span,
.mdi-audit-heartbeat small {
  min-width: 0;
  overflow: hidden;
  color: #aeb8c5;
  font-size: 11px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.mdi-audit-heartbeat strong {
  min-width: 0;
  overflow: hidden;
  color: #f2f5f8;
  font-size: 17px;
  font-weight: 850;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}

.mdi-audit-heartbeat-alerts {
  display: grid;
  gap: 6px;
}

.mdi-audit-log-panel {
  min-width: 0;
  display: grid;
  gap: 9px;
  padding: 11px;
  border: 1px solid rgba(95, 112, 129, 0.32);
  border-radius: 8px;
  background: rgba(16, 22, 30, 0.72);
}

.mdi-audit-panel-head {
  min-width: 0;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.mdi-audit-panel-head h3 {
  margin: 0;
  color: #f0f5fb;
  font-size: 14px;
  font-weight: 800;
  text-transform: uppercase;
}

.mdi-audit-panel-head small {
  display: block;
  margin-top: 3px;
  color: #aeb8c5;
  font-size: 11px;
}

.mdi-audit-badge {
  flex: 0 0 auto;
  padding: 4px 8px;
  border: 1px solid rgba(159, 197, 232, 0.28);
  border-radius: 999px;
  color: #c8d8e8;
  background: rgba(30, 43, 56, 0.82);
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
}

.mdi-audit-provider-section {
  min-width: 0;
  display: grid;
  gap: 8px;
  padding: 10px;
  border: 1px solid rgba(95, 112, 129, 0.32);
  border-radius: 8px;
  background: rgba(16, 22, 30, 0.78);
}

.mdi-audit-sections {
  display: grid;
}

.mdi-audit-provider-summary {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.mdi-audit-evidence-summary {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.mdi-stock-pressure-summary {
  grid-template-columns: repeat(7, minmax(0, 1fr));
}

.mdi-stock-pressure-monitor {
  border-color: rgba(159, 197, 232, 0.24);
}

.mdi-audit-badge.mdi-health-ok {
  border-color: rgba(147, 212, 170, 0.5);
  color: #9fd8b5;
}

.mdi-audit-badge.mdi-health-warn {
  border-color: rgba(244, 157, 165, 0.5);
  color: #f3a3aa;
}

.mdi-audit-badge.mdi-health-watch {
  border-color: rgba(230, 207, 139, 0.48);
  color: #ead68d;
}

.mdi-audit-provider-section > h3 {
  margin: 0;
  color: #dfe6ee;
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
}

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

.mdi-audit-sections {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.mdi-audit-sections section {
  min-width: 0;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  gap: 7px;
  padding: 10px;
  border: 1px solid rgba(95, 112, 129, 0.3);
  border-radius: 8px;
  background: rgba(16, 22, 30, 0.72);
}

.mdi-audit-sections h3 {
  margin: 0;
  color: #dfe6ee;
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
}

.mdi-audit-list {
  display: grid;
  gap: 6px;
}

.mdi-audit-row {
  min-width: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 3px 10px;
  align-items: center;
  min-height: 40px;
  padding: 8px 9px;
  border: 1px solid rgba(95, 112, 129, 0.28);
  border-radius: 7px;
  background: rgba(22, 31, 41, 0.74);
}

.mdi-audit-row span,
.mdi-audit-row small {
  min-width: 0;
  overflow: hidden;
  color: #aeb8c5;
  font-size: 11px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.mdi-audit-row strong {
  justify-self: end;
  color: #f0f5fb;
  font-size: 12px;
  font-variant-numeric: tabular-nums;
}

.mdi-audit-row.mdi-audit-ok strong {
  color: #9fd8b5;
}

.mdi-audit-row.mdi-audit-warn strong {
  color: #f3a3aa;
}

.mdi-audit-row.mdi-audit-watch strong {
  color: #ead68d;
}

.mdi-audit-row strong.mdi-provider-ok {
  border: 0;
  background: transparent;
  color: #9fd8b5;
}

.mdi-audit-row strong.mdi-provider-warn {
  border: 0;
  background: transparent;
  color: #f3a3aa;
}

.mdi-audit-row strong.mdi-provider-muted {
  color: #aeb8c5;
}

.mdi-audit-row small {
  grid-column: 1 / -1;
  color: #c4ccd6;
}

@media (max-width: 900px) {
  .screener-pressure-metrics,
  .screener-pressure-sectors,
  .screener-pressure-bottom {
    grid-template-columns: 1fr;
  }

  .mdi-audit-summary,
  .mdi-audit-heartbeat,
  .mdi-stock-pressure-summary,
  .mdi-audit-provider-list,
  .mdi-audit-sections {
    grid-template-columns: 1fr;
  }

  .mdi-audit-dialog {
    width: calc(100vw - 16px);
    max-height: calc(100vh - 16px);
  }

  .mdi-audit-toolbar {
    align-items: flex-start;
  }

  .mdi-audit-actions,
  .mdi-audit-switch {
    width: 100%;
  }

  .mdi-audit-switch button {
    flex: 1 1 0;
  }
}

.mdi-shell {
  min-height: calc(100vh - 72px);
  padding: 10px;
  background:
    linear-gradient(180deg, rgba(159, 197, 232, 0.07), transparent 300px),
    #11161d;
}

.mdi-command-center {
  display: grid;
  grid-template-rows: auto auto;
  gap: 8px;
  padding: 8px;
  border: 1px solid #303b46;
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(30, 39, 48, 0.96), rgba(17, 22, 29, 0.98)),
    #151b23;
  box-shadow: 0 16px 34px rgba(0, 0, 0, 0.22);
}

.mdi-command-main {
  display: grid;
  grid-template-columns: minmax(690px, 1.28fr) minmax(430px, 0.72fr);
  gap: 10px;
  align-items: stretch;
}

.mdi-command-copy {
  min-width: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 16px;
  align-items: start;
  padding: 4px 4px 5px;
  border-bottom: 1px solid rgba(159, 197, 232, 0.12);
}

.mdi-command-narrative {
  min-width: 0;
}

.mdi-command-market-control {
  justify-self: end;
  align-self: start;
  min-height: 36px;
  display: inline-flex;
  gap: 8px;
  padding-top: 2px;
  color: #aeb8c5;
  font-size: 13px;
  font-weight: 600;
}

.mdi-command-market-control select {
  min-width: 260px;
  max-width: min(340px, 34vw);
  min-height: 34px;
  font-size: 14px;
}

.mdi-command-intel {
  min-width: 0;
  display: grid;
  align-self: stretch;
  grid-template-rows: minmax(0, 1fr);
}

.mdi-command-trend {
  min-width: 0;
  padding: 8px;
  border: 1px solid #33404c;
  border-radius: 8px;
  background: rgba(24, 33, 43, 0.64);
}

.mdi-command-trend .mdi-panel-header {
  margin-bottom: 8px;
  padding-bottom: 7px;
}

.mdi-status-strip {
  display: flex;
  flex-wrap: nowrap;
  gap: 6px;
  margin-bottom: 0;
  color: #b4bec9;
  font-size: 11px;
  font-weight: 700;
  overflow: hidden;
}

.mdi-status-strip span {
  min-height: 22px;
  display: inline-flex;
  align-items: center;
  flex: 0 0 auto;
  padding: 0 7px;
  border: 1px solid #303b46;
  border-radius: 999px;
  background: rgba(238, 242, 246, 0.045);
}

.mdi-kicker {
  margin: 0 0 3px;
  color: #e6cf8b;
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.mdi-command-center h1 {
  max-width: 100%;
  margin: 0;
  color: #eef2f6;
  font-size: clamp(26px, 1.65vw, 36px);
  line-height: 1.08;
  letter-spacing: 0;
}

.mdi-explanation {
  max-width: 100%;
  margin: 4px 0 0;
  color: #c8d0d9;
  font-size: 13px;
  line-height: 1.36;
  overflow-wrap: anywhere;
}

.mdi-alert-clear {
  flex: 0 0 auto;
  border-color: rgba(169, 216, 185, 0.42);
  background: rgba(47, 91, 67, 0.18);
  color: #bde7ca;
}

.mdi-alert-high,
.mdi-alert-critical {
  border-color: rgba(243, 163, 170, 0.62);
  background: rgba(90, 38, 47, 0.26);
}

.mdi-alert-medium {
  border-color: rgba(230, 207, 139, 0.54);
  background: rgba(76, 66, 35, 0.24);
}

.mdi-alert-low,
.mdi-alert-info {
  border-color: rgba(159, 197, 232, 0.38);
  background: rgba(30, 48, 63, 0.30);
}

.mdi-data-quality-more {
  flex: 0 0 auto;
  color: #9fc5e8;
  font-weight: 800;
}

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

.mdi-command-strip {
  grid-template-columns: minmax(220px, 0.92fr) minmax(285px, 1.18fr) minmax(230px, 0.9fr);
  grid-template-rows: minmax(0, 1fr);
  align-items: stretch;
  gap: 8px;
  height: 100%;
}

.mdi-intel-primary,
.mdi-intel-secondary {
  display: grid;
  min-width: 0;
  gap: 8px;
}

.mdi-intel-primary {
  grid-template-columns: minmax(190px, 0.82fr) minmax(250px, 1.18fr);
}

.mdi-intel-secondary {
  grid-template-columns: minmax(250px, 0.95fr) minmax(300px, 1.05fr);
}

.mdi-metric-panel,
.mdi-panel {
  min-width: 0;
  border: 1px solid #33404c;
  border-radius: 8px;
  background: #18212a;
}

.mdi-metric-panel {
  min-height: 0;
  padding: 12px;
}

.mdi-command-strip .mdi-metric-panel {
  min-height: clamp(210px, 22vw, 310px);
}

.mdi-intel-secondary .mdi-metric-panel {
  min-height: 0;
}

.mdi-probability-compact {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  align-content: stretch;
  gap: 14px;
}

.mdi-panel {
  min-height: 160px;
  padding: 12px;
  overflow: hidden;
}

.mdi-transmission-panel {
  align-self: stretch;
  min-height: clamp(520px, 58vh, 760px);
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
}

.mdi-transmission-grid {
  min-height: 0;
  grid-template-columns: minmax(0, 0.88fr) minmax(0, 1.12fr);
  align-items: stretch;
}

.mdi-transmission-grid > section {
  min-height: 0;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
}

.mdi-transmission-grid .mdi-cross-asset,
.mdi-transmission-grid .mdi-causal-chain {
  box-sizing: border-box;
  min-height: 0;
  align-content: start;
  overflow-x: hidden;
  overflow-y: auto;
  padding-right: 4px;
}

.mdi-panel-title,
.mdi-panel-header span,
.mdi-muted,
.mdi-note {
  color: #a7b1bd;
}

.mdi-panel-title {
  margin-bottom: 6px;
  font-size: 13px;
  font-weight: 850;
  text-transform: uppercase;
}

.mdi-mpi-compact {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  align-content: stretch;
  justify-items: center;
  gap: 10px;
}

.mdi-mpi-arc {
  --mpi-pointer-deg: 0deg;
  width: min(218px, 96%);
  align-self: center;
  aspect-ratio: 1;
  position: relative;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background:
    radial-gradient(circle at center, #18212a 0 56%, transparent 57%),
    conic-gradient(from 225deg, #e67f8b 0deg, #e5cf84 135deg, #83d5a5 270deg, transparent 270deg 360deg);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.06), 0 8px 18px rgba(0, 0, 0, 0.22);
}

.mdi-mpi-arc::before {
  content: "";
  position: absolute;
  inset: 21px;
  border-radius: 50%;
  background: #18212a;
  box-shadow:
    inset 0 0 0 1px #33404c,
    0 0 0 9px rgba(13, 20, 29, 0.48);
}

.mdi-mpi-arc::after {
  content: "-100   0   +100";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 13px;
  color: #8794a3;
  font-size: 11px;
  font-weight: 800;
  text-align: center;
}

.mdi-mpi-pointer {
  position: absolute;
  z-index: 2;
  left: 50%;
  top: 50%;
  width: 0;
  height: 0;
  transform: rotate(var(--mpi-pointer-deg));
}

.mdi-mpi-pointer::before {
  content: "";
  position: absolute;
  left: -3px;
  top: -91px;
  width: 6px;
  height: 31px;
  border-radius: 999px;
  background: linear-gradient(180deg, #fff7d8, #e6cf8b);
  box-shadow: 0 0 0 1px rgba(17, 22, 29, 0.72), 0 0 14px rgba(230, 207, 139, 0.34);
}

.mdi-mpi-pointer::after {
  content: "";
  position: absolute;
  left: -6px;
  top: -97px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #fff7d8;
  box-shadow: 0 0 0 2px rgba(24, 33, 42, 0.92), 0 0 10px rgba(230, 207, 139, 0.42);
}

.mdi-mpi-arc-core {
  position: relative;
  z-index: 3;
  display: grid;
  justify-items: center;
  gap: 4px;
}

.mdi-mpi-arc-core strong {
  color: #eef2f6;
  font-size: 48px;
  line-height: 0.95;
}

.mdi-mpi-arc-core span {
  color: #a7b1bd;
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  text-align: center;
}

.mdi-scale,
.mdi-confidence-row,
.mdi-prob-row,
.mdi-fresh-row,
.mdi-mini-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.mdi-scale {
  margin-top: 8px;
  color: #8f9baa;
  font-size: 12px;
}

.mdi-regime {
  margin-bottom: 4px;
  color: #9fc5e8;
  font-size: 31px;
  font-weight: 850;
  line-height: 1.1;
}

.mdi-regime-compact {
  display: grid;
  grid-template-rows: auto auto auto minmax(0, 1fr);
  align-content: stretch;
  gap: 12px;
}

.mdi-regime-compact .mdi-muted {
  font-size: 13px;
}

.mdi-probability-compact .mdi-panel-title,
.mdi-outlook-compact .mdi-panel-title,
.mdi-trend-outlook .mdi-panel-title {
  margin-bottom: 6px;
}

.mdi-mini-bars,
.mdi-prob-bars {
  display: grid;
  gap: 12px;
  margin-top: 6px;
}

.mdi-probability-compact .mdi-prob-bars,
.mdi-regime-compact .mdi-mini-bars {
  align-content: center;
}

.mdi-intel-secondary .mdi-prob-bars {
  gap: 4px;
  margin-top: 4px;
}

.mdi-mini-bar {
  position: relative;
  min-height: 44px;
  align-items: flex-start;
  padding-bottom: 14px;
  color: #d8dee8;
  font-size: 15px;
  font-weight: 500;
}

.mdi-regime-compact .mdi-mini-bar span,
.mdi-regime-compact .mdi-mini-bar strong {
  font-size: 15px;
  font-weight: 500;
}

.mdi-mini-bar i {
  height: 8px;
  position: absolute;
  left: 0;
  right: auto;
  bottom: 0;
  border-radius: 999px;
  background: #9fc5e8;
}

.mdi-prob-row {
  grid-template-columns: 76px minmax(0, 1fr) 48px;
  display: grid;
  min-height: 38px;
  color: #dfe5ee;
  font-size: 16px;
  font-weight: 800;
}

.mdi-prob-row strong {
  font-size: 16px;
}

.mdi-intel-secondary .mdi-prob-row {
  min-height: 18px;
  font-size: 12px;
}

.mdi-prob-track {
  height: 21px;
  align-self: center;
  overflow: hidden;
  border-radius: 999px;
  background: #24303a;
}

.mdi-prob-track i {
  display: block;
  height: 100%;
  border-radius: inherit;
}

.mdi-up {
  background: #8bd8b0;
}

.mdi-flat {
  background: #e6cf8b;
}

.mdi-down {
  background: #f2a1a8;
}

.mdi-confidence-row {
  margin-top: 0;
  color: #c2cbd6;
  font-size: 14px;
  font-weight: 750;
}

.mdi-confidence-guardrail {
  margin-top: 7px;
  padding: 6px 8px;
  border: 1px solid rgba(230, 207, 139, 0.32);
  border-radius: 7px;
  color: #d7c98f;
  background: rgba(68, 59, 30, 0.22);
  font-size: 11px;
  font-weight: 720;
  line-height: 1.25;
}

.mdi-confidence-guardrail.mdi-guardrail-active {
  border-color: rgba(242, 161, 168, 0.38);
  color: #efb1b5;
  background: rgba(78, 35, 43, 0.24);
}

.mdi-intel-secondary .mdi-confidence-row {
  margin-top: 7px;
  font-size: 11px;
}

.mdi-tabs {
  display: flex;
  gap: 6px;
  margin: 12px 0;
}

.mdi-tab {
  min-width: 82px;
  border-color: #303b47;
  background: #151a21;
  font-weight: 850;
}

.mdi-tab.active {
  border-color: #62b4ff;
  color: #62b4ff;
  background: rgba(98, 180, 255, 0.14);
}

.mdi-panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 10px;
  border-bottom: 1px solid #26303a;
  padding-bottom: 8px;
}

.mdi-panel-header h2 {
  margin: 0;
  color: #f1f4f8;
  font-size: 14px;
  letter-spacing: 0;
}

.mdi-span-2 {
  grid-column: span 2;
}

.mdi-horizon-cards {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 6px;
  margin-top: 8px;
}

.mdi-trend-outlook {
  display: grid;
  grid-template-columns: minmax(150px, 0.24fr) minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  margin-bottom: 10px;
  padding: 8px;
  border: 1px solid #344252;
  border-radius: 7px;
  background: #111923;
}

.mdi-trend-outlook > div:first-child > span {
  display: block;
  color: #dfe5ee;
  font-size: 14px;
  font-weight: 800;
}

.mdi-trend-outlook .mdi-horizon-cards {
  margin-top: 0;
}

.mdi-intel-secondary .mdi-horizon-cards {
  gap: 5px;
  margin-top: 6px;
}

.mdi-horizon-card {
  min-height: 78px;
  display: grid;
  align-content: center;
  justify-items: start;
  gap: 5px;
  padding: 9px 8px;
  text-align: left;
}

.mdi-intel-secondary .mdi-horizon-card {
  min-height: 42px;
  padding: 6px;
}

.mdi-horizon-card strong {
  font-size: 18px;
  line-height: 1;
}

.mdi-intel-secondary .mdi-horizon-card strong {
  font-size: 15px;
}

.mdi-horizon-card small {
  color: #9ea9b8;
  font-size: 10px;
  line-height: 1.2;
}

.mdi-horizon-card .mdi-return-interval {
  color: #8a95a3;
  font-size: 8px;
  line-height: 1.15;
  white-space: normal;
}

.mdi-intel-secondary .mdi-horizon-card small {
  font-size: 9px;
}

.mdi-horizon-card span {
  font-size: 11px;
  font-weight: 600;
  line-height: 1.15;
}

.mdi-horizon-card.active {
  border-color: #9fc5e8;
  background: rgba(159, 197, 232, 0.14);
}

.mdi-positive {
  color: #8bd8b0;
}

.mdi-negative {
  color: #f2a1a8;
}

.mdi-neutral {
  color: #e6cf8b;
}

.mdi-driver-list,
.mdi-freshness,
.mdi-provider-health,
.mdi-bayesian,
.mdi-events,
.mdi-causal-chain {
  display: grid;
  gap: 10px;
  align-content: start;
}

.mdi-provider-health {
  gap: 10px;
}

.mdi-provider-scorecard {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.mdi-provider-score {
  min-height: 92px;
  display: grid;
  align-content: space-between;
  gap: 4px;
  padding: 10px;
  border: 1px solid rgba(95, 112, 129, 0.34);
  border-radius: 7px;
  background: rgba(18, 26, 35, 0.82);
}

.mdi-provider-score span {
  color: #aeb8c5;
  font-size: 10px;
  font-weight: 650;
  text-transform: uppercase;
}

.mdi-provider-score strong {
  color: #f2f5f8;
  font-size: 16px;
  font-weight: 500;
  letter-spacing: 0;
  overflow-wrap: anywhere;
}

.mdi-provider-score small {
  color: #aeb8c5;
  font-size: 10px;
  line-height: 1.35;
  overflow-wrap: anywhere;
}

.mdi-score-ok {
  border-color: rgba(146, 206, 166, 0.54);
  background: rgba(38, 74, 58, 0.24);
}

.mdi-score-watch {
  border-color: rgba(230, 207, 139, 0.48);
  background: rgba(76, 66, 35, 0.22);
}

.mdi-score-warn {
  border-color: rgba(242, 161, 168, 0.52);
  background: rgba(81, 42, 48, 0.22);
}

.mdi-provider-note {
  padding: 9px 10px;
  border: 1px solid rgba(143, 172, 197, 0.26);
  border-radius: 7px;
  color: #cdd5df;
  background: rgba(24, 33, 43, 0.62);
  font-size: 12px;
  line-height: 1.45;
  overflow-wrap: anywhere;
}

.mdi-provider-alerts {
  display: grid;
  gap: 7px;
}

.mdi-provider-alert {
  display: grid;
  gap: 3px;
  padding: 9px 10px;
  border: 1px solid rgba(230, 207, 139, 0.42);
  border-radius: 7px;
  background: rgba(76, 66, 35, 0.22);
}

.mdi-provider-alert strong {
  color: #f3e7b6;
  font-size: 12px;
  font-weight: 600;
  overflow-wrap: anywhere;
}

.mdi-provider-alert span {
  color: #d7dde5;
  font-size: 11px;
  line-height: 1.35;
  overflow-wrap: anywhere;
}

.mdi-alert-high {
  border-color: rgba(242, 161, 168, 0.5);
  background: rgba(81, 42, 48, 0.24);
}

.mdi-alert-high strong {
  color: #f2b7bd;
}

.mdi-provider-subhead {
  margin-top: 2px;
  color: #dfe6ee;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
}

.mdi-evidence-grid,
.mdi-corroboration-grid,
.mdi-provider-grid,
.mdi-evidence-tier-grid {
  display: grid;
  gap: 7px;
}

.mdi-evidence-row,
.mdi-corroboration-row,
.mdi-provider-pill {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  min-height: 30px;
  padding: 7px 9px;
  border: 1px solid rgba(95, 112, 129, 0.32);
  border-radius: 7px;
  background: rgba(20, 29, 38, 0.72);
  color: #d7dde5;
  font-size: 12px;
  overflow-wrap: anywhere;
}

.mdi-evidence-row strong,
.mdi-corroboration-row strong,
.mdi-provider-pill strong {
  color: #f0f5fb;
  font-variant-numeric: tabular-nums;
  font-size: 11px;
  font-weight: 500;
  overflow-wrap: anywhere;
  text-align: right;
}

.mdi-corroboration-row {
  background: rgba(33, 42, 50, 0.78);
  border-color: rgba(143, 172, 197, 0.38);
}

.mdi-evidence-tier {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 42px;
  gap: 10px;
  align-items: center;
  min-height: 52px;
  padding: 9px 10px;
  border: 1px solid rgba(95, 112, 129, 0.32);
  border-radius: 7px;
  background: rgba(20, 29, 38, 0.72);
}

.mdi-evidence-tier div {
  min-width: 0;
  display: grid;
  gap: 2px;
}

.mdi-evidence-tier strong {
  overflow: hidden;
  color: #eef3f8;
  font-size: 13px;
  font-weight: 700;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.mdi-evidence-tier span {
  color: #aeb8c5;
  font-size: 11px;
  line-height: 1.25;
}

.mdi-evidence-tier em {
  justify-self: end;
  color: #f0f5fb;
  font-style: normal;
  font-variant-numeric: tabular-nums;
  font-size: 16px;
  font-weight: 700;
}

.mdi-tier-available {
  border-color: rgba(146, 206, 166, 0.42);
}

.mdi-tier-warn {
  border-color: rgba(242, 161, 168, 0.46);
}

.mdi-tier-muted {
  opacity: 0.84;
}

.mdi-gap-row {
  border-color: rgba(242, 161, 168, 0.42);
  background: rgba(81, 42, 48, 0.18);
}

.mdi-provider-ok {
  border-color: rgba(147, 212, 170, 0.62);
}

.mdi-provider-warn {
  border-color: rgba(244, 157, 165, 0.62);
}

.mdi-provider-muted {
  opacity: 0.78;
}

@media (max-width: 860px) {
  .mdi-provider-scorecard {
    grid-template-columns: 1fr;
  }
}

.mdi-causal-chain {
  grid-template-rows: auto minmax(0, 1fr);
  min-height: 0;
}

.mdi-causal-count {
  min-height: 28px;
  display: flex;
  align-items: center;
  padding: 0 8px;
  border: 1px solid #344252;
  border-radius: 7px;
  background: rgba(238, 242, 246, 0.045);
  color: #c8d0d9;
  font-size: 12px;
  font-weight: 700;
}

.mdi-causal-scroll {
  min-height: 0;
  max-height: clamp(360px, 46vh, 620px);
  display: grid;
  gap: 10px;
  overflow: auto;
  padding-right: 4px;
}

.mdi-driver,
.mdi-event,
.mdi-event-shock-card,
.mdi-causal-step,
.mdi-note,
.mdi-roadmap-grid > div,
.mdi-empty {
  border: 1px solid #344252;
  border-radius: 7px;
  background: #202a35;
}

.mdi-driver {
  padding: 12px;
  min-height: fit-content;
  overflow: visible;
}

.mdi-driver strong,
.mdi-event strong {
  display: block;
  color: #eef3f8;
  font-size: 15px;
  line-height: 1.18;
  font-weight: 600;
  overflow-wrap: anywhere;
}

#mdi-positive-drivers .mdi-driver {
  border-color: rgba(139, 216, 176, 0.45);
  background: rgba(34, 61, 52, 0.76);
}

#mdi-positive-drivers .mdi-driver strong,
#mdi-positive-drivers .mdi-driver span {
  color: #a7e3c2;
}

#mdi-positive-drivers .mdi-driver p {
  color: #d6f0e1;
}

#mdi-negative-drivers .mdi-driver {
  border-color: rgba(242, 161, 168, 0.50);
  background: rgba(70, 42, 48, 0.78);
}

#mdi-negative-drivers .mdi-driver strong,
#mdi-negative-drivers .mdi-driver span {
  color: #f6b7bd;
}

#mdi-negative-drivers .mdi-driver p {
  color: #f8d6da;
}

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

.mdi-top-drivers-panel {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  height: clamp(500px, 58vh, 620px);
}

.mdi-top-drivers-panel .mdi-driver-columns {
  min-height: 0;
}

.mdi-top-drivers-panel .mdi-driver-columns section {
  min-height: 0;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
}

.mdi-top-drivers-panel .mdi-driver-list {
  min-height: 0;
  max-height: 100%;
  overflow: auto;
  padding-right: 4px;
}

.mdi-driver-columns section,
.mdi-combo-grid section {
  min-width: 0;
}

.mdi-driver-columns h3,
.mdi-combo-grid h3 {
  margin: 0 0 10px;
  color: #c8d0d9;
  font-size: 13px;
  font-weight: 850;
  letter-spacing: 0;
  text-transform: uppercase;
}

.mdi-combo-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  align-items: start;
}

.mdi-transmission-grid {
  align-items: stretch;
}

.mdi-transmission-grid section {
  min-height: 0;
}

.mdi-transmission-grid .mdi-causal-scroll {
  height: 100%;
  max-height: 100%;
}

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

.mdi-combo-grid .mdi-roadmap-grid > div {
  min-height: 58px;
  padding: 8px;
}

.mdi-combo-grid .mdi-roadmap-grid strong {
  font-size: 14px;
}

.mdi-combo-grid .mdi-event,
.mdi-combo-grid .mdi-driver,
.mdi-combo-grid .mdi-event-shock-card,
.mdi-combo-grid .mdi-causal-step {
  padding: 8px;
  overflow: visible;
}

.mdi-combo-grid .mdi-note {
  padding: 7px;
}

.mdi-driver span,
.mdi-driver p,
.mdi-event span,
.mdi-event p,
.mdi-causal-step p,
.mdi-causal-step small {
  margin: 6px 0 0;
  color: #9faaba;
  font-size: 13px;
  line-height: 1.42;
  overflow-wrap: anywhere;
}

.mdi-factor-heatmap {
  display: grid;
  gap: 8px;
  font-family: var(--font-ui);
}

.mdi-heat-page-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
}

.mdi-command-factor-map .mdi-heat-page-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px;
}

.mdi-heat-cell {
  min-height: 72px;
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(52px, 0.7fr);
  align-items: center;
  gap: 6px;
  padding: 10px;
  border: 1px solid rgba(68, 78, 86, 0.24);
  border-radius: 7px;
  color: #17252a;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.16);
  font-family: var(--font-ui);
}

.mdi-command-factor-map .mdi-heat-cell {
  min-height: 56px;
  grid-template-columns: minmax(0, 1.75fr) minmax(58px, 0.65fr);
  gap: 6px;
  padding: 7px;
}

.mdi-heat-main {
  min-width: 0;
  display: grid;
  gap: 5px;
}

.mdi-heat-cell strong,
.mdi-heat-score,
.mdi-heat-cell small {
  overflow-wrap: anywhere;
}

.mdi-heat-cell strong {
  min-width: 0;
  font-size: 18px;
  line-height: 1.12;
  font-weight: 500;
}

.mdi-command-factor-map .mdi-heat-cell strong {
  font-size: 15px;
  white-space: normal;
  overflow: visible;
  text-overflow: clip;
}

.mdi-heat-score {
  justify-self: end;
  font-size: 27px;
  font-weight: 500;
  line-height: 1;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.mdi-command-factor-map .mdi-heat-score {
  font-size: 18px;
}

.mdi-heat-score.positive {
  color: #2f8f5f;
}

.mdi-heat-score.negative {
  color: #b74f5d;
}

.mdi-heat-score.neutral {
  color: #4d5a66;
}

.mdi-heat-cell small {
  display: block;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.15;
}

.mdi-command-factor-map .mdi-heat-cell small {
  display: none;
}

.mdi-heat-pager {
  min-height: 26px;
  display: grid;
  grid-template-columns: 30px minmax(0, 1fr) 30px;
  align-items: center;
  gap: 6px;
  margin-top: 2px;
}

.mdi-heat-pager button {
  min-height: 24px;
  border: 1px solid rgba(31, 43, 55, 0.64);
  border-radius: 5px;
  background: rgba(238, 242, 246, 0.08);
  color: #e8eef5;
  font-size: 18px;
  font-weight: 700;
  line-height: 1;
  cursor: pointer;
}

.mdi-heat-pager button:disabled {
  cursor: default;
  opacity: 0.36;
}

.mdi-heat-pager span {
  color: #c8d0d9;
  font-size: 12px;
  font-weight: 500;
  text-align: center;
}

.mdi-mpi-trend {
  display: grid;
  gap: 8px;
}

.mdi-trend-toolbar {
  position: absolute;
  top: auto;
  bottom: 10px;
  right: 10px;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  padding: 3px;
  border: 1px solid rgba(52, 66, 82, 0.78);
  border-radius: 7px;
  background: rgba(13, 20, 29, 0.86);
  backdrop-filter: blur(6px);
}

.mdi-trend-toolbar > span {
  color: #8c98a8;
  font-size: 10px;
  font-weight: 600;
  padding: 0 5px 0 2px;
}

.mdi-trend-zoom {
  display: inline-grid;
  grid-template-columns: repeat(7, minmax(30px, 1fr));
  gap: 2px;
  padding: 0;
  border: 0;
  border-radius: 7px;
  background: transparent;
}

.mdi-trend-zoom button {
  min-height: 22px;
  border: 0;
  border-radius: 4px;
  background: transparent;
  color: #9ea9b8;
  font-size: 10px;
  font-weight: 800;
  cursor: pointer;
}

.mdi-trend-zoom button.active {
  background: #23303a;
  color: #9fc5e8;
  box-shadow: inset 0 0 0 1px rgba(159, 197, 232, 0.35);
}

.mdi-trend-summary {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.mdi-trend-summary > div {
  min-height: 62px;
  display: grid;
  align-content: center;
  border: 1px solid #344252;
  border-radius: 7px;
  background: #111923;
  padding: 9px;
}

.mdi-trend-summary strong {
  color: #f1f4f8;
  font-size: 18px;
  font-weight: 900;
  overflow-wrap: anywhere;
}

.mdi-trend-summary span {
  color: #9ea9b8;
  font-size: 11px;
  font-weight: 750;
}

.mdi-trend-chart {
  width: 100%;
  aspect-ratio: 3 / 1;
  min-height: 178px;
  display: block;
}

.mdi-trend-chart-box {
  position: relative;
  min-width: 0;
}

.mdi-command-trend .mdi-trend-chart {
  aspect-ratio: 4 / 1;
  min-height: 142px;
}

.mdi-command-trend .mdi-trend-summary > div {
  min-height: 54px;
}

.mdi-command-trend .mdi-trend-summary strong {
  font-size: 16px;
}

.mdi-command-trend .mdi-note {
  border: 0;
  background: transparent;
  padding: 0 2px;
  color: #8c98a8;
}

.mdi-command-trend .mdi-trend-latest {
  display: none;
}

.mdi-trend-chart rect {
  fill: #0d141d;
  stroke: #253444;
}

.mdi-trend-chart line {
  stroke: rgba(158, 169, 184, 0.18);
  stroke-width: 1;
}

.mdi-trend-chart line.zero {
  stroke: rgba(241, 244, 248, 0.42);
  stroke-dasharray: 4 4;
}

.mdi-trend-chart line.x-grid {
  stroke: rgba(98, 180, 255, 0.12);
}

.mdi-trend-chart line.x-hour-marker {
  stroke: rgba(158, 169, 184, 0.42);
  stroke-width: 1;
}

.mdi-trend-chart path.area {
  fill: url("#mdi-trend-fill");
  stroke: none;
}

.mdi-trend-chart path.line {
  fill: none;
  stroke: #9fc5e8;
  stroke-width: 3;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.mdi-trend-chart circle {
  fill: #e6cf8b;
  stroke: #0d141d;
  stroke-width: 1.5;
}

.mdi-trend-chart text {
  fill: #7f8b99;
  font-size: 10px;
  font-weight: 400;
}

.mdi-trend-chart text.x-axis-label {
  font-size: 7.5px;
  font-weight: 400;
}

.mdi-trend-chart text.y-axis-label {
  font-size: 7.5px;
  font-weight: 400;
}

.mdi-trend-chart text.y-axis-title {
  fill: #8c98a8;
  font-size: 8px;
  font-weight: 500;
  letter-spacing: 0;
}

.mdi-trend-chart text.axis-title {
  fill: #f4c15d;
  font-size: 10px;
  font-weight: 600;
}

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

.mdi-fresh-row {
  min-height: 30px;
  padding: 6px 8px;
  border-bottom: 1px solid #242d37;
  color: #c7d0dc;
  font-size: 12px;
}

.mdi-fresh-row strong {
  color: #f4c15d;
}

.mdi-causal-step {
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr);
  gap: 10px;
  padding: 9px;
}

.mdi-causal-step > span {
  width: 24px;
  height: 24px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: #26313d;
  color: #62b4ff;
  font-weight: 850;
}

.mdi-causal-step strong {
  color: #f2f6fb;
  font-size: 13px;
  overflow-wrap: anywhere;
}

.mdi-event {
  padding: 9px;
}

.mdi-event-shock {
  display: grid;
  gap: 8px;
}

.mdi-event-shock-card {
  padding: 10px;
}

.mdi-event-shock-card.mdi-event-material {
  border-color: rgba(169, 216, 185, 0.38);
  background: rgba(47, 91, 67, 0.12);
}

.mdi-event-shock-card.mdi-event-expired {
  border-color: rgba(159, 197, 232, 0.24);
  background: rgba(30, 48, 63, 0.16);
}

.mdi-event-shock-card strong {
  display: block;
  color: #f1f4f8;
  font-size: 13px;
}

.mdi-event-shock-card span,
.mdi-event-shock-card p,
.mdi-event-shock-card small {
  display: block;
  margin-top: 5px;
  color: #aab4c2;
  font-size: 12px;
  line-height: 1.4;
}

.mdi-event-shock-card span {
  color: #f4c15d;
  font-weight: 800;
}

.mdi-event-decay-meter {
  height: 7px;
  margin-top: 7px;
  overflow: hidden;
  border: 1px solid rgba(159, 197, 232, 0.26);
  border-radius: 999px;
  background: rgba(8, 12, 18, 0.66);
}

.mdi-event-decay-meter i {
  height: 100%;
  display: block;
  border-radius: inherit;
  background: linear-gradient(90deg, #f2a1a8, #e6cf8b, #9fd8b5);
}

.mdi-event-materiality-note {
  color: #9fc5e8 !important;
}

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

.mdi-settings {
  display: grid;
  gap: 10px;
}

.mdi-settings label {
  display: grid;
  gap: 5px;
  color: #aab4c2;
  font-size: 12px;
  font-weight: 800;
}

.mdi-settings select,
.mdi-settings input {
  width: 100%;
}

.mdi-note,
.mdi-empty {
  padding: 9px;
  font-size: 12px;
  line-height: 1.45;
}

.mdi-roadmap-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  min-width: 0;
}

.mdi-roadmap-grid > div {
  min-width: 0;
  min-height: 74px;
  display: grid;
  align-content: center;
  gap: 5px;
  padding: 10px;
  overflow-wrap: anywhere;
}

.mdi-roadmap-grid strong {
  color: #f1f4f8;
  font-size: 17px;
  font-weight: 600;
  line-height: 1.2;
  overflow-wrap: anywhere;
}

.mdi-roadmap-grid span {
  color: #9ea9b8;
  font-size: 12px;
  line-height: 1.3;
  overflow-wrap: anywhere;
}

.mdi-uncertainty-grid {
  display: grid;
  grid-template-columns: 1.15fr repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.mdi-uncertainty-grid > div {
  min-height: 64px;
  display: grid;
  align-content: center;
  gap: 5px;
  padding: 10px;
  border: 1px solid rgba(95, 112, 129, 0.32);
  border-radius: 7px;
  background: rgba(18, 27, 36, 0.76);
}

.mdi-uncertainty-head {
  border-color: rgba(159, 197, 232, 0.42) !important;
  background: rgba(30, 48, 63, 0.78) !important;
}

.mdi-uncertainty-grid strong {
  color: #f1f4f8;
  font-size: 16px;
  font-variant-numeric: tabular-nums;
}

.mdi-uncertainty-grid span,
.mdi-uncertainty-grid small {
  min-width: 0;
  overflow: hidden;
  color: #aeb8c5;
  font-size: 11px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.mdi-uncertainty-component {
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
}

.mdi-uncertainty-component span {
  color: #d7e0ea;
}

.mdi-uncertainty-strong {
  border-color: rgba(169, 216, 185, 0.52) !important;
  background: rgba(47, 91, 67, 0.20) !important;
}

.mdi-uncertainty-watch {
  border-color: rgba(230, 207, 139, 0.48) !important;
  background: rgba(76, 66, 35, 0.18) !important;
}

.mdi-uncertainty-weak {
  border-color: rgba(243, 163, 170, 0.56) !important;
  background: rgba(90, 38, 47, 0.22) !important;
}

@media (max-width: 1180px) {
  .intelligence-topbar {
    height: auto;
    flex-wrap: wrap;
  }

  .mdi-command-copy {
    grid-template-columns: 1fr;
    gap: 6px;
  }

  .mdi-command-market-control {
    justify-self: start;
  }

  .mdi-command-main {
    grid-template-columns: 1fr;
  }

  .mdi-command-trend {
    max-width: none;
  }

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

  .mdi-command-strip {
    grid-template-columns: 1fr;
    grid-template-rows: auto auto;
  }

  .mdi-command-strip .mdi-metric-panel {
    min-height: 150px;
  }

  .mdi-mpi-arc {
    width: min(128px, 72%);
  }

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

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

@media (max-width: 760px) {
  .intelligence-brand {
    min-width: 0;
    font-size: 18px;
  }

  .mdi-shell {
    padding: 8px;
  }

  .mdi-command-center h1 {
    font-size: 28px;
  }

  .mdi-command-copy {
    padding: 4px 0 6px;
  }

  .mdi-explanation {
    white-space: normal;
  }

  .mdi-status-strip {
    flex-wrap: wrap;
  }

  .mdi-command-strip,
  .mdi-intel-primary,
  .mdi-intel-secondary,
  .mdi-grid,
  .mdi-factor-heatmap,
  .mdi-driver-columns,
  .mdi-combo-grid,
  .mdi-trend-summary,
  .mdi-trend-latest,
  .mdi-roadmap-grid {
    grid-template-columns: 1fr;
  }

  .mdi-command-strip .mdi-metric-panel {
    min-height: 128px;
  }

  .mdi-mpi-arc {
    width: min(118px, 70%);
  }

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

  .mdi-span-2 {
    grid-column: auto;
  }

  .mdi-tabs {
    overflow-x: auto;
  }
}

* {
  box-sizing: border-box;
}

html,
body {
  height: 100%;
}

body {
  margin: 0;
  background: linear-gradient(180deg, #0d1117 0%, var(--bg) 42%, #090d12 100%);
  color: var(--text);
  font-family: var(--font-ui);
  letter-spacing: 0;
  overflow: hidden;
}

.topbar {
  height: 78px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 16px;
  background: #15171b;
  border-bottom: 1px solid var(--line);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  flex: 0 0 340px;
  max-width: 340px;
  overflow: hidden;
  font-family: var(--font-ui);
  font-size: 20px;
  font-weight: 850;
  white-space: nowrap;
}

.topbar .intelligence-brand {
  min-width: 340px;
  flex: 0 0 340px;
  max-width: 340px;
  font-size: 20px;
  font-weight: 850;
  letter-spacing: 0;
}

.brand > span:last-child {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
}

.attribution {
  flex: 0 1 180px;
  max-width: 180px;
  overflow: hidden;
  color: var(--muted);
  font-size: 12px;
  text-decoration: none;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.attribution:hover {
  color: var(--text);
}

.top-nav {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  flex: 0 0 auto;
}

.nav-link {
  height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--panel-2);
  color: var(--text);
  font-size: 14px;
  font-weight: 800;
  text-decoration: none;
  white-space: nowrap;
}

@media (max-width: 1450px) {
  .intelligence-topbar .mdi-top-status {
    display: none;
  }
}

@media (max-width: 1320px) {
  .attribution {
    display: none;
  }

  .topbar:not(.intelligence-topbar) .color-control,
  .topbar:not(.intelligence-topbar) .top-control span {
    display: none;
  }
}

.nav-link:hover,
.nav-link.active {
  border-color: rgba(86, 168, 255, 0.72);
  color: var(--blue);
  background: rgba(86, 168, 255, 0.14);
}

.brand-mark {
  width: 12px;
  height: 24px;
  border-radius: 3px;
  background: linear-gradient(180deg, var(--green), var(--amber) 50%, var(--red));
}

.brand-globe {
  width: 50px;
  height: 46px;
  flex: 0 0 auto;
  position: relative;
  display: inline-grid;
  place-items: center;
  filter: drop-shadow(0 0 14px rgba(86, 168, 255, 0.42));
  perspective: 120px;
}

.brand-globe-sphere {
  width: 38px;
  height: 38px;
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(132, 217, 255, 0.86);
  border-radius: 50%;
  background:
    radial-gradient(circle at 34% 26%, rgba(255, 255, 255, 0.95) 0 7%, transparent 16%),
    radial-gradient(circle at 65% 68%, rgba(29, 103, 186, 0.9), rgba(11, 42, 96, 0.98) 62%, rgba(3, 12, 34, 1));
  box-shadow:
    inset -8px -8px 14px rgba(0, 5, 26, 0.68),
    inset 4px 5px 11px rgba(114, 222, 255, 0.42),
    0 0 10px rgba(77, 208, 225, 0.6);
}

.brand-globe-map,
.brand-globe-grid {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
}

.brand-globe-map {
  background:
    radial-gradient(ellipse at 63% 35%, rgba(95, 207, 93, 0.86) 0 12%, transparent 23%),
    radial-gradient(ellipse at 42% 47%, rgba(242, 184, 75, 0.82) 0 9%, transparent 18%),
    radial-gradient(ellipse at 30% 30%, rgba(94, 179, 83, 0.74) 0 11%, transparent 21%),
    radial-gradient(ellipse at 72% 62%, rgba(242, 184, 75, 0.72) 0 10%, transparent 20%);
  animation: globe-map-spin 5.8s linear infinite;
}

.brand-globe-grid {
  background:
    repeating-linear-gradient(90deg, transparent 0 8px, rgba(129, 220, 255, 0.5) 9px 10px),
    repeating-linear-gradient(0deg, transparent 0 8px, rgba(129, 220, 255, 0.42) 9px 10px);
  mix-blend-mode: screen;
  opacity: 0.64;
}

.brand-orbit {
  width: 58px;
  height: 18px;
  position: absolute;
  top: 14px;
  left: -4px;
  border: 2px solid rgba(242, 184, 75, 0.86);
  border-left-color: rgba(86, 168, 255, 0.72);
  border-radius: 50%;
  transform: rotate(-16deg);
  box-shadow: 0 0 9px rgba(242, 184, 75, 0.82);
  animation: orbit-glow 2.8s ease-in-out infinite;
}

.brand-om {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: #ffd76d;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 20px;
  font-weight: 700;
  text-shadow: 0 0 4px rgba(255, 156, 40, 0.95), 0 1px 1px rgba(0, 0, 0, 0.75);
}

@keyframes globe-map-spin {
  from {
    transform: translateX(-18%) rotate(0deg);
  }
  to {
    transform: translateX(18%) rotate(360deg);
  }
}

@keyframes orbit-glow {
  0%,
  100% {
    opacity: 0.74;
    transform: rotate(-16deg) scaleX(0.98);
  }
  50% {
    opacity: 1;
    transform: rotate(-16deg) scaleX(1.06);
  }
}

.top-control {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 650;
}

.top-control select {
  max-width: 210px;
}

.top-control.color-control {
  gap: 7px;
}

.top-control input[type="color"] {
  width: 36px;
  min-width: 36px;
  height: 28px;
  padding: 2px;
  border-radius: 6px;
  cursor: pointer;
}

.account-control {
  min-width: 130px;
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 750;
}

.account-control span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.account-control button {
  width: auto;
  min-width: 72px;
  height: 28px;
  padding-inline: 10px;
  font-size: 12px;
}

select,
input,
button {
  height: 34px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--panel-2);
  color: var(--text);
  padding: 0 10px;
  font: inherit;
  min-width: 0;
}

select:focus,
input:focus,
button:focus {
  outline: 2px solid rgba(86, 168, 255, 0.45);
  outline-offset: 1px;
}

body.auth-locked {
  overflow: hidden;
}

.auth-gate {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: grid;
  place-items: center;
  padding: 24px;
  background:
    linear-gradient(90deg, rgba(6, 14, 16, 0.78), rgba(10, 15, 21, 0.42) 52%, rgba(255, 213, 143, 0.16)),
    url("/MDI/static/risemode-media-header-auth.jpg") center / cover no-repeat;
}

.auth-gate.is-hidden {
  display: none;
}

.auth-gate.is-loading .auth-panel {
  display: none;
}

.auth-gate:not(.is-loading) .auth-loading-panel {
  display: none;
}

.auth-loading-panel {
  box-sizing: border-box;
  width: min(420px, calc(100vw - 48px));
  display: grid;
  justify-items: center;
  gap: 12px;
  padding: 28px 26px;
  border: 1px solid rgba(244, 208, 133, 0.34);
  border-radius: 8px;
  background: rgba(10, 17, 20, 0.76);
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.42);
  text-align: center;
  backdrop-filter: blur(14px);
}

.auth-loading-mark {
  width: 38px;
  height: 38px;
  border: 2px solid rgba(86, 168, 255, 0.22);
  border-top-color: rgba(244, 208, 133, 0.86);
  border-radius: 50%;
  animation: auth-spin 0.95s linear infinite;
}

.auth-loading-panel h1 {
  margin: 0;
  color: var(--text);
  font-size: 24px;
  line-height: 1.15;
  font-weight: 500;
}

.auth-loading-panel p {
  margin: 0;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.45;
}

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

.auth-panel {
  box-sizing: border-box;
  width: min(820px, calc(100vw - 48px));
  max-height: calc(100vh - 48px);
  overflow: auto;
  display: grid;
  gap: 14px;
  padding: 20px;
  border: 1px solid rgba(244, 208, 133, 0.38);
  border-radius: 8px;
  background: rgba(10, 17, 20, 0.78);
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.48);
  backdrop-filter: blur(14px);
}

.auth-panel-head {
  display: grid;
  gap: 4px;
}

.auth-kicker {
  color: var(--blue);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0;
  text-transform: uppercase;
}

.auth-panel h1 {
  margin: 0;
  font-size: 27px;
  line-height: 1.1;
  font-weight: 500;
}

.auth-panel p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.38;
}

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

.auth-form label {
  display: grid;
  gap: 6px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 500;
}

.auth-form input,
.auth-form select,
.auth-form button,
.auth-code-form input,
.auth-code-form button {
  min-width: 0;
  width: 100%;
}

.auth-form button,
.auth-sms-box button,
.auth-email-box button,
.auth-google-button {
  margin-top: 2px;
  border-color: rgba(86, 168, 255, 0.54);
  background: rgba(86, 168, 255, 0.16);
  color: var(--text);
  font-size: 16px;
  font-weight: 500;
  cursor: pointer;
}

.auth-form button:hover,
.auth-form button:focus-visible,
.auth-sms-box button:hover,
.auth-sms-box button:focus-visible,
.auth-email-box button:hover,
.auth-email-box button:focus-visible,
.auth-google-button:hover,
.auth-google-button:focus-visible {
  background: rgba(86, 168, 255, 0.26);
}

.auth-form button:disabled,
.auth-sms-box button:disabled,
.auth-email-box button:disabled,
.auth-google-button:disabled {
  opacity: 0.58;
  cursor: wait;
}

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

.auth-sms-box {
  display: grid;
  gap: 12px;
  padding: 14px;
  border: 1px solid rgba(86, 168, 255, 0.32);
  border-radius: 8px;
  background: rgba(8, 15, 19, 0.54);
}

.auth-email-box {
  display: grid;
  gap: 14px;
  padding: 14px;
  border: 1px solid rgba(244, 208, 133, 0.32);
  border-radius: 8px;
  background: rgba(8, 15, 19, 0.5);
}

.auth-email-box[hidden] {
  display: none;
}

.auth-email-mode {
  display: grid;
  gap: 10px;
  padding: 12px;
  border: 1px solid rgba(148, 163, 184, 0.2);
  border-radius: 8px;
  background: rgba(15, 23, 33, 0.38);
}

.auth-email-mode h2 {
  margin: 0 0 3px;
  color: var(--text);
  font-size: 17px;
  font-weight: 500;
}

.auth-email-mode p {
  margin: 0;
  font-size: 13px;
  line-height: 1.35;
}

.auth-email-back {
  width: max-content;
  min-height: 30px;
  padding-inline: 10px;
  border-color: rgba(148, 163, 184, 0.34);
  background: rgba(148, 163, 184, 0.14);
  color: var(--muted);
  font-size: 13px;
  justify-self: start;
}

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

.auth-email-grid label {
  display: grid;
  gap: 6px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 500;
}

.auth-email-grid input,
.auth-email-grid select {
  min-width: 0;
  width: 100%;
}

.auth-email-actions {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.auth-email-actions-signin {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.auth-email-actions-enroll {
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr);
}

.auth-email-actions button {
  min-height: 38px;
  white-space: normal;
}

.auth-email-code-form {
  grid-template-columns: minmax(0, 1fr) minmax(160px, 0.7fr);
}

.auth-email-enroll-mode[hidden] {
  display: none;
}

.auth-sms-head {
  color: var(--text);
  font-size: 16px;
  font-weight: 500;
}

.auth-sms-grid {
  display: grid;
  grid-template-columns: minmax(150px, 0.75fr) minmax(0, 1.4fr);
  gap: 12px;
  align-items: end;
}

.auth-code-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: end;
}

.auth-code-form[hidden] {
  display: none;
}

.auth-code-form label {
  display: grid;
  gap: 6px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 500;
}

.auth-divider {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  color: rgba(226, 232, 240, 0.76);
  font-size: 13px;
  font-weight: 500;
  text-transform: uppercase;
}

.auth-divider::before,
.auth-divider::after {
  content: "";
  height: 1px;
  background: rgba(244, 208, 133, 0.28);
}

.auth-google-button {
  width: 100%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  border-color: rgba(255, 255, 255, 0.42);
  background: rgba(255, 255, 255, 0.92);
  color: #17202a;
}

.auth-google-button[hidden],
.auth-sso-button[hidden] {
  display: none;
}

.auth-sso-buttons {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(112px, 1fr));
  gap: 8px;
}

.auth-sso-button:first-child {
  grid-column: auto;
}

.auth-sso-button {
  min-height: 34px;
  padding-inline: 8px;
  font-size: 13px;
  white-space: normal;
}

.auth-google-signin {
  display: grid;
  gap: 8px;
}

.auth-sso-heading {
  color: var(--text);
  font-size: 15px;
  font-weight: 500;
}

.auth-google-signin label {
  display: grid;
  gap: 6px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 500;
}

.auth-google-signin input {
  width: 100%;
}

.auth-google-button:hover,
.auth-google-button:focus-visible {
  background: #ffffff;
}

.auth-google-button span {
  width: 18px;
  height: 18px;
  display: inline-grid;
  place-items: center;
  border-radius: 50%;
  color: #1a73e8;
  background: #fff;
  font-family: Arial, sans-serif;
  font-weight: 500;
}

.auth-status {
  min-width: 0;
  min-height: 22px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.4;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.auth-status[data-tone="success"] {
  color: var(--green);
}

.auth-status[data-tone="error"] {
  color: var(--red);
}

.dashboard-shell {
  height: calc(100vh - 78px - var(--market-footer-height));
  min-width: 0;
  overflow: hidden;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 330px;
  gap: 8px;
  padding: 8px;
  background: var(--bg);
}

.screener-shell {
  height: calc(100vh - 78px);
  min-height: 0;
  display: grid;
  padding: 8px;
  background: var(--bg);
}

.screener-page .screener-panel {
  grid-template-rows: auto auto auto minmax(0, 1fr);
}

.screener-page .screener-table {
  min-width: 1180px;
  font-size: 12px;
}

.screener-page .screener-table th,
.screener-page .screener-table td {
  height: 34px;
}

.calendar-shell {
  height: calc(100vh - 78px);
  min-height: 0;
  display: grid;
  padding: 8px;
  background: var(--bg);
}

.calendar-page .calendar-panel {
  grid-template-rows: auto auto auto minmax(0, 1fr);
}

.calendar-toolbar {
  display: grid;
  grid-template-columns: minmax(180px, 1.2fr) minmax(130px, 0.7fr) minmax(132px, 0.6fr) minmax(132px, 0.6fr) minmax(180px, 1fr);
  gap: 6px;
  padding: 8px;
  border-bottom: 1px solid var(--line);
}

.calendar-toolbar input,
.calendar-toolbar select {
  width: 100%;
}

.calendar-summary {
  min-height: 38px;
  display: flex;
  align-items: center;
  gap: 8px;
  overflow-x: auto;
  padding: 7px 8px;
  border-bottom: 1px solid var(--line);
  background: #15191f;
  color: var(--muted);
  font-size: 11px;
  white-space: nowrap;
}

.calendar-summary > span {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.calendar-summary-total {
  color: var(--text);
  font-weight: 850;
}

.calendar-content {
  min-height: 0;
  overflow: auto;
}

.calendar-table-wrap {
  min-height: 0;
  height: 100%;
  overflow: auto;
}

.calendar-table {
  width: 100%;
  min-width: 1160px;
  border-collapse: separate;
  border-spacing: 0;
  font-size: 12px;
  line-height: 1.25;
}

.calendar-table th,
.calendar-table td {
  height: 38px;
  max-width: 260px;
  padding: 7px 9px;
  border-right: 1px solid rgba(49, 55, 65, 0.64);
  border-bottom: 1px solid rgba(49, 55, 65, 0.64);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}

.calendar-table th {
  position: sticky;
  top: 0;
  z-index: 3;
  background: #20252c;
  color: var(--muted);
  cursor: pointer;
  font-size: 10px;
  font-weight: 850;
  text-align: left;
  text-transform: uppercase;
}

.calendar-table th.active {
  color: var(--blue);
}

.calendar-table tbody tr:hover {
  background: rgba(86, 168, 255, 0.1);
}

.calendar-date-cell {
  color: var(--text);
  font-weight: 800;
}

.calendar-symbol-cell {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--blue);
  font-weight: 900;
}

.calendar-symbol-cell strong {
  overflow: hidden;
  text-overflow: ellipsis;
}

.calendar-symbol-button {
  width: auto;
  height: 26px;
  min-width: 0;
  padding: 0 6px;
  border: 1px solid rgba(98, 180, 255, 0.34);
  border-radius: 5px;
  background: rgba(98, 180, 255, 0.1);
  color: var(--blue);
  cursor: pointer;
  font-size: 12px;
  font-weight: 900;
}

.calendar-symbol-button:hover {
  border-color: rgba(98, 180, 255, 0.72);
  background: rgba(98, 180, 255, 0.18);
  color: var(--text);
}

.calendar-logo-slot,
.calendar-logo-fallback,
.calendar-logo-img {
  width: 24px;
  height: 24px;
  flex: 0 0 auto;
}

.calendar-logo-slot {
  display: inline-grid;
  place-items: center;
}

.calendar-logo-img,
.calendar-logo-fallback {
  border: 1px solid rgba(86, 168, 255, 0.34);
  border-radius: 50%;
  background: #101318;
}

.calendar-logo-img {
  display: block;
  object-fit: contain;
}

.calendar-logo-fallback {
  display: inline-grid;
  place-items: center;
  color: var(--text);
  font-size: 9px;
  font-weight: 900;
}

.calendar-logo-fallback[hidden],
.calendar-logo-img[hidden] {
  display: none;
}

.calendar-type-pill {
  min-width: 72px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 4px 7px;
  border: 1px solid rgba(49, 55, 65, 0.9);
  border-radius: 999px;
  background: rgba(49, 55, 65, 0.42);
  color: var(--text);
  font-size: 10px;
  font-weight: 900;
  text-transform: uppercase;
}

.calendar-type-pill.economic {
  border-color: rgba(86, 168, 255, 0.46);
  color: var(--blue);
  background: rgba(86, 168, 255, 0.12);
}

.calendar-type-pill.earnings,
.calendar-type-pill.revenue {
  border-color: rgba(242, 184, 75, 0.5);
  color: var(--amber);
  background: rgba(242, 184, 75, 0.12);
}

.calendar-type-pill.dividends {
  border-color: rgba(32, 201, 151, 0.5);
  color: var(--green);
  background: rgba(32, 201, 151, 0.12);
}

.calendar-type-pill.ipo {
  border-color: rgba(255, 92, 112, 0.5);
  color: var(--red);
  background: rgba(255, 92, 112, 0.12);
}

.calendar-event-cell {
  color: var(--text);
  font-weight: 780;
}

.calendar-detail-overlay {
  position: fixed;
  inset: 0;
  z-index: 1200;
  display: grid;
  justify-content: end;
  background: rgba(0, 0, 0, 0.48);
}

.calendar-detail-overlay[hidden] {
  display: none;
}

.calendar-detail-panel {
  width: min(560px, 96vw);
  height: 100vh;
  min-height: 0;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  border-left: 1px solid rgba(98, 180, 255, 0.24);
  background: linear-gradient(180deg, #171d25, #11161d);
  box-shadow: -18px 0 46px rgba(0, 0, 0, 0.46);
}

.calendar-detail-heading {
  min-height: 52px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 12px;
  border-bottom: 1px solid rgba(98, 180, 255, 0.18);
  background: #19212a;
  font-size: 14px;
  font-weight: 900;
}

.calendar-detail-heading button {
  width: auto;
  min-width: 64px;
  cursor: pointer;
}

.calendar-detail-content {
  min-height: 0;
  overflow: auto;
}

.calendar-detail-profile {
  display: grid;
  gap: 5px;
  padding: 14px 12px;
  border-bottom: 1px solid rgba(49, 55, 65, 0.7);
}

.calendar-detail-profile strong {
  font-size: 16px;
}

.calendar-detail-profile span,
.calendar-detail-profile a {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.35;
}

.calendar-detail-profile a {
  color: var(--blue);
  text-decoration: none;
}

.calendar-detail-section {
  display: grid;
  gap: 8px;
  padding: 12px;
  border-bottom: 1px solid rgba(49, 55, 65, 0.7);
}

.calendar-detail-section h3 {
  margin: 0;
  color: var(--muted);
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

.calendar-detail-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  background: rgba(49, 55, 65, 0.7);
}

.calendar-detail-metric {
  min-width: 0;
  display: grid;
  gap: 5px;
  padding: 9px;
  background: var(--panel);
}

.calendar-detail-metric span,
.calendar-detail-list span {
  overflow: hidden;
  color: var(--muted);
  font-size: 10px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.calendar-detail-metric strong,
.calendar-detail-list strong {
  overflow: hidden;
  color: var(--text);
  font-size: 12px;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}

.calendar-detail-metric.metric-tone-blue strong {
  color: var(--blue);
}

.calendar-detail-metric.metric-tone-green strong {
  color: var(--green);
}

.calendar-detail-metric.metric-tone-amber strong {
  color: var(--amber);
}

.calendar-detail-metric.metric-tone-violet strong {
  color: var(--violet);
}

.calendar-detail-metric.metric-tone-negative strong,
.calendar-detail-metric.metric-tone-red strong {
  color: var(--red);
}

.calendar-detail-note {
  color: var(--muted);
  font-size: 11px;
  line-height: 1.35;
}

.calendar-data-gap {
  display: grid;
  gap: 6px;
  padding: 14px;
  border: 1px solid rgba(98, 180, 255, 0.18);
  background: linear-gradient(180deg, rgba(25, 33, 42, 0.76), rgba(13, 17, 23, 0.82));
}

.calendar-data-gap.compact {
  padding: 10px 12px;
}

.calendar-data-gap strong {
  color: var(--text);
  font-size: 13px;
}

.calendar-data-gap span {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.4;
}

.calendar-analyst-hero {
  display: grid;
  gap: 10px;
  padding: 10px;
  border: 1px solid rgba(98, 180, 255, 0.18);
  background: linear-gradient(180deg, rgba(25, 33, 42, 0.92), rgba(18, 23, 31, 0.95));
}

.calendar-analyst-copy {
  color: var(--text);
  font-size: 12px;
  line-height: 1.45;
}

.calendar-analyst-meter {
  display: grid;
  gap: 7px;
}

.calendar-analyst-meter > div:first-child,
.calendar-target-scale,
.calendar-target-legend {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.calendar-analyst-meter span,
.calendar-target-scale span,
.calendar-target-legend span {
  color: var(--muted);
  font-size: 10px;
}

.calendar-analyst-meter strong,
.calendar-target-scale strong {
  color: var(--text);
  font-size: 11px;
  font-weight: 900;
}

.calendar-confidence-track {
  height: 9px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(49, 55, 65, 0.86);
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.55);
}

.calendar-confidence-track span {
  height: 100%;
  display: block;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--red), var(--amber), var(--green));
}

.calendar-target-visual {
  display: grid;
  gap: 7px;
}

.calendar-target-track {
  position: relative;
  height: 13px;
  border-radius: 999px;
  background:
    linear-gradient(90deg, rgba(255, 100, 120, 0.88), rgba(244, 193, 93, 0.9), rgba(34, 217, 160, 0.88)),
    rgba(49, 55, 65, 0.86);
  box-shadow: inset 0 2px 3px rgba(0, 0, 0, 0.42);
}

.calendar-target-visual.is-empty .calendar-target-track {
  background: rgba(49, 55, 65, 0.86);
}

.calendar-target-track i {
  position: absolute;
  top: 50%;
  width: 4px;
  height: 21px;
  border-radius: 999px;
  transform: translate(-50%, -50%);
  box-shadow: 0 0 0 2px rgba(10, 13, 18, 0.82), 0 4px 10px rgba(0, 0, 0, 0.3);
}

.calendar-target-track i.mean,
.calendar-target-legend i.mean {
  background: var(--text);
}

.calendar-target-track i.current,
.calendar-target-legend i.current {
  background: var(--blue);
}

.calendar-target-legend {
  justify-content: flex-start;
  flex-wrap: wrap;
}

.calendar-target-legend i {
  width: 8px;
  height: 8px;
  display: inline-block;
  margin-right: 4px;
  border-radius: 50%;
}

.calendar-analyst-grid {
  margin-top: 1px;
}

.calendar-ownership-visual {
  display: grid;
  grid-template-columns: 116px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  padding: 12px 10px 10px;
  border: 1px solid rgba(98, 180, 255, 0.18);
  background: linear-gradient(180deg, rgba(25, 33, 42, 0.82), rgba(14, 18, 24, 0.88));
}

.calendar-ownership-legend3d {
  min-width: 0;
  display: grid;
  gap: 8px;
}

.calendar-ownership-row {
  min-width: 0;
  display: grid;
  grid-template-columns: 11px minmax(0, 1fr) auto;
  gap: 8px;
  align-items: center;
  color: var(--muted);
  font-size: 11px;
}

.calendar-ownership-row i {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.04);
}

.calendar-ownership-row span:not(.ownership-swatch) {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.calendar-ownership-row strong {
  color: var(--text);
  font-size: 12px;
  font-variant-numeric: tabular-nums;
}

.calendar-detail-list {
  display: grid;
  border-top: 1px solid rgba(49, 55, 65, 0.7);
}

.calendar-detail-list > div {
  min-height: 34px;
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  gap: 8px;
  align-items: center;
  padding: 7px 0;
  border-bottom: 1px solid rgba(49, 55, 65, 0.7);
}

.macro-shell {
  height: calc(100vh - 52px);
  min-height: 0;
  display: grid;
  grid-template-rows: minmax(0, 1fr) minmax(230px, 32vh);
  gap: 8px;
  padding: 8px;
  overflow: hidden;
  background: var(--bg);
}

.macro-map-panel,
.macro-table-panel {
  min-height: 0;
  display: grid;
  overflow: hidden;
  border: 1px solid rgba(49, 55, 65, 0.88);
  background: var(--panel);
}

.macro-map-panel {
  grid-template-rows: auto minmax(0, 1fr);
}

.macro-toolbar {
  min-height: 52px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 9px 10px;
  border-bottom: 1px solid rgba(49, 55, 65, 0.88);
  background: #151b23;
}

.macro-toolbar > div:first-child {
  min-width: 0;
  display: grid;
  gap: 3px;
}

.macro-toolbar strong {
  color: var(--text);
  font-size: 15px;
}

.macro-toolbar span {
  overflow: hidden;
  color: var(--muted);
  font-size: 11px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.macro-controls {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  justify-content: flex-end;
}

.macro-controls button {
  width: auto;
  min-height: 30px;
  padding: 0 10px;
  border-color: rgba(98, 180, 255, 0.28);
  border-radius: 6px;
  color: var(--muted);
  background: rgba(16, 21, 29, 0.82);
  cursor: pointer;
}

.macro-controls button.active {
  color: var(--text);
  border-color: rgba(34, 217, 160, 0.68);
  background: rgba(34, 217, 160, 0.14);
}

.macro-layout {
  min-height: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 28vw);
  overflow: hidden;
}

.macro-map-wrap {
  min-height: 0;
  padding: 10px;
  overflow: hidden;
}

.macro-map {
  position: relative;
  width: 100%;
  height: 100%;
  min-height: 360px;
  overflow: hidden;
  border: 1px solid rgba(98, 180, 255, 0.18);
  background:
    linear-gradient(rgba(98, 180, 255, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(98, 180, 255, 0.06) 1px, transparent 1px),
    radial-gradient(circle at 50% 50%, rgba(98, 180, 255, 0.12), transparent 55%),
    #0d141d;
  background-size: 48px 48px, 48px 48px, auto, auto;
  touch-action: none;
}

.macro-map-stage {
  position: absolute;
  inset: 0;
  transform-origin: 0 0;
  will-change: transform;
}

.macro-world-svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: auto;
}

.macro-marker-layer {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.macro-map-tooltip {
  position: absolute;
  z-index: 6;
  max-width: min(240px, calc(100% - 16px));
  display: grid;
  gap: 3px;
  padding: 9px 10px;
  border: 1px solid rgba(78, 214, 185, 0.42);
  border-radius: 7px;
  color: var(--text);
  background: rgba(12, 18, 25, 0.94);
  box-shadow: 0 16px 34px rgba(0, 0, 0, 0.42);
  opacity: 0;
  pointer-events: none;
  transform: translateY(3px);
  transition: opacity 120ms ease, transform 120ms ease;
}

.macro-map-tooltip.visible {
  opacity: 1;
  transform: translateY(0);
}

.macro-map-tooltip strong,
.macro-map-tooltip span,
.macro-map-tooltip small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.macro-map-tooltip strong {
  color: var(--green);
  font-size: 12px;
}

.macro-map-tooltip span {
  font-size: 12px;
  font-variant-numeric: tabular-nums;
}

.macro-map-tooltip small {
  color: var(--muted);
  font-size: 10px;
}

.macro-graticule path {
  fill: none;
  stroke: rgba(98, 180, 255, 0.06);
  stroke-width: 0.7;
}

.macro-country-shape {
  fill: var(--country-fill);
  fill-opacity: 0.78;
  stroke: rgba(8, 13, 19, 0.72);
  stroke-width: 0.45;
  cursor: pointer;
  vector-effect: non-scaling-stroke;
}

.macro-country-shape:hover {
  fill-opacity: 0.95;
  stroke: rgba(241, 244, 248, 0.72);
  stroke-width: 0.9;
}

.macro-country-claim {
  fill-opacity: 0.86;
  stroke: rgba(241, 244, 248, 0.5);
  stroke-dasharray: 2 1.4;
}

.macro-country-shape.active {
  fill-opacity: 1;
  stroke: var(--text);
  stroke-width: 1.4;
  filter: drop-shadow(0 0 5px rgba(255, 255, 255, 0.28));
}

.macro-marker {
  position: absolute;
  z-index: 3;
  min-width: 76px;
  max-width: 116px;
  min-height: 38px;
  display: grid;
  grid-template-columns: 22px minmax(0, 1fr);
  gap: 6px;
  align-items: center;
  padding: 5px 7px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 7px;
  color: var(--text);
  background: rgba(19, 25, 34, 0.9);
  box-shadow: 0 10px 22px rgba(0, 0, 0, 0.34);
  cursor: pointer;
  pointer-events: auto;
  transform: translate(-50%, -50%);
}

.macro-zoom-controls {
  position: absolute;
  z-index: 5;
  right: 10px;
  bottom: 10px;
  display: flex;
  gap: 5px;
  padding: 5px;
  border: 1px solid rgba(98, 180, 255, 0.2);
  border-radius: 7px;
  background: rgba(14, 18, 24, 0.84);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.32);
}

.macro-zoom-controls button {
  width: auto;
  min-width: 34px;
  min-height: 30px;
  padding: 0 9px;
  border-color: rgba(98, 180, 255, 0.34);
  border-radius: 5px;
  color: var(--text);
  background: rgba(25, 33, 42, 0.94);
  cursor: pointer;
}

.macro-zoom-controls button:disabled {
  opacity: 0.45;
  cursor: default;
}

.macro-marker.active {
  border-color: var(--text);
  box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.08), 0 14px 30px rgba(0, 0, 0, 0.44);
}

.macro-marker.tone-hot,
.macro-observation.tone-hot,
.macro-table strong.tone-hot {
  color: var(--red);
}

.macro-marker.tone-warm,
.macro-observation.tone-warm,
.macro-table strong.tone-warm {
  color: var(--amber);
}

.macro-marker.tone-cool,
.macro-observation.tone-cool,
.macro-table strong.tone-cool {
  color: var(--green);
}

.macro-marker.tone-strong,
.macro-observation.tone-strong,
.macro-table strong.tone-strong {
  color: var(--blue);
}

.macro-marker.tone-mid,
.macro-observation.tone-mid,
.macro-table strong.tone-mid {
  color: var(--violet);
}

.macro-marker.tone-soft,
.macro-observation.tone-soft,
.macro-table strong.tone-soft {
  color: var(--muted);
}

.macro-flag {
  font-size: 18px;
  line-height: 1;
}

.macro-marker span:last-child {
  min-width: 0;
  display: grid;
  gap: 1px;
}

.macro-marker strong,
.macro-marker small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.macro-marker strong {
  font-size: 11px;
}

.macro-marker small {
  color: inherit;
  font-size: 10px;
  font-variant-numeric: tabular-nums;
}

.macro-detail-panel {
  min-height: 0;
  overflow: auto;
  border-left: 1px solid rgba(49, 55, 65, 0.88);
  background: #111820;
}

.macro-country-detail {
  display: grid;
  gap: 10px;
  padding: 12px;
}

.macro-country-header {
  display: grid;
  grid-template-columns: 62px minmax(0, 1fr);
  gap: 10px;
  align-items: center;
}

.macro-country-flag {
  width: 62px;
  height: 42px;
  display: grid;
  place-items: center;
  overflow: hidden;
  border: 1px solid rgba(98, 180, 255, 0.22);
  background: rgba(241, 244, 248, 0.05);
}

.macro-country-flag img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.macro-country-flag span {
  font-size: 34px;
}

.macro-country-header strong {
  display: block;
  overflow: hidden;
  color: var(--text);
  font-size: 18px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.macro-country-header small {
  color: var(--muted);
  font-size: 11px;
}

.macro-observation {
  display: grid;
  gap: 5px;
  padding: 12px;
  border: 1px solid rgba(98, 180, 255, 0.18);
  background: rgba(18, 24, 33, 0.92);
}

.macro-observation span,
.macro-observation small {
  color: var(--muted);
  font-size: 11px;
}

.macro-observation strong {
  color: inherit;
  font-size: 30px;
  font-variant-numeric: tabular-nums;
}

.macro-metric-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  background: rgba(49, 55, 65, 0.7);
}

.macro-metric-card {
  min-width: 0;
  display: grid;
  gap: 5px;
  padding: 10px;
  background: var(--panel);
}

.macro-metric-card.active {
  box-shadow: inset 0 0 0 1px rgba(98, 180, 255, 0.34);
}

.macro-metric-card span,
.macro-metric-card small {
  overflow: hidden;
  color: var(--muted);
  font-size: 10px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.macro-metric-card strong {
  overflow: hidden;
  color: var(--text);
  font-size: 14px;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}

.macro-profile-section {
  display: grid;
  gap: 10px;
}

.macro-leader-card {
  display: grid;
  grid-template-columns: 74px minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  padding: 10px;
  border: 1px solid rgba(98, 180, 255, 0.18);
  background: rgba(18, 24, 33, 0.88);
}

.macro-leader-photo {
  width: 74px;
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  overflow: hidden;
  border: 1px solid rgba(98, 180, 255, 0.24);
  background: #151b23;
}

.macro-leader-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.macro-leader-photo span {
  color: var(--muted);
  font-size: 30px;
  font-weight: 900;
}

.macro-leader-card > div:last-child {
  min-width: 0;
  display: grid;
  gap: 4px;
}

.macro-leader-card span,
.macro-leader-card small {
  overflow: hidden;
  color: var(--muted);
  font-size: 11px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.macro-leader-card strong {
  overflow: hidden;
  color: var(--text);
  font-size: 16px;
  line-height: 1.2;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.macro-profile-loading,
.macro-data-block,
.macro-detail-group {
  display: grid;
  gap: 8px;
  padding: 10px;
  border: 1px solid rgba(98, 180, 255, 0.18);
  background: rgba(18, 24, 33, 0.82);
}

.macro-profile-loading,
.macro-data-block span,
.macro-profile-note {
  color: var(--muted);
  font-size: 11px;
  line-height: 1.4;
}

.macro-data-block strong {
  color: var(--text);
  font-size: 13px;
}

.macro-detail-group h3 {
  margin: 0;
  color: var(--muted);
  font-size: 10px;
  font-weight: 900;
  text-transform: uppercase;
}

.macro-profile-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  background: rgba(49, 55, 65, 0.7);
}

.macro-profile-metric {
  min-width: 0;
  display: grid;
  gap: 4px;
  padding: 8px;
  background: var(--panel);
}

.macro-profile-metric span {
  overflow: hidden;
  color: var(--muted);
  font-size: 10px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.macro-profile-metric strong {
  overflow: hidden;
  color: var(--text);
  font-size: 12px;
  line-height: 1.3;
  text-overflow: ellipsis;
}

.macro-table-panel {
  grid-template-rows: auto minmax(0, 1fr);
}

.macro-table-panel .panel-actions input {
  width: min(260px, 42vw);
}

.macro-table {
  min-height: 0;
  overflow: auto;
}

.macro-table-wrap {
  min-width: 940px;
}

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

.macro-table th,
.macro-table td {
  padding: 8px 10px;
  border-bottom: 1px solid rgba(49, 55, 65, 0.72);
  color: var(--muted);
  font-size: 12px;
  text-align: left;
  white-space: nowrap;
}

.macro-table th {
  position: sticky;
  top: 0;
  z-index: 2;
  background: #151b23;
  color: var(--text);
  font-size: 10px;
  text-transform: uppercase;
}

.macro-table tr.active td {
  background: rgba(98, 180, 255, 0.12);
  border-left: 3px solid rgb(98, 180, 255);
}

.macro-table tbody tr {
  transition: background 0.15s ease;
}

.macro-table tbody tr:hover td {
  background: rgba(98, 180, 255, 0.05);
}

.macro-table button {
  width: auto;
  min-width: 0;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 3px 6px;
  border: 0;
  border-radius: 3px;
  color: var(--text);
  background: transparent;
  cursor: pointer;
  font-weight: 850;
  transition: background 0.15s ease;
}

.macro-table button:hover {
  background: rgba(98, 180, 255, 0.1);
}

.macro-table td strong,
.macro-table td small {
  display: block;
}

.macro-table td strong {
  font-size: 13px;
  font-variant-numeric: tabular-nums;
}

.macro-table td small {
  color: var(--muted);
  font-size: 10px;
}

.chart-grid {
  min-width: 0;
  min-height: 0;
  display: grid;
  gap: 8px;
  overflow: hidden;
  background: var(--bg);
}

.side-panel {
  position: relative;
  z-index: 5;
  min-width: 300px;
  min-height: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
  overflow: hidden;
}

.panel-section {
  min-height: 0;
  flex: 1 1 0;
  display: grid;
  grid-template-rows: auto auto 1fr;
  overflow: hidden;
  border: 1px solid rgba(98, 180, 255, 0.14);
  border-radius: 8px;
  background: linear-gradient(180deg, rgba(25, 32, 41, 0.98), var(--panel));
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.18);
}

.panel-section.is-dragging {
  opacity: 0.46;
  outline: 1px dashed rgba(86, 168, 255, 0.72);
}

body.panel-drag-active {
  cursor: grabbing;
  user-select: none;
}

.watchlist-panel {
  flex-grow: 0.68;
  grid-template-rows: auto auto minmax(0, 1fr) 8px;
}

.panel-section.is-user-sized {
  flex-grow: 0;
  flex-shrink: 0;
}

.panel-resize-handle,
.watchlist-resize-handle {
  position: relative;
  min-height: 8px;
  border-top: 1px solid rgba(98, 180, 255, 0.16);
  background: linear-gradient(180deg, rgba(98, 180, 255, 0.08), rgba(10, 14, 20, 0.42));
  cursor: ns-resize;
  touch-action: none;
}

.panel-resize-handle::before,
.watchlist-resize-handle::before {
  content: "";
  position: absolute;
  top: 3px;
  left: 50%;
  width: 42px;
  height: 2px;
  transform: translateX(-50%);
  border-radius: 999px;
  background: rgba(152, 162, 179, 0.72);
}

.panel-resize-handle:hover::before,
.panel-resize-handle:focus-visible::before,
.panel-section.is-resizing .panel-resize-handle::before,
.watchlist-resize-handle:hover::before,
.watchlist-resize-handle:focus-visible::before,
.watchlist-panel.is-resizing .watchlist-resize-handle::before {
  background: var(--blue);
}

body.panel-resize-active {
  cursor: ns-resize;
  user-select: none;
}

.screener-panel {
  flex-grow: 1.18;
}

.news-panel {
  flex-grow: 0.86;
}

.fundamentals-panel {
  flex-grow: 1.1;
}

.analyst-panel {
  flex-grow: 0.72;
}

.sec-monitor-panel {
  flex-grow: 1.08;
}

.ownership-panel {
  flex-grow: 0.72;
}

.official-trades-panel {
  flex-grow: 0.88;
}

.panel-section.collapsed {
  min-height: 42px;
  flex: 0 0 auto;
  grid-template-rows: auto;
}

.panel-section.collapsed > :not(.panel-heading) {
  display: none;
}

.news-panel,
.fundamentals-panel,
.analyst-panel,
.sec-monitor-panel,
.ownership-panel,
.official-trades-panel {
  grid-template-rows: auto minmax(0, 1fr) 8px;
}

.panel-heading {
  min-height: 42px;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 6px;
  padding: 8px 10px;
  border-bottom: 1px solid rgba(98, 180, 255, 0.14);
  background: linear-gradient(180deg, #1b222c, #151a21);
  font-size: 13px;
  font-weight: 800;
  user-select: none;
}

.panel-heading > span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.panel-heading button {
  width: auto;
  color: var(--muted);
  cursor: pointer;
}

.panel-actions > button:not(.panel-maximize-toggle):not(.panel-collapse-toggle) {
  width: auto;
  min-width: 76px;
  padding-inline: 12px;
  white-space: nowrap;
}

.panel-heading button.panel-drag-handle,
.panel-heading button.panel-maximize-toggle,
.panel-heading button.panel-collapse-toggle {
  width: 30px;
  min-width: 30px;
  height: 24px;
  display: inline-grid;
  place-items: center;
  padding: 0;
  border-color: rgba(49, 55, 65, 0.92);
  border-radius: 5px;
  font-size: 11px;
  font-weight: 900;
  line-height: 1;
}

.panel-heading button.panel-drag-handle {
  flex: 0 0 auto;
  color: var(--blue);
  cursor: grab;
  touch-action: none;
}

.panel-heading button.panel-drag-handle:active {
  cursor: grabbing;
}

.panel-heading button.panel-maximize-toggle {
  width: 36px;
  min-width: 36px;
  color: var(--blue);
}

.panel-section.fullscreen-panel .panel-maximize-toggle {
  color: var(--text);
}

.panel-actions {
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  gap: 4px;
  flex: 0 0 auto;
}

.panel-collapse-toggle {
  border-color: transparent;
  background: transparent;
  color: var(--text);
}

.panel-collapse-toggle.is-collapsed {
  color: var(--blue);
}

.watchlist-form {
  display: grid;
  grid-template-columns: 92px 1fr 58px;
  gap: 6px;
  padding: 8px;
  border-bottom: 1px solid var(--line);
}

.watchlist,
.screener-content,
.news-list,
.fundamentals-content,
.analyst-content,
.sec-monitor-content,
.ownership-content,
.official-trades-content {
  min-height: 0;
  overflow: auto;
}

.screener-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  padding: 10px 12px;
  border-bottom: 1px solid var(--line);
  background: #11161d;
}

.screener-toolbar input,
.screener-toolbar select {
  width: auto;
  min-width: 132px;
  border-radius: 7px;
  background: #171f29;
}

.screener-toolbar #screener-search {
  min-width: min(340px, 100%);
  flex: 1 1 260px;
}

.screener-pressure-tape {
  min-width: 0;
  display: grid;
  gap: 8px;
  padding: 10px 12px;
  border-bottom: 1px solid rgba(98, 180, 255, 0.14);
  background: linear-gradient(180deg, rgba(19, 27, 35, 0.98), rgba(15, 20, 27, 0.98));
}

.screener-pressure-loading,
.screener-pressure-empty {
  color: var(--muted);
  font-size: 12px;
}

.screener-pressure-head {
  min-width: 0;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.screener-pressure-head > div {
  min-width: 0;
  display: grid;
  gap: 2px;
}

.screener-pressure-head strong {
  color: var(--text);
  font-size: 14px;
  font-weight: 900;
}

.screener-pressure-head span,
.screener-pressure-note span {
  color: var(--muted);
  font-size: 11px;
}

.screener-pressure-status {
  flex: 0 0 auto;
  padding: 4px 9px;
  border: 1px solid rgba(152, 162, 179, 0.32);
  border-radius: 999px;
  color: var(--muted);
  background: rgba(20, 29, 38, 0.76);
  font-size: 10px;
  font-style: normal;
  font-weight: 900;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.screener-pressure-status.ok {
  border-color: rgba(154, 216, 177, 0.48);
  color: #a8e1bb;
  background: rgba(39, 84, 61, 0.22);
}

.screener-pressure-status.watch {
  border-color: rgba(230, 207, 139, 0.48);
  color: #ead68d;
  background: rgba(72, 62, 32, 0.24);
}

.screener-pressure-status.warn {
  border-color: rgba(244, 157, 165, 0.5);
  color: #f3a3aa;
  background: rgba(90, 38, 47, 0.22);
}

.screener-pressure-metrics {
  display: grid;
  grid-template-columns: repeat(8, minmax(0, 1fr));
  gap: 6px;
}

.screener-pressure-metrics > div,
.screener-pressure-sector,
.screener-pressure-note {
  min-width: 0;
  display: grid;
  gap: 3px;
  padding: 8px 9px;
  border: 1px solid rgba(95, 112, 129, 0.28);
  border-radius: 7px;
  background: rgba(20, 28, 37, 0.78);
}

.screener-pressure-metrics span,
.screener-pressure-sector span,
.screener-pressure-sector small {
  min-width: 0;
  overflow: hidden;
  color: var(--muted);
  font-size: 10px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.screener-pressure-metrics strong,
.screener-pressure-sector strong,
.screener-pressure-note strong {
  min-width: 0;
  overflow: hidden;
  color: var(--text);
  font-size: 14px;
  font-weight: 900;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}

.screener-pressure-metrics strong.up,
.screener-pressure-sector strong.up {
  color: #a8e1bb;
}

.screener-pressure-metrics strong.down,
.screener-pressure-sector strong.down {
  color: #f3a3aa;
}

.screener-pressure-metrics strong.neutral,
.screener-pressure-sector strong.neutral {
  color: #d4dbe5;
}

.screener-pressure-metrics strong.ok {
  color: #a8e1bb;
}

.screener-pressure-metrics strong.watch {
  color: #ead68d;
}

.screener-pressure-metrics strong.warn {
  color: #f3a3aa;
}

.screener-pressure-bottom {
  min-width: 0;
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(260px, 1fr);
  gap: 8px;
}

.screener-pressure-sectors {
  min-width: 0;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 6px;
}

.screener-pressure-note {
  align-content: center;
}

@media (max-width: 900px) {
  .screener-pressure-metrics,
  .screener-pressure-sectors,
  .screener-pressure-bottom {
    grid-template-columns: 1fr;
  }
}

.data-pager {
  min-height: 44px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 8px;
  border-bottom: 1px solid var(--line);
  background: #151b23;
  color: var(--muted);
}

.calendar-table-wrap + .data-pager,
.screener-table-wrap + .data-pager {
  border-top: 1px solid var(--line);
  border-bottom: 0;
}

.data-pager strong {
  display: block;
  color: var(--text);
  font-size: 13px;
}

.data-pager span {
  display: block;
  margin-top: 2px;
  font-size: 12px;
}

.data-pager-actions {
  display: inline-flex;
  gap: 6px;
  flex: 0 0 auto;
}

.data-pager-actions button {
  min-width: 86px;
}

.data-pager-actions button:disabled {
  cursor: not-allowed;
  opacity: 0.45;
}

.screener-table-wrap {
  min-height: 0;
  height: 100%;
  overflow: auto;
}

.screener-table {
  width: 100%;
  min-width: 1180px;
  border-collapse: separate;
  border-spacing: 0;
  font-size: 12px;
  line-height: 1.25;
}

.screener-table th,
.screener-table td {
  height: 32px;
  max-width: 180px;
  padding: 7px 10px;
  border-right: 0;
  border-bottom: 1px solid rgba(49, 55, 65, 0.54);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}

.screener-table th {
  position: sticky;
  top: 0;
  z-index: 3;
  background: #151b23;
  color: var(--muted);
  cursor: pointer;
  font-size: 10px;
  font-weight: 800;
  text-align: left;
  text-transform: uppercase;
}

.screener-table th.active {
  color: var(--blue);
}

.screener-table tbody tr {
  background: #10151c;
}

.screener-table tbody tr:hover {
  background: rgba(98, 180, 255, 0.06);
}

.screener-table .screener-symbol-cell {
  position: sticky;
  left: 0;
  z-index: 2;
  min-width: 236px;
  max-width: 320px;
  overflow: visible;
  background: #10151c;
  color: var(--text);
}

.screener-table th:first-child {
  left: 0;
  z-index: 4;
}

.screener-table tbody tr:hover .screener-symbol-cell {
  background: #17202b;
}

.screener-table td.up,
.screener-pressure-score.up {
  color: #84e6a0;
}

.screener-table td.down,
.screener-pressure-score.down {
  color: #f2a2a8;
}

.screener-driver-cell {
  min-width: 220px;
  max-width: 360px;
  white-space: normal;
  line-height: 1.35;
}

.screener-driver-cell.positive {
  color: #9be7ad;
}

.screener-driver-cell.negative {
  color: #f4a9ad;
}

.screener-alignment-cell {
  color: #d8e0ea;
  font-size: 11px;
  text-transform: capitalize;
}

.screener-symbol-button {
  width: 100%;
  height: auto;
  min-height: 34px;
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  padding: 2px 4px;
  border: 0;
  background: transparent;
  color: inherit;
  text-align: left;
  cursor: pointer;
}

.screener-symbol-button > span:last-child {
  min-width: 0;
  display: grid;
  gap: 2px;
}

.screener-symbol-button strong {
  color: var(--text);
  font-size: 12px;
  font-weight: 900;
}

.screener-symbol-button small {
  overflow: hidden;
  color: var(--muted);
  font-size: 11px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.screener-logo-slot,
.screener-logo-fallback,
.screener-logo-img {
  width: 24px;
  height: 24px;
}

.screener-logo-slot {
  position: relative;
  display: inline-grid;
  place-items: center;
}

.screener-logo-img,
.screener-logo-fallback {
  border-radius: 50%;
}

.screener-logo-img {
  object-fit: contain;
  background: #f4f7fb;
}

.screener-logo-fallback {
  display: inline-grid;
  place-items: center;
  color: #ffffff;
  background: #263445;
  font-size: 9px;
  font-weight: 900;
}

.screener-logo-img[hidden],
.screener-logo-fallback[hidden] {
  display: none;
}

.screener-facts-popover {
  position: absolute;
  top: calc(100% - 2px);
  left: 10px;
  z-index: 40;
  width: min(760px, calc(100vw - 36px));
  max-height: min(780px, calc(100vh - 28px));
  overflow: auto;
  display: grid;
  gap: 10px;
  padding: 12px;
  border: 1px solid rgba(98, 180, 255, 0.28);
  border-radius: 8px;
  background: #111820;
  box-shadow: 0 22px 52px rgba(0, 0, 0, 0.5);
  white-space: normal;
}

.screener-facts-layer {
  position: fixed;
  z-index: 2400;
  width: min(760px, calc(100vw - 24px));
}

.screener-facts-layer .screener-facts-popover {
  position: static;
  top: auto;
  left: auto;
  width: 100%;
}

.screener-facts-layer[hidden] {
  display: none;
}

.screener-facts-heading {
  display: grid;
  grid-template-columns: 30px minmax(0, 1fr) 28px;
  gap: 10px;
  align-items: center;
}

.screener-facts-heading > span:not(.screener-logo-slot):not(.screener-logo-fallback) {
  min-width: 0;
  display: grid;
  gap: 2px;
}

.screener-facts-heading strong {
  color: var(--text);
  font-size: 15px;
}

.screener-facts-heading small {
  overflow: hidden;
  color: var(--muted);
  font-size: 11px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.screener-facts-close {
  width: 28px;
  min-width: 28px;
  height: 28px;
  padding: 0;
  border-color: rgba(98, 180, 255, 0.2);
  color: var(--muted);
  background: rgba(25, 33, 42, 0.9);
}

.screener-facts-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  overflow: hidden;
  border: 1px solid rgba(49, 55, 65, 0.72);
  border-radius: 7px;
  background: rgba(49, 55, 65, 0.72);
}

.screener-fact {
  min-width: 0;
  display: grid;
  gap: 3px;
  padding: 8px;
  background: #151b23;
}

.screener-fact span {
  color: var(--muted);
  font-size: 10px;
}

.screener-fact strong {
  overflow: hidden;
  color: var(--text);
  font-size: 12px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

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

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

.screener-pressure-detail {
  width: min(760px, calc(100vw - 24px));
}

.screener-pressure-detail-grid,
.screener-pressure-calibration {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  overflow: hidden;
  border: 1px solid rgba(49, 55, 65, 0.72);
  border-radius: 7px;
  background: rgba(49, 55, 65, 0.72);
}

.screener-pressure-detail-section {
  display: grid;
  gap: 8px;
}

.screener-pressure-detail-section h3 {
  margin: 0;
  color: var(--text);
  font-size: 13px;
  font-weight: 900;
}

.screener-pressure-detail-section p,
.screener-pressure-detail-empty,
.screener-pressure-warning {
  margin: 0;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.45;
}

.screener-pressure-warning {
  padding: 9px;
  border: 1px solid rgba(255, 196, 102, 0.18);
  border-radius: 7px;
  background: rgba(255, 196, 102, 0.08);
  color: #f0d29b;
}

.screener-pressure-sparkline {
  display: grid;
  gap: 6px;
  padding: 10px;
  border: 1px solid rgba(49, 55, 65, 0.72);
  border-radius: 7px;
  background: rgba(18, 24, 32, 0.78);
}

.screener-pressure-sparkline svg {
  width: 100%;
  height: 86px;
  overflow: visible;
}

.screener-pressure-sparkline line {
  stroke: rgba(210, 219, 231, 0.18);
  stroke-width: 1;
}

.screener-pressure-sparkline polyline {
  fill: none;
  stroke: #8edfb0;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 3;
}

.screener-pressure-sparkline > div {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  color: var(--muted);
  font-size: 10px;
}

.screener-pressure-sparkline strong.up {
  color: #9be7ad;
}

.screener-pressure-sparkline strong.down {
  color: #f4a9ad;
}

.screener-pressure-detail-columns {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.screener-pressure-driver-list {
  display: grid;
  gap: 6px;
}

.screener-pressure-driver-list > div {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 56px;
  gap: 4px 10px;
  padding: 8px;
  border: 1px solid rgba(49, 55, 65, 0.72);
  border-radius: 7px;
  background: rgba(18, 24, 32, 0.78);
}

.screener-pressure-driver-list span {
  overflow: hidden;
  color: var(--text);
  font-size: 12px;
  font-weight: 800;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.screener-pressure-driver-list strong {
  color: var(--text);
  font-size: 12px;
  text-align: right;
  font-variant-numeric: tabular-nums;
}

.screener-pressure-driver-list small,
.screener-pressure-driver-list p,
.screener-pressure-calibration small,
.screener-pressure-calibration span {
  color: var(--muted);
  font-size: 10px;
  line-height: 1.35;
}

.screener-pressure-driver-list small {
  grid-column: 1 / -1;
}

.screener-pressure-driver-list.positive strong {
  color: #9be7ad;
}

.screener-pressure-driver-list.negative strong {
  color: #f4a9ad;
}

.screener-pressure-calibration > div {
  display: grid;
  gap: 3px;
  padding: 9px;
  background: #151b23;
}

.screener-pressure-calibration strong {
  color: var(--text);
  font-size: 12px;
  text-transform: capitalize;
}

.screener-pressure-calibration strong.ok {
  color: #9be7ad;
}

.screener-pressure-calibration strong.watch {
  color: #f0d29b;
}

.screener-pressure-calibration strong.warn {
  color: #f4a9ad;
}

.screener-financial-overview {
  display: grid;
  gap: 12px;
}

.screener-fin-section {
  display: grid;
  gap: 8px;
  padding-top: 2px;
}

.screener-fin-section h3,
.screener-fin-section h4 {
  margin: 0;
  color: var(--text);
  font-weight: 900;
}

.screener-fin-section h3 {
  font-size: 14px;
}

.screener-fin-section h4 {
  font-size: 12px;
}

.screener-fin-section p,
.screener-health-note,
.screener-fundamentals-loading {
  margin: 0;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.4;
}

.screener-key-grid,
.screener-health-summary {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
}

.screener-key-fact {
  min-width: 0;
  display: grid;
  gap: 4px;
  padding: 9px;
  border: 1px solid rgba(49, 55, 65, 0.72);
  border-radius: 7px;
  background: #151b23;
}

.screener-key-fact span {
  color: var(--muted);
  font-size: 10px;
}

.screener-key-fact strong {
  overflow: hidden;
  color: var(--text);
  font-size: 13px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.screener-key-fact.up strong {
  color: var(--green);
}

.screener-website-link {
  justify-self: start;
  color: var(--blue);
  font-size: 12px;
  font-weight: 800;
  text-decoration: none;
}

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

.screener-health-columns > div {
  min-width: 0;
  display: grid;
  gap: 8px;
  padding: 10px;
  border: 1px solid rgba(49, 55, 65, 0.72);
  border-radius: 7px;
  background: rgba(18, 24, 32, 0.78);
}

.screener-health-bar {
  display: grid;
  gap: 5px;
}

.screener-health-bar > div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  color: var(--muted);
  font-size: 11px;
}

.screener-health-bar strong {
  color: var(--text);
  font-size: 11px;
  font-variant-numeric: tabular-nums;
}

.screener-health-bar i {
  width: 100%;
  height: 8px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(49, 55, 65, 0.72);
}

.screener-health-bar i::before {
  content: "";
  display: block;
  width: var(--bar-width, 0%);
  height: 100%;
  border-radius: inherit;
  background: var(--bar-color, var(--blue));
}

.screener-revenue-breakdown {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.screener-revenue-group {
  min-width: 0;
  display: grid;
  align-content: start;
  gap: 8px;
  padding: 10px;
  border: 1px solid rgba(49, 55, 65, 0.72);
  border-radius: 7px;
  background: rgba(18, 24, 32, 0.78);
}

.screener-revenue-row {
  display: grid;
  gap: 5px;
}

.screener-revenue-row > div {
  min-width: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 7px;
  color: var(--muted);
  font-size: 11px;
}

.screener-revenue-row span {
  overflow: hidden;
  color: var(--text);
  font-weight: 800;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.screener-revenue-row strong,
.screener-revenue-row small {
  color: var(--muted);
  font-size: 10px;
  font-variant-numeric: tabular-nums;
}

.screener-revenue-row i {
  width: 100%;
  height: 7px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(49, 55, 65, 0.72);
}

.screener-revenue-row i::before {
  content: "";
  display: block;
  width: var(--bar-width, 0%);
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #2fb39d, #56a8ff);
}

.screener-revenue-empty {
  min-height: 46px;
  display: grid;
  place-items: center;
  border: 1px dashed rgba(103, 116, 133, 0.38);
  border-radius: 6px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
}

.screener-tv-link {
  justify-self: start;
  color: var(--blue);
  font-size: 12px;
  font-weight: 800;
  text-decoration: none;
}

.screener-tv-link:hover {
  text-decoration: underline;
}

body.panel-fullscreen-active {
  overflow: hidden;
}

.panel-section.fullscreen-panel {
  position: fixed;
  inset: 10px;
  z-index: 1000;
  width: auto;
  height: auto;
  min-height: 0;
  flex: none;
  border-color: rgba(86, 168, 255, 0.72);
  box-shadow: 0 22px 70px rgba(0, 0, 0, 0.68), 0 0 0 9999px rgba(0, 0, 0, 0.58);
}

.screener-panel.fullscreen-panel {
  grid-template-rows: auto auto minmax(0, 1fr);
}

.screener-panel.fullscreen-panel .screener-table {
  min-width: 1180px;
  font-size: 12px;
}

.screener-panel.fullscreen-panel .screener-table th,
.screener-panel.fullscreen-panel .screener-table td {
  height: 34px;
}

.watchlist-row {
  width: 100%;
  min-height: 44px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto 28px;
  gap: 8px;
  align-items: center;
  padding: 8px 10px;
  border: 0;
  border-bottom: 1px solid rgba(49, 55, 65, 0.7);
  border-radius: 0;
  background: transparent;
  cursor: pointer;
  text-align: left;
}

.watchlist-quote {
  min-width: 72px;
  display: grid;
  justify-items: end;
  gap: 2px;
}

.watchlist-remove {
  width: 26px;
  min-width: 26px;
  height: 26px;
  display: inline-grid;
  place-items: center;
  padding: 0;
  border-color: rgba(255, 92, 112, 0.28);
  border-radius: 6px;
  color: var(--muted);
  background: rgba(25, 32, 41, 0.64);
  font-size: 17px;
  font-weight: 900;
  line-height: 1;
  cursor: pointer;
}

.watchlist-remove:hover,
.watchlist-remove:focus-visible {
  color: #ffffff;
  border-color: rgba(255, 92, 112, 0.72);
  background: rgba(255, 92, 112, 0.22);
}

.watchlist-row:hover,
.watchlist-row.active {
  background: linear-gradient(90deg, rgba(98, 180, 255, 0.16), rgba(34, 217, 160, 0.05));
}

.watchlist-symbol {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.watchlist-symbol strong,
.watchlist-price {
  font-size: 13px;
  font-weight: 800;
}

.watchlist-symbol span,
.watchlist-change {
  color: var(--muted);
  font-size: 11px;
}

.watchlist-price {
  text-align: right;
  font-variant-numeric: tabular-nums;
}

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

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

.news-item {
  display: block;
  padding: 10px;
  border-bottom: 1px solid rgba(49, 55, 65, 0.7);
  color: var(--text);
  text-decoration: none;
}

.news-item:hover {
  background: rgba(86, 168, 255, 0.1);
}

.news-item strong {
  display: block;
  margin-bottom: 5px;
  font-size: 13px;
  line-height: 1.35;
}

.news-meta,
.empty-state {
  color: var(--muted);
  font-size: 11px;
}

.empty-state {
  padding: 12px;
}

.fundamentals-profile {
  display: grid;
  gap: 3px;
  padding: 10px;
  border-bottom: 1px solid rgba(49, 55, 65, 0.7);
}

.fundamentals-profile strong {
  font-size: 13px;
}

.fundamentals-profile span,
.event-row small {
  color: var(--muted);
  font-size: 11px;
  line-height: 1.35;
}

.metric-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  padding: 1px;
  background: rgba(49, 55, 65, 0.7);
}

.metric-cell {
  min-width: 0;
  display: grid;
  gap: 4px;
  padding: 8px;
  background: var(--panel);
}

.metric-cell span {
  color: var(--muted);
  font-size: 10px;
}

.metric-cell strong {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 12px;
  font-variant-numeric: tabular-nums;
}

.metric-cell small {
  color: var(--muted);
  font-size: 10px;
}

.compact-metrics {
  grid-template-columns: 1fr;
}

.analyst-summary {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  padding: 1px;
  background: rgba(49, 55, 65, 0.7);
}

.analyst-summary > div {
  min-width: 0;
  display: grid;
  gap: 5px;
  padding: 10px;
  background: var(--panel);
}

.analyst-summary span {
  color: var(--muted);
  font-size: 10px;
  text-transform: uppercase;
}

.analyst-summary strong {
  overflow: hidden;
  font-size: 13px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.confidence-meter {
  height: 8px;
  margin: 10px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(49, 55, 65, 0.86);
}

.confidence-meter span {
  height: 100%;
  display: block;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--red), var(--amber), var(--green));
}

.analyst-target-grid {
  border-top: 1px solid rgba(49, 55, 65, 0.7);
}

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

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

.ownership-chart-wrap {
  display: grid;
  grid-template-columns: 116px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  padding: 12px 10px 8px;
}

.ownership-pie {
  width: 108px;
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  border: 1px solid rgba(86, 168, 255, 0.34);
  border-radius: 50%;
  box-shadow: inset 0 0 0 18px rgba(16, 17, 20, 0.82), 0 0 18px rgba(86, 168, 255, 0.16);
}

.ownership-legend {
  min-width: 0;
  display: grid;
  gap: 7px;
}

.ownership-row {
  min-width: 0;
  display: grid;
  grid-template-columns: 10px minmax(0, 1fr) auto;
  gap: 7px;
  align-items: center;
  color: var(--muted);
  font-size: 11px;
}

.ownership-row strong {
  color: var(--text);
  font-size: 12px;
}

.ownership-swatch {
  width: 10px;
  height: 10px;
  display: block;
  border-radius: 50%;
}

.ownership-note {
  padding: 0 10px 10px;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.35;
}

.official-mini-list {
  display: grid;
  border-top: 1px solid rgba(49, 55, 65, 0.7);
}

.official-mini-row {
  min-height: 46px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(82px, auto);
  gap: 8px;
  align-items: center;
  padding: 8px 10px;
  border-bottom: 1px solid rgba(49, 55, 65, 0.7);
}

.official-mini-row span {
  min-width: 0;
  display: grid;
  gap: 2px;
}

.official-mini-row strong {
  overflow: hidden;
  font-size: 12px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.official-mini-row small {
  overflow: hidden;
  color: var(--muted);
  font-size: 11px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.sec-monitor-note {
  display: grid;
  gap: 4px;
  padding: 9px 10px;
  border-bottom: 1px solid rgba(49, 55, 65, 0.7);
  background: #15191f;
}

.sec-monitor-note strong,
.sec-monitor-note a {
  font-size: 12px;
}

.sec-monitor-note span {
  color: var(--muted);
  font-size: 11px;
  line-height: 1.35;
}

.sec-monitor-note a {
  color: var(--blue);
  text-decoration: none;
}

.sec-alert-list {
  display: grid;
  gap: 6px;
  padding: 0 8px 8px;
}

.sec-alert-row {
  display: grid;
  gap: 3px;
  padding: 8px;
  border: 1px solid rgba(86, 168, 255, 0.22);
  border-left-width: 3px;
  border-radius: 6px;
  background: rgba(32, 36, 43, 0.52);
}

.sec-alert-row.high {
  border-left-color: var(--red);
}

.sec-alert-row.medium {
  border-left-color: var(--amber);
}

.sec-alert-row.info {
  border-left-color: var(--blue);
}

.sec-alert-row strong {
  font-size: 12px;
}

.sec-alert-row span {
  color: var(--muted);
  font-size: 11px;
  line-height: 1.35;
}

.events-heading {
  padding: 10px 10px 6px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
}

.events-list {
  display: grid;
}

.event-row {
  min-height: 42px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
  align-items: center;
  padding: 8px 10px;
  border-top: 1px solid rgba(49, 55, 65, 0.7);
}

.event-row.detail-row {
  min-height: 48px;
}

a.event-row {
  color: var(--text);
  text-decoration: none;
}

a.event-row:hover {
  background: rgba(86, 168, 255, 0.1);
}

.event-row span {
  min-width: 0;
  display: grid;
  gap: 2px;
}

.event-row strong {
  font-size: 12px;
}

.event-row time {
  color: var(--blue);
  font-size: 11px;
  font-variant-numeric: tabular-nums;
}

.official-trades-note {
  display: grid;
  gap: 4px;
  padding: 9px 10px;
  border-bottom: 1px solid rgba(49, 55, 65, 0.7);
  background: #15191f;
}

.official-trades-note strong,
.official-trades-note a {
  font-size: 12px;
}

.official-trades-note span {
  color: var(--muted);
  font-size: 11px;
  line-height: 1.35;
}

.official-trades-note a {
  color: var(--blue);
  text-decoration: none;
}

.official-trades-note a:hover {
  color: var(--text);
}

.official-trades-list {
  display: grid;
}

.official-trade-row {
  width: 100%;
  height: auto;
  min-height: 54px;
  display: grid;
  grid-template-columns: minmax(62px, 0.58fr) minmax(0, 1.35fr) minmax(80px, 0.75fr);
  gap: 8px;
  align-items: center;
  padding: 8px 10px;
  border: 0;
  border-bottom: 1px solid rgba(49, 55, 65, 0.7);
  border-radius: 0;
  background: transparent;
  text-align: left;
  cursor: pointer;
}

.official-trade-row:hover {
  background: rgba(86, 168, 255, 0.1);
}

.official-trade-main,
.official-trade-player,
.official-trade-date {
  min-width: 0;
  display: grid;
  gap: 2px;
}

.official-trade-main strong {
  color: var(--green);
}

.official-trade-main strong,
.official-trade-player strong,
.official-trade-date strong {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 12px;
}

.official-trade-main small,
.official-trade-player small,
.official-trade-date small {
  overflow: hidden;
  color: var(--muted);
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 10px;
}

.official-trade-date {
  text-align: right;
}

.chart-grid[data-count="1"] {
  grid-template-columns: 1fr;
  grid-template-rows: 1fr;
}

.chart-grid[data-count="2"] {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  grid-template-rows: 1fr;
}

.chart-grid[data-count="4"] {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  grid-template-rows: repeat(2, minmax(0, 1fr));
}

.chart-grid[data-count="6"] {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  grid-template-rows: repeat(2, minmax(0, 1fr));
}

.chart-grid[data-count="8"] {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  grid-template-rows: repeat(2, minmax(0, 1fr));
}

.chart-grid[data-count="12"] {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  grid-template-rows: repeat(3, minmax(0, 1fr));
}

.chart-grid[data-count="16"] {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  grid-template-rows: repeat(4, minmax(0, 1fr));
}

.pane {
  min-width: 0;
  min-height: 0;
  display: grid;
  grid-template-rows: auto 1fr auto;
  overflow: hidden;
  border: 1px solid rgba(98, 180, 255, 0.16);
  border-radius: 8px;
  background: linear-gradient(180deg, rgba(25, 32, 41, 0.98), var(--panel));
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.24);
}

.pane.menu-open {
  z-index: 20;
  overflow: visible;
}

.pane.active-pane {
  border-color: rgba(86, 168, 255, 0.85);
  box-shadow: inset 0 0 0 1px rgba(98, 180, 255, 0.36), 0 0 0 1px rgba(98, 180, 255, 0.12), 0 18px 38px rgba(0, 0, 0, 0.32);
}

.pane-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  min-height: 58px;
  padding: 6px;
  border-bottom: 1px solid rgba(98, 180, 255, 0.14);
  background: linear-gradient(180deg, #1a222c, #141a21);
}

.symbol-picker {
  flex: 1 1 170px;
  min-width: 0;
  display: grid;
  grid-template-columns: minmax(82px, 0.72fr) minmax(96px, 1fr);
  gap: 6px;
}

.pane-toolbar > .ticker {
  flex: 1 1 190px;
  min-width: 150px;
}

.pane-toolbar > select {
  flex: 0 1 82px;
  min-width: 68px;
}

.pane-toolbar > .extended-toggle {
  flex: 0 0 52px;
}

.pane-toolbar > .indicator-picker {
  flex: 0 1 96px;
}

.symbol-input {
  font-weight: 800;
  text-transform: uppercase;
}

.extended-toggle {
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-width: 0;
  padding: 0 8px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--panel-2);
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
}

.extended-toggle:has(input:checked) {
  color: var(--blue);
  border-color: rgba(86, 168, 255, 0.65);
  background: rgba(86, 168, 255, 0.14);
}

.extended-toggle:has(input:disabled) {
  cursor: not-allowed;
  opacity: 0.46;
}

.extended-toggle input {
  width: 13px;
  height: 13px;
  margin: 0;
  accent-color: var(--blue);
}

.indicator-picker {
  position: relative;
  min-width: 0;
}

.indicator-toggle {
  width: 100%;
  cursor: pointer;
  font-weight: 700;
}

.indicator-toggle:hover,
.indicator-clear:hover {
  border-color: var(--blue);
}

.indicator-menu {
  display: none;
  position: absolute;
  top: 40px;
  right: 0;
  z-index: 10;
  width: min(520px, 82vw);
  max-height: min(520px, 70vh);
  overflow: auto;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #15181d;
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.36);
}

.indicator-picker.open .indicator-menu {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.indicator-actions {
  grid-column: 1 / -1;
  display: flex;
  justify-content: flex-end;
}

.indicator-clear {
  width: 76px;
  cursor: pointer;
  color: var(--muted);
}

.indicator-group {
  min-width: 0;
  padding: 8px;
  border: 1px solid rgba(49, 55, 65, 0.85);
  border-radius: 6px;
  background: rgba(32, 36, 43, 0.52);
}

.indicator-heading {
  margin-bottom: 6px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
}

.indicator-option {
  min-height: 28px;
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--text);
  font-size: 12px;
  cursor: pointer;
}

.indicator-option input {
  width: 14px;
  height: 14px;
  margin: 0;
  accent-color: var(--blue);
}

.indicator-tooltip {
  position: fixed;
  z-index: 100;
  width: min(320px, calc(100vw - 24px));
  display: none;
  padding: 10px 12px;
  border: 1px solid rgba(86, 168, 255, 0.46);
  border-radius: 6px;
  background: rgba(18, 21, 27, 0.96);
  box-shadow: 0 18px 38px rgba(0, 0, 0, 0.42);
  color: var(--text);
  pointer-events: none;
}

.indicator-tooltip.visible {
  display: block;
}

.indicator-tooltip strong,
.indicator-tooltip span {
  display: block;
}

.indicator-tooltip strong {
  margin-bottom: 5px;
  color: var(--blue);
  font-size: 12px;
}

.indicator-tooltip span {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.42;
}

.ticker {
  min-height: 46px;
  display: grid;
  grid-template-columns: minmax(70px, auto) minmax(0, 1fr);
  grid-template-rows: auto auto;
  column-gap: 10px;
  row-gap: 2px;
  align-items: center;
  min-width: 0;
  padding: 6px 10px;
  border-radius: 6px;
  background: linear-gradient(135deg, rgba(98, 180, 255, 0.12), rgba(29, 38, 48, 0.96));
  border: 1px solid rgba(98, 180, 255, 0.16);
  border-left: 4px solid var(--blue);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
  transition: background-color 160ms ease, border-color 160ms ease, box-shadow 160ms ease;
}

.ticker.up {
  background: rgba(32, 201, 151, 0.16);
  border-left-color: var(--green);
  box-shadow: inset 0 0 0 1px rgba(34, 217, 160, 0.18);
}

.ticker.down {
  background: rgba(255, 92, 112, 0.16);
  border-left-color: var(--red);
  box-shadow: inset 0 0 0 1px rgba(255, 100, 120, 0.18);
}

.ticker-symbol {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: var(--text);
  font-weight: 800;
  font-size: 17px;
  line-height: 1;
}

.ticker-main {
  min-width: 0;
  display: inline-flex;
  align-items: baseline;
  gap: 8px;
}

.ticker-price {
  color: var(--blue);
  font-variant-numeric: tabular-nums;
  font-size: 13px;
  font-weight: 900;
}

.ticker-name {
  min-width: 0;
  overflow: hidden;
  color: var(--text);
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 12px;
  font-weight: 750;
}

.ticker-market {
  grid-column: 1 / -1;
  min-width: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  color: var(--muted);
  font-size: 10px;
  line-height: 1.1;
}

.ticker-exchange {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  text-transform: uppercase;
}

.ticker-bidask {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex: 0 0 auto;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
}

.ticker-bidask strong {
  color: var(--text);
  font-size: 14px;
  font-weight: 950;
  line-height: 1;
}

.chart-host {
  min-height: 0;
  position: relative;
  overflow: hidden;
  background:
    linear-gradient(180deg, rgba(17, 23, 31, 0.78), rgba(10, 14, 20, 0.96)),
    repeating-linear-gradient(0deg, transparent 0 35px, rgba(70, 84, 102, 0.16) 36px 37px);
}

.chart-host.fib-pick-mode {
  cursor: crosshair;
}

.chart-host.fib-drag-mode {
  cursor: grabbing;
}

.chart {
  position: absolute;
  inset: 0;
  background: var(--chart-bg);
}

.chart::after {
  content: "";
  position: absolute;
  inset: 0;
  border-top: 1px solid rgba(255, 255, 255, 0.035);
  border-bottom: 1px solid rgba(0, 0, 0, 0.28);
  pointer-events: none;
}

.drawing-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.event-flag-layer {
  position: absolute;
  inset: 0;
  z-index: 3;
  pointer-events: none;
}

.event-flag {
  position: absolute;
  width: 22px;
  height: 22px;
  min-width: 22px;
  display: grid;
  place-items: center;
  padding: 0;
  transform: translate(-50%, -50%);
  border: 1px solid rgba(242, 184, 75, 0.92);
  border-radius: 5px 5px 5px 1px;
  background: #2d2413;
  color: var(--amber);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.35);
  cursor: pointer;
  font-size: 11px;
  font-weight: 900;
  line-height: 1;
  pointer-events: auto;
}

.event-flag::after {
  content: "";
  position: absolute;
  left: 3px;
  bottom: -8px;
  width: 1px;
  height: 8px;
  background: currentColor;
}

.event-flag:hover {
  border-color: var(--text);
  color: var(--text);
}

.event-flag.earnings {
  border-color: rgba(86, 168, 255, 0.95);
  background: #132235;
  color: var(--blue);
}

.event-flag.dividend {
  border-color: rgba(32, 201, 151, 0.95);
  background: #112a23;
  color: var(--green);
}

.event-flag.split {
  border-color: rgba(176, 137, 255, 0.95);
  background: #241a35;
  color: #b089ff;
}

.event-flag.insider {
  border-color: rgba(255, 92, 112, 0.95);
  background: #331820;
  color: var(--red);
}

.event-flag.corporate {
  border-color: rgba(241, 244, 248, 0.82);
  background: #252932;
  color: var(--text);
}

.range-bar {
  min-height: 38px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 4px 6px;
  border-top: 1px solid var(--line);
  background: #15171b;
}

.range-tabs {
  display: flex;
  align-items: center;
  gap: 2px;
  min-width: 0;
  overflow-x: auto;
}

.range-tab {
  width: auto;
  height: 28px;
  flex: 0 0 auto;
  padding: 0 8px;
  border-color: transparent;
  border-radius: 4px;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  font-size: 12px;
  font-weight: 750;
}

.range-tab:hover {
  color: var(--text);
  background: rgba(86, 168, 255, 0.12);
}

.range-tab.active {
  color: var(--blue);
  background: rgba(86, 168, 255, 0.16);
}

.date-range {
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--muted);
  font-size: 11px;
  white-space: nowrap;
}

.date-range input {
  width: 118px;
  height: 28px;
  padding: 0 6px;
  font-size: 12px;
}

.status {
  position: absolute;
  left: 10px;
  bottom: 8px;
  z-index: 2;
  max-width: calc(100% - 20px);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: var(--muted);
  font-size: 12px;
  pointer-events: none;
}

.market-footer {
  height: var(--market-footer-height);
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(360px, 0.75fr);
  gap: 8px;
  align-items: stretch;
  padding: 5px 8px 6px;
  border-top: 1px solid var(--line);
  background: #15171b;
}

.market-ticker,
.market-status {
  min-width: 0;
  overflow: hidden;
  border: 1px solid rgba(49, 55, 65, 0.82);
  border-radius: 6px;
  background: #111318;
}

.market-ticker {
  display: flex;
  align-items: center;
}

.ticker-track {
  display: inline-flex;
  align-items: center;
  gap: 18px;
  min-width: max-content;
  padding-left: 12px;
  white-space: nowrap;
  animation: ticker-scroll 52s linear infinite;
}

.market-ticker:hover .ticker-track {
  animation-play-state: paused;
}

.market-ticker-item {
  display: inline-flex;
  align-items: baseline;
  gap: 8px;
  color: var(--muted);
  font-size: 12px;
  font-variant-numeric: tabular-nums;
}

.market-ticker-item strong {
  color: var(--text);
  font-size: 12px;
}

.market-change,
.status-mover {
  font-variant-numeric: tabular-nums;
}

.market-change.up,
.status-mover.up {
  color: var(--green);
}

.market-change.down,
.status-mover.down {
  color: var(--red);
}

.market-status {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 0 10px;
  color: var(--muted);
  white-space: nowrap;
}

.status-group {
  min-width: 0;
  display: inline-flex;
  align-items: center;
  gap: 9px;
}

.status-label {
  color: var(--text);
  font-size: 11px;
  font-weight: 850;
  text-transform: uppercase;
}

.status-mover {
  display: inline-flex;
  align-items: baseline;
  gap: 4px;
  font-size: 12px;
  font-weight: 750;
}

.status-mover strong {
  color: inherit;
  font-size: 12px;
}

@keyframes ticker-scroll {
  from {
    transform: translateX(0);
  }

  to {
    transform: translateX(-50%);
  }
}

/* Loading spinners */
.loading-spinner {
  display: inline-block;
  width: 18px;
  height: 18px;
  border: 2px solid rgba(98, 180, 255, 0.3);
  border-top-color: var(--blue);
  border-radius: 50%;
  animation: spin-loading 0.6s linear infinite;
}

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

.loading-pulse {
  animation: pulse-loading 1.5s ease-in-out infinite;
}

@keyframes pulse-loading {
  0%, 100% {
    opacity: 0.6;
  }
  50% {
    opacity: 1;
  }
}

/* Toast Notifications */
.toast-container {
  position: fixed;
  top: 88px;
  left: 50%;
  z-index: 2000;
  display: flex;
  flex-direction: column;
  gap: 10px;
  align-items: center;
  transform: translateX(-50%);
  pointer-events: none;
  width: min(440px, calc(100vw - 32px));
}

.toast {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 42px;
  padding: 10px 14px;
  border-radius: 8px;
  background: var(--panel-2);
  border: 1px solid rgba(98, 180, 255, 0.24);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.32);
  color: var(--text);
  font-size: 13px;
  pointer-events: auto;
  animation: toast-slide-in 0.3s ease-out;
}

.toast.closing {
  animation: toast-slide-out 0.3s ease-out forwards;
}

@keyframes toast-slide-in {
  from {
    transform: translateY(-14px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

@keyframes toast-slide-out {
  to {
    transform: translateY(-14px);
    opacity: 0;
  }
}

.toast.success {
  background: rgba(34, 217, 160, 0.1);
  border-color: rgba(34, 217, 160, 0.4);
  color: var(--green);
}

.toast.error {
  background: rgba(255, 100, 120, 0.1);
  border-color: rgba(255, 100, 120, 0.4);
  color: var(--red);
}

.toast.warning {
  background: rgba(244, 193, 93, 0.1);
  border-color: rgba(244, 193, 93, 0.4);
  color: var(--amber);
}

.toast.info {
  background: rgba(98, 180, 255, 0.1);
  border-color: rgba(98, 180, 255, 0.4);
  color: var(--blue);
}

.toast::before {
  content: "";
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: currentColor;
  flex: 0 0 auto;
}

.toast button {
  width: auto;
  height: 28px;
  padding: 0 8px;
  margin-left: 8px;
  border-color: currentColor;
  background: transparent;
  color: currentColor;
  cursor: pointer;
  font-size: 12px;
  flex: 0 0 auto;
}

.toast button:hover {
  background: rgba(255, 255, 255, 0.1);
}

.bottom-error-log {
  position: fixed;
  right: 14px;
  bottom: 14px;
  z-index: 2100;
  width: min(680px, calc(100vw - 28px));
  max-height: min(34vh, 320px);
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  overflow: hidden;
  border: 1px solid rgba(255, 100, 120, 0.32);
  border-radius: 8px;
  background: rgba(12, 16, 22, 0.96);
  color: var(--text);
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.46);
}

.bottom-error-log[hidden] {
  display: none;
}

.bottom-error-log-heading {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  padding: 8px 10px;
  border-bottom: 1px solid rgba(255, 100, 120, 0.18);
  background: rgba(255, 100, 120, 0.08);
}

.bottom-error-log-heading strong {
  color: #f4a9ad;
  font-size: 12px;
}

.bottom-error-log-heading span {
  overflow: hidden;
  color: var(--muted);
  font-size: 11px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.bottom-error-log-heading button {
  min-height: 26px;
  padding: 0 8px;
  border-color: rgba(255, 100, 120, 0.35);
  color: #f4a9ad;
  background: rgba(255, 100, 120, 0.08);
  font-size: 11px;
}

.bottom-error-log-list {
  min-height: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 8px;
}

.bottom-error-log-item {
  display: grid;
  gap: 5px;
  padding: 8px;
  border: 1px solid rgba(255, 100, 120, 0.14);
  border-radius: 7px;
  background: rgba(21, 27, 35, 0.92);
}

.bottom-error-log-item + .bottom-error-log-item {
  margin-top: 7px;
}

.bottom-error-log-item > div {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
}

.bottom-error-log-item strong {
  color: #f4a9ad;
  font-size: 12px;
}

.bottom-error-log-item span,
.bottom-error-log-item p {
  color: var(--muted);
  font-size: 11px;
  line-height: 1.4;
}

.bottom-error-log-item p {
  margin: 0;
}

/* Loading indicator overlay */
.loading-overlay {
  position: fixed;
  inset: 0;
  z-index: 1100;
  display: none;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.48);
}

.loading-overlay.visible {
  display: flex;
}

.loading-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  padding: 20px;
  border-radius: 8px;
  background: var(--panel);
  border: 1px solid rgba(98, 180, 255, 0.24);
}

.loading-spinner-large {
  width: 32px;
  height: 32px;
  border: 3px solid rgba(98, 180, 255, 0.3);
  border-top-color: var(--blue);
  border-radius: 50%;
  animation: spin-loading 0.8s linear infinite;
}

.loading-text {
  color: var(--text);
  font-size: 14px;
  font-weight: 600;
}

/* Loading states for buttons */
button:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

button.loading {
  position: relative;
  color: transparent;
}

button.loading::after {
  content: "";
  position: absolute;
  inset: 50%;
  width: 14px;
  height: 14px;
  margin: -7px 0 0 -7px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-top-color: var(--text);
  border-radius: 50%;
  animation: spin-loading 0.6s linear infinite;
}

/* Skeleton loading */
.skeleton {
  background: linear-gradient(90deg, rgba(98, 180, 255, 0.1) 25%, rgba(98, 180, 255, 0.2) 50%, rgba(98, 180, 255, 0.1) 75%);
  background-size: 200% 100%;
  animation: skeleton-loading 1.5s ease-in-out infinite;
  border-radius: 4px;
}

@keyframes skeleton-loading {
  0% {
    background-position: 200% 0;
  }
  100% {
    background-position: -200% 0;
  }
}

/* Tooltip */
.tooltip {
  position: relative;
}

.tooltip::after {
  content: attr(data-tooltip);
  position: absolute;
  bottom: 100%;
  left: 50%;
  z-index: 1000;
  margin-bottom: 8px;
  padding: 6px 10px;
  border-radius: 4px;
  background: rgba(0, 0, 0, 0.9);
  color: var(--text);
  font-size: 11px;
  white-space: nowrap;
  transform: translateX(-50%);
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.2s;
}

.tooltip:hover::after {
  opacity: 1;
}

.stock-heatmap-page {
  min-height: 100%;
  overflow: auto;
  background: #f3faf0;
  color: #14251b;
  color-scheme: light;
}

.stock-heatmap-page .topbar,
.stock-heatmap-topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  min-height: 74px;
  height: auto;
  flex-wrap: wrap;
  border-bottom-color: rgba(37, 101, 66, 0.22);
  background: rgba(249, 255, 246, 0.94);
  color: #14251b;
  box-shadow: 0 12px 36px rgba(42, 103, 66, 0.13);
  backdrop-filter: blur(14px);
}

.stock-heatmap-page .brand,
.stock-heatmap-page .nav-link,
.stock-heatmap-page .account-control {
  color: #17311f;
}

.stock-heatmap-page .nav-link {
  border-color: rgba(45, 108, 70, 0.16);
  background: rgba(255, 255, 255, 0.7);
}

.stock-heatmap-page .nav-link:hover,
.stock-heatmap-page .nav-link.active {
  border-color: rgba(31, 151, 91, 0.46);
  background: rgba(104, 219, 141, 0.18);
  color: #11623a;
}

.stock-heatmap-shell {
  min-height: calc(100vh - 74px);
  display: grid;
  gap: 14px;
  padding: 14px;
  background:
    linear-gradient(180deg, rgba(126, 222, 137, 0.2), rgba(255, 255, 255, 0) 330px),
    linear-gradient(135deg, rgba(232, 90, 90, 0.12), rgba(255, 255, 255, 0) 38%),
    #f3faf0;
}

.stock-heatmap-command {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(390px, 0.58fr);
  gap: 18px;
  align-items: end;
  padding: clamp(16px, 2vw, 24px);
  border: 1px solid rgba(42, 111, 69, 0.24);
  border-radius: 8px;
  background:
    linear-gradient(100deg, rgba(255, 255, 255, 0.96), rgba(236, 255, 230, 0.92) 58%, rgba(255, 235, 232, 0.74)),
    #ffffff;
  box-shadow: 0 20px 54px rgba(53, 105, 66, 0.15);
}

.stock-heatmap-identity {
  min-width: 0;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 16px;
  align-items: center;
}

.stock-heatmap-symbol-mark {
  width: clamp(76px, 8vw, 112px);
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  border: 2px solid rgba(22, 120, 68, 0.38);
  border-radius: 8px;
  background:
    linear-gradient(135deg, #33d17a, #b9f285 58%, #ff9f8d);
  color: #0d2a19;
  box-shadow: 0 16px 34px rgba(40, 148, 82, 0.24);
  font-size: clamp(24px, 3vw, 40px);
  font-weight: 950;
  letter-spacing: 0;
}

.stock-force-kicker {
  margin: 0 0 4px;
  color: #c03943;
  font-size: 12px;
  font-weight: 950;
  letter-spacing: 0;
  text-transform: uppercase;
}

.stock-heatmap-title {
  min-width: 0;
}

.stock-heatmap-title h1 {
  margin: 0;
  color: #122319;
  font-size: clamp(30px, 3vw, 54px);
  line-height: 1.02;
  letter-spacing: 0;
}

.stock-heatmap-title p:last-child {
  max-width: 1000px;
  margin: 8px 0 0;
  color: #43614e;
  font-size: 14px;
  line-height: 1.42;
}

.stock-heatmap-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 12px;
}

.stock-heatmap-meta span {
  min-height: 28px;
  display: inline-flex;
  align-items: center;
  max-width: 360px;
  overflow: hidden;
  border: 1px solid rgba(39, 124, 72, 0.2);
  border-radius: 999px;
  padding: 0 10px;
  background: rgba(255, 255, 255, 0.72);
  color: #315340;
  font-size: 12px;
  font-weight: 850;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.stock-heatmap-controls {
  min-width: 0;
  display: grid;
  grid-template-columns: minmax(118px, 0.9fr) minmax(150px, 1fr);
  gap: 10px;
  align-items: end;
  padding: 12px;
  border: 1px solid rgba(56, 124, 74, 0.18);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.76);
}

.stock-heatmap-controls label {
  min-width: 0;
  display: grid;
  gap: 5px;
  color: #52705d;
  font-size: 11px;
  font-weight: 950;
  text-transform: uppercase;
}

.stock-heatmap-controls input {
  min-height: 42px;
  min-width: 0;
  border: 1px solid rgba(50, 121, 71, 0.24);
  border-radius: 7px;
  padding: 0 11px;
  background: #fbfff8;
  color: #14301f;
  font-size: 15px;
  font-weight: 950;
}

.stock-heatmap-segments {
  grid-column: span 1;
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px;
  border: 1px solid rgba(50, 121, 71, 0.22);
  border-radius: 8px;
  background: #f1f9ee;
}

.stock-heatmap-segments button,
#stock-heatmap-refresh {
  width: auto;
  min-height: 32px;
  padding: 0 13px;
  border-radius: 7px;
}

.stock-heatmap-segments button {
  flex: 1 1 0;
  border-color: transparent;
  background: transparent;
  color: #587164;
}

.stock-heatmap-segments button.active {
  border-color: rgba(35, 133, 78, 0.38);
  background: #d8f7d1;
  color: #135b34;
  box-shadow: inset 0 -2px 0 rgba(33, 158, 91, 0.22);
}

#stock-heatmap-refresh {
  grid-column: span 1;
  min-height: 42px;
  border-color: rgba(12, 135, 77, 0.52);
  background: linear-gradient(135deg, #1aa85f, #58d46d);
  color: #ffffff;
  font-weight: 950;
  box-shadow: 0 10px 20px rgba(21, 147, 80, 0.24);
}

.stock-heatmap-overview {
  display: grid;
  grid-template-columns: minmax(280px, 0.78fr) minmax(430px, 1.28fr) minmax(320px, 0.86fr);
  gap: 14px;
}

.stock-heatmap-score-card,
.stock-heatmap-balance-card,
.stock-heatmap-quality-card,
.stock-heatmap-panel {
  min-width: 0;
  border: 1px solid rgba(39, 112, 71, 0.2);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.88);
  box-shadow: 0 14px 36px rgba(54, 99, 61, 0.12);
}

.stock-heatmap-score-card {
  display: grid;
  grid-template-columns: minmax(158px, 0.85fr) minmax(0, 1fr);
  gap: 14px;
  align-items: center;
  padding: 14px;
  background:
    linear-gradient(135deg, rgba(251, 255, 249, 0.96), rgba(231, 255, 224, 0.88)),
    #ffffff;
}

.stock-heatmap-score-ring {
  width: 158px;
  aspect-ratio: 1;
  position: relative;
  display: grid;
  place-items: center;
  justify-self: center;
  border-radius: 50%;
  background:
    conic-gradient(from 225deg, #ff5965 0deg, #ffbd6d 132deg, #35d76f 270deg, transparent 270deg),
    #ffffff;
  box-shadow:
    inset 0 0 0 12px #ffffff,
    0 13px 30px rgba(74, 126, 72, 0.22);
}

.stock-heatmap-score-ring::before {
  content: "";
  position: absolute;
  inset: 18px;
  border-radius: 50%;
  background: #fbfff8;
  box-shadow: inset 0 0 0 1px rgba(42, 111, 69, 0.14);
}

.stock-heatmap-score-ring > div {
  position: relative;
  z-index: 1;
  display: grid;
  justify-items: center;
  gap: 4px;
  text-align: center;
}

.stock-heatmap-score-ring strong {
  color: #122319;
  font-size: 34px;
  font-weight: 950;
  font-variant-numeric: tabular-nums;
}

.stock-heatmap-score-ring span:not(.stock-heatmap-score-pointer) {
  max-width: 112px;
  color: #3d5f49;
  font-size: 11px;
  font-weight: 950;
  line-height: 1.2;
  text-transform: capitalize;
}

.stock-heatmap-score-pointer {
  position: absolute;
  z-index: 2;
  top: 12px;
  left: calc(50% - 2px);
  width: 4px;
  height: 59px;
  border-radius: 999px;
  background: #11251a;
  transform: rotate(var(--pressure-deg)) translateY(2px);
  transform-origin: 50% 68px;
  box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.76);
}

.stock-heatmap-probabilities {
  display: grid;
  gap: 9px;
}

.stock-heatmap-probabilities div {
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr) 48px;
  gap: 9px;
  align-items: center;
  color: #486250;
  font-size: 12px;
  font-weight: 950;
}

.stock-heatmap-probabilities i {
  height: 12px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(110, 137, 114, 0.18);
}

.stock-heatmap-probabilities b {
  display: block;
  height: 100%;
  border-radius: inherit;
}

.stock-heatmap-probabilities .positive,
.stock-heatmap-force-track .positive {
  background: linear-gradient(90deg, #20bb62, #8ee866);
}

.stock-heatmap-probabilities .negative,
.stock-heatmap-force-track .negative {
  background: linear-gradient(90deg, #ff8290, #e4324d);
}

.stock-heatmap-probabilities .neutral {
  background: linear-gradient(90deg, #f5c165, #ffe28a);
}

.stock-heatmap-balance-card,
.stock-heatmap-quality-card,
.stock-heatmap-panel {
  display: grid;
  gap: 12px;
  align-content: start;
  padding: 14px;
}

.stock-heatmap-panel-head {
  min-width: 0;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  padding-bottom: 9px;
  border-bottom: 1px solid rgba(62, 122, 76, 0.16);
}

.stock-heatmap-panel-head h2 {
  margin: 0;
  color: #152c1d;
  font-size: 16px;
  letter-spacing: 0;
}

.stock-heatmap-panel-head span {
  min-width: 0;
  overflow: hidden;
  color: #5d7965;
  font-size: 11px;
  font-weight: 850;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.stock-heatmap-force-bar {
  display: grid;
  gap: 8px;
}

.stock-heatmap-force-track {
  height: 38px;
  display: flex;
  overflow: hidden;
  border: 1px solid rgba(42, 111, 69, 0.16);
  border-radius: 7px;
  background: #edf7e9;
}

.stock-heatmap-force-track span {
  min-width: 2px;
}

.stock-heatmap-force-labels {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  font-size: 12px;
}

.stock-heatmap-stat-grid,
.stock-heatmap-quality-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  overflow: hidden;
  border: 1px solid rgba(62, 122, 76, 0.16);
  border-radius: 8px;
  background: rgba(62, 122, 76, 0.16);
}

.stock-heatmap-stat-grid div,
.stock-heatmap-quality-grid div,
.stock-heatmap-transmission div,
.stock-heatmap-calibration div {
  min-width: 0;
  display: grid;
  gap: 4px;
  padding: 10px;
  background: rgba(255, 255, 255, 0.84);
}

.stock-heatmap-stat-grid span,
.stock-heatmap-quality-grid span,
.stock-heatmap-transmission span,
.stock-heatmap-calibration span {
  overflow: hidden;
  color: #607865;
  font-size: 10px;
  font-weight: 950;
  text-overflow: ellipsis;
  text-transform: uppercase;
  white-space: nowrap;
}

.stock-heatmap-stat-grid strong,
.stock-heatmap-quality-grid strong,
.stock-heatmap-transmission strong,
.stock-heatmap-calibration strong {
  min-width: 0;
  overflow: hidden;
  color: #15301f;
  font-size: 15px;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}

.stock-heatmap-stat-grid .positive,
.stock-heatmap-quality-grid .ok,
.stock-heatmap-calibration .ok,
.stock-heatmap-force-labels .positive {
  color: #138448;
}

.stock-heatmap-stat-grid .negative,
.stock-heatmap-quality-grid .warn,
.stock-heatmap-calibration .warn,
.stock-heatmap-force-labels .negative {
  color: #c7273d;
}

.stock-heatmap-quality-grid .watch,
.stock-heatmap-calibration .watch {
  color: #a66a06;
}

.stock-heatmap-quality-grid .muted {
  color: #607865;
}

.stock-heatmap-layout {
  display: grid;
  grid-template-columns: minmax(560px, 1.35fr) repeat(2, minmax(270px, 0.7fr));
  gap: 14px;
  align-items: start;
}

.stock-heatmap-map-panel {
  grid-row: span 2;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.92), rgba(240, 255, 231, 0.9)),
    #ffffff;
}

.stock-heatmap-map {
  min-height: 460px;
  display: grid;
  grid-template-columns: repeat(4, minmax(120px, 1fr));
  grid-auto-rows: 88px;
  gap: 10px;
}

.stock-heatmap-tile {
  height: auto;
  min-height: 88px;
  min-width: 0;
  display: grid;
  align-content: space-between;
  justify-items: start;
  gap: 6px;
  overflow: hidden;
  border-radius: 8px;
  padding: 12px;
  color: #102016;
  text-align: left;
  cursor: default;
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.45),
    0 13px 25px rgba(50, 104, 58, calc(0.10 + var(--heat) * 0.13));
}

.stock-heatmap-tile.positive {
  background:
    linear-gradient(135deg, rgba(255, 255, 255, calc(0.20 - var(--heat) * 0.08)), rgba(255, 255, 255, 0)),
    linear-gradient(135deg, rgba(27, 174, 87, calc(0.54 + var(--heat) * 0.34)), rgba(151, 238, 96, calc(0.52 + var(--heat) * 0.22)));
}

.stock-heatmap-tile.negative {
  background:
    linear-gradient(135deg, rgba(255, 255, 255, calc(0.14 - var(--heat) * 0.05)), rgba(255, 255, 255, 0)),
    linear-gradient(135deg, rgba(255, 112, 125, calc(0.58 + var(--heat) * 0.28)), rgba(209, 34, 58, calc(0.50 + var(--heat) * 0.26)));
  color: #fff9f7;
}

.stock-heatmap-tile.neutral {
  background: linear-gradient(135deg, #ffe69a, #d4bd70);
  color: #2f2b14;
}

.stock-heatmap-tile span,
.stock-heatmap-tile strong,
.stock-heatmap-tile small {
  min-width: 0;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
}

.stock-heatmap-tile span {
  font-size: 13px;
  font-weight: 950;
  line-height: 1.15;
  white-space: normal;
}

.stock-heatmap-tile strong {
  font-size: clamp(24px, 2.3vw, 40px);
  line-height: 0.95;
  font-weight: 950;
  font-variant-numeric: tabular-nums;
}

.stock-heatmap-tile small {
  min-height: 20px;
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 0 7px;
  background: rgba(255, 255, 255, 0.36);
  font-size: 10px;
  font-weight: 950;
  text-transform: uppercase;
}

.stock-heatmap-driver-list {
  display: grid;
  gap: 10px;
}

.stock-heatmap-driver-list article {
  min-width: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 64px;
  gap: 6px 10px;
  padding: 12px;
  border: 1px solid rgba(48, 121, 67, 0.18);
  border-radius: 8px;
  background: #ffffff;
}

.stock-heatmap-driver-list article.positive {
  border-left: 7px solid #25be61;
  background: linear-gradient(90deg, rgba(44, 210, 111, 0.16), #ffffff 32%);
}

.stock-heatmap-driver-list article.negative {
  border-left: 7px solid #ef3f55;
  background: linear-gradient(90deg, rgba(239, 63, 85, 0.15), #ffffff 32%);
}

.stock-heatmap-driver-list strong {
  color: #152c1d;
  font-size: 14px;
  line-height: 1.25;
}

.stock-heatmap-driver-list span,
.stock-heatmap-driver-list small,
.stock-heatmap-driver-list p,
.stock-heatmap-transmission small,
.stock-heatmap-calibration small {
  color: #526b59;
  font-size: 11px;
  line-height: 1.42;
}

.stock-heatmap-driver-list p,
.stock-heatmap-calibration small,
.stock-heatmap-transmission small {
  margin: 0;
}

.stock-heatmap-driver-list b {
  color: #152c1d;
  font-size: 15px;
  text-align: right;
  font-variant-numeric: tabular-nums;
}

.stock-heatmap-driver-list .positive b {
  color: #138448;
}

.stock-heatmap-driver-list .negative b {
  color: #c7273d;
}

.stock-heatmap-driver-list p,
.stock-heatmap-driver-list small {
  grid-column: 1 / -1;
}

.stock-heatmap-trend-panel,
.stock-heatmap-transmission-panel,
.stock-heatmap-notes-panel {
  grid-column: span 1;
}

.stock-heatmap-trend svg {
  width: 100%;
  height: 190px;
  overflow: visible;
}

.stock-heatmap-trend line {
  stroke: rgba(58, 106, 68, 0.2);
  stroke-width: 1;
}

.stock-heatmap-trend polyline {
  fill: none;
  stroke: #19a65d;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 4;
}

.stock-heatmap-trend > div {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  color: #526b59;
  font-size: 11px;
}

.stock-heatmap-trend strong.positive {
  color: #138448;
}

.stock-heatmap-trend strong.negative {
  color: #c7273d;
}

.stock-heatmap-transmission,
.stock-heatmap-calibration {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  overflow: hidden;
  border: 1px solid rgba(62, 122, 76, 0.16);
  border-radius: 8px;
  background: rgba(62, 122, 76, 0.16);
}

.stock-heatmap-calibration {
  grid-template-columns: 1fr;
}

.stock-heatmap-empty {
  min-height: 98px;
  display: grid;
  place-items: center;
  padding: 15px;
  border: 1px dashed rgba(38, 126, 76, 0.3);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.68);
  color: #526b59;
  text-align: center;
  font-size: 12px;
  line-height: 1.45;
}

@media (max-width: 1180px) {
  .stock-heatmap-command,
  .stock-heatmap-overview,
  .stock-heatmap-layout {
    grid-template-columns: 1fr;
  }

  .stock-heatmap-controls {
    width: 100%;
  }

  .stock-heatmap-map-panel {
    grid-row: auto;
  }

  .stock-heatmap-map {
    min-height: 0;
    grid-template-columns: repeat(4, minmax(110px, 1fr));
  }
}

@media (max-width: 760px) {
  .stock-heatmap-shell {
    padding: 9px;
  }

  .stock-heatmap-command {
    gap: 12px;
    padding: 12px;
  }

  .stock-heatmap-identity,
  .stock-heatmap-controls,
  .stock-heatmap-score-card,
  .stock-heatmap-stat-grid,
  .stock-heatmap-quality-grid,
  .stock-heatmap-transmission {
    grid-template-columns: 1fr;
  }

  .stock-heatmap-symbol-mark {
    width: 74px;
  }

  .stock-heatmap-segments,
  #stock-heatmap-refresh {
    width: 100%;
  }

  .stock-heatmap-segments button,
  #stock-heatmap-refresh {
    flex: 1 1 0;
  }

  .stock-heatmap-map {
    grid-template-columns: 1fr;
    grid-auto-rows: 96px;
  }

  .stock-heatmap-tile {
    grid-column: span 1 !important;
  }

  .stock-heatmap-score-ring {
    width: 136px;
  }
}

.stock-heatmap-page {
  min-height: 100%;
  overflow: auto;
  background:
    linear-gradient(115deg, rgba(73, 209, 126, 0.15), rgba(255, 255, 255, 0) 42%),
    linear-gradient(245deg, rgba(245, 83, 101, 0.14), rgba(255, 255, 255, 0) 44%),
    #f7fbf5;
  color: #14231a;
  color-scheme: light;
}

.stock-heatmap-page .topbar,
.stock-heatmap-topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  min-height: 72px;
  height: auto;
  flex-wrap: wrap;
  border-bottom-color: rgba(41, 121, 72, 0.2);
  background: rgba(252, 255, 249, 0.94);
  color: #14231a;
  box-shadow: 0 12px 36px rgba(54, 112, 69, 0.12);
  backdrop-filter: blur(14px);
}

.stock-heatmap-page .brand,
.stock-heatmap-page .nav-link,
.stock-heatmap-page .account-control {
  color: #17311f;
}

.stock-heatmap-page .nav-link {
  border-color: rgba(45, 108, 70, 0.16);
  background: rgba(255, 255, 255, 0.72);
}

.stock-heatmap-page .nav-link:hover,
.stock-heatmap-page .nav-link.active {
  border-color: rgba(24, 165, 88, 0.42);
  background: rgba(90, 221, 134, 0.18);
  color: #11623a;
}

.stock-force-shell {
  min-height: calc(100vh - 72px);
  display: grid;
  gap: 12px;
  padding: 12px;
}

.stock-force-command,
.stock-force-stage,
.stock-force-panel,
.stock-force-category-section {
  min-width: 0;
  border: 1px solid rgba(39, 112, 71, 0.18);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.88);
  box-shadow: 0 16px 38px rgba(45, 98, 59, 0.11);
}

.stock-force-command {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(430px, 0.62fr);
  gap: 18px;
  align-items: end;
  padding: clamp(14px, 1.8vw, 22px);
  background:
    linear-gradient(95deg, rgba(255, 255, 255, 0.98), rgba(232, 255, 229, 0.9) 52%, rgba(255, 232, 234, 0.82)),
    #ffffff;
}

.stock-force-heading {
  min-width: 0;
  display: grid;
  gap: 6px;
}

.stock-force-kicker {
  width: max-content;
  max-width: 100%;
  border: 1px solid rgba(28, 169, 89, 0.28);
  border-radius: 999px;
  padding: 5px 9px;
  background: rgba(111, 231, 137, 0.18);
  color: #167142;
  font-size: 11px;
  font-weight: 950;
  text-transform: uppercase;
}

.stock-force-heading h1 {
  margin: 0;
  color: #102216;
  font-size: clamp(30px, 3.2vw, 56px);
  line-height: 1.02;
  letter-spacing: 0;
}

.stock-force-heading p {
  max-width: 980px;
  margin: 0;
  color: #4b6655;
  font-size: 14px;
  line-height: 1.45;
}

.stock-force-controls {
  min-width: 0;
  display: grid;
  grid-template-columns: minmax(126px, 0.9fr) minmax(160px, 1fr);
  gap: 10px;
  align-items: end;
  padding: 12px;
  border: 1px solid rgba(52, 126, 74, 0.18);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.78);
}

.stock-force-controls label {
  min-width: 0;
  display: grid;
  gap: 5px;
  color: #5a7562;
  font-size: 11px;
  font-weight: 950;
  text-transform: uppercase;
}

.stock-force-controls input {
  min-height: 42px;
  min-width: 0;
  border: 1px solid rgba(45, 118, 70, 0.24);
  border-radius: 7px;
  padding: 0 11px;
  background: #fbfff8;
  color: #14301f;
  font-size: 15px;
  font-weight: 950;
}

.stock-force-segments {
  min-height: 42px;
  display: inline-flex;
  gap: 4px;
  padding: 4px;
  border: 1px solid rgba(45, 118, 70, 0.22);
  border-radius: 8px;
  background: #f0f8ee;
}

.stock-force-segments button,
#stock-force-refresh {
  min-height: 32px;
  border-radius: 7px;
  padding: 0 13px;
  font-weight: 950;
}

.stock-force-segments button {
  flex: 1 1 0;
  border-color: transparent;
  background: transparent;
  color: #587164;
}

.stock-force-segments button.active {
  border-color: rgba(35, 145, 81, 0.36);
  background: #d9f8d2;
  color: #135b34;
}

#stock-force-refresh {
  border-color: rgba(12, 135, 77, 0.52);
  background: linear-gradient(135deg, #18a95f, #6edd72);
  color: #ffffff;
  box-shadow: 0 10px 20px rgba(21, 147, 80, 0.22);
}

.stock-force-stage {
  min-height: clamp(560px, 68vh, 760px);
  display: grid;
  grid-template-columns: minmax(280px, 0.86fr) minmax(420px, 1.14fr) minmax(280px, 0.86fr);
  gap: 12px;
  align-items: stretch;
  padding: 14px;
  background:
    linear-gradient(90deg, rgba(64, 214, 118, 0.12), rgba(255, 255, 255, 0.8) 42%, rgba(255, 255, 255, 0.8) 58%, rgba(239, 72, 91, 0.12)),
    #ffffff;
}

.stock-force-side,
.stock-force-core {
  min-width: 0;
  display: grid;
  align-content: start;
  gap: 12px;
}

.stock-force-side {
  position: relative;
  border: 1px solid rgba(52, 126, 74, 0.14);
  border-radius: 8px;
  padding: 12px;
  background: rgba(255, 255, 255, 0.66);
}

.stock-force-positive {
  background: linear-gradient(100deg, rgba(225, 255, 224, 0.92), rgba(255, 255, 255, 0.72));
}

.stock-force-negative {
  background: linear-gradient(260deg, rgba(255, 229, 231, 0.96), rgba(255, 255, 255, 0.72));
}

.stock-force-side-head,
.stock-force-panel-head {
  min-width: 0;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(62, 122, 76, 0.16);
}

.stock-force-side-head span,
.stock-force-panel-head h2 {
  margin: 0;
  color: #14291b;
  font-size: 16px;
  font-weight: 950;
}

.stock-force-side-head strong {
  font-size: 18px;
  font-variant-numeric: tabular-nums;
}

.stock-force-positive .stock-force-side-head strong,
.stock-force-balance-labels .positive,
.stock-force-market-row .positive,
.stock-force-evidence .ok {
  color: #118247;
}

.stock-force-negative .stock-force-side-head strong,
.stock-force-balance-labels .negative,
.stock-force-market-row .negative,
.stock-force-evidence .warn {
  color: #c7253d;
}

.stock-force-panel-head span {
  min-width: 0;
  overflow: hidden;
  color: #607865;
  font-size: 11px;
  font-weight: 850;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.stock-force-band-list {
  display: grid;
  gap: 10px;
}

.stock-force-band {
  --force: 0.2;
  min-width: 0;
  position: relative;
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  overflow: hidden;
  border-radius: 8px;
  padding: 11px;
  isolation: isolate;
}

.stock-force-band::after {
  content: "";
  position: absolute;
  inset: auto 10px 9px 62px;
  height: 5px;
  border-radius: 999px;
  opacity: calc(0.38 + var(--force) * 0.46);
  transform: scaleX(calc(0.24 + var(--force) * 0.76));
  transform-origin: left center;
  z-index: -1;
}

.stock-force-negative .stock-force-band::after {
  transform-origin: right center;
}

.stock-force-band.positive {
  border: 1px solid rgba(22, 171, 91, calc(0.20 + var(--force) * 0.32));
  background:
    linear-gradient(90deg, rgba(36, 194, 95, calc(0.15 + var(--force) * 0.22)), rgba(255, 255, 255, 0.92) 72%),
    #ffffff;
}

.stock-force-band.positive::after {
  background: linear-gradient(90deg, #25bd66, #a1ed68);
}

.stock-force-band.negative {
  border: 1px solid rgba(228, 54, 75, calc(0.20 + var(--force) * 0.32));
  background:
    linear-gradient(270deg, rgba(241, 80, 99, calc(0.16 + var(--force) * 0.22)), rgba(255, 255, 255, 0.94) 72%),
    #ffffff;
}

.stock-force-band.negative::after {
  background: linear-gradient(270deg, #ef5264, #ff9aa0);
}

.stock-force-band.loading {
  opacity: 0.66;
}

.stock-force-band i,
.stock-force-category-card i {
  width: 36px;
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  border-radius: 7px;
  background: rgba(255, 255, 255, 0.72);
  color: #17311f;
  font-size: 11px;
  font-style: normal;
  font-weight: 950;
}

.stock-force-band strong,
.stock-force-band span,
.stock-force-band b {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
}

.stock-force-band strong {
  display: block;
  color: #14291b;
  font-size: 14px;
  line-height: 1.2;
  white-space: nowrap;
}

.stock-force-band span {
  display: -webkit-box;
  color: #526b59;
  font-size: 11px;
  line-height: 1.35;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.stock-force-band b {
  font-size: 16px;
  font-variant-numeric: tabular-nums;
}

.stock-force-band.positive b {
  color: #118247;
}

.stock-force-band.negative b {
  color: #c7253d;
}

.stock-force-core {
  justify-items: center;
  align-content: center;
  border: 1px solid rgba(42, 111, 69, 0.14);
  border-radius: 8px;
  padding: 14px;
  background:
    radial-gradient(circle at 50% 42%, rgba(88, 223, 129, 0.16), rgba(255, 255, 255, 0) 28%),
    radial-gradient(circle at 50% 58%, rgba(244, 78, 96, 0.13), rgba(255, 255, 255, 0) 34%),
    #fbfff8;
}

.stock-force-source-line {
  width: 100%;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
}

.stock-force-source-line span {
  max-width: 46%;
  overflow: hidden;
  border: 1px solid rgba(53, 122, 72, 0.18);
  border-radius: 999px;
  padding: 6px 10px;
  background: rgba(255, 255, 255, 0.8);
  color: #496250;
  font-size: 11px;
  font-weight: 850;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.stock-force-orbit {
  width: clamp(280px, 28vw, 430px);
  aspect-ratio: 1;
  position: relative;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background:
    conic-gradient(from 225deg, #ef5264 0deg, #ffb27f 128deg, #29c66c 270deg, rgba(255, 255, 255, 0.18) 270deg),
    #ffffff;
  box-shadow:
    inset 0 0 0 22px rgba(255, 255, 255, 0.9),
    inset 0 0 0 23px rgba(43, 125, 70, 0.08),
    0 22px 58px rgba(51, 105, 65, 0.18);
}

.stock-force-orbit::before,
.stock-force-orbit::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
}

.stock-force-orbit::before {
  inset: 54px;
  border: 1px dashed rgba(64, 132, 78, 0.22);
}

.stock-force-orbit::after {
  top: 20px;
  left: calc(50% - 3px);
  width: 6px;
  height: calc(50% - 34px);
  background: #102216;
  transform: rotate(var(--force-balance)) translateY(2px);
  transform-origin: 50% calc(100% - 2px);
  box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.82);
}

.stock-force-nucleus {
  width: 52%;
  aspect-ratio: 1;
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 7px;
  border: 1px solid rgba(43, 125, 70, 0.18);
  border-radius: 50%;
  background: #ffffff;
  box-shadow: inset 0 0 0 8px rgba(248, 255, 245, 0.9), 0 18px 42px rgba(41, 104, 60, 0.16);
  text-align: center;
}

.stock-force-nucleus span {
  max-width: 82%;
  overflow: hidden;
  color: #102216;
  font-size: clamp(26px, 3.4vw, 48px);
  font-weight: 950;
  line-height: 1;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.stock-force-nucleus strong {
  color: #102216;
  font-size: clamp(34px, 4.4vw, 68px);
  line-height: 0.9;
  font-weight: 950;
  font-variant-numeric: tabular-nums;
}

.stock-force-nucleus small {
  max-width: 78%;
  color: #516b59;
  font-size: 12px;
  font-weight: 950;
  line-height: 1.18;
  text-transform: capitalize;
}

.stock-force-market-row {
  width: min(100%, 620px);
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  overflow: hidden;
  border: 1px solid rgba(62, 122, 76, 0.16);
  border-radius: 8px;
  background: rgba(62, 122, 76, 0.16);
}

.stock-force-market-row div,
.stock-force-evidence div {
  min-width: 0;
  display: grid;
  gap: 4px;
  padding: 10px;
  background: rgba(255, 255, 255, 0.88);
}

.stock-force-market-row span,
.stock-force-evidence span {
  overflow: hidden;
  color: #607865;
  font-size: 10px;
  font-weight: 950;
  text-overflow: ellipsis;
  text-transform: uppercase;
  white-space: nowrap;
}

.stock-force-market-row strong,
.stock-force-evidence strong {
  min-width: 0;
  overflow: hidden;
  color: #15301f;
  font-size: 15px;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}

.stock-force-balance {
  width: min(100%, 620px);
  display: grid;
  gap: 8px;
}

.stock-force-balance-track {
  height: 26px;
  display: flex;
  overflow: hidden;
  border: 1px solid rgba(42, 111, 69, 0.16);
  border-radius: 999px;
  background: #edf7e9;
}

.stock-force-balance-track span {
  min-width: 2px;
}

.stock-force-balance-track .positive {
  background: linear-gradient(90deg, #20bb62, #8ee866);
}

.stock-force-balance-track .negative {
  background: linear-gradient(90deg, #ff8791, #e4324d);
}

.stock-force-balance-labels {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  font-size: 12px;
}

.stock-force-note {
  max-width: 620px;
  margin: 0;
  color: #536b5b;
  font-size: 12px;
  line-height: 1.4;
  text-align: center;
}

.stock-force-panels {
  display: grid;
  grid-template-columns: minmax(0, 1.42fr) minmax(330px, 0.58fr);
  gap: 12px;
}

.stock-force-panel,
.stock-force-category-section {
  display: grid;
  gap: 12px;
  align-content: start;
  padding: 14px;
}

.stock-force-tape svg {
  width: 100%;
  height: 190px;
  overflow: visible;
}

.stock-force-tape line {
  stroke: rgba(58, 106, 68, 0.2);
  stroke-width: 1;
}

.stock-force-tape polyline {
  fill: none;
  stroke: url("#stock-force-line");
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 4;
}

.stock-force-tape circle.positive {
  fill: #22b963;
}

.stock-force-tape circle.negative {
  fill: #ef5264;
}

.stock-force-tape-labels,
.stock-force-tape-single {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  color: #526b59;
  font-size: 11px;
}

.stock-force-tape-single {
  min-height: 190px;
  justify-content: center;
  flex-direction: column;
  border: 1px dashed rgba(40, 128, 75, 0.26);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.72);
  text-align: center;
}

.stock-force-tape-single strong {
  color: #102216;
  font-size: 36px;
}

.stock-force-evidence {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  overflow: hidden;
  border: 1px solid rgba(62, 122, 76, 0.16);
  border-radius: 8px;
  background: rgba(62, 122, 76, 0.16);
}

.stock-force-evidence .watch {
  color: #a66a06;
}

.stock-force-category-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(118px, 1fr));
  gap: 8px;
}

.stock-force-category-card {
  --force: 0.08;
  min-width: 0;
  display: grid;
  gap: 8px;
  align-content: space-between;
  min-height: 118px;
  border-radius: 8px;
  padding: 10px;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.54), 0 8px 18px rgba(48, 98, 58, 0.08);
}

.stock-force-category-card.positive {
  background:
    linear-gradient(135deg, rgba(255, 255, 255, calc(0.32 - var(--force) * 0.08)), rgba(255, 255, 255, 0)),
    linear-gradient(135deg, rgba(38, 193, 97, calc(0.42 + var(--force) * 0.32)), rgba(151, 238, 96, calc(0.42 + var(--force) * 0.22)));
}

.stock-force-category-card.negative {
  background:
    linear-gradient(135deg, rgba(255, 255, 255, calc(0.24 - var(--force) * 0.06)), rgba(255, 255, 255, 0)),
    linear-gradient(135deg, rgba(255, 121, 132, calc(0.46 + var(--force) * 0.3)), rgba(215, 45, 64, calc(0.42 + var(--force) * 0.24)));
  color: #fff9f7;
}

.stock-force-category-card.neutral {
  border: 1px solid rgba(69, 104, 74, 0.13);
  background: #f0f5ed;
  color: #26372b;
}

.stock-force-category-card div {
  min-width: 0;
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  gap: 7px;
  align-items: center;
}

.stock-force-category-card span,
.stock-force-category-card strong,
.stock-force-category-card small {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
}

.stock-force-category-card span {
  color: inherit;
  font-size: 12px;
  font-weight: 950;
  line-height: 1.12;
}

.stock-force-category-card strong {
  color: inherit;
  font-size: 25px;
  line-height: 1;
  font-weight: 950;
  font-variant-numeric: tabular-nums;
}

.stock-force-category-card small {
  min-height: 20px;
  width: max-content;
  max-width: 100%;
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 0 7px;
  background: rgba(255, 255, 255, 0.38);
  color: inherit;
  font-size: 10px;
  font-weight: 950;
  text-transform: uppercase;
  white-space: nowrap;
}

.stock-force-empty {
  min-height: 98px;
  display: grid;
  place-items: center;
  padding: 14px;
  border: 1px dashed rgba(38, 126, 76, 0.3);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.68);
  color: #526b59;
  text-align: center;
  font-size: 12px;
  line-height: 1.45;
}

@media (max-width: 1320px) {
  .stock-force-stage,
  .stock-force-command,
  .stock-force-panels {
    grid-template-columns: 1fr;
  }

  .stock-force-core {
    order: -1;
  }

  .stock-force-category-grid {
    grid-template-columns: repeat(5, minmax(110px, 1fr));
  }
}

@media (max-width: 760px) {
  .stock-force-shell {
    padding: 8px;
  }

  .stock-force-command,
  .stock-force-stage,
  .stock-force-panel,
  .stock-force-category-section {
    padding: 10px;
  }

  .stock-force-controls,
  .stock-force-market-row,
  .stock-force-evidence {
    grid-template-columns: 1fr;
  }

  .stock-force-segments,
  #stock-force-refresh {
    width: 100%;
  }

  .stock-force-source-line span {
    max-width: 100%;
  }

  .stock-force-orbit {
    width: min(100%, 310px);
  }

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

/* Badge for notifications */
.badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 20px;
  height: 20px;
  padding: 0 6px;
  border-radius: 10px;
  background: var(--red);
  color: white;
  font-size: 10px;
  font-weight: 900;
}

.badge.success {
  background: var(--green);
}

.badge.warning {
  background: var(--amber);
}

.badge.info {
  background: var(--blue);
}

/* Error state styling */
.error-box {
  padding: 10px 12px;
  border-radius: 6px;
  background: rgba(255, 100, 120, 0.1);
  border-left: 3px solid var(--red);
  color: var(--red);
  font-size: 12px;
  line-height: 1.4;
}

.error-box strong {
  display: block;
  color: var(--text);
  margin-bottom: 4px;
}

/* Improvement for select/input focus */
select:focus,
input:focus,
button:focus {
  outline: none;
  border-color: var(--blue);
  box-shadow: 0 0 0 2px rgba(98, 180, 255, 0.2);
}

/* Keyboard focus visible */
*:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 2px;
}

@media (max-width: 1050px) {
  .dashboard-shell {
    grid-template-columns: 1fr;
    grid-template-rows: minmax(0, 1fr) minmax(540px, 58vh);
    overflow: auto;
  }

  .side-panel {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-template-rows: repeat(2, minmax(260px, 1fr));
  }

  .chart-grid[data-count="6"],
  .chart-grid[data-count="8"],
  .chart-grid[data-count="12"],
  .chart-grid[data-count="16"] {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .chart-grid[data-count="6"] {
    grid-template-rows: repeat(3, minmax(0, 1fr));
  }

  .chart-grid[data-count="8"] {
    grid-template-rows: repeat(4, minmax(0, 1fr));
  }

  .chart-grid[data-count="12"] {
    grid-template-rows: repeat(6, minmax(0, 1fr));
  }

  .chart-grid[data-count="16"] {
    grid-template-rows: repeat(8, minmax(0, 1fr));
  }

  .market-footer {
    grid-template-columns: 1fr;
    height: auto;
    min-height: var(--market-footer-height);
  }

  .market-status {
    min-height: 36px;
    overflow-x: auto;
  }

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

  .calendar-toolbar #calendar-symbols,
  .calendar-toolbar #calendar-search {
    grid-column: 1 / -1;
  }

  .macro-shell {
    height: auto;
    min-height: calc(100vh - 78px);
    grid-template-rows: auto auto;
    overflow: auto;
  }

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

  .macro-map-wrap {
    min-height: 560px;
  }

  .macro-detail-panel {
    border-left: 0;
    border-top: 1px solid rgba(49, 55, 65, 0.88);
  }
}

@media (max-width: 720px) {
  .screener-facts-grid,
  .screener-key-grid,
  .screener-health-summary {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .screener-health-columns {
    grid-template-columns: 1fr;
  }

  .screener-revenue-breakdown {
    grid-template-columns: 1fr;
  }

  body {
    overflow: auto;
  }

  .topbar {
    height: auto;
    align-items: flex-start;
    flex-direction: column;
  }

  .top-nav,
  .account-control {
    width: 100%;
    justify-content: flex-start;
    flex-wrap: wrap;
  }

  .account-control {
    min-width: 0;
  }

  .brand {
    align-items: flex-start;
    white-space: normal;
    line-height: 1.1;
    font-size: 26px;
  }

  .brand-globe,
  .brand-mark {
    flex: 0 0 auto;
  }

  .chart-grid,
  .chart-grid[data-count] {
    min-height: calc(100vh - 88px);
    height: auto;
    grid-template-columns: 1fr;
    grid-auto-rows: minmax(360px, 55vh);
    grid-template-rows: none;
    overflow: visible;
  }

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

  .symbol-picker,
  .ticker {
    grid-column: 1 / -1;
  }

  .range-bar {
    align-items: stretch;
    flex-direction: column;
  }

  .date-range {
    justify-content: space-between;
  }

  .dashboard-shell {
    height: auto;
    grid-template-rows: auto auto;
  }

  .auth-gate {
    align-items: start;
    overflow: auto;
    padding: 14px;
  }

  .auth-panel {
    padding: 16px;
  }

  .auth-enrollment-fields,
  .auth-email-grid,
  .auth-email-actions,
  .auth-sms-grid,
  .auth-code-form,
  .auth-sso-buttons {
    grid-template-columns: 1fr;
  }

  .auth-sso-button:first-child {
    grid-column: auto;
  }

  .market-footer {
    position: sticky;
    bottom: 0;
    z-index: 10;
  }

  .ticker-track {
    animation-duration: 68s;
  }

  .side-panel {
    grid-template-columns: 1fr;
    grid-template-rows: repeat(7, minmax(300px, auto));
  }

  .indicator-picker.open .indicator-menu {
    grid-template-columns: 1fr;
    right: auto;
    left: 0;
    width: min(360px, 92vw);
  }

  .calendar-shell,
  .screener-shell {
    height: auto;
    min-height: calc(100vh - 78px);
  }

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

  .calendar-toolbar #calendar-symbols,
  .calendar-toolbar #calendar-search {
    grid-column: auto;
  }

  .calendar-page .calendar-panel {
    min-height: calc(100vh - 96px);
  }

  .macro-toolbar {
    align-items: stretch;
    flex-direction: column;
  }

  .macro-controls {
    justify-content: flex-start;
  }

  .macro-map-wrap {
    min-height: 480px;
    padding: 6px;
  }

  .macro-marker {
    min-width: 48px;
    grid-template-columns: 1fr;
    justify-items: center;
    gap: 2px;
    padding: 4px;
  }

  .macro-marker small {
    display: none;
  }

  .macro-metric-grid {
    grid-template-columns: 1fr;
  }

  .macro-table-panel .panel-heading {
    align-items: stretch;
    flex-direction: column;
  }

  .macro-table-panel .panel-actions input {
    width: 100%;
  }

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

  .calendar-ownership-visual {
    grid-template-columns: 1fr;
    justify-items: center;
  }

  .calendar-ownership-legend3d {
    width: 100%;
  }
}

/* MDI Stock Heatmap visual alignment */
.intelligence-page {
  background:
    linear-gradient(115deg, rgba(73, 209, 126, 0.10), rgba(255, 255, 255, 0) 42%),
    linear-gradient(245deg, rgba(245, 83, 101, 0.08), rgba(255, 255, 255, 0) 44%),
    #fbfcfb;
  color: #111417;
  color-scheme: light;
  font-family: var(--font-ui);
}

.intelligence-page button,
.intelligence-page input,
.intelligence-page select,
.intelligence-page textarea {
  font-family: var(--font-ui);
  letter-spacing: 0;
}

.intelligence-page .intelligence-topbar {
  min-height: 64px;
  padding: 8px 24px;
  border-bottom: 1px solid #dde2e0;
  background: rgba(255, 255, 255, 0.96);
  color: #111417;
  box-shadow: 0 8px 28px rgba(22, 34, 28, 0.06);
  backdrop-filter: blur(14px);
}

.intelligence-page .brand,
.intelligence-page .intelligence-brand,
.intelligence-page .top-nav,
.intelligence-page .account-control {
  color: #111417;
}

.intelligence-page .brand-mark {
  background: linear-gradient(180deg, #0a9546, #f0c45a 52%, #f0525f);
  box-shadow: 0 0 0 1px rgba(10, 149, 70, 0.22), 0 8px 24px rgba(10, 149, 70, 0.14);
}

.intelligence-page .intelligence-topbar .nav-link {
  height: 40px;
  border-color: rgba(45, 108, 70, 0.16);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.78);
  color: #15191c;
  font-size: 15px;
  font-weight: 800;
}

.intelligence-page .intelligence-topbar .nav-link:hover,
.intelligence-page .intelligence-topbar .nav-link.active {
  border-color: rgba(24, 165, 88, 0.42);
  background: rgba(90, 221, 134, 0.18);
  color: #11623a;
}

.intelligence-page .mdi-top-status span,
.intelligence-page .mdi-top-status strong {
  border-color: rgba(45, 108, 70, 0.16);
  background: rgba(255, 255, 255, 0.76);
  color: #40504a;
}

.intelligence-page .mdi-icon-button,
.intelligence-page #mdi-refresh,
.intelligence-page .mdi-settings-action {
  border-color: rgba(45, 108, 70, 0.18);
  border-radius: 8px;
  background: #ffffff;
  color: #15191c;
  box-shadow: 0 6px 18px rgba(22, 34, 28, 0.05);
}

.intelligence-page .mdi-icon-button:hover,
.intelligence-page #mdi-refresh:hover,
.intelligence-page .mdi-settings-action:hover {
  border-color: rgba(24, 165, 88, 0.40);
  background: rgba(90, 221, 134, 0.16);
  color: #11623a;
}

.intelligence-page .account-control {
  min-width: 0;
  margin-left: 0;
  gap: 9px;
  color: #40504a;
  font-size: 13px;
  font-weight: 800;
}

.intelligence-page .account-control > span {
  max-width: min(240px, 22vw);
  color: #40504a;
}

.intelligence-page .account-control button {
  width: auto;
  min-width: 104px;
  height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 1px solid #17202a;
  border-radius: 8px;
  padding: 0 12px;
  background: #17202a;
  color: #ffffff;
  font-size: 13px;
  font-weight: 850;
  box-shadow: 0 8px 20px rgba(23, 32, 42, 0.12);
}

.intelligence-page .account-control button:hover {
  background: #0f1720;
  color: #ffffff;
}

.intelligence-page .account-control button svg {
  width: 16px;
  height: 16px;
  flex: 0 0 auto;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
}

.intelligence-page .mdi-shell {
  min-height: calc(100vh - 64px);
  padding: 12px 24px 18px;
  background: transparent;
}

.intelligence-page .mdi-command-center,
.intelligence-page .mdi-command-trend,
.intelligence-page .mdi-metric-panel,
.intelligence-page .mdi-panel,
.intelligence-page .mdi-subpage-dialog,
.intelligence-page .mdi-audit-dialog {
  border-color: rgba(39, 112, 71, 0.16);
  background: rgba(255, 255, 255, 0.92);
  color: #111417;
  box-shadow: 0 16px 38px rgba(45, 98, 59, 0.08);
}

.intelligence-page .mdi-command-center {
  background:
    linear-gradient(135deg, rgba(73, 209, 126, 0.08), rgba(255, 255, 255, 0) 46%),
    rgba(255, 255, 255, 0.90);
}

.intelligence-page .mdi-command-copy,
.intelligence-page .mdi-panel-header,
.intelligence-page .mdi-audit-header,
.intelligence-page .mdi-audit-toolbar,
.intelligence-page .mdi-subpage-header {
  border-bottom-color: rgba(45, 108, 70, 0.14);
  background: rgba(255, 255, 255, 0.66);
}

.intelligence-page .mdi-kicker,
.intelligence-page .mdi-panel-title {
  color: #0a9546;
}

.intelligence-page .mdi-command-center h1,
.intelligence-page .mdi-panel-header h2,
.intelligence-page .mdi-subpage-header h2,
.intelligence-page .mdi-audit-header h2,
.intelligence-page .mdi-regime,
.intelligence-page .mdi-driver strong,
.intelligence-page .mdi-causal-step strong,
.intelligence-page .mdi-roadmap-grid strong {
  color: #111417;
}

.intelligence-page .mdi-explanation,
.intelligence-page .mdi-muted,
.intelligence-page .mdi-panel-header span,
.intelligence-page .mdi-driver span,
.intelligence-page .mdi-causal-step span,
.intelligence-page .mdi-roadmap-grid span,
.intelligence-page .mdi-note {
  color: #4d5753;
}

.intelligence-page .mdi-settings-menu {
  border-color: rgba(39, 112, 71, 0.18);
  background: rgba(255, 255, 255, 0.98);
  color: #111417;
  box-shadow: 0 20px 48px rgba(22, 34, 28, 0.16);
}

.intelligence-page .mdi-settings label span {
  color: #40504a;
}

.intelligence-page .mdi-settings input,
.intelligence-page .mdi-settings select,
.intelligence-page .mdi-command-market-control select {
  border-color: #d8dedb;
  background: #ffffff;
  color: #111417;
}

@media (max-width: 900px) {
  .intelligence-page .intelligence-topbar {
    padding: 8px 12px;
  }

  .intelligence-page .mdi-shell {
    padding: 10px;
  }

  .intelligence-page .account-control > span {
    max-width: 100%;
  }
}

/* MDI light terminal polish: remove remaining dark islands */
.intelligence-page .mdi-mpi-arc {
  background:
    radial-gradient(circle at center, #ffffff 0 56%, transparent 57%),
    conic-gradient(from 225deg, #ef8f98 0deg, #efd78e 135deg, #83dca8 270deg, transparent 270deg 360deg);
  box-shadow:
    inset 0 0 0 1px rgba(42, 111, 69, 0.08),
    0 14px 34px rgba(45, 98, 59, 0.14);
}

.intelligence-page .mdi-mpi-arc::before {
  background: #ffffff;
  box-shadow:
    inset 0 0 0 1px rgba(42, 111, 69, 0.14),
    0 0 0 9px rgba(236, 244, 238, 0.92);
}

.intelligence-page .mdi-mpi-arc::after {
  color: #708079;
}

.intelligence-page .mdi-mpi-pointer::before {
  background: linear-gradient(180deg, #15221b, #536b5b);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.92), 0 0 14px rgba(42, 111, 69, 0.24);
}

.intelligence-page .mdi-mpi-pointer::after {
  background: #15221b;
  box-shadow: 0 0 0 2px #ffffff, 0 0 10px rgba(42, 111, 69, 0.24);
}

.intelligence-page .mdi-mpi-arc-core strong,
.intelligence-page .mdi-trend-summary strong,
.intelligence-page .mdi-provider-score strong,
.intelligence-page .mdi-evidence-tier strong,
.intelligence-page .mdi-evidence-tier em,
.intelligence-page .mdi-evidence-row strong,
.intelligence-page .mdi-corroboration-row strong,
.intelligence-page .mdi-provider-pill strong {
  color: #111417;
}

.intelligence-page .mdi-mpi-arc-core span,
.intelligence-page .mdi-confidence-row,
.intelligence-page .mdi-trend-summary span,
.intelligence-page .mdi-provider-score span,
.intelligence-page .mdi-provider-score small,
.intelligence-page .mdi-provider-note,
.intelligence-page .mdi-provider-alert span,
.intelligence-page .mdi-evidence-tier span {
  color: #53635c;
}

.intelligence-page .mdi-prob-row,
.intelligence-page .mdi-mini-bar,
.intelligence-page .mdi-regime-compact .mdi-mini-bar span,
.intelligence-page .mdi-regime-compact .mdi-mini-bar strong {
  color: #26342e;
}

.intelligence-page .mdi-prob-track {
  background: #edf3ef;
  box-shadow: inset 0 0 0 1px rgba(42, 111, 69, 0.09);
}

.intelligence-page .mdi-up {
  background: linear-gradient(90deg, #8bd8b0, #62c889);
}

.intelligence-page .mdi-flat {
  background: linear-gradient(90deg, #ead98f, #d8bd62);
}

.intelligence-page .mdi-down {
  background: linear-gradient(90deg, #f3a4aa, #e57482);
}

.intelligence-page .mdi-mini-bar i {
  background: #8bbce6;
}

.intelligence-page .mdi-confidence-guardrail {
  border-color: rgba(216, 143, 36, 0.24);
  background: rgba(249, 237, 202, 0.74);
  color: #8a6416;
}

.intelligence-page .mdi-confidence-guardrail.mdi-guardrail-active {
  border-color: rgba(224, 91, 101, 0.28);
  background: rgba(252, 229, 231, 0.82);
  color: #b3424e;
}

.intelligence-page .mdi-trend-outlook,
.intelligence-page .mdi-trend-summary > div,
.intelligence-page .mdi-horizon-card,
.intelligence-page .mdi-driver,
.intelligence-page .mdi-event,
.intelligence-page .mdi-event-shock-card,
.intelligence-page .mdi-causal-step,
.intelligence-page .mdi-note,
.intelligence-page .mdi-roadmap-grid > div,
.intelligence-page .mdi-empty,
.intelligence-page .mdi-provider-score,
.intelligence-page .mdi-provider-alert,
.intelligence-page .mdi-evidence-row,
.intelligence-page .mdi-corroboration-row,
.intelligence-page .mdi-provider-pill,
.intelligence-page .mdi-evidence-tier,
.intelligence-page .mdi-causal-count,
.intelligence-page .mdi-fresh-row {
  border-color: rgba(42, 111, 69, 0.14);
  background: #ffffff;
  color: #111417;
  box-shadow: 0 8px 20px rgba(45, 98, 59, 0.05);
}

.intelligence-page .mdi-trend-outlook > div:first-child > span,
.intelligence-page .mdi-driver-columns h3,
.intelligence-page .mdi-combo-grid h3,
.intelligence-page .mdi-provider-subhead,
.intelligence-page .mdi-event strong {
  color: #26342e;
}

.intelligence-page .mdi-horizon-card.active {
  border-color: rgba(24, 165, 88, 0.42);
  background: rgba(90, 221, 134, 0.15);
  box-shadow: inset 0 0 0 1px rgba(24, 165, 88, 0.14), 0 10px 24px rgba(45, 98, 59, 0.08);
}

.intelligence-page .mdi-horizon-card strong {
  color: #9d6f10;
}

.intelligence-page .mdi-horizon-card small,
.intelligence-page .mdi-horizon-card .mdi-return-interval,
.intelligence-page .mdi-horizon-card span {
  color: #53635c;
}

.intelligence-page .mdi-positive {
  color: #168447;
}

.intelligence-page .mdi-negative {
  color: #bd3342;
}

.intelligence-page .mdi-neutral {
  color: #9d6f10;
}

.intelligence-page #mdi-positive-drivers .mdi-driver {
  border-color: rgba(27, 160, 88, 0.24);
  background:
    linear-gradient(90deg, rgba(123, 217, 160, 0.22), rgba(255, 255, 255, 0.98) 70%),
    #ffffff;
}

.intelligence-page #mdi-positive-drivers .mdi-driver strong,
.intelligence-page #mdi-positive-drivers .mdi-driver span {
  color: #1d7c4c;
}

.intelligence-page #mdi-positive-drivers .mdi-driver p {
  color: #315447;
}

.intelligence-page #mdi-negative-drivers .mdi-driver {
  border-color: rgba(224, 91, 101, 0.25);
  background:
    linear-gradient(90deg, rgba(246, 164, 170, 0.23), rgba(255, 255, 255, 0.98) 72%),
    #ffffff;
}

.intelligence-page #mdi-negative-drivers .mdi-driver strong,
.intelligence-page #mdi-negative-drivers .mdi-driver span {
  color: #a84651;
}

.intelligence-page #mdi-negative-drivers .mdi-driver p {
  color: #6e4448;
}

.intelligence-page .mdi-provider-note,
.intelligence-page .mdi-corroboration-row {
  background: #f7faf7;
}

.intelligence-page .mdi-score-ok,
.intelligence-page .mdi-tier-available,
.intelligence-page .mdi-provider-ok {
  border-color: rgba(27, 160, 88, 0.26);
  background: rgba(231, 247, 237, 0.92);
}

.intelligence-page .mdi-score-watch,
.intelligence-page .mdi-provider-alert {
  border-color: rgba(217, 158, 52, 0.30);
  background: rgba(250, 241, 212, 0.88);
}

.intelligence-page .mdi-score-warn,
.intelligence-page .mdi-tier-warn,
.intelligence-page .mdi-gap-row,
.intelligence-page .mdi-provider-warn,
.intelligence-page .mdi-alert-high {
  border-color: rgba(224, 91, 101, 0.30);
  background: rgba(252, 231, 233, 0.88);
}

.intelligence-page .mdi-provider-alert strong,
.intelligence-page .mdi-alert-high strong {
  color: #a84651;
}

.intelligence-page .mdi-causal-step > span {
  background: #e8f4ec;
  color: #168447;
}

.intelligence-page .mdi-fresh-row {
  border-bottom-color: rgba(42, 111, 69, 0.10);
  box-shadow: none;
}

.intelligence-page .mdi-fresh-row strong {
  color: #9d6f10;
}

.intelligence-page .mdi-trend-chart-box {
  border: 1px solid rgba(42, 111, 69, 0.14);
  border-radius: 9px;
  background: #ffffff;
  box-shadow: 0 12px 28px rgba(45, 98, 59, 0.06);
}

.intelligence-page .mdi-trend-chart rect {
  fill: #ffffff;
  stroke: rgba(42, 111, 69, 0.12);
}

.intelligence-page .mdi-trend-chart line {
  stroke: rgba(83, 99, 92, 0.15);
}

.intelligence-page .mdi-trend-chart line.zero {
  stroke: rgba(36, 53, 45, 0.38);
}

.intelligence-page .mdi-trend-chart line.x-grid {
  stroke: rgba(42, 111, 69, 0.10);
}

.intelligence-page .mdi-trend-chart line.x-hour-marker {
  stroke: rgba(83, 99, 92, 0.28);
}

.intelligence-page .mdi-trend-chart path.area {
  fill: rgba(139, 188, 230, 0.14);
}

.intelligence-page .mdi-trend-chart path.line {
  stroke: #5f9dcf;
}

.intelligence-page .mdi-trend-chart circle {
  fill: #e0bd5a;
  stroke: #ffffff;
}

.intelligence-page .mdi-trend-chart text,
.intelligence-page .mdi-trend-chart text.y-axis-title {
  fill: #53635c;
}

.intelligence-page .mdi-trend-chart text.axis-title {
  fill: #0a9546;
}

.intelligence-page .mdi-trend-toolbar {
  border-color: rgba(42, 111, 69, 0.15);
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 10px 24px rgba(45, 98, 59, 0.10);
}

.intelligence-page .mdi-trend-toolbar > span,
.intelligence-page .mdi-trend-zoom button {
  color: #53635c;
}

.intelligence-page .mdi-trend-zoom button.active {
  background: rgba(90, 221, 134, 0.18);
  color: #11623a;
  box-shadow: inset 0 0 0 1px rgba(24, 165, 88, 0.28);
}

.intelligence-page .mdi-tab {
  border-color: rgba(42, 111, 69, 0.16);
  background: #ffffff;
  color: #26342e;
}

.intelligence-page .mdi-tab.active {
  border-color: rgba(24, 165, 88, 0.42);
  background: rgba(90, 221, 134, 0.16);
  color: #11623a;
}

.intelligence-page .mdi-audit-backdrop,
.intelligence-page .mdi-subpage-backdrop {
  background: rgba(236, 244, 238, 0.76);
  backdrop-filter: blur(4px);
}
