@font-face {
  font-family: "IBM Plex Sans";
  src: url("fonts/ibm-plex-sans-latin-normal.woff2") format("woff2");
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
}

@font-face {
  font-family: "IBM Plex Sans";
  src: url("fonts/ibm-plex-sans-latin-italic.woff2") format("woff2");
  font-style: italic;
  font-weight: 400 800;
  font-display: swap;
}

:root {
  color-scheme: dark;
  --bg: #1f232b;
  --bg-deep: #12151b;
  --panel: #20252d;
  --panel-soft: #252a35;
  --line: #4a5161;
  --line-soft: #343b49;
  --text: #e6e8ee;
  --muted: #a9afbf;
  --blue: #5fb0ff;
  --blue-strong: #3799f5;
  --green: #22c45e;
  --red: #ff5162;
  --red-soft: #843841;
  --brown: #46312e;
  --shadow: rgba(0, 0, 0, .24);
  font-family: "IBM Plex Sans", Arial, Helvetica, sans-serif;
}

* {
  box-sizing: border-box;
}

body {
  min-width: 1160px;
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-size: 14px;
}

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

button,
input {
  font: inherit;
}

button {
  cursor: pointer;
}

.hidden {
  display: none !important;
}

.masthead {
  background: #373c48;
  border-bottom: 1px solid #555b69;
}

.masthead-inner {
  max-width: 1860px;
  margin: 0 auto;
  padding: 5px 24px 9px;
}

.brand {
  display: inline-flex;
  align-items: baseline;
  gap: 12px;
  margin-bottom: 10px;
  color: #f7f7f9;
}

.brand-main {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 42px;
  font-weight: 800;
  line-height: .92;
  letter-spacing: 0;
}

.brand-main span {
  color: var(--blue);
}

.brand-sub {
  width: 168px;
  color: #c0c5d0;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 4px;
  line-height: 1.05;
  text-transform: uppercase;
}

.search-shell {
  position: relative;
  display: flex;
  align-items: center;
  gap: 10px;
  width: 500px;
  height: 36px;
  border: 1px solid #596072;
  border-radius: 6px;
  color: #8791a8;
  background: #353a46;
  padding: 0 14px;
}

.search-shell span {
  font-size: 22px;
  line-height: 1;
}

.search-shell input {
  min-width: 0;
  width: 100%;
  border: 0;
  outline: 0;
  color: var(--text);
  background: transparent;
  font-size: 13px;
}

.search-results {
  position: absolute;
  top: calc(100% + 5px);
  left: 0;
  z-index: 10050;
  width: min(560px, 88vw);
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #171b23;
  box-shadow: 0 10px 24px rgba(0, 0, 0, .35);
}

.search-result {
  display: grid;
  grid-template-columns: 78px 1fr 110px;
  gap: 10px;
  align-items: center;
  min-height: 34px;
  padding: 0 10px;
  border-top: 1px solid var(--line-soft);
  color: var(--blue);
  font-size: 13px;
}

.search-result:first-child {
  border-top: 0;
}

.search-result:hover,
.search-result:focus {
  background: #252b36;
}

.search-result span {
  overflow: hidden;
  color: var(--text);
  text-overflow: ellipsis;
  white-space: nowrap;
}

.search-result small {
  overflow: hidden;
  color: var(--muted);
  text-align: right;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.nav-bar {
  display: flex;
  justify-content: space-between;
  align-items: stretch;
  background: #4d5361;
  border-bottom: 1px solid #303642;
  box-shadow: 0 2px 0 var(--shadow);
}

.nav-scroll,
.nav-actions {
  display: flex;
  align-items: center;
}

.nav-scroll {
  margin-left: max(24px, calc((100vw - 1860px) / 2 + 24px));
  overflow: auto hidden;
}

.nav-scroll a,
.nav-scroll .nav-current,
.nav-actions button,
.nav-actions .nav-button,
.nav-actions span {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 0 9px;
  color: #f4f4f6;
  border: 0;
  border-left: 1px solid transparent;
  border-right: 1px solid transparent;
  background: transparent;
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
}

.nav-scroll a.active,
.nav-scroll .nav-current.active {
  background: #687080;
}

.nav-actions {
  margin-right: max(24px, calc((100vw - 1860px) / 2 + 24px));
}

.nav-actions span {
  color: #f1f2f5;
  font-size: 12px;
}

.nav-actions .primary-btn {
  background: #61aaf5;
}

.nav-actions .nav-button {
  border-radius: 0;
}

.theme-toggle {
  gap: 6px;
  border-left-color: #434957 !important;
  border-right-color: #434957 !important;
}

.theme-toggle::first-letter {
  font-size: 20px;
}

.shell {
  max-width: 1860px;
  margin: 0 auto;
  padding: 14px 24px 22px;
}

.briefing,
.market-panel,
.index-card,
.breadth-card,
.sentiment-card,
.earnings-card,
.calendar-empty,
.auth-modal form {
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--panel);
}

.briefing {
  display: flex;
  justify-content: space-between;
  align-items: center;
  min-height: 48px;
  margin-bottom: 16px;
  padding: 0 14px;
  font-size: 16px;
}

.briefing strong {
  color: var(--red);
}

.briefing-text {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.briefing-text span:last-of-type {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.spark {
  color: #bcc5d7;
  font-size: 18px;
}

.briefing-votes {
  color: #b5bac7;
  letter-spacing: 4px;
}

.index-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(260px, 1fr));
  gap: 36px;
}

.index-card {
  min-height: 148px;
  padding: 10px 10px 8px;
  position: relative;
}

.index-title {
  display: grid;
  grid-template-columns: minmax(82px, 1fr) auto auto;
  align-items: baseline;
  gap: 12px;
  padding: 0 12px;
  color: #aeb6c8;
  font-weight: 800;
}

.index-title b {
  font-size: 18px;
  line-height: 1.05;
}

.index-title span:last-child,
.negative {
  color: var(--red);
}

.chart-wrap {
  display: grid;
  grid-template-columns: 42px 1fr 56px;
  align-items: end;
  gap: 8px;
}

.loading-card .index-title span:last-child {
  color: var(--muted);
}

.loading-chart {
  min-height: 112px;
  align-items: center;
}

.loading-message {
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
  text-align: center;
}

canvas.mini-chart {
  width: 100%;
  height: 112px;
}

.volume-label {
  color: #99a3b7;
  font-size: 10px;
  line-height: 1.05;
  text-align: center;
  text-transform: uppercase;
}

.price-labels {
  color: #a8b0c3;
  font-size: 13px;
  line-height: 1.65;
}

.breadth-grid {
  display: grid;
  grid-template-columns: 1.05fr 1.05fr 1.05fr 1.05fr 1fr;
  gap: 64px;
  align-items: center;
  margin: 34px auto 18px;
  max-width: 1700px;
}

.breadth-card {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 12px;
  min-height: 66px;
  padding: 9px 10px;
}

.breadth-card div:first-child strong,
.breadth-card div:first-child span,
.positive {
  color: var(--green);
}

.breadth-card .right {
  text-align: right;
}

.breadth-card .right strong,
.breadth-card .right span {
  color: #ff7b83;
}

.breadth-card strong,
.breadth-card span {
  display: block;
}

.metric-label {
  color: #aeb4c5 !important;
  align-self: center;
  font-size: 13px;
  font-weight: 700;
}

.split-bar {
  grid-column: 1 / -1;
  height: 9px;
  overflow: hidden;
  border-radius: 3px;
  background: var(--red);
}

.split-bar span {
  display: block;
  height: 100%;
  background: var(--green);
}

.sentiment-card {
  display: grid;
  grid-template-columns: 1fr 46px 46px;
  gap: 6px;
  align-items: center;
  padding: 5px;
}

.sentiment-card canvas {
  width: 100%;
  height: 54px;
}

.sentiment-card div span {
  display: block;
  border-radius: 4px;
  color: #c4cad7;
  background: #2f6f3d;
  text-align: center;
  font-size: 12px;
  font-weight: 800;
}

.sentiment-card div:last-child span {
  background: #842c37;
}

.main-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 535px;
  gap: 20px;
}

.left-stack {
  min-width: 0;
}

.scanner-row,
.calendar-grid,
.insider-grid,
.bottom-grid {
  display: grid;
  gap: 20px;
}

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

.scanner-row.compact {
  margin-top: 20px;
}

.market-panel {
  min-width: 0;
  overflow: hidden;
}

.table-title,
.quote-row {
  display: grid;
  grid-template-columns: 76px 62px 88px 78px minmax(92px, 1fr);
  column-gap: 8px;
  align-items: center;
}

.table-title {
  padding: 0 8px 3px;
  color: #c4c8d2;
  font-weight: 800;
}

.table-title button {
  justify-self: end;
  border: 0;
  color: var(--blue);
  background: transparent;
  font-weight: 800;
}

.quote-row,
.small-row,
.major-row,
.pattern-grid {
  color: var(--blue);
}

.quote-row {
  min-height: 24px;
  padding: 0 8px;
  font-size: 13px;
  font-weight: 700;
}

.quote-row span:nth-child(2),
.quote-row span:nth-child(4) {
  color: var(--text);
  text-align: right;
}

.quote-row span:nth-child(3) {
  text-align: right;
}

.quote-row a,
.pattern-grid a {
  color: var(--blue);
}

.signal-panel {
  padding: 7px 8px 8px;
}

.signal-panel h2,
.news-panel h2,
.major-news h2,
.watch-panel h2,
.small-table h2,
.earnings-card h2 {
  display: flex;
  justify-content: space-between;
  margin: 0 0 4px;
  color: #c6cad4;
  font-size: 14px;
}

.pattern-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(56px, 1fr)) minmax(180px, 1.4fr);
  gap: 0 12px;
  font-size: 13px;
  font-weight: 700;
}

.pattern-grid span {
  min-height: 26px;
}

.pattern-grid .signal {
  color: var(--blue);
}

.pattern-grid .signal i {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 20px;
  margin-right: 2px;
  border-radius: 5px;
  background: #3a4251;
  color: #f78cb8;
  font-style: normal;
}

.news-panel {
  margin-top: 18px;
  padding: 0 6px 5px;
}

.headline-row {
  display: grid;
  grid-template-columns: 36px 70px 1fr;
  min-height: 23px;
  align-items: center;
  padding: 0 2px;
  color: var(--blue);
  font-weight: 700;
}

.headline-row:first-child {
  margin: 0 -6px;
  padding: 0 8px;
  background: #3a3e4c;
}

.headline-row .source {
  display: inline-flex;
  width: 24px;
  height: 24px;
  align-items: center;
  justify-content: center;
  border-radius: 4px;
  color: #fff;
  background: #6f1ddd;
  font-weight: 900;
}

.headline-row .time {
  color: #f2f3f5;
}

.headline-row.muted .headline {
  color: #7d8598;
}

.calendar-grid {
  grid-template-columns: 1fr 420px;
  margin-top: 16px;
}

.calendar-head {
  display: grid;
  grid-template-columns: 80px 70px 80px 1fr 80px 90px 100px 80px;
  color: #c6cad4;
  font-weight: 800;
  padding: 0 4px 4px;
}

.calendar-empty {
  display: grid;
  grid-template-columns: 80px 1fr;
  padding: 4px;
  font-weight: 800;
}

.calendar-empty span {
  text-align: center;
}

.earnings-card {
  padding: 7px;
}

.earnings-card h2 span {
  flex: 1;
  margin-left: 54px;
}

.earnings-card p {
  margin: 4px 0;
  color: var(--blue);
  word-spacing: 10px;
  font-weight: 800;
}

.earnings-card b {
  color: #aeb4c2;
  word-spacing: 0;
}

.insider-grid {
  grid-template-columns: 1fr 420px;
  margin-top: 28px;
}

.insider-head,
.insider-row {
  display: grid;
  grid-template-columns: 70px 1.45fr 1fr 90px 1fr 70px 100px 100px;
  align-items: center;
  min-height: 26px;
  padding: 0 8px;
}

.insider-head {
  color: #c6cad4;
  font-weight: 800;
}

.insider-head.top,
.insider-table.top .insider-row {
  grid-template-columns: 58px 1.5fr 82px 96px 120px;
}

.insider-row {
  color: #f1d7d3;
  border-top: 1px solid rgba(197, 77, 87, .52);
  background: #4a2e32;
  font-weight: 700;
}

.insider-row.buy {
  color: #c9ead0;
  border-top-color: rgba(22, 161, 74, .6);
  background: #205b35;
}

.insider-row.neutral {
  background: #343a48;
}

.insider-row span:first-child,
.insider-row span:nth-child(2) {
  color: var(--blue);
}

.bottom-grid {
  grid-template-columns: 420px 1fr 420px;
  align-items: end;
  margin-top: 18px;
}

.small-table {
  padding: 5px 8px;
}

.small-table h2 {
  display: grid;
  grid-template-columns: 1fr 95px 95px 95px;
}

.small-row {
  display: grid;
  grid-template-columns: 1fr 95px 95px 95px;
  min-height: 24px;
  font-weight: 700;
}

.small-row span:not(:first-child) {
  text-align: right;
}

.tour-card {
  text-align: center;
  padding-bottom: 22px;
}

.tour-card h2 {
  margin: 0 0 8px;
  color: #d8dbe3;
  font-size: 20px;
}

.primary-btn,
.text-btn {
  border: 0;
  border-radius: 6px;
  color: #fff;
  font-weight: 800;
}

.primary-btn {
  background: var(--blue-strong);
}

.text-btn {
  background: #3a404d;
}

.tour-card button {
  min-height: 42px;
  padding: 0 16px;
  margin: 0 4px;
  font-size: 14px;
}

.right-rail {
  display: grid;
  align-content: start;
  gap: 18px;
  min-width: 0;
}

.heatmap-panel {
  padding: 6px;
}

.heatmap {
  display: grid;
  grid-template-columns: repeat(18, 1fr);
  grid-auto-rows: 28px;
  gap: 1px;
  height: 308px;
  overflow: hidden;
  background: #11151d;
}

.tile {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-width: 0;
  padding: 2px;
  color: #fff;
  border: 1px solid rgba(0, 0, 0, .45);
  font-weight: 900;
  line-height: 1;
  text-align: center;
  text-shadow: 0 1px 1px rgba(0, 0, 0, .7);
  overflow: hidden;
}

.tile small {
  display: block;
  margin-top: 3px;
  font-size: 10px;
}

.tile.label {
  align-items: start;
  justify-content: start;
  text-align: left;
  font-size: 11px;
  text-shadow: none;
}

.tile.big {
  font-size: 20px;
}

.tile.mid {
  font-size: 14px;
}

.major-news,
.watch-panel {
  padding: 8px;
}

.major-news {
  width: 162px;
}

.major-row {
  display: grid;
  grid-template-columns: 72px 72px;
  min-height: 24px;
  font-weight: 800;
}

.major-row span:last-child {
  text-align: right;
}

.major-row .badge {
  padding: 2px 5px;
  border-radius: 5px;
  color: #fff;
  background: #9e2730;
}

.watch-panel {
  width: 100%;
}

.watch-add {
  display: grid;
  grid-template-columns: 1fr 56px;
  gap: 6px;
  margin-bottom: 8px;
}

.watch-add input,
.auth-modal input {
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 5px;
  color: var(--text);
  background: #171b23;
  padding: 8px;
}

.watch-add button,
.auth-actions button {
  border: 0;
  border-radius: 5px;
  color: #fff;
  background: var(--blue-strong);
  font-weight: 800;
}

#watchlist {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 5px;
  margin: 0;
  padding: 0;
  list-style: none;
}

#watchlist li {
  padding: 5px;
  border-radius: 4px;
  color: var(--blue);
  background: #171b23;
  font-weight: 800;
}

.site-footer {
  margin-top: 28px;
  padding: 28px 16px;
  background: var(--bg-deep);
  color: #778196;
  text-align: center;
}

.site-footer nav {
  margin-bottom: 12px;
}

.site-footer a {
  font-weight: 800;
}

.site-footer span {
  margin: 0 5px;
  color: #323947;
}

.site-footer p {
  margin: 8px 0;
  font-weight: 700;
}

.content-page {
  max-width: 1340px;
  margin: 0 auto;
  padding: 18px 24px 32px;
}

.page-title {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 16px;
  margin-bottom: 16px;
}

.page-title h1 {
  margin: 0;
  color: var(--text);
  font-size: 24px;
}

.page-title p {
  margin: 0;
  color: var(--muted);
  font-weight: 700;
}

.page-panel {
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--panel);
  overflow: hidden;
}

.news-page-list {
  display: grid;
}

.news-page-row {
  display: grid;
  grid-template-columns: 86px 1fr 116px;
  gap: 14px;
  align-items: center;
  min-height: 42px;
  padding: 0 12px;
  border-top: 1px solid var(--line-soft);
  color: var(--blue);
  font-size: 13px;
  font-weight: 800;
}

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

.news-page-row time,
.news-page-row span:last-child {
  color: var(--muted);
}

.news-summary {
  margin: 0 0 18px;
  padding: 14px;
  color: var(--text);
  background: #2a303b;
  border-bottom: 1px solid var(--line);
  font-weight: 700;
  line-height: 1.45;
}

.chart-tools {
  display: grid;
  grid-template-columns: minmax(130px, 180px) auto auto auto auto 1fr;
  gap: 10px;
  padding: 12px;
  border-bottom: 1px solid var(--line);
}

.chart-tools input,
.chart-tools select {
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 5px;
  color: var(--text);
  background: #171b23;
  padding: 7px 9px;
}

.chart-tools button {
  border: 0;
  border-radius: 5px;
  color: #fff;
  background: var(--blue-strong);
  padding: 0 16px;
  font-weight: 800;
}

.chart-stage {
  min-height: min(760px, calc(100vh - 260px));
  padding: 10px;
}

.chart-stage img,
.chart-stage canvas {
  display: block;
  width: 100%;
  margin: 0 auto;
  border: 1px solid var(--line-soft);
  border-radius: 6px;
  background: #171b23;
  object-fit: contain;
}

.chart-stage img {
  width: auto;
  max-width: 1280px;
  max-height: calc(100vh - 320px);
  height: min(68vh, 680px);
  min-height: 0;
}

.chart-stage canvas {
  max-width: 1400px;
  min-height: 560px;
}

.chart-fallback {
  display: grid;
  place-items: center;
  gap: 10px;
  min-height: 360px;
  border: 1px solid var(--line-soft);
  border-radius: 6px;
  background: #171b23;
  color: var(--muted);
  font-weight: 800;
}

.chart-note {
  margin: 0;
  align-self: center;
  max-width: 100%;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.ticker-news-panel {
  margin-top: 16px;
}

.ticker-news-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 40px;
  padding: 0 12px;
  border-bottom: 1px solid var(--line);
  background: #2a303b;
}

.ticker-news-head h2 {
  margin: 0;
  color: var(--text);
  font-size: 15px;
}

.ticker-news-head span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.ticker-news-list {
  display: grid;
}

.ticker-news-row {
  display: grid;
  grid-template-columns: 90px 1fr 150px;
  gap: 14px;
  align-items: center;
  min-height: 38px;
  padding: 0 12px;
  border-top: 1px solid var(--line-soft);
  color: var(--blue);
  font-size: 13px;
  font-weight: 800;
}

.ticker-news-row:first-child {
  border-top: 0;
}

.ticker-news-row:hover {
  background: #252b36;
}

.ticker-news-row time,
.ticker-news-row span {
  overflow: hidden;
  color: var(--muted);
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ticker-news-row strong {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ticker-news-row span {
  text-align: right;
}

.ticker-news-empty {
  margin: 0;
  padding: 14px 12px;
  color: var(--muted);
  font-weight: 800;
}

.section-page {
  max-width: 1760px;
}

.page-tabs {
  display: flex;
  gap: 8px;
  padding: 10px;
  border-bottom: 1px solid var(--line);
  background: #2a303b;
}

.page-tabs button {
  min-height: 30px;
  border: 1px solid var(--line);
  border-radius: 5px;
  color: var(--text);
  background: #171b23;
  font-weight: 800;
}

.data-table {
  display: grid;
  width: 100%;
  overflow: auto;
}

.data-row {
  display: grid;
  min-height: 30px;
  align-items: center;
  gap: 10px;
  padding: 0 10px;
  border-top: 1px solid var(--line-soft);
  color: var(--text);
  font-size: 13px;
  font-weight: 700;
}

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

.data-head {
  color: var(--muted);
  background: #2a303b;
  font-weight: 900;
}

.screener-row,
.screener-table .data-head {
  grid-template-columns: 46px 74px minmax(230px, 1.5fr) minmax(160px, 1fr) 118px 100px 86px 86px 100px 130px;
}

.market-screener {
  border-top: 1px solid var(--line);
  color: var(--text);
  background: #10141a;
  font-size: 12px;
}

.market-screener select,
.market-screener input,
.market-screener button {
  min-height: 28px;
  border: 1px solid #38414f;
  border-radius: 4px;
  color: var(--text);
  background: #171c24;
  font: inherit;
  font-weight: 800;
}

.market-screener select,
.market-screener input {
  width: 100%;
  padding: 4px 7px;
}

.market-screener button {
  cursor: pointer;
  padding: 4px 9px;
}

.market-screener button:disabled {
  cursor: default;
  opacity: 0.45;
}

.screener-topbar {
  display: grid;
  grid-template-columns: minmax(140px, 0.8fr) minmax(220px, 1.25fr) 90px minmax(220px, 1.25fr) minmax(260px, 1.4fr) 78px;
  gap: 8px;
  align-items: end;
  padding: 10px;
  border-bottom: 1px solid var(--line);
  background: #222832;
}

.screener-topbar label,
.screener-ticker-form label,
.screener-filter-cell {
  display: grid;
  gap: 4px;
  color: var(--muted);
  font-weight: 900;
}

.screener-ticker-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 34px;
  gap: 6px;
  align-items: end;
}

.screener-ticker-form button,
.screener-pages button.active,
.screener-filter-tabs button.active,
.screener-view-tabs button.active {
  color: #08111b;
  border-color: #e2ac4b;
  background: #e2ac4b;
}

.screener-filter-tabs,
.screener-view-tabs {
  display: flex;
  gap: 2px;
  overflow-x: auto;
  padding: 8px 10px 0;
  background: #10141a;
}

.screener-filter-tabs button,
.screener-view-tabs button {
  min-width: 96px;
  border-bottom-left-radius: 0;
  border-bottom-right-radius: 0;
  color: var(--muted);
  background: #252b35;
}

.screener-view-tabs {
  padding-top: 10px;
  border-top: 1px solid var(--line);
}

.screener-filter-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(150px, 1fr));
  gap: 1px;
  padding: 10px;
  border-bottom: 1px solid var(--line);
  background: #2c333d;
}

.screener-filter-cell {
  min-width: 0;
  padding: 7px;
  background: #20262f;
}

.screener-filter-cell span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.screener-meta {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 12px;
  align-items: center;
  padding: 8px 10px;
  color: var(--muted);
  border-top: 1px solid var(--line-soft);
  border-bottom: 1px solid var(--line);
  background: #10141a;
  font-weight: 900;
}

.screener-meta span:nth-child(2) {
  text-align: center;
}

.screener-meta span:last-child {
  text-align: right;
}

.screener-table-wrap {
  width: 100%;
  overflow: auto;
  padding: 0 10px;
  background: #10141a;
}

.screener-market-table {
  width: 100%;
  min-width: 1120px;
  border-collapse: separate;
  border-spacing: 0;
  font-variant-numeric: tabular-nums;
}

.screener-market-table th {
  position: sticky;
  top: 0;
  z-index: 1;
  padding: 0;
  border-bottom: 1px solid #3a4350;
  background: #2b323d;
  text-align: left;
}

.screener-market-table th button {
  width: 100%;
  min-height: 30px;
  border: 0;
  border-radius: 0;
  color: #b9c2d0;
  background: transparent;
  text-align: inherit;
}

.screener-market-table th button span {
  float: right;
  color: #e2ac4b;
}

.screener-market-table td {
  max-width: 260px;
  overflow: hidden;
  padding: 7px 8px;
  border-bottom: 1px solid #202731;
  color: #d8dee8;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.screener-market-table tbody tr:nth-child(even) td {
  background: #151a22;
}

.screener-market-table tbody tr:hover td {
  background: #222a35;
}

.screener-market-table .num {
  text-align: right;
}

.screener-market-table .ticker-link {
  color: #7db8ff;
  font-weight: 950;
}

.screener-market-table .empty {
  padding: 22px;
  color: var(--muted);
  text-align: center;
}

.screener-pages {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  justify-content: center;
  padding: 10px;
  border-top: 1px solid var(--line);
}

.screener-pages button {
  min-width: 34px;
}

.groups-table .data-row {
  grid-template-columns: 220px 90px minmax(220px, 1fr) minmax(340px, 1fr);
}

.group-row i {
  display: block;
  height: 9px;
  border-radius: 3px;
  background: linear-gradient(90deg, var(--red), var(--green));
}

.option-toolbar {
  display: grid;
  grid-template-columns: 150px auto 1fr;
  gap: 10px;
  align-items: center;
  padding: 12px;
  border-bottom: 1px solid var(--line);
  background: #2a303b;
}

.option-toolbar input {
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 5px;
  color: var(--text);
  background: #171b23;
  padding: 7px 9px;
  font-weight: 800;
}

.option-toolbar button {
  border: 0;
  border-radius: 5px;
  color: #fff;
  background: var(--blue-strong);
  padding: 8px 14px;
  font-weight: 800;
}

.option-toolbar span {
  color: var(--muted);
  font-weight: 800;
}

.option-chain {
  min-width: 1180px;
}

.option-row {
  display: grid;
  grid-template-columns: repeat(5, minmax(74px, 1fr)) 90px repeat(5, minmax(74px, 1fr));
  align-items: center;
  min-height: 34px;
  border-top: 1px solid var(--line-soft);
  color: var(--text);
  font-size: 13px;
  font-weight: 700;
}

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

.option-row span,
.option-row strong {
  overflow: hidden;
  padding: 0 8px;
  text-align: right;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.option-row strong {
  align-self: stretch;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-left: 1px solid var(--line);
  border-right: 1px solid var(--line);
  color: var(--blue);
  background: #171b23;
}

.option-head {
  min-height: 36px;
  color: var(--muted);
  background: #303642;
  text-transform: uppercase;
  font-size: 11px;
}

.portfolio-table .data-row,
.simple-quote-table .data-row {
  grid-template-columns: minmax(150px, 1fr) 140px 140px 140px;
}

.vwap-summary {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding: 12px;
  border-bottom: 1px solid var(--line-soft);
}

.vwap-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 30px;
  padding: 0 10px;
  border: 1px solid var(--line);
  background: #181d26;
  color: var(--text);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.vwap-pill b {
  color: inherit;
  font-size: 14px;
}

.vwap-source {
  align-self: center;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.vwap-table .data-row {
  grid-template-columns: 82px minmax(220px, 1.4fr) 132px 90px 100px 90px 100px 118px;
}

.vwap-row {
  border-left: 5px solid transparent;
}

.vwap-in {
  border-left-color: var(--green);
}

.vwap-approaching {
  border-left-color: #f4cd36;
}

.vwap-out {
  border-left-color: var(--red);
}

.vwap-row.vwap-in {
  background: rgba(32, 209, 90, .14);
}

.vwap-row.vwap-approaching {
  background: rgba(244, 205, 54, .16);
}

.vwap-row.vwap-out {
  background: rgba(255, 90, 100, .14);
}

.vwap-row strong {
  color: var(--text);
  font-size: 12px;
  text-transform: uppercase;
}

.watch-status {
  padding: 12px;
  border-bottom: 1px solid var(--line-soft);
  color: var(--muted);
  background: #181d26;
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.watch-table .data-row {
  grid-template-columns: 76px minmax(180px, 1.3fr) 92px 94px 102px 92px 100px 118px;
}

.watch-row {
  border-left: 5px solid transparent;
}

.watch-row.watch-positive {
  border-left-color: var(--green);
  background: rgba(32, 209, 90, .08);
}

.watch-row.watch-negative {
  border-left-color: var(--red);
  background: rgba(255, 90, 100, .08);
}

.watch-row strong {
  color: var(--text);
  font-size: 12px;
  text-transform: uppercase;
}

.watch-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(340px, .8fr);
  gap: 16px;
  padding: 16px;
  border-top: 1px solid var(--line);
}

.watch-grid section {
  min-width: 0;
  border: 1px solid var(--line-soft);
  border-radius: 6px;
  background: #1b2029;
  overflow: hidden;
}

.watch-grid h2 {
  margin: 0;
  padding: 10px 12px;
  border-bottom: 1px solid var(--line-soft);
  color: var(--muted);
  font-size: 13px;
  text-transform: uppercase;
}

.watch-news-row,
.watch-insider-row,
.watch-dividend-row {
  display: grid;
  gap: 10px;
  align-items: center;
  min-height: 38px;
  padding: 8px 12px;
  border-top: 1px solid var(--line-soft);
  color: var(--blue);
  font-size: 13px;
  font-weight: 800;
}

.watch-news-row {
  grid-template-columns: 110px 70px 1fr;
}

.watch-insider-row {
  grid-template-columns: 70px 92px 70px 1fr;
}

.watch-dividend-row {
  grid-template-columns: 70px 110px 110px 120px 80px;
}

.watch-news-row:first-child,
.watch-insider-row:first-child,
.watch-dividend-row:first-child {
  border-top: 0;
}

.watch-news-row time,
.watch-insider-row span,
.watch-dividend-row span {
  color: var(--muted);
}

body[data-page="dashboard"] .content-page {
  width: 100%;
  max-width: none;
  padding: 0;
}

body[data-page="dashboard"] .page-title,
body[data-page="dashboard"] .site-footer {
  display: none;
}

body[data-page="dashboard"] .page-panel {
  border: 0;
  border-radius: 0;
  background: #22282c;
  box-shadow: none;
}

.runner-dashboard {
  --runner-bg: #070b0c;
  --runner-panel: #0c1113;
  --runner-panel-2: #11181b;
  --runner-line: #253034;
  --runner-line-soft: #1a2326;
  --runner-text: #d8ddd4;
  --runner-muted: #7c857f;
  --runner-amber: #dda33a;
  --runner-green: #67d46f;
  --runner-red: #ff5c63;
  min-height: calc(100vh - 111px);
  padding: 16px;
  color: var(--runner-text);
  background: #070b0c;
  font-family: "IBM Plex Sans", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  letter-spacing: 0;
}

.runner-hero {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 20px;
  min-height: 118px;
  padding: 18px 20px;
  border: 1px solid var(--runner-line);
  background: linear-gradient(180deg, #141c1f 0%, #0a1012 100%);
}

.runner-kicker,
.runner-section-head span {
  color: var(--runner-amber);
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 1.5px;
}

.runner-hero h2 {
  margin: 5px 0 4px;
  color: #f1f4ec;
  font-size: 44px;
  line-height: 1;
}

.runner-hero h2 small {
  display: inline-block;
  margin-left: 10px;
  color: var(--runner-muted);
  font-size: 15px;
  vertical-align: middle;
}

.runner-hero p {
  max-width: 780px;
  margin: 0;
  color: var(--runner-muted);
  font-size: 13px;
}

.runner-clock {
  display: grid;
  justify-items: end;
  gap: 5px;
  min-width: 250px;
  color: var(--runner-muted);
  font-size: 12px;
  font-weight: 900;
}

.runner-clock span {
  color: var(--runner-green);
}

.runner-clock strong {
  color: #33c6d8;
  font-size: 18px;
}

.runner-layout {
  display: grid;
  grid-template-columns: 300px minmax(640px, 1fr) 390px;
  gap: 12px;
  margin-top: 12px;
  align-items: start;
}

.runner-left,
.runner-center,
.runner-right {
  display: grid;
  gap: 12px;
}

.runner-card-shell,
.runner-focus-card {
  border: 1px solid var(--runner-line);
  background: var(--runner-panel);
}

.runner-section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 34px;
  padding: 0 12px;
  border-bottom: 1px solid var(--runner-line);
  background: var(--runner-panel-2);
}

.runner-section-head strong {
  color: var(--runner-muted);
  font-size: 11px;
  text-transform: uppercase;
}

.connection-flow {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
  padding: 12px;
}

.connection-flow div {
  display: grid;
  grid-template-columns: 28px 1fr;
  gap: 2px 8px;
  padding: 9px;
  border: 1px solid var(--runner-line-soft);
  background: #080d0f;
}

.connection-flow b {
  grid-row: span 2;
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  color: #111;
  background: var(--runner-muted);
  font-size: 12px;
}

.connection-flow span {
  color: var(--runner-text);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.connection-flow small,
.runner-connection p,
.runner-muted {
  color: var(--runner-muted);
  font-size: 11px;
}

.connection-flow .active {
  border-color: rgba(103, 212, 111, .55);
  background: rgba(103, 212, 111, .07);
}

.connection-flow .active b {
  background: var(--runner-green);
}

.connection-flow .skipped {
  opacity: .58;
}

.connection-flow .danger {
  border-color: rgba(255, 92, 99, .55);
  background: rgba(255, 92, 99, .08);
}

.connection-flow .danger b {
  background: var(--runner-red);
}

.runner-connection p {
  margin: 0;
  padding: 0 12px 12px;
  line-height: 1.45;
}

.runner-watch-add {
  display: grid;
  grid-template-columns: 1fr 58px;
  gap: 8px;
  padding: 10px;
  border-bottom: 1px solid var(--runner-line);
}

.runner-watch-add input,
.runner-watch-add button,
.runner-watch-remove,
.runner-rank-row {
  font: inherit;
}

.runner-watch-add input {
  min-width: 0;
  height: 34px;
  padding: 0 9px;
  border: 1px solid var(--runner-line);
  color: var(--runner-text);
  background: #070b0c;
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.runner-watch-add button {
  border: 0;
  color: #111;
  background: var(--runner-amber);
  font-size: 11px;
  font-weight: 900;
  cursor: pointer;
}

.runner-watch-group {
  border-bottom: 1px solid var(--runner-line);
}

.runner-watch-group h3 {
  margin: 0;
  padding: 9px 10px 5px;
  color: var(--runner-muted);
  background: #090e10;
  font-size: 10px;
  text-transform: uppercase;
}

.runner-watch-row {
  display: grid;
  grid-template-columns: 1fr 24px;
  border-top: 1px solid var(--runner-line-soft);
}

.runner-watch-row button[data-terminal-ticker] {
  display: grid;
  grid-template-columns: 104px 76px 60px;
  gap: 8px;
  min-height: 34px;
  padding: 0 10px;
  border: 0;
  color: var(--runner-text);
  background: transparent;
  font-size: 12px;
  font-weight: 900;
  text-align: left;
  cursor: pointer;
}

.runner-watch-row button[data-terminal-ticker].active,
.runner-rank-row.active {
  background: #2b2418;
}

.runner-watch-row button[data-terminal-ticker] > span,
.runner-watch-row button[data-terminal-ticker] > em {
  text-align: right;
  font-style: normal;
}

.runner-watch-remove {
  border: 0;
  border-left: 1px solid var(--runner-line-soft);
  color: var(--runner-muted);
  background: transparent;
  cursor: pointer;
}

.runner-watch-remove:hover {
  color: #111;
  background: var(--runner-amber);
}

.runner-focus-card {
  padding: 0;
}

.runner-focus-top {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding: 18px;
  border-bottom: 1px solid var(--runner-line);
  background: #0f1719;
}

.runner-focus-top span {
  color: var(--runner-muted);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.runner-focus-top h3 {
  margin: 5px 0 0;
  color: #f2f4ee;
  font-size: 46px;
  line-height: 1;
}

.runner-focus-top h3 em {
  margin-left: 8px;
  font-size: 22px;
  font-style: normal;
}

.runner-score-badge {
  display: grid;
  justify-items: end;
  align-content: center;
  min-width: 180px;
}

.runner-score-badge strong {
  color: var(--runner-green);
  font-size: 56px;
  line-height: .9;
}

.runner-score-badge span {
  color: var(--runner-amber);
  font-size: 11px;
}

.runner-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-bottom: 1px solid var(--runner-line);
}

.runner-stats div {
  padding: 12px;
  border-right: 1px solid var(--runner-line);
}

.runner-stats div:last-child {
  border-right: 0;
}

.runner-stats span {
  display: block;
  color: var(--runner-muted);
  font-size: 10px;
  font-weight: 900;
  text-transform: uppercase;
}

.runner-stats strong {
  display: block;
  margin-top: 5px;
  color: var(--runner-text);
  font-size: 15px;
}

.runner-card {
  padding: 14px;
}

.runner-card dl {
  display: grid;
  grid-template-columns: 105px 1fr 105px 1fr;
  gap: 0;
  margin: 12px 0 0;
  border-top: 1px solid var(--runner-line);
}

.runner-card dt,
.runner-card dd {
  margin: 0;
  padding: 8px 0;
  border-bottom: 1px solid var(--runner-line);
  font-size: 12px;
}

.runner-card dt {
  color: var(--runner-muted);
  text-transform: uppercase;
}

.runner-score {
  display: none;
}

.runner-meter {
  height: 10px;
  margin: 2px 0 12px;
  border: 1px solid var(--runner-line);
  background: #050909;
}

.runner-meter i {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, #c84848, #d99b2b 52%, #58db6a);
}

.runner-lists {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-top: 12px;
}

.runner-lists b,
.runner-lists span {
  display: block;
  font-size: 11px;
}

.runner-lists b {
  margin-bottom: 6px;
  color: #d5d8d0;
  text-transform: uppercase;
}

.runner-lists span {
  margin-bottom: 4px;
  color: var(--runner-text);
}

.runner-criteria {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  border-top: 1px solid var(--runner-line);
}

.runner-criteria div {
  min-height: 68px;
  padding: 10px;
  border-right: 1px solid var(--runner-line);
}

.runner-criteria div:last-child {
  border-right: 0;
}

.runner-criteria span,
.runner-criteria strong {
  display: block;
}

.runner-criteria span {
  color: var(--runner-muted);
  font-size: 10px;
  font-weight: 900;
  text-transform: uppercase;
}

.runner-criteria strong {
  margin-top: 8px;
  font-size: 12px;
}

.runner-criteria .pass strong {
  color: var(--runner-green);
}

.runner-criteria .warn strong {
  color: var(--runner-red);
}

.runner-alert {
  margin: 12px;
  padding: 10px;
  border-left: 3px solid var(--runner-red);
  color: #a9aaa4;
  background: #0e1112;
  font-size: 12px;
  line-height: 1.45;
}

.runner-chart-shell {
  min-height: 560px;
}

.runner-chart-grid {
  display: grid;
  grid-template-columns: minmax(420px, 1fr) minmax(360px, .78fr);
  height: 520px;
}

.runner-chart-grid > div {
  min-width: 0;
  min-height: 0;
  border-right: 1px solid var(--runner-line);
  overflow: auto;
  background: #080d0e;
}

.runner-chart-grid > div:last-child {
  border-right: 0;
}

.runner-chart-grid .terminal-chart {
  min-height: 100%;
}

.runner-chart-grid .terminal-pnf,
.runner-chart-grid .terminal-pnf-empty {
  min-width: max-content;
  min-height: 100%;
  padding: 24px 28px;
  font-size: 24px;
  line-height: 1.12;
}

.runner-rank-list,
.runner-news-list,
.runner-filing-list {
  max-height: 470px;
  overflow: auto;
}

.runner-rank-row {
  display: grid;
  grid-template-columns: 26px 104px minmax(0, 1fr) 42px 62px;
  gap: 8px;
  align-items: center;
  width: 100%;
  min-height: 42px;
  padding: 0 10px;
  border: 0;
  border-bottom: 1px solid var(--runner-line-soft);
  color: var(--runner-text);
  background: transparent;
  text-align: left;
  cursor: pointer;
}

.runner-rank-row > span,
.runner-rank-row > small {
  color: var(--runner-muted);
}

.runner-rank-row > b {
  color: var(--runner-green);
  text-align: right;
}

.runner-rank-row em {
  font-style: normal;
  text-align: right;
}

.runner-news-row,
.runner-filing-row {
  display: grid;
  gap: 4px 10px;
  padding: 10px 12px;
  border-bottom: 1px solid var(--runner-line-soft);
  color: var(--runner-text);
  font-size: 12px;
  font-weight: 800;
}

.runner-news-row {
  grid-template-columns: 70px minmax(0, 1fr);
}

.runner-news-row time,
.runner-filing-row time,
.runner-filing-row b {
  color: var(--runner-amber);
}

.runner-news-row small {
  grid-column: 2;
  color: var(--runner-muted);
  font-size: 10px;
  text-transform: uppercase;
}

.runner-filing-row {
  grid-template-columns: 80px 34px minmax(0, 1fr);
}

@media (max-width: 1280px) {
  .runner-layout {
    grid-template-columns: 260px minmax(600px, 1fr);
  }

  .runner-right {
    grid-column: 1 / -1;
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 900px) {
  .runner-dashboard {
    padding: 10px;
  }

  .runner-hero,
  .runner-layout,
  .runner-chart-grid,
  .runner-right,
  .runner-stats,
  .runner-criteria {
    grid-template-columns: 1fr;
  }

  .runner-hero,
  .runner-focus-top {
    display: grid;
  }

  .runner-clock,
  .runner-score-badge {
    justify-items: start;
  }
}

.terminal-dashboard {
  --terminal-bg: #070b0c;
  --terminal-panel: #0a0f10;
  --terminal-line: #1b2426;
  --terminal-line-strong: #263033;
  --terminal-amber: #d99b2b;
  --terminal-text: #a7aba5;
  --terminal-muted: #686e6a;
  display: grid;
  grid-template-columns: 215px minmax(760px, 1fr) 545px;
  grid-template-rows: 30px 32px minmax(780px, calc(100vh - 62px));
  min-height: calc(100vh - 111px);
  color: var(--terminal-text);
  background: #242a2d;
  font-family: "IBM Plex Sans", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  letter-spacing: 0;
}

.terminal-topbar {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 30px;
  padding: 0 12px;
  border-bottom: 1px solid var(--terminal-line);
  background: #121819;
  color: var(--terminal-amber);
  font-size: 12px;
  font-weight: 900;
}

.terminal-topbar span {
  color: #00b8c9;
}

.terminal-topbar em {
  margin-left: auto;
  margin-right: 18px;
  color: #74d36d;
  font-style: normal;
  font-size: 11px;
  text-transform: uppercase;
}

.terminal-tabs {
  grid-column: 1 / -1;
  display: flex;
  height: 32px;
  border-bottom: 1px solid var(--terminal-line);
  background: #151b1d;
}

.terminal-tabs button {
  min-width: 82px;
  padding: 0 12px;
  border: 0;
  border-right: 1px solid var(--terminal-line);
  color: var(--terminal-text);
  background: transparent;
  font: inherit;
  font-size: 12px;
  font-weight: 900;
  text-align: left;
  cursor: pointer;
}

.terminal-tabs button.active {
  color: #111;
  background: #f0b143;
}

.terminal-tabs span {
  margin-left: 3px;
  color: inherit;
  opacity: .8;
}

.terminal-watch {
  grid-row: 3;
  grid-column: 1;
  border-right: 1px solid var(--terminal-line);
  background: #22282c;
}

.terminal-watch h2,
.terminal-panel h2 {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 27px;
  margin: 0;
  padding: 0 10px;
  border-bottom: 1px solid var(--terminal-line);
  background: #151b1d;
  color: var(--terminal-amber);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 1.5px;
}

.terminal-panel h2 small {
  color: var(--terminal-muted);
  font-size: 10px;
  letter-spacing: 1px;
}

.terminal-panel h2 button {
  border: 0;
  border-radius: 2px;
  color: #121819;
  background: #e1a32f;
  font: inherit;
  font-size: 10px;
  font-weight: 900;
}

.terminal-watch-add {
  display: grid;
  grid-template-columns: 1fr 46px;
  gap: 6px;
  padding: 8px;
  border-bottom: 1px solid var(--terminal-line);
  background: #111719;
}

.terminal-watch-add input {
  min-width: 0;
  height: 28px;
  padding: 0 8px;
  border: 1px solid var(--terminal-line-strong);
  border-radius: 2px;
  color: var(--terminal-text);
  background: #060a0b;
  font: inherit;
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

.terminal-watch-add button,
.terminal-watch-remove {
  border: 1px solid var(--terminal-line-strong);
  border-radius: 2px;
  color: #121819;
  background: var(--terminal-amber);
  font: inherit;
  font-size: 10px;
  font-weight: 900;
  cursor: pointer;
}

.terminal-watch-row {
  display: grid;
  grid-template-columns: 1fr 24px;
  border-bottom: 1px solid var(--terminal-line);
  background: var(--terminal-panel);
}

.terminal-watch button[data-terminal-ticker] {
  display: grid;
  grid-template-columns: 1fr 70px 54px;
  width: 100%;
  min-height: 40px;
  padding: 6px 10px;
  border: 0;
  color: var(--terminal-text);
  background: transparent;
  font: inherit;
  font-size: 12px;
  font-weight: 900;
  text-align: left;
  cursor: pointer;
}

.terminal-watch button[data-terminal-ticker].active {
  background: #2b2418;
}

.terminal-watch-remove {
  min-width: 24px;
  border: 0;
  border-left: 1px solid var(--terminal-line);
  color: var(--terminal-muted);
  background: transparent;
  font-size: 15px;
}

.terminal-watch-remove:hover {
  color: #111;
  background: var(--terminal-amber);
}

.terminal-watch span,
.terminal-watch em {
  text-align: right;
  font-style: normal;
}

.terminal-watch button[data-terminal-ticker] small {
  grid-column: 1 / -1;
  color: var(--terminal-muted);
  font-size: 9px;
  font-weight: 900;
  text-transform: uppercase;
}

.terminal-main {
  grid-row: 3;
  grid-column: 2;
  display: grid;
  grid-template-columns: minmax(360px, 1.3fr) minmax(420px, 1fr) minmax(260px, .55fr);
  grid-template-rows: 305px 330px minmax(540px, 1fr) 260px;
  border-right: 1px solid var(--terminal-line);
}

.terminal-news {
  grid-row: 3;
  grid-column: 3;
  min-width: 0;
}

.terminal-panel {
  min-width: 0;
  min-height: 0;
  border-right: 1px solid var(--terminal-line);
  border-bottom: 1px solid var(--terminal-line);
  background: var(--terminal-panel);
  overflow: hidden;
}

.terminal-panel-body {
  height: calc(100% - 28px);
  overflow: auto;
}

.terminal-main .terminal-panel:nth-child(1) {
  grid-column: 1;
  grid-row: 1;
}

.terminal-main .terminal-panel:nth-child(2) {
  grid-column: 2 / 4;
  grid-row: 1;
}

.terminal-main .terminal-panel:nth-child(3) {
  grid-column: 1;
  grid-row: 2;
}

.terminal-main .terminal-panel:nth-child(4) {
  grid-column: 1;
  grid-row: 3 / 5;
}

.terminal-main .terminal-panel:nth-child(5) {
  grid-column: 2 / 4;
  grid-row: 2 / 4;
}

.terminal-main .terminal-panel:nth-child(6) {
  grid-column: 2 / 4;
  grid-row: 4;
}

.terminal-quote {
  display: grid;
  gap: 8px;
  padding: 16px 14px;
}

.terminal-quote strong {
  color: #d5d8d0;
  font-size: 42px;
  line-height: 1;
}

.terminal-quote span {
  font-size: 20px;
  font-weight: 900;
}

.terminal-quote small,
.terminal-muted {
  color: var(--terminal-muted);
  font-size: 12px;
  font-weight: 800;
}

.terminal-alert {
  margin: 8px 14px;
  padding: 10px;
  border-left: 3px solid var(--red);
  color: #88877f;
  background: #0e1112;
  font-size: 12px;
  line-height: 1.45;
  white-space: pre-wrap;
}

.terminal-chart {
  display: block;
  width: 100%;
  height: 100%;
  background: #080d0e;
}

.terminal-chart text {
  fill: #7f857e;
  font-size: 10px;
  font-weight: 800;
}

.terminal-grid-lines line {
  stroke: #1b2426;
  stroke-dasharray: 2 4;
}

.terminal-panel h3 {
  margin: 0;
  padding: 14px 12px 2px;
  color: #d5d8d0;
  font-size: 13px;
  text-transform: uppercase;
}

.terminal-panel dl {
  display: grid;
  grid-template-columns: 95px 1fr 95px 1fr;
  gap: 0;
  margin: 8px 12px;
  border-top: 1px solid var(--terminal-line);
}

.terminal-panel dt,
.terminal-panel dd {
  margin: 0;
  padding: 8px 0;
  border-bottom: 1px solid var(--terminal-line);
  font-size: 12px;
}

.terminal-panel dt {
  color: var(--terminal-muted);
  text-transform: uppercase;
}

.terminal-panel p {
  margin: 12px;
  color: #858982;
  font-size: 12px;
  line-height: 1.45;
}

.terminal-news .terminal-panel {
  height: 100%;
  border-right: 0;
}

.terminal-news-row,
.terminal-insider-row,
.terminal-option-row {
  display: grid;
  align-items: start;
  gap: 10px;
  min-height: 37px;
  padding: 8px 10px;
  border-bottom: 1px solid var(--terminal-line);
  color: var(--terminal-text);
  font-size: 12px;
  font-weight: 800;
}

.terminal-news-row {
  grid-template-columns: 54px 18px minmax(0, 1fr);
}

.terminal-news-row small {
  grid-column: 3;
  color: var(--terminal-muted);
  font-size: 10px;
  text-transform: uppercase;
}

.terminal-insider-row {
  grid-template-columns: 72px 36px minmax(0, 1fr);
}

.terminal-option-row {
  grid-template-columns: 48px 86px 62px minmax(0, 1fr);
}

.terminal-news-row time,
.terminal-insider-row time,
.terminal-option-row small {
  color: var(--terminal-amber);
}

.terminal-insider-row b {
  color: #d864ca;
}

.terminal-pnf,
.terminal-pnf-empty {
  margin: 0;
  min-width: max-content;
  padding: 18px 22px;
  color: #58db6a;
  background: #080d0e;
  font-size: 18px;
  line-height: 1.18;
  font-weight: 900;
  letter-spacing: 2px;
}

.terminal-pnf::first-letter {
  color: #ff4e54;
}

@media (max-width: 1280px) {
  .terminal-dashboard {
    grid-template-columns: 180px minmax(620px, 1fr);
  }

  .terminal-news {
    grid-column: 1 / -1;
    grid-row: 4;
    min-height: 460px;
  }
}

.insider-page-table .data-row {
  grid-template-columns: 76px minmax(220px, 1.3fr) minmax(160px, 1fr) 92px 130px 90px 110px 130px;
}

.top-insider-page-table .data-row {
  grid-template-columns: 76px minmax(260px, 1.4fr) 92px 130px 150px;
}

.calendar-page-table .data-row {
  grid-template-columns: 90px 78px 82px minmax(300px, 1fr) 88px 100px 110px 90px;
}

.earnings-page-table .data-row {
  grid-template-columns: 110px 1fr;
}

.split-page {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(420px, .8fr);
  gap: 18px;
  padding: 14px;
}

.split-page h2 {
  margin: 0 0 8px;
  color: var(--muted);
  font-size: 14px;
}

.big-heatmap {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  padding: 10px;
}

.map-sector {
  min-width: 0;
  border: 1px solid var(--line-soft);
  background: #171b23;
}

.map-sector h2 {
  margin: 0;
  padding: 5px 7px;
  color: #fff;
  background: #843841;
  font-size: 13px;
  text-transform: uppercase;
}

.map-sector > div {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  grid-auto-rows: 50px;
  gap: 1px;
}

.map-tile {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-width: 0;
  padding: 3px;
  color: #fff;
  text-align: center;
  text-shadow: 0 1px 1px rgba(0, 0, 0, .7);
}

.map-tile.big {
  grid-column: span 2;
  grid-row: span 2;
  font-size: 16px;
}

.map-tile.mid {
  grid-column: span 2;
  font-size: 14px;
}

.map-tile.small {
  font-size: 12px;
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  padding: 14px;
}

.pricing-grid article {
  display: grid;
  gap: 12px;
  min-height: 220px;
  padding: 18px;
  border: 1px solid var(--line-soft);
  background: #171b23;
}

.pricing-grid h2,
.pricing-grid p {
  margin: 0;
}

.pricing-grid strong {
  color: var(--blue);
  font-size: 42px;
}

.pricing-grid a {
  align-self: end;
  justify-self: start;
  padding: 9px 14px;
  border-radius: 5px;
  color: #fff;
  background: var(--blue-strong);
  font-weight: 900;
}

.page-error {
  margin: 0;
  padding: 18px;
  color: var(--muted);
  font-weight: 800;
}

.auth-modal {
  width: min(360px, calc(100vw - 32px));
  border: 0;
  padding: 0;
  background: transparent;
}

.auth-modal::backdrop {
  background: rgba(0, 0, 0, .65);
}

.auth-modal form {
  position: relative;
  display: grid;
  gap: 10px;
  padding: 22px;
}

.auth-modal h2 {
  margin: 0 0 4px;
}

.close-btn {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 28px;
  height: 28px;
  border: 0;
  border-radius: 50%;
  color: var(--text);
  background: #343a46;
  font-size: 20px;
}

.auth-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.auth-actions button {
  min-height: 38px;
}

#authStatus {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
}

body.light-mode {
  --bg: #eef1f6;
  --bg-deep: #dfe4ed;
  --panel: #ffffff;
  --panel-soft: #f3f5f9;
  --line: #aab2c1;
  --line-soft: #cad0dc;
  --text: #202530;
  --muted: #5d6676;
  --brown: #fae6dc;
}

@media (max-width: 1400px) {
  body {
    min-width: 1040px;
    font-size: 14px;
  }

  .shell {
    padding-inline: 16px;
  }

  .index-grid {
    gap: 14px;
  }

  .breadth-grid {
    gap: 18px;
  }

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

  .table-title,
  .quote-row {
    grid-template-columns: 58px 56px 78px 70px minmax(86px, 1fr);
  }

  .table-title,
  .quote-row {
    padding-inline: 6px;
  }

  .quote-row {
    font-size: 14px;
  }

  .pattern-grid {
    grid-template-columns: repeat(4, minmax(42px, 1fr)) minmax(118px, 1.25fr);
    gap: 0 8px;
    font-size: 14px;
  }

  .pattern-grid .signal i {
    width: 20px;
    height: 18px;
  }

  .bottom-grid,
  .insider-grid,
  .calendar-grid {
    grid-template-columns: 1fr;
  }

  .major-news {
    width: 100%;
  }
}

body[data-page="dashboard"] {
  min-width: 1180px;
  background: #050504;
}

body[data-page="dashboard"] .masthead,
body[data-page="dashboard"] .nav-bar,
body[data-page="dashboard"] .page-title,
body[data-page="dashboard"] .site-footer {
  display: none;
}

body[data-page="dashboard"] .content-page,
body[data-page="dashboard"] .section-page {
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 0;
}

body[data-page="dashboard"] .page-panel {
  min-height: 100vh;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: #050504;
  box-shadow: none;
}

.lovable-terminal {
  --term-bg: #050504;
  --term-panel: #100f0d;
  --term-panel-2: #171511;
  --term-line: #25221d;
  --term-line-soft: #1b1915;
  --term-text: #d7d0c4;
  --term-muted: #77716a;
  --term-dim: #4f4a44;
  --term-amber: #d99a2b;
  --term-green: #70df77;
  --term-red: #ff5358;
  --term-cyan: #55dce4;
  display: grid;
  grid-template-columns: 300px minmax(880px, 1fr);
  min-height: 100vh;
  color: var(--term-text);
  background: var(--term-bg);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;
  letter-spacing: 0;
}

.terminal-sidebar {
  min-height: 100vh;
  border-right: 1px solid var(--term-line);
  background: #070605;
}

.terminal-brand {
  height: 78px;
  padding: 18px 18px 0;
  border-bottom: 1px solid var(--term-line);
}

.terminal-brand h1 {
  margin: 0 0 12px;
  color: var(--term-amber);
  font-size: 15px;
  line-height: 1;
  letter-spacing: 5px;
}

.terminal-brand p,
.terminal-rail span,
.terminal-side-add span,
.terminal-docs span {
  margin: 0;
  color: var(--term-muted);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 3px;
  text-transform: uppercase;
}

.terminal-rail,
.terminal-docs {
  display: grid;
  gap: 8px;
  padding: 34px 10px 0;
}

.terminal-rail button,
.terminal-docs a {
  display: flex;
  align-items: center;
  gap: 11px;
  min-height: 44px;
  padding: 0 10px;
  border: 0;
  color: #b9b2a7;
  background: transparent;
  font: inherit;
  font-size: 15px;
  font-weight: 800;
  letter-spacing: 3px;
  text-align: left;
  text-transform: uppercase;
  cursor: pointer;
}

.terminal-rail button.active {
  color: #ece5d9;
  background: #171411;
}

.terminal-rail b {
  color: #dcd5c9;
  font-size: 18px;
}

.terminal-side-add {
  display: grid;
  gap: 9px;
  margin: 30px 10px 0;
  padding: 12px;
  border: 1px solid var(--term-line);
  background: #0b0a08;
}

.terminal-side-add div {
  display: grid;
  grid-template-columns: 1fr 56px;
  gap: 8px;
}

.terminal-side-add input,
.terminal-side-add button,
.terminal-sort-tabs button {
  height: 28px;
  border: 1px solid var(--term-line);
  color: var(--term-text);
  background: #070605;
  font: inherit;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 1px;
}

.terminal-side-add input {
  min-width: 0;
  padding: 0 8px;
  text-transform: uppercase;
}

.terminal-side-add button,
.terminal-sort-tabs button.active {
  color: #0d0b09;
  background: var(--term-amber);
  cursor: pointer;
}

.terminal-docs {
  padding-top: 48px;
}

.terminal-docs a {
  min-height: 30px;
  padding: 0;
  color: #aca59b;
  font-size: 14px;
  text-decoration: none;
}

.terminal-workspace {
  min-width: 0;
  background: var(--term-bg);
}

.terminal-channel-view {
  display: none;
}

.terminal-channel-view.active {
  display: block;
}

.terminal-header-strip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 38px;
  padding: 0 20px;
  border-bottom: 1px solid var(--term-line);
  background: #100e0c;
  color: var(--term-amber);
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 4px;
  text-transform: uppercase;
}

.terminal-header-strip span {
  margin-right: 10px;
  color: #bbb4a8;
}

.terminal-header-strip time {
  color: var(--term-muted);
  font-size: 11px;
  letter-spacing: 2px;
}

.terminal-scanner {
  padding: 12px 10px;
}

.terminal-channel-head {
  display: flex;
  align-items: center;
  gap: 17px;
  min-height: 40px;
  margin: 12px 10px 0;
  padding: 0 10px;
  border: 1px solid var(--term-line);
  color: var(--term-amber);
  background: var(--term-panel);
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 3px;
  text-transform: uppercase;
}

.terminal-channel-head span {
  color: var(--term-muted);
}

.terminal-scanner-bar {
  display: grid;
  grid-template-columns: minmax(250px, 1fr) auto minmax(260px, 1fr);
  align-items: center;
  gap: 10px;
  min-height: 40px;
  padding: 0 10px;
  border: 1px solid var(--term-line);
  background: var(--term-panel);
}

.terminal-scanner-title {
  display: flex;
  align-items: center;
  gap: 17px;
  color: var(--term-amber);
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 3px;
  text-transform: uppercase;
}

.terminal-scanner-title span {
  color: var(--term-muted);
}

.terminal-sort-tabs {
  display: flex;
  gap: 8px;
}

.terminal-sort-tabs button {
  min-width: 68px;
  padding: 0 11px;
  color: var(--term-muted);
  background: #100e0c;
}

.terminal-sort-tabs button:last-child {
  min-width: 135px;
}

.terminal-feed-mode {
  display: flex;
  justify-content: flex-end;
  gap: 13px;
  color: var(--term-cyan);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 3px;
  text-transform: uppercase;
}

.terminal-feed-mode small {
  color: var(--term-muted);
  font: inherit;
}

.terminal-scan-grid {
  display: grid;
  grid-template-columns: minmax(820px, 1fr) 525px;
  gap: 10px;
  margin-top: 10px;
}

.terminal-scan-table,
.terminal-detail {
  border: 1px solid var(--term-line);
  background: #080705;
}

.terminal-scan-head,
.terminal-scan-row {
  display: grid;
  grid-template-columns: 130px 120px 120px 120px 90px 120px 110px 56px minmax(210px, 1fr);
  align-items: center;
  min-height: 33px;
  padding: 0 10px;
}

.terminal-scan-head {
  color: var(--term-muted);
  background: #201d19;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 3px;
  text-transform: uppercase;
}

.terminal-scan-row {
  width: 100%;
  border: 0;
  border-bottom: 1px solid #0f0d0b;
  color: #cfc7bb;
  background: #0b0907;
  font: inherit;
  font-size: 14px;
  text-align: left;
  cursor: pointer;
}

.terminal-scan-row:nth-child(odd) {
  background: #0d0b08;
}

.terminal-scan-row:hover,
.terminal-scan-row.active {
  outline: 1px solid #c9c2b7;
  outline-offset: -1px;
  background: #12100c;
}

.terminal-scan-row > span:not(.terminal-score) {
  color: #918b82;
}

.terminal-scan-row .positive,
.terminal-detail .positive {
  color: var(--term-green) !important;
}

.terminal-scan-row .negative,
.terminal-detail .negative {
  color: var(--term-red) !important;
}

.terminal-scan-row .flag {
  color: #dbc52f !important;
  font-size: 17px;
}

.terminal-score {
  display: grid;
  grid-template-columns: 38px minmax(70px, 110px) 72px;
  align-items: center;
  gap: 8px;
}

.terminal-score b,
.terminal-avoid-score strong {
  font-size: 17px;
}

.terminal-score i {
  display: block;
  height: 7px;
  background: #14120f;
}

.terminal-score i em {
  display: block;
  height: 100%;
  background: #aaa49a;
}

.terminal-score small,
.terminal-avoid-score em {
  color: var(--term-muted);
  font-size: 11px;
  font-style: normal;
  letter-spacing: 2px;
}

.terminal-score.high b,
.terminal-score.high small {
  color: var(--term-amber);
}

.terminal-score.high i em {
  background: var(--term-amber);
}

.terminal-score.medium b,
.terminal-score.medium small {
  color: var(--term-cyan);
}

.terminal-score.medium i em {
  background: var(--term-cyan);
}

.terminal-score.low b,
.terminal-score.low small {
  color: #a7a198;
}

.terminal-score.low i em {
  background: #a7a198;
}

.terminal-score.avoid b,
.terminal-score.avoid small,
.terminal-avoid-score.avoid,
.terminal-avoid-score.avoid strong {
  color: var(--term-red);
}

.terminal-score.avoid i em {
  background: var(--term-red);
}

.terminal-detail {
  min-height: 445px;
}

.terminal-detail-head {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 22px 14px 16px;
  border-bottom: 1px solid var(--term-line);
}

.terminal-detail-head h2 {
  margin: 0;
  color: var(--term-amber);
  font-size: 21px;
  line-height: 1;
}

.terminal-detail-head h2 strong {
  margin-left: 8px;
  color: #e6ded1;
  font-weight: 500;
}

.terminal-detail-head p {
  margin: 8px 0 0;
  font-size: 16px;
  font-weight: 900;
}

.terminal-avoid-score {
  display: flex;
  align-items: center;
  flex-shrink: 0;
  gap: 8px;
  color: var(--term-amber);
  font-size: 18px;
  font-weight: 900;
  letter-spacing: 3px;
}

.terminal-avoid-score span {
  color: var(--term-red);
  font-size: 14px;
}

.terminal-metric-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}

.terminal-metric-grid div {
  min-height: 48px;
  padding: 9px 10px;
  border-right: 1px solid var(--term-line);
  border-bottom: 1px solid var(--term-line);
}

.terminal-metric-grid div:nth-child(4n) {
  border-right: 0;
}

.terminal-metric-grid span,
.terminal-model-lists h3,
.terminal-catalysts h3 {
  display: block;
  color: var(--term-muted);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 3px;
  text-transform: uppercase;
}

.terminal-metric-grid strong {
  display: block;
  margin-top: 5px;
  color: #d9d1c6;
  font-size: 15px;
  font-weight: 600;
}

.terminal-model-lists {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border-bottom: 1px solid var(--term-line);
}

.terminal-model-lists > div {
  min-height: 104px;
  padding: 12px 10px;
}

.terminal-model-lists > div:first-child {
  border-right: 1px solid var(--term-line);
}

.terminal-model-lists h3 {
  margin: 0 0 11px;
  color: var(--term-green);
}

.terminal-model-lists > div:last-child h3 {
  color: var(--term-red);
}

.terminal-model-lists p {
  margin: 0 0 8px;
  color: #bcb4aa;
  font-size: 12px;
  line-height: 1.25;
}

.terminal-catalysts {
  padding: 12px 10px 14px;
}

.terminal-catalysts h3 {
  margin: 0 0 10px;
  color: var(--term-amber);
}

.terminal-catalyst-row {
  display: grid;
  grid-template-columns: 56px 1fr;
  gap: 2px 10px;
  padding: 6px 0;
  color: #c7bfb5;
  font-size: 12px;
  line-height: 1.35;
}

.terminal-catalyst-row b {
  grid-row: span 2;
  color: var(--term-green);
  font-size: 11px;
  letter-spacing: 2px;
}

.terminal-catalyst-row b.bear {
  color: var(--term-red);
}

.terminal-catalyst-row small {
  grid-column: 2;
  color: var(--term-muted);
  font-size: 11px;
}

.terminal-mini-alert {
  margin: 10px;
  padding: 10px;
  border-left: 3px solid var(--term-red);
  color: #9b958d;
  background: #100e0c;
  font-size: 12px;
  line-height: 1.45;
}

.stock-detail-page {
  min-height: calc(100vh - 38px);
  padding: 14px 10px 26px;
  color: #d4cec4;
  background: #111319;
}

.stock-detail-top {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  padding: 0 0 12px;
  border-bottom: 1px solid #39404d;
}

.stock-detail-top button {
  margin: 0 0 7px;
  padding: 5px 8px;
  border: 1px solid #3c4556;
  color: #75b8ff;
  background: #1b1f29;
}

.stock-detail-top h2 {
  margin: 0;
  color: #d9dde8;
  font-size: clamp(28px, 4vw, 54px);
  line-height: .95;
  letter-spacing: 0;
}

.stock-detail-top h2 span {
  color: #67a9ef;
  font-size: .55em;
}

.stock-detail-top p {
  margin: 7px 0 0;
  color: #67a9ef;
  font-size: 15px;
  font-weight: 800;
}

.stock-detail-price {
  text-align: right;
}

.stock-detail-price strong {
  display: block;
  color: #d9dde8;
  font-size: clamp(36px, 5vw, 64px);
  line-height: .9;
}

.stock-detail-price span {
  display: block;
  margin-top: 6px;
  font-size: 18px;
  font-weight: 900;
}

.stock-detail-price small {
  display: block;
  margin-top: 6px;
  color: #8d96aa;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.stock-detail-newsline {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  margin: 8px 0 10px;
  padding: 0 12px;
  border: 1px solid #39404d;
  border-radius: 5px;
  background: #222631;
  color: #dce0ea;
  font-size: 16px;
  font-weight: 800;
}

.stock-detail-newsline b {
  color: #54c568;
}

.stock-detail-chart-wrap {
  overflow: hidden;
  border: 1px solid #41495a;
  border-radius: 5px;
  background: #232833;
}

.stock-detail-toolbar {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 58px;
  padding: 0 10px;
  border-bottom: 1px solid #303746;
}

.stock-detail-toolbar button,
.stock-detail-toolbar span,
.stock-detail-toolbar b,
.stock-detail-toolbar em {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  padding: 0 14px;
  border: 1px solid #3e4656;
  border-radius: 6px;
  color: #dce0e9;
  background: #303541;
  font-size: 15px;
  font-style: normal;
  font-weight: 900;
}

.stock-detail-toolbar b {
  border-color: #4e96df;
  color: #f2f6ff;
  background: #2c3d55;
}

.stock-detail-toolbar em {
  border-color: transparent;
  color: #939bad;
  background: transparent;
}

.stock-detail-chart {
  display: block;
  width: 100%;
  min-height: 360px;
  background: #232833;
}

.stock-detail-chart text {
  fill: #9fa8ba;
  font-size: 13px;
  font-weight: 800;
}

.stock-detail-grid line {
  stroke: #38404e;
  stroke-dasharray: 4 5;
  opacity: .62;
}

.stock-detail-chart .sma20 {
  stroke: #7b3876;
  stroke-width: 1.3;
  opacity: .8;
}

.stock-detail-chart .sma50 {
  stroke: #ba772d;
  stroke-width: 1.3;
  opacity: .88;
}

.stock-detail-chart .sma200 {
  stroke: #7e682b;
  stroke-width: 1.3;
  opacity: .88;
}

.stock-detail-chart .last-price-line {
  stroke: #2e5aa7;
  stroke-width: 1.2;
}

.stock-detail-chart .last-price-label {
  fill: #ffd84a;
  font-size: 15px;
}

.stock-detail-lower {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 10px;
  margin-top: 10px;
}

.stock-detail-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(150px, 1fr));
  border: 1px solid #3b4350;
  background: #252a34;
}

.stock-detail-stats div {
  display: grid;
  grid-template-columns: minmax(88px, 1fr) minmax(60px, 1fr);
  gap: 12px;
  min-height: 27px;
  padding: 4px 8px;
  border-right: 1px solid #38404b;
  border-bottom: 1px solid #38404b;
}

.stock-detail-stats span {
  color: #8d96aa;
  font-weight: 800;
}

.stock-detail-stats strong {
  justify-self: end;
  color: #d8dce7;
}

.stock-detail-stats .positive,
.stock-detail-runner .pass b,
.stock-detail-runner .pass span {
  color: #42b95b;
}

.stock-detail-stats .negative,
.stock-detail-runner .warn b,
.stock-detail-runner .warn span {
  color: #ef5f66;
}

.stock-detail-stats .high {
  color: var(--term-amber);
}

.stock-detail-stats .medium {
  color: var(--term-cyan);
}

.stock-detail-stats .avoid {
  color: var(--term-red);
}

.stock-detail-runner {
  border: 1px solid #3b4350;
  background: #191d25;
}

.stock-detail-runner h3 {
  margin: 0;
  padding: 11px 12px;
  border-bottom: 1px solid #3b4350;
  color: var(--term-amber);
  font-size: 13px;
  letter-spacing: 2px;
  text-transform: uppercase;
}

.stock-detail-score {
  display: flex;
  align-items: baseline;
  gap: 10px;
  padding: 16px 12px;
  border-bottom: 1px solid #3b4350;
}

.stock-detail-score strong {
  font-size: 42px;
  line-height: 1;
}

.stock-detail-score span {
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 2px;
}

.stock-detail-runner .high {
  color: var(--term-amber);
}

.stock-detail-runner .medium {
  color: var(--term-cyan);
}

.stock-detail-runner .low {
  color: #c5bfb3;
}

.stock-detail-runner .avoid {
  color: var(--term-red);
}

.stock-detail-runner > div:not(.stock-detail-score) {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 9px 12px;
  border-bottom: 1px solid #2f3643;
  font-size: 12px;
}

.stock-detail-runner > div:not(.stock-detail-score) span {
  color: #b7becd;
}

.stock-detail-runner > div:not(.stock-detail-score) b {
  text-align: right;
}

.terminal-watchlist-panel,
.terminal-model-panel {
  margin: 10px;
  border: 1px solid var(--term-line);
  background: #080705;
}

.terminal-watchlist-panel {
  display: grid;
  grid-template-columns: repeat(2, minmax(320px, 1fr));
  gap: 0;
}

.terminal-watch-group {
  min-height: 140px;
  border-right: 1px solid var(--term-line);
  border-bottom: 1px solid var(--term-line);
}

.terminal-watch-group:nth-child(2n) {
  border-right: 0;
}

.terminal-watch-group h3,
.terminal-model-panel h3 {
  margin: 0;
  padding: 10px 12px;
  border-bottom: 1px solid var(--term-line);
  color: var(--term-amber);
  background: #171411;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 3px;
  text-transform: uppercase;
}

.terminal-watch-item {
  display: grid;
  grid-template-columns: 1fr 34px;
  border-bottom: 1px solid #0f0d0b;
}

.terminal-watch-item.active {
  outline: 1px solid #c9c2b7;
  outline-offset: -1px;
}

.terminal-watch-item button {
  min-height: 38px;
  border: 0;
  color: var(--term-text);
  background: #0b0907;
  font: inherit;
  cursor: pointer;
}

.terminal-watch-item button:first-child {
  display: grid;
  grid-template-columns: 90px 100px 100px 1fr;
  align-items: center;
  gap: 10px;
  padding: 0 12px;
  text-align: left;
}

.terminal-watch-item button:last-child {
  border-left: 1px solid var(--term-line);
  color: var(--term-muted);
  font-size: 16px;
}

.terminal-watch-item button:last-child:hover {
  color: #0d0b09;
  background: var(--term-amber);
}

.terminal-watch-item strong {
  color: var(--term-amber);
}

.terminal-watch-item em {
  font-style: normal;
}

.terminal-watch-item small {
  color: var(--term-muted);
}

.terminal-model-panel {
  display: grid;
  grid-template-columns: minmax(280px, .8fr) minmax(280px, .8fr) minmax(420px, 1.2fr);
}

.terminal-model-panel section {
  min-height: 420px;
  border-right: 1px solid var(--term-line);
}

.terminal-model-panel section:last-child {
  border-right: 0;
}

.terminal-model-panel p {
  margin: 0;
  padding: 9px 12px;
  border-bottom: 1px solid #0f0d0b;
  color: #bcb4aa;
  font-size: 13px;
}

.terminal-research-note {
  display: grid;
  gap: 5px;
  padding: 11px 12px;
  border-bottom: 1px solid #0f0d0b;
  color: #bcb4aa;
  font-size: 12px;
  line-height: 1.35;
}

.terminal-research-note strong {
  color: var(--term-amber);
  font-size: 12px;
  letter-spacing: 2px;
  text-transform: uppercase;
}

.terminal-research-note em {
  color: var(--term-muted);
  font-style: normal;
}

.terminal-flow-readout {
  display: grid;
  grid-template-columns: 1fr 1fr;
}

.terminal-flow-readout div {
  min-height: 86px;
  padding: 12px;
  border-right: 1px solid var(--term-line);
  border-bottom: 1px solid var(--term-line);
}

.terminal-flow-readout div:nth-child(2n) {
  border-right: 0;
}

.terminal-flow-readout span,
.terminal-flow-readout em {
  display: block;
  color: var(--term-muted);
  font-size: 11px;
  font-style: normal;
  font-weight: 900;
  letter-spacing: 2px;
  text-transform: uppercase;
}

.terminal-flow-readout strong {
  display: block;
  margin: 7px 0;
  color: var(--term-cyan);
  font-size: 20px;
}

.terminal-criteria-panel div {
  display: grid;
  grid-template-columns: minmax(180px, 1fr) 150px;
  gap: 14px;
  padding: 10px 12px;
  border-bottom: 1px solid #0f0d0b;
}

.terminal-criteria-panel span {
  color: var(--term-muted);
  font-size: 12px;
  letter-spacing: 2px;
  text-transform: uppercase;
}

.terminal-criteria-panel strong {
  text-align: right;
}

.terminal-criteria-panel .pass strong {
  color: var(--term-green);
}

.terminal-criteria-panel .warn strong {
  color: var(--term-red);
}

@media (max-width: 1500px) {
  .lovable-terminal {
    grid-template-columns: 240px minmax(900px, 1fr);
  }

  .terminal-scan-grid {
    grid-template-columns: 1fr;
  }

  .terminal-watchlist-panel,
  .terminal-model-panel {
    grid-template-columns: 1fr;
  }

  .terminal-watch-group,
  .terminal-model-panel section {
    border-right: 0;
  }
}

body[data-page="dashboard"] {
  background:
    radial-gradient(circle at 50% -20%, rgba(244, 170, 64, .08), transparent 34rem),
    #050505;
  color: #f0ebe4;
}

body[data-page="dashboard"] .masthead,
body[data-page="dashboard"] .nav-bar,
body[data-page="dashboard"] .page-title,
body[data-page="dashboard"] .site-footer {
  display: none;
}

body[data-page="dashboard"] .content-page,
body[data-page="dashboard"] .section-page {
  width: 100%;
  max-width: none;
  min-height: 100vh;
  margin: 0;
  padding: 0;
}

body[data-page="dashboard"] .page-panel {
  width: 100%;
  min-height: 100vh;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
}

.iphone-app {
  --mobile-bg: #050505;
  --mobile-panel: #11100e;
  --mobile-panel-2: #171512;
  --mobile-line: #2a2824;
  --mobile-text: #f0ebe4;
  --mobile-muted: #9a968e;
  --mobile-amber: #f0ad3d;
  --mobile-blue: #58c7dc;
  --mobile-green: #7ee27c;
  --mobile-red: #ff5858;
  width: min(100%, 460px);
  min-height: 100vh;
  margin: 0 auto;
  padding: 14px 12px 96px;
  color: var(--mobile-text);
  background: var(--mobile-bg);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.mobile-app-top {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin: -14px -12px 12px;
  padding: 14px 12px 10px;
  border-bottom: 1px solid var(--mobile-line);
  background: rgba(5, 5, 5, .94);
  backdrop-filter: blur(18px);
}

.mobile-app-top span,
.mobile-section-title p,
.mobile-card p,
.runner-mobile-card p,
.detail-mobile-header p,
.settings-list em {
  color: var(--mobile-muted);
}

.mobile-app-top span {
  display: block;
  margin-bottom: 2px;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 2.5px;
  text-transform: uppercase;
}

.mobile-app-top h1,
.mobile-section-title h2,
.mobile-card h2,
.runner-mobile-card h3,
.detail-mobile-header h2 {
  margin: 0;
  letter-spacing: 0;
}

.mobile-app-top h1 {
  color: var(--mobile-amber);
  font-size: 22px;
  line-height: 1;
}

.connection-pill {
  min-height: 42px;
  padding: 0 14px;
  border: 1px solid rgba(88, 199, 220, .45);
  border-radius: 999px;
  color: var(--mobile-blue);
  background: rgba(88, 199, 220, .08);
  font-weight: 900;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.mobile-screen {
  display: grid;
  gap: 12px;
}

.mobile-hero-card,
.mobile-card,
.runner-mobile-card,
.detail-mobile-header {
  border: 1px solid var(--mobile-line);
  border-radius: 8px;
  background: linear-gradient(180deg, var(--mobile-panel-2), var(--mobile-panel));
  box-shadow: 0 10px 32px rgba(0, 0, 0, .28);
}

.mobile-hero-card {
  padding: 18px;
}

.mobile-hero-card span,
.mobile-section-title span,
.watch-group summary,
.mobile-card h2 {
  color: var(--mobile-amber);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 2px;
  text-transform: uppercase;
}

.mobile-hero-card h2 {
  margin: 4px 0 8px;
  font-size: 34px;
  line-height: .96;
  letter-spacing: 0;
}

.mobile-hero-card p,
.mobile-card p,
.mobile-section-title p {
  margin: 0;
  font-size: 14px;
  line-height: 1.45;
}

.mobile-chip-row {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 2px 0 6px;
  scrollbar-width: none;
}

.mobile-chip-row::-webkit-scrollbar {
  display: none;
}

.mobile-chip {
  flex: 0 0 auto;
  min-height: 40px;
  padding: 0 13px;
  border: 1px solid var(--mobile-line);
  border-radius: 999px;
  color: var(--mobile-muted);
  background: #0c0b0a;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .2px;
}

.mobile-chip.active {
  border-color: rgba(240, 173, 61, .75);
  color: #15100a;
  background: var(--mobile-amber);
}

.mobile-card {
  padding: 14px;
}

.mobile-card h2,
.mobile-section-title h2 {
  margin-bottom: 10px;
}

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

.pulse-grid span {
  min-height: 72px;
  padding: 10px;
  border: 1px solid var(--mobile-line);
  border-radius: 8px;
  background: #0a0908;
}

.pulse-grid b {
  display: block;
  font-size: 24px;
}

.pulse-grid em,
.mobile-mini-row em,
.runner-price-line em,
.mobile-metrics b {
  color: var(--mobile-muted);
  font-style: normal;
}

.mobile-mini-row,
.risk-alert-row {
  display: grid;
  width: 100%;
  min-height: 58px;
  align-items: center;
  gap: 8px;
  border: 0;
  border-top: 1px solid var(--mobile-line);
  color: var(--mobile-text);
  background: transparent;
  font: inherit;
  text-align: left;
}

.mobile-mini-row {
  grid-template-columns: minmax(94px, 1fr) 74px 76px 70px;
}

.mobile-mini-row strong,
.runner-mobile-card h3,
.detail-mobile-header h2 {
  color: var(--mobile-amber);
}

.mobile-mini-row em {
  display: block;
  margin-top: 3px;
  font-size: 11px;
  line-height: 1.2;
}

.mobile-flow-list {
  display: grid;
  gap: 8px;
}

.mobile-flow-row {
  display: grid;
  grid-template-columns: 64px 48px 1fr;
  gap: 8px;
  align-items: center;
  min-height: 54px;
  padding: 8px 0;
  border: 0;
  border-top: 1px solid var(--mobile-line);
  color: var(--mobile-text);
  background: transparent;
  font: inherit;
  text-align: left;
}

.mobile-flow-row strong {
  color: var(--mobile-amber);
}

.mobile-flow-row span {
  color: var(--mobile-blue);
  font-size: 20px;
  font-weight: 900;
  text-align: right;
}

.mobile-flow-row em,
.mobile-flow-row small {
  color: var(--mobile-muted);
  font-style: normal;
}

.mobile-flow-row small {
  grid-column: 3;
  margin-top: -6px;
  font-size: 11px;
}

.research-card {
  display: grid;
  gap: 9px;
}

.research-card article {
  display: grid;
  gap: 4px;
  padding-top: 9px;
  border-top: 1px solid var(--mobile-line);
}

.research-card strong {
  color: var(--mobile-blue);
  font-size: 11px;
  letter-spacing: 1.8px;
  text-transform: uppercase;
}

.research-card span {
  color: var(--mobile-muted);
  font-size: 12px;
  line-height: 1.35;
}

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

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

.mobile-score {
  display: grid;
  gap: 5px;
  min-width: 64px;
}

.mobile-score strong {
  font-size: 18px;
  line-height: 1;
  text-align: right;
}

.mobile-score span {
  display: block;
  height: 6px;
  overflow: hidden;
  border-radius: 999px;
  background: #24211c;
}

.mobile-score span::before {
  display: block;
  width: var(--score);
  height: 100%;
  border-radius: inherit;
  background: var(--mobile-muted);
  content: "";
}

.mobile-score.danger strong {
  color: var(--mobile-red);
}

.mobile-score.danger span::before {
  background: var(--mobile-red);
}

.mobile-score.building strong {
  color: var(--mobile-blue);
}

.mobile-score.building span::before {
  background: var(--mobile-blue);
}

.mobile-score.strong strong,
.mobile-score.hot strong {
  color: var(--mobile-amber);
}

.mobile-score.strong span::before,
.mobile-score.hot span::before {
  background: var(--mobile-amber);
}

.mobile-section-title {
  padding: 6px 2px 0;
}

.mobile-section-title h2 {
  font-size: 28px;
}

.runner-card-list {
  display: grid;
  gap: 10px;
}

.runner-mobile-card {
  display: grid;
  gap: 12px;
  padding: 14px;
  cursor: pointer;
}

.runner-card-top,
.runner-price-line,
.detail-mobile-header div {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.runner-mobile-card p {
  margin: 4px 0 0;
  font-size: 13px;
}

.runner-price-line strong,
.detail-mobile-header strong {
  font-size: 24px;
  line-height: 1;
}

.runner-price-line em {
  padding: 5px 8px;
  border: 1px solid var(--mobile-line);
  border-radius: 999px;
  background: #0a0908;
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

.mobile-metrics {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
}

.mobile-metrics span {
  display: grid;
  gap: 4px;
  min-height: 58px;
  padding: 9px;
  border: 1px solid var(--mobile-line);
  border-radius: 8px;
  background: #0a0908;
  font-size: 15px;
}

.mobile-metrics b {
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 1.4px;
  text-transform: uppercase;
}

.risk-badges,
.mobile-check-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.risk-badges span,
.mobile-check-grid span,
.status-pill {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 0 9px;
  border: 1px solid var(--mobile-line);
  border-radius: 999px;
  background: #0a0908;
  color: #d8d1c8;
  font-size: 11px;
  font-weight: 900;
}

.risk-badges span {
  border-color: rgba(255, 88, 88, .4);
  color: #ffb0b0;
}

.mobile-check-grid .ok {
  border-color: rgba(126, 226, 124, .4);
  color: var(--mobile-green);
}

.mobile-check-grid .no {
  color: var(--mobile-muted);
}

.watch-group {
  padding: 0;
}

.watch-group summary {
  display: flex;
  justify-content: space-between;
  min-height: 50px;
  align-items: center;
  padding: 0 14px;
  cursor: pointer;
}

.watch-group .mobile-mini-row {
  padding: 0 14px;
}

.ticker-manage-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px;
}

.ticker-manage-row input {
  min-height: 46px;
  border: 1px solid var(--mobile-line);
  border-radius: 8px;
  padding: 0 12px;
  color: var(--mobile-text);
  background: #090807;
  font: inherit;
}

.ticker-manage-row button {
  min-height: 46px;
  min-width: 76px;
  border: 1px solid rgba(240, 173, 61, .5);
  border-radius: 8px;
  color: #14100a;
  background: var(--mobile-amber);
  font-weight: 900;
}

.ticker-manage-hint {
  margin-top: 10px !important;
  font-size: 12px !important;
}

.watchlist-manage-row {
  display: grid;
  grid-template-columns: 1fr 38px;
  align-items: stretch;
  border-top: 1px solid var(--mobile-line);
}

.watchlist-manage-row .mobile-mini-row {
  border-top: 0;
  padding: 0 14px;
}

.watch-remove-btn {
  border: 0;
  border-left: 1px solid var(--mobile-line);
  color: #bb7f7f;
  background: #0a0908;
  font-size: 22px;
  line-height: 1;
}

.watch-remove-btn:hover {
  color: #130b0b;
  background: #d57171;
}

.detail-mobile-header {
  display: grid;
  gap: 10px;
  padding: 16px;
}

.detail-mobile-header span {
  color: var(--mobile-muted);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 1.5px;
  text-transform: uppercase;
}

.detail-mobile-header h2 {
  font-size: 40px;
  line-height: .9;
}

.detail-mobile-header b {
  color: var(--mobile-blue);
}

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

.mobile-notes {
  width: 100%;
  min-height: 94px;
  resize: vertical;
  margin-top: 4px;
  padding: 12px;
  border: 1px solid var(--mobile-line);
  border-radius: 8px;
  color: var(--mobile-text);
  background: #080706;
  font: inherit;
}

.mobile-action-grid {
  display: grid;
  gap: 8px;
  margin-top: 10px;
}

.mobile-action-grid button,
.alert-list label {
  min-height: 48px;
  border: 1px solid var(--mobile-line);
  border-radius: 8px;
  color: var(--mobile-text);
  background: #0a0908;
  font-weight: 900;
}

.alert-list {
  display: grid;
  gap: 8px;
}

.alert-list label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 12px;
}

.alert-list input {
  width: 24px;
  height: 24px;
  accent-color: var(--mobile-amber);
}

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

.settings-list div {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 5px 10px;
  align-items: center;
  padding: 12px;
  border: 1px solid var(--mobile-line);
  border-radius: 8px;
  background: #0a0908;
}

.settings-list em {
  grid-column: 1 / -1;
  font-size: 12px;
}

.status-pill.ok {
  border-color: rgba(126, 226, 124, .4);
  color: var(--mobile-green);
}

.mobile-card code {
  display: block;
  margin-top: 8px;
  padding: 10px;
  border: 1px solid var(--mobile-line);
  border-radius: 8px;
  color: var(--mobile-blue);
  background: #080706;
  white-space: normal;
  overflow-wrap: anywhere;
}

.risk-alert-row {
  grid-template-columns: 74px 1fr;
}

.risk-alert-row strong {
  color: var(--mobile-red);
}

.risk-alert-row span {
  color: #d8d1c8;
}

.mobile-empty {
  padding: 12px 0 0;
  color: var(--mobile-muted);
}

.mobile-bottom-nav {
  position: fixed;
  left: 50%;
  bottom: 10px;
  width: min(calc(100vw - 24px), 436px);
  z-index: 30;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 6px;
  padding: 8px;
  border: 1px solid rgba(240, 173, 61, .25);
  border-radius: 18px;
  background: rgba(12, 11, 10, .94);
  box-shadow: 0 10px 34px rgba(0, 0, 0, .5);
  backdrop-filter: blur(18px);
  transform: translateX(-50%);
}

.mobile-bottom-nav button {
  min-height: 50px;
  border: 0;
  border-radius: 12px;
  color: var(--mobile-muted);
  background: transparent;
  font-size: 11px;
  font-weight: 900;
}

.mobile-bottom-nav button.active {
  color: #14100a;
  background: var(--mobile-amber);
}

body[data-page="midas"] {
  min-width: 1280px;
  background: #050505;
}

body[data-page="midas"] .content-page {
  max-width: none;
  padding: 10px;
}

body[data-page="midas"] .page-title,
body[data-page="midas"] .site-footer,
body[data-page="midas"] .masthead {
  display: none;
}

body[data-page="midas"] .page-panel {
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
}

body[data-page="midas"].midas-contrast .midas-lab,
body[data-page="midas"].midas-contrast .midas-panel,
body[data-page="midas"].midas-contrast .midas-table {
  background: #000;
}

body[data-page="midas"].midas-contrast .midas-table td,
body[data-page="midas"].midas-contrast .midas-table th {
  border-color: #4a4a4a;
}

.midas-lab {
  min-height: calc(100vh - 42px);
  color: #d4d0c8;
  background: #050505;
  font-family: "IBM Plex Sans", Arial, Helvetica, sans-serif;
}

.midas-tabbar {
  display: flex;
  overflow-x: auto;
  gap: 3px;
  min-height: 34px;
  padding: 0 0 4px;
  background: #050505;
}

.midas-tabbar button {
  min-width: 92px;
  min-height: 32px;
  border: 1px solid #333;
  border-bottom-color: #111;
  border-radius: 7px 7px 0 0;
  color: #d4d1cd;
  background: linear-gradient(#2d2d2d, #121212);
  font-weight: 900;
}

.midas-tabbar button.active {
  color: #f1eee9;
  background: linear-gradient(#555, #1f1f1f);
}

.midas-market-tape {
  display: flex;
  align-items: center;
  gap: 5px;
  min-height: 32px;
  margin-left: 6px;
  padding: 0 8px;
  border: 1px solid #303030;
  border-radius: 7px 7px 0 0;
  background: linear-gradient(#171717, #090909);
  white-space: nowrap;
}

.midas-market-tape span {
  display: inline-flex;
  align-items: baseline;
  gap: 4px;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: .2px;
}

.midas-market-tape b {
  color: #d7d1c6;
  font-style: normal;
}

.midas-market-tape i {
  font-style: normal;
}

.midas-market-tape .positive i {
  color: #3dd66d;
}

.midas-market-tape .negative i {
  color: #ef4b4b;
}

.midas-market-tape .flat i {
  color: #d4bd62;
}

.midas-toolbar {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 34px;
  padding: 0 8px;
  border: 1px solid #272727;
  background: linear-gradient(#242424, #111);
  color: #bfb8ac;
}

.midas-brand-wordmark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 118px;
  height: 72px;
  min-width: 118px;
  overflow: hidden;
  line-height: 1;
}

.midas-brand-wordmark img {
  display: block;
  width: 72px;
  height: 72px;
  border-radius: 50%;
  object-fit: cover;
  filter: drop-shadow(0 0 12px rgba(86, 255, 24, .34));
}

.midas-toolbar label {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: #2d2d2d;
  font-size: 12px;
}

.midas-toolbar select,
.midas-toolbar input {
  height: 24px;
  border: 1px solid #a8a8a8;
  color: #111;
  background: #efefef;
  font: inherit;
}

.midas-toolbar input {
  width: 172px;
  padding: 0 8px;
}

.midas-toolbar span {
  color: #a7a7a7;
  font-size: 12px;
}

.midas-toolbar .midas-data-source {
  padding: 4px 7px;
  border: 1px solid #493b18;
  color: #f3cd70;
  background: #171107;
  white-space: nowrap;
}

  .midas-toolbar button {
    min-height: 25px;
    border: 1px solid #3c3c3c;
  border-radius: 2px;
  color: #d6d6d6;
  background: #171717;
  font-size: 12px;
}

  .midas-toolbar button:hover,
.midas-tabbar button:hover,
.midas-toolbar .midas-spacex-button {
  border-color: #3a6f53;
  color: #ecffe8;
  background: linear-gradient(#174425, #0b2012);
  font-weight: 900;
}

.midas-workbench {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 8px;
  padding-top: 8px;
}

.midas-viewer,
.midas-viewer-panel,
.midas-viewer-tree,
.midas-viewer-list,
.midas-sidebar,
.viewer-list,
.viewer-panel,
[data-midas-viewer] {
  display: none !important;
}

.midas-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-auto-rows: minmax(132px, auto);
  gap: 8px;
  min-width: 0;
  padding: 0;
}

.midas-panel {
  overflow: hidden;
  border: 1px solid #363636;
  background: #050505;
}

.midas-panel-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 32px;
  padding: 0 10px;
  border-bottom: 1px solid #343434;
  background: linear-gradient(#3b3b3b, #222);
  color: #d0c9c1;
  font-size: 13px;
  font-weight: 800;
}

.midas-panel-title time {
  color: #c3beb8;
  font-size: 12px;
  font-weight: 700;
}

.midas-quote-panel,
.midas-touch-panel {
  min-height: 180px;
}

.midas-quote-panel {
  overflow: hidden;
}

.midas-quote-table th {
  width: 34%;
  color: #e6cf77;
  text-align: left;
  text-transform: uppercase;
}

.midas-quote-table td {
  color: #d7d0c7;
  font-weight: 800;
  text-align: right;
}

.midas-quote-source {
  margin: 10px 12px 12px;
  color: #9e978f;
  font-size: 12px;
  line-height: 1.35;
}

.midas-financial-pulse {
  overflow: hidden;
}

.midas-fin-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 14px 16px 8px;
  color: #eee9df;
}

.midas-fin-header em {
  display: block;
  color: #aaa39a;
  font-style: normal;
  font-weight: 700;
}

.midas-fin-header b {
  display: block;
  margin-top: 3px;
  color: #f0d36e;
  font-size: 18px;
}

.midas-fin-symbol {
  display: flex;
  align-items: center;
  gap: 10px;
}

.midas-fin-symbol span {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border: 1px solid rgba(102, 255, 71, 0.55);
  border-radius: 50%;
  background: radial-gradient(circle at 40% 35%, #6bff47, #0c2d0a 62%, #050505 64%);
  color: #050505;
  font-weight: 900;
}

.midas-fin-symbol strong {
  color: #f3efe7;
  font-size: 20px;
}

.midas-fin-tabs {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 8px 16px;
  color: #c9c1b8;
  font-weight: 800;
}

.midas-fin-tabs b {
  margin-right: auto;
  color: #f3efe7;
  font-size: 18px;
}

.midas-fin-tabs span {
  color: #5f91ff;
  border-bottom: 2px solid #5f91ff;
}

.midas-fin-tabs i {
  color: #aaa39a;
  font-style: normal;
}

.midas-fin-chart {
  position: relative;
  display: grid;
  grid-template-columns: repeat(5, minmax(36px, 1fr));
  align-items: end;
  gap: 10px;
  min-height: 170px;
  margin: 6px 16px 10px;
  padding: 22px 12px 24px;
  border: 1px solid #272727;
  background:
    linear-gradient(#1c1c1c 1px, transparent 1px) 0 0 / 100% 42px,
    #070707;
}

.midas-fin-year {
  position: relative;
  display: flex;
  align-items: end;
  justify-content: center;
  gap: 6px;
  height: 128px;
}

.midas-fin-year i {
  display: block;
  width: 13px;
  border-radius: 4px 4px 0 0;
}

.midas-fin-year .rev {
  height: var(--rev);
  background: #4b8bff;
}

.midas-fin-year .inc {
  height: var(--inc);
  background: #54d1dc;
}

.midas-fin-year b {
  position: absolute;
  bottom: -22px;
  left: 50%;
  color: #cfc9c0;
  font-size: 12px;
  transform: translateX(-50%);
}

.midas-fin-year span {
  position: absolute;
  left: 50%;
  top: var(--margin-y);
  width: 11px;
  height: 11px;
  border: 2px solid #ff7c1b;
  border-radius: 50%;
  background: #070707;
  transform: translateX(-50%);
}

.midas-fin-legend {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px 16px;
  padding: 0 12px 12px;
  color: #aaa39a;
  font-size: 12px;
  font-weight: 800;
}

.midas-fin-legend span::before {
  display: inline-block;
  width: 9px;
  height: 9px;
  margin-right: 5px;
  border-radius: 50%;
  content: "";
}

.midas-fin-legend .rev::before {
  background: #4b8bff;
}

.midas-fin-legend .inc::before {
  background: #54d1dc;
}

.midas-fin-legend .margin::before {
  background: #ff7c1b;
}

.midas-fin-empty {
  grid-column: 1 / -1;
  align-self: center;
  padding: 20px;
  color: #aaa39a;
  text-align: center;
}

.midas-fin-empty strong,
.midas-fin-empty span {
  display: block;
}

.midas-fin-performance {
  padding: 2px 16px 16px;
}

.midas-fin-performance h3 {
  margin: 0 0 10px;
  color: #f3efe7;
  font-size: 18px;
}

.midas-fin-performance div {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.midas-fin-performance span {
  display: grid;
  place-items: center;
  min-height: 54px;
  border: 1px solid #252525;
  border-radius: 6px;
  background: #151515;
}

.midas-fin-performance .up {
  border-color: rgba(68, 214, 126, 0.4);
  background: rgba(35, 120, 70, 0.35);
}

.midas-fin-performance .down {
  border-color: rgba(255, 82, 95, 0.45);
  background: rgba(145, 45, 55, 0.35);
}

.midas-fin-performance b {
  color: #f2df95;
  font-size: 18px;
}

.midas-fin-performance i {
  color: #f1ece4;
  font-style: normal;
}

.midas-touch-panel {
  grid-column: 1 / -1;
}

.midas-trader-panel {
  grid-column: 1;
}

.midas-ai-panel {
  grid-column: 1 / -1;
}

.midas-platform-panel {
  grid-column: 1 / -1;
}

.midas-swing-panel {
  grid-column: 1 / -1;
}

.midas-alpha-panel {
  grid-column: 1 / -1;
}

.midas-module-panel {
  grid-column: 1 / -1;
}

.midas-tools-panel {
  grid-column: 1 / -1;
}

.midas-tools-compact {
  display: grid;
  gap: 10px;
  padding: 12px;
  background: #080808;
}

.midas-tools-compact button {
  min-height: 52px;
  border: 1px solid #d7b24d;
  color: #170f00;
  background: linear-gradient(90deg, #fff0a4, #d5aa43);
  font: inherit;
  font-size: 14px;
  font-weight: 900;
  text-align: left;
  cursor: pointer;
}

.midas-tools-compact button.active {
  box-shadow: 0 0 0 2px rgba(255, 240, 164, .7), 0 0 0 5px rgba(213, 170, 67, .2);
}

.midas-tools-compact p {
  margin: 0;
  color: #bbb39c;
  font-size: 12px;
  line-height: 1.35;
}

.midas-module-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  padding: 10px;
  background: #070707;
}

.midas-module-grid div {
  min-height: 64px;
  padding: 9px;
  border: 1px solid #303030;
  background: #0c0c0c;
}

.midas-module-grid span {
  display: block;
  margin-bottom: 7px;
  color: #e2c269;
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
}

.midas-module-grid strong {
  color: #d8d1c5;
  font-size: 12px;
  line-height: 1.35;
}

.midas-lowfloat-preset {
  grid-column: 1 / -1;
  min-width: 0;
}

.midas-lowfloat-columns {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin-bottom: 10px;
}

.midas-lowfloat-columns section {
  min-height: 128px;
  padding: 10px;
  border: 1px solid #2d2d2d;
  background: #080808;
}

.midas-lowfloat-columns h3 {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  margin: 0 0 8px;
  color: #e0c46f;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: .4px;
}

.midas-lowfloat-columns h3 span {
  color: #f4f0d6;
  font-size: 11px;
  letter-spacing: 0;
  text-transform: none;
}

.midas-lowfloat-columns p {
  display: flex;
  align-items: flex-start;
  gap: 7px;
  margin: 5px 0;
  color: #cfc8bb;
  font-size: 12px;
  line-height: 1.25;
}

.midas-lowfloat-columns p i {
  flex: 0 0 auto;
  width: 9px;
  height: 9px;
  margin-top: 3px;
  border: 1px solid #5cd34e;
  background: transparent;
}

.midas-lowfloat-columns p.qualified {
  color: #f2f7ed;
}

.midas-lowfloat-columns p.qualified i {
  border-color: #66df54;
  background: #66df54;
  box-shadow: 0 0 8px rgba(102, 223, 84, .42);
}

.midas-lowfloat-columns p.miss i {
  border-color: #4a7d41;
  background: transparent;
}

.midas-lowfloat-columns p span {
  flex: 1 1 auto;
  min-width: 0;
}

.midas-lowfloat-columns p.risk i {
  border-color: #e24b4b;
  background: transparent;
}

.midas-lowfloat-columns p.risk.active {
  color: #ffd9d9;
}

.midas-lowfloat-columns p.risk.active i {
  background: #d94444;
  box-shadow: 0 0 8px rgba(217, 68, 68, .42);
}

.midas-lowfloat-columns p.risk.clear i {
  border-color: #4a7d41;
}

.midas-lowfloat-columns p b {
  flex: 0 0 auto;
  min-width: 42px;
  color: #7fe064;
  text-align: right;
}

.midas-lowfloat-columns p.miss b,
.midas-lowfloat-columns p.risk.active b {
  color: #e0c46f;
}

.midas-lowfloat-table th,
.midas-lowfloat-table td {
  white-space: nowrap;
}

.midas-lowfloat-score {
  display: inline-block;
  min-width: 34px;
  padding: 3px 5px;
  text-align: center;
}

.midas-lowfloat-score.hot {
  color: #061507;
  background: #68d34e;
}

.midas-lowfloat-score.watch {
  color: #111;
  background: #e0c46f;
}

.midas-lowfloat-score.base {
  color: #fff;
  background: #8d6b25;
}

.midas-lowfloat-score.avoid {
  color: #fff;
  background: #a73535;
}

.midas-lowfloat-research,
.midas-lowfloat-empty {
  margin: 0 0 10px;
  padding: 10px;
  border: 1px solid #3a3320;
  background: #0d0b06;
  color: #cfc8bb;
  font-size: 12px;
  line-height: 1.35;
}

.midas-lowfloat-research b,
.midas-lowfloat-empty strong {
  color: #e0c46f;
}

.midas-lowfloat-empty {
  display: grid;
  gap: 4px;
  border-color: #6f3a2d;
  background: #110908;
}

.midas-lowfloat-empty span {
  color: #aaa197;
}

.midas-lowfloat-verified {
  display: inline-block;
  padding: 3px 6px;
  color: #061507;
  background: #68d34e;
}

.midas-lowfloat-audit td:nth-child(8),
.midas-lowfloat-audit td:nth-child(9) {
  max-width: 340px;
  white-space: normal;
  line-height: 1.25;
}

.midas-lowfloat-note {
  margin: 9px 0 0;
  color: #aaa197;
  font-size: 12px;
  line-height: 1.35;
}

.midas-tools-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1.12fr;
  gap: 8px;
  padding: 10px;
  background: #070707;
}

.midas-tool-group {
  min-width: 0;
  padding: 10px;
  border: 1px solid #303030;
  background: #0d0d0d;
}

.midas-tool-group h3 {
  margin: 0 0 6px;
  color: #f1d16d;
  font-size: 15px;
}

.midas-tool-group p {
  min-height: 34px;
  margin: 0 0 8px;
  color: #aaa49b;
  font-size: 12px;
  line-height: 1.35;
}

.midas-tool-list {
  display: grid;
  gap: 4px;
}

.midas-tool-list button {
  display: flex;
  align-items: center;
  min-height: 25px;
  border: 1px solid transparent;
  color: #d6d0c7;
  background: transparent;
  font: inherit;
  font-size: 12px;
  font-weight: 800;
  text-align: left;
}

.midas-tool-list button::before {
  width: 12px;
  height: 12px;
  margin-right: 8px;
  border: 1px solid #bdbdbd;
  background: #e2e2e2;
  content: "";
}

.midas-tool-list button.active {
  border-color: #d7b24d;
  color: #170f00;
  background: linear-gradient(90deg, #fff0a4, #d5aa43);
}

.midas-tool-output {
  display: grid;
  grid-template-columns: minmax(220px, .58fr) minmax(0, 1fr);
  gap: 8px;
  padding: 0 10px 10px;
}

.midas-tool-output > div,
.midas-calculator-result {
  min-height: 104px;
  padding: 10px;
  border: 1px solid #303030;
  background: #0c0c0c;
}

.midas-tool-output span,
.midas-calculator-result span {
  display: block;
  margin-bottom: 7px;
  color: #e2c269;
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

.midas-tool-output strong,
.midas-calculator-result strong {
  display: block;
  color: #f2ede3;
  font-size: 20px;
  line-height: 1.1;
}

.midas-tool-output p {
  margin: 8px 0 0;
  color: #aaa49b;
  font-size: 12px;
  line-height: 1.35;
}

.midas-calculator-result p {
  display: grid;
  grid-template-columns: 150px 1fr;
  gap: 8px;
  margin: 7px 0 0;
}

.midas-calculator-result b {
  color: #a9a39a;
}

.midas-calculator-result i {
  color: #f1d16d;
  font-style: normal;
  text-align: right;
}

.midas-tool-table {
  align-self: start;
}

.midas-yearrange-panel {
  display: grid;
  grid-template-columns: minmax(240px, .45fr) minmax(0, 1fr);
  gap: 8px;
  align-items: start;
}

.midas-yearrange-summary {
  min-height: 100%;
  padding: 10px;
  border: 1px solid #303030;
  background: #080808;
}

.midas-yearrange-summary b {
  color: #f1d16d;
}

.midas-yearrange-badge {
  display: inline-grid;
  min-width: 112px;
  min-height: 24px;
  place-items: center;
  padding: 0 7px;
  border: 1px solid #554b2a;
  color: #d6c07a;
  background: #231f12;
  font-size: 11px;
  text-transform: uppercase;
}

.midas-yearrange-badge.verified {
  border-color: #3ca553;
  color: #ecffef;
  background: #2f7a43;
}

.midas-yearrange-badge.needs-feed {
  border-color: #785151;
  color: #e6c2c2;
  background: #2b1616;
}

.midas-yearrange-audit td:nth-child(5),
.midas-yearrange-audit td:nth-child(6) {
  white-space: normal;
}

.midas-swing-score {
  display: inline-grid;
  min-width: 34px;
  min-height: 24px;
  place-items: center;
  border: 1px solid #4e4321;
  color: #f8efcf;
  background: #5c4614;
}

.midas-swing-score.score-hot {
  border-color: #22613a;
  color: #eaffed;
  background: #227143;
}

.midas-swing-score.score-watch {
  border-color: #81652b;
  background: #7b5d20;
}

.midas-swing-score.score-weak {
  border-color: #703737;
  background: #652828;
}

.midas-alpha-score {
  display: inline-grid;
  min-width: 34px;
  min-height: 24px;
  place-items: center;
  border: 1px solid #4e4321;
  color: #fff4d1;
  background: #614f18;
}

.midas-alpha-score.score-hot {
  border-color: #24644a;
  color: #effff6;
  background: #1f7d56;
}

.midas-alpha-score.score-watch {
  border-color: #86672b;
  background: #7b5d20;
}

.midas-alpha-score.score-weak {
  border-color: #703737;
  background: #652828;
}

.midas-swing-head {
  display: grid;
  grid-template-columns: 1fr 54px;
  gap: 12px;
  align-items: center;
  padding: 12px;
  border-bottom: 1px solid #242424;
  background: #090909;
}

.midas-swing-head strong {
  color: #f0c76c;
  font-size: 19px;
}

.midas-swing-head p {
  margin: 5px 0 0;
  color: #a9a39b;
  font-size: 12px;
}

.midas-swing-head > span {
  display: grid;
  min-height: 44px;
  place-items: center;
  border: 1px solid #48694f;
  color: #efffee;
  background: #426e4b;
  font-weight: 900;
}

.midas-swing-legend {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 8px;
  padding: 10px 10px 0;
}

.midas-swing-legend div {
  min-height: 78px;
  padding: 8px;
  border: 1px solid #303030;
  background: #0b0b0b;
}

.midas-swing-legend div.active {
  border-color: #e2c269;
  background: linear-gradient(180deg, #181105 0%, #0b0b0b 100%);
  box-shadow: inset 0 0 0 1px #5e4b19;
}

.midas-swing-legend b,
.midas-swing-legend span {
  display: inline-block;
  margin-right: 6px;
  color: #e2c269;
  font-size: 12px;
}

.midas-swing-legend span {
  color: #7fe064;
}

.midas-swing-legend p {
  margin: 5px 0 0;
  color: #bdb6aa;
  font-size: 11px;
  line-height: 1.3;
}

.midas-alpha-head {
  display: grid;
  grid-template-columns: 1fr 60px;
  gap: 12px;
  align-items: center;
  padding: 12px;
  border-bottom: 1px solid #242424;
  background: #090909;
}

.midas-alpha-head strong {
  color: #f0c76c;
  font-size: 19px;
}

.midas-alpha-head p {
  max-width: 880px;
  margin: 5px 0 0;
  color: #a9a39b;
  font-size: 12px;
  line-height: 1.35;
}

.midas-alpha-head > span {
  display: grid;
  min-height: 44px;
  place-items: center;
  border: 1px solid #24644a;
  color: #effff6;
  background: #1f7d56;
  font-weight: 900;
}

.midas-swing-parts {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 8px;
  padding: 10px;
}

.midas-swing-parts div {
  min-height: 62px;
  padding: 9px;
  border: 1px solid #303030;
  background: #0b0b0b;
}

.midas-swing-parts b,
.midas-swing-parts span {
  display: block;
  font-size: 12px;
}

.midas-swing-parts b {
  color: #e2c269;
}

.midas-swing-parts span {
  margin: 5px 0 8px;
  color: #d8d1c5;
}

.midas-swing-parts i {
  display: block;
  width: 100%;
  height: 7px;
  background: linear-gradient(90deg, #43cf62 var(--score-width), #2c2c2c var(--score-width));
}

.midas-alpha-parts {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 8px;
  padding: 10px;
}

.midas-alpha-parts div {
  min-height: 66px;
  padding: 9px;
  border: 1px solid #303030;
  background: #0b0b0b;
}

.midas-alpha-parts b,
.midas-alpha-parts span {
  display: block;
  font-size: 12px;
}

.midas-alpha-parts b {
  color: #e2c269;
}

.midas-alpha-parts span {
  margin: 5px 0 8px;
  color: #d8d1c5;
}

.midas-alpha-parts i {
  display: block;
  width: 100%;
  height: 7px;
  background: linear-gradient(90deg, #42cc84 var(--score-width), #2c2c2c var(--score-width));
}

.midas-ai-head {
  display: grid;
  grid-template-columns: 1fr 92px;
  gap: 12px;
  padding: 12px;
  border-bottom: 1px solid #252525;
  background: #090909;
}

.midas-ai-head strong {
  color: #f0c76c;
  font-size: 18px;
}

.midas-ai-head p,
.midas-ai-note {
  margin: 6px 0 0;
  color: #a9a39b;
  font-size: 12px;
  line-height: 1.35;
}

.midas-ai-score {
  display: grid;
  place-items: center;
  min-height: 74px;
  border: 1px solid #3d3115;
  background: #161006;
}

.midas-ai-score span {
  color: #a39880;
  font-size: 11px;
  text-transform: uppercase;
}

.midas-ai-score b {
  color: #41d96a;
  font-size: 28px;
}

.midas-ai-tabs {
  display: flex;
  gap: 4px;
  padding: 8px 10px 0;
}

.midas-ai-tabs button {
  min-height: 26px;
  border: 1px solid #353535;
  color: #d6d1c7;
  background: #151515;
  font-size: 12px;
}

.midas-ai-tabs button.active {
  color: #14100a;
  background: #e2c269;
}

.midas-ai-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  padding: 10px;
}

.midas-ai-grid div {
  min-height: 62px;
  padding: 9px;
  border: 1px solid #2d2d2d;
  background: #0c0c0c;
}

.midas-ai-grid span {
  display: block;
  margin-bottom: 7px;
  color: #8f8a82;
  font-size: 11px;
  text-transform: uppercase;
}

.midas-ai-grid strong {
  color: #e3c46c;
  font-size: 13px;
  line-height: 1.3;
}

.midas-ai-note {
  padding: 0 12px 12px;
}

.midas-platform-head {
  padding: 12px;
  border-bottom: 1px solid #242424;
  background: #080808;
}

.midas-platform-head strong {
  color: #f0c76c;
  font-size: 17px;
}

.midas-platform-head p {
  max-width: 860px;
  margin: 6px 0 0;
  color: #a9a39b;
  font-size: 12px;
  line-height: 1.35;
}

.midas-platform-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  padding: 10px;
}

.midas-platform-grid div {
  min-height: 66px;
  padding: 10px;
  border: 1px solid #2f2f2f;
  background: #0b0b0b;
}

.midas-platform-card.pass {
  border-color: #246b45;
  background: linear-gradient(180deg, #07120b 0%, #050805 100%);
}

.midas-platform-card.watch {
  border-color: #654f21;
  background: linear-gradient(180deg, #120f06 0%, #080705 100%);
}

.midas-platform-grid span {
  display: block;
  margin-bottom: 6px;
  color: #e2c269;
  font-size: 12px;
  font-weight: 800;
}

.midas-platform-grid span em {
  display: inline-block;
  margin-left: 8px;
  color: #998f7a;
  font-size: 10px;
  font-style: normal;
  letter-spacing: .02em;
  vertical-align: 1px;
}

.midas-platform-card.pass span em {
  color: #67d584;
}

.midas-platform-card.watch span em {
  color: #e2c269;
}

.midas-platform-grid strong {
  color: #cfc8bd;
  font-size: 12px;
  line-height: 1.35;
}

.midas-platform-note {
  margin: 0;
  padding: 0 12px 12px;
  color: #8f8a82;
  font-size: 12px;
  line-height: 1.35;
}

.midas-indicator-panel {
  grid-column: 1 / -1;
}

.midas-indicator-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  padding: 10px;
  background: #070707;
}

.midas-indicator-card {
  min-width: 0;
  border: 1px solid #303030;
  background: #0b0b0b;
}

.midas-indicator-card.passed {
  border-color: #2d6d45;
}

.midas-indicator-card.watch {
  border-color: #695024;
}

.midas-indicator-card.score-red {
  border-color: #8c2626;
}

.midas-indicator-card.score-yellow {
  border-color: #c7a943;
}

.midas-indicator-card.score-green {
  border-color: #2d8f4d;
}

.midas-indicator-card header {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px;
  align-items: center;
  padding: 9px 10px 0;
}

.midas-indicator-card header span {
  color: #f0c76c;
  font-size: 14px;
  font-weight: 900;
}

.midas-indicator-signal {
  display: grid;
  grid-template-columns: repeat(3, 10px) 48px;
  gap: 4px;
  align-items: center;
}

.midas-indicator-signal i {
  display: block;
  width: 10px;
  height: 10px;
  border: 1px solid #3a3a3a;
  border-radius: 50%;
  background: #171717;
  box-shadow: inset 0 0 0 1px #050505;
}

.midas-indicator-card.score-red .midas-indicator-signal .red {
  border-color: #ff7777;
  background: #d93d3d;
  box-shadow: 0 0 12px rgba(217, 61, 61, .8);
}

.midas-indicator-card.score-yellow .midas-indicator-signal .yellow {
  border-color: #ffe48a;
  background: #d1ad4b;
  box-shadow: 0 0 12px rgba(209, 173, 75, .75);
}

.midas-indicator-card.score-green .midas-indicator-signal .green {
  border-color: #86ffae;
  background: #28a958;
  box-shadow: 0 0 12px rgba(40, 169, 88, .75);
}

.midas-indicator-card header b {
  display: grid;
  min-height: 30px;
  place-items: center;
  color: #0b0b0b;
  background: #d1ad4b;
  font-size: 13px;
}

.midas-indicator-card.passed header b {
  color: #effff2;
  background: #1f7d45;
}

.midas-indicator-card.score-red header b {
  color: #fff2f2;
  background: #9c2d2d;
}

.midas-indicator-card.score-yellow header b {
  color: #0b0b0b;
  background: #d1ad4b;
}

.midas-indicator-card.score-green header b {
  color: #effff2;
  background: #1f7d45;
}

.midas-indicator-symbol {
  display: block;
  margin: 6px 10px 0;
  color: #e8dfc2;
  font-size: 12px;
  letter-spacing: 0;
}

.midas-indicator-card p {
  min-height: 34px;
  margin: 6px 10px 8px;
  color: #aaa49b;
  font-size: 12px;
  line-height: 1.35;
}

.midas-indicator-chart {
  display: block;
  width: calc(100% - 20px);
  height: auto;
  margin: 0 10px 9px;
  border: 1px solid #252525;
  background: #030303;
}

.midas-indicator-chart.score-red {
  border-color: #c43737;
  border-width: 3px;
  outline: 3px solid #c43737;
  outline-offset: 2px;
  box-shadow: 0 0 0 2px #4a1111, 0 0 24px rgba(196, 55, 55, .36);
}

.midas-indicator-chart.score-yellow {
  border-color: #d1ad4b;
  border-width: 3px;
  outline: 3px solid #d1ad4b;
  outline-offset: 2px;
  box-shadow: 0 0 0 2px #4f4218, 0 0 24px rgba(209, 173, 75, .34);
}

.midas-indicator-chart.score-green {
  border-color: #28a958;
  border-width: 3px;
  outline: 3px solid #28a958;
  outline-offset: 2px;
  box-shadow: 0 0 0 2px #103f24, 0 0 24px rgba(40, 169, 88, .34);
}

.midas-indicator-chart rect:first-child {
  fill: #030303;
}

.midas-indicator-chart .grid line {
  stroke: #202020;
  stroke-width: 1;
}

.midas-indicator-chart .volume rect {
  fill: #575757;
}

.midas-indicator-chart .volume rect.hot {
  fill: #2d7f44;
}

.midas-indicator-chart .price {
  fill: none;
  stroke: #d7d7d7;
  stroke-width: 3;
}

.midas-indicator-chart .guide {
  stroke: #5fa067;
  stroke-width: 2;
}

.midas-indicator-chart .trigger {
  fill: none;
  stroke: #d9d9d9;
  stroke-width: 4;
}

.midas-indicator-chart .focus {
  fill: rgba(143, 36, 35, .45);
  stroke: #a53b38;
  stroke-width: 2;
}

.midas-indicator-chart text {
  fill: #e2c269;
  font-size: 13px;
  font-weight: 900;
}

.midas-indicator-chart.pass text {
  fill: #55db78;
}

.midas-indicator-checks {
  display: grid;
  gap: 4px;
  padding: 0 10px 10px;
}

.midas-indicator-checks div {
  display: grid;
  grid-template-columns: 28px 1fr auto;
  gap: 7px;
  align-items: center;
  min-height: 25px;
  border-top: 1px solid #222;
  color: #c9c1b8;
  font-size: 12px;
}

.midas-indicator-checks i {
  color: #8d8474;
  font-style: normal;
  font-weight: 900;
}

.midas-indicator-checks b {
  color: #d5af52;
  font-size: 11px;
}

.midas-indicator-checks .pass i,
.midas-indicator-checks .pass b {
  color: #56d978;
}

.midas-indicator-note {
  margin: 0;
  padding: 0 10px 10px;
  color: #8f8a82;
  font-size: 12px;
  line-height: 1.35;
}

.midas-pnf-panel {
  grid-column: span 1;
}

.midas-pnf-panel {
  grid-column: 1 / -1;
}

.midas-table {
  width: 100%;
  border-collapse: collapse;
  table-layout: fixed;
  color: #caa84c;
  background: #030303;
  font-size: 13px;
}

.midas-rank-table {
  min-width: 1140px;
}

.midas-col-company {
  width: 190px;
}

.midas-col-symbol {
  width: 148px;
}

.midas-col-score,
.midas-col-price,
.midas-col-change,
.midas-col-pct,
.midas-col-value,
.midas-col-stop {
  width: 82px;
}

.midas-col-exch,
.midas-col-ratio,
.midas-col-rec,
.midas-col-growth,
.midas-col-eps {
  width: 54px;
}

.midas-col-label {
  width: 104px;
}

.midas-table th,
.midas-table td {
  height: 30px;
  overflow: hidden;
  padding: 0 8px;
  border-right: 1px solid #2e2e2e;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.midas-table th {
  color: #c8c7cf;
  background: #080808;
  font-size: 12px;
  font-weight: 800;
  text-align: left;
}

.midas-table tr:nth-child(even) td {
  background: #262626;
}

.midas-table tr[data-midas-symbol] {
  cursor: pointer;
}

.midas-table tr[data-midas-symbol]:hover td {
  background: #3a2f16;
}

.midas-table tr.active td {
  background: #5d4308;
}

.midas-table td:not(:first-child),
.midas-table th:not(:first-child) {
  text-align: right;
}

.midas-table td:first-child,
.midas-table th:first-child {
  width: 35%;
}

.midas-page10-shell {
  display: grid;
  gap: 12px;
}

.midas-page10-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 250px;
  gap: 12px;
  padding: 14px 18px;
  border: 1px solid rgba(82, 126, 194, 0.3);
  background: linear-gradient(180deg, #10233d 0%, #0a1526 100%);
  box-shadow: inset 0 0 0 1px rgba(113, 168, 255, 0.08);
}

.midas-page10-hero span {
  display: block;
  margin-bottom: 6px;
  color: #7fd0ff;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 3px;
  text-transform: uppercase;
}

.midas-page10-hero strong {
  display: block;
  color: #f5fbff;
  font-size: clamp(24px, 3vw, 42px);
  line-height: 1;
}

.midas-page10-hero p {
  max-width: 780px;
  margin: 8px 0 0;
  color: #c5d7ef;
  font-size: 15px;
  line-height: 1.35;
}

.midas-page10-hero aside {
  display: grid;
  align-content: center;
  justify-items: end;
  padding: 14px;
  border: 1px solid rgba(98, 140, 201, 0.26);
  border-radius: 10px;
  background: linear-gradient(180deg, rgba(19, 39, 66, 0.96), rgba(11, 22, 38, 0.96));
}

.midas-page10-hero aside b {
  color: #f7fbff;
  font-size: 30px;
  font-weight: 900;
}

.midas-page10-hero aside i {
  margin-top: 6px;
  color: #9eb7d6;
  font-style: normal;
  text-align: right;
  font-size: 12px;
}

.midas-page10-grid {
  display: grid;
  grid-template-columns: minmax(760px, 1.12fr) minmax(680px, 1fr);
  gap: 12px;
  align-items: start;
}

.midas-page10-left-cluster,
.midas-page10-right {
  display: grid;
  gap: 12px;
}

.midas-page10-left-cluster {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

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

.midas-page10-scan-stack {
  display: grid;
  gap: 12px;
}

.midas-page10-scanner,
.midas-page10-quote,
.midas-page10-chart,
.midas-page10-scan-placeholder {
  border-color: rgba(95, 126, 170, 0.3);
  background: linear-gradient(180deg, #1c2b41 0%, #111b2d 100%);
}

.midas-page10-panel-meta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.midas-page10-panel-meta i {
  display: inline-grid;
  width: 22px;
  height: 22px;
  place-items: center;
  border: 1px solid rgba(133, 163, 199, 0.2);
  border-radius: 6px;
  color: #d7e8ff;
  font-style: normal;
  font-size: 11px;
  background: rgba(8, 16, 29, 0.35);
}

.midas-page10-table th,
.midas-page10-table td {
  padding: 7px 8px;
  border-color: rgba(102, 125, 159, 0.26);
  background: rgba(9, 18, 31, 0.94);
}

.midas-page10-table th {
  color: #9ab4d5;
  font-size: 10px;
}

.midas-page10-table td {
  color: #e8f1fc;
  font-size: 12px;
}

.midas-page10-table td:first-child,
.midas-page10-table th:first-child {
  width: 39%;
  text-align: left;
}

.midas-page10-symbol-cell strong {
  display: block;
  color: #f7fbff;
  font-size: 13px;
}

.midas-page10-symbol-cell span {
  display: block;
  margin-top: 2px;
  color: #8ea6c5;
  font-size: 10px;
  line-height: 1.2;
}

.midas-page10-quote {
  min-height: 100%;
}

.midas-page10-quote-top {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 14px;
  padding: 14px;
}

.midas-page10-quote-search {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 42px;
  gap: 8px;
  margin-bottom: 10px;
}

.midas-page10-quote-search input {
  width: 100%;
  height: 42px;
  padding: 0 12px;
  border: 1px solid rgba(117, 145, 181, 0.3);
  border-radius: 10px;
  color: #edf4ff;
  background: rgba(8, 16, 29, 0.72);
  font-size: 15px;
  font-weight: 800;
}

.midas-page10-quote-search button {
  width: 42px;
  height: 42px;
  border: 1px solid rgba(225, 217, 93, 0.4);
  border-radius: 10px;
  color: #1a1a06;
  background: linear-gradient(180deg, #f4f476 0%, #cec03b 100%);
  font-size: 16px;
  font-weight: 900;
}

.midas-page10-quote-top strong {
  display: block;
  color: #f8fbff;
  font-size: 26px;
  line-height: 1;
}

.midas-page10-quote-top strong sup {
  color: #95afd2;
  font-size: 12px;
  font-weight: 700;
}

.midas-page10-quote-top span {
  display: block;
  margin-top: 8px;
  color: #91a9ca;
  font-size: 14px;
  line-height: 1.35;
}

.midas-page10-quote-top aside {
  display: grid;
  align-content: center;
  justify-items: end;
}

.midas-page10-quote-top aside b {
  color: #7aff9d;
  font-size: 28px;
  font-weight: 900;
}

.midas-page10-quote-top aside i {
  margin-top: 8px;
  font-size: 14px;
  font-style: normal;
  font-weight: 900;
}

.midas-page10-quote-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  padding: 0 14px 14px;
}

.midas-page10-quote-grid span {
  display: grid;
  gap: 4px;
  padding: 10px 12px;
  border: 1px solid rgba(117, 145, 181, 0.18);
  border-radius: 10px;
  color: #e7eef9;
  background: rgba(8, 16, 29, 0.64);
}

.midas-page10-quote-grid b {
  color: #8da8cc;
  font-size: 11px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
}

.midas-page10-headlines {
  display: grid;
  gap: 8px;
  padding: 0 14px 14px;
}

.midas-page10-headlines header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.midas-page10-headlines header b {
  color: #dce9ff;
  font-size: 12px;
  letter-spacing: 1.2px;
  text-transform: none;
}

.midas-page10-headlines header button {
  min-height: 28px;
  padding: 0 10px;
  border: 1px solid rgba(58, 145, 196, 0.35);
  border-radius: 7px;
  color: #9edbff;
  background: rgba(20, 67, 108, 0.38);
  font-size: 12px;
  font-weight: 800;
}

.midas-page10-headlines article {
  display: grid;
  gap: 6px;
  padding: 10px 12px;
  border: 1px solid rgba(109, 137, 173, 0.18);
  border-radius: 10px;
  background: rgba(10, 18, 31, 0.7);
}

.midas-page10-headlines article.hot {
  border-color: rgba(255, 150, 87, 0.35);
  background: linear-gradient(180deg, rgba(58, 28, 20, 0.76), rgba(25, 15, 16, 0.76));
}

.midas-page10-headlines article.good {
  border-color: rgba(88, 214, 133, 0.28);
  background: linear-gradient(180deg, rgba(19, 49, 31, 0.76), rgba(14, 23, 20, 0.76));
}

.midas-page10-headlines article b {
  color: #79c4ff;
  font-size: 11px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
}

.midas-page10-headlines article span {
  color: #eef5ff;
  font-size: 13px;
  line-height: 1.35;
}

.midas-page10-chart-topbar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 10px 0;
  overflow: hidden;
}

.midas-page10-chart-topbar .midas-page10-chart-search,
.midas-page10-chart-topbar span,
.midas-page10-chart-topbar button {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 0 8px;
  border: 1px solid rgba(120, 148, 184, 0.24);
  border-radius: 7px;
  color: #dce8f8;
  background: rgba(12, 21, 35, 0.74);
  font-size: 11px;
  font-weight: 800;
  white-space: nowrap;
}

.midas-page10-chart-topbar .midas-page10-chart-search {
  min-width: 112px;
}

.midas-page10-chart-topbar button {
  color: #f0f5ff;
  cursor: default;
}

.midas-page10-chart-wrap {
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr);
  gap: 8px;
  padding: 8px 10px 10px;
}

.midas-page10-chart-tools {
  display: grid;
  align-content: start;
  gap: 8px;
}

.midas-page10-chart-tools button {
  width: 32px;
  height: 32px;
  border: 1px solid rgba(113, 145, 188, 0.22);
  border-radius: 8px;
  color: #d5e7ff;
  background: rgba(9, 17, 29, 0.9);
  font-size: 15px;
  font-weight: 700;
}

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

.midas-page10-chart-svg rect {
  fill: #111a2d;
}

.midas-page10-chart-svg .grid {
  stroke: rgba(255, 255, 255, 0.08);
  stroke-dasharray: 4 5;
}

.midas-page10-chart-svg .wick {
  stroke-width: 2;
}

.midas-page10-chart-svg .wick.up {
  stroke: #2ddf61;
}

.midas-page10-chart-svg .wick.down {
  stroke: #ff4d4d;
}

.midas-page10-chart-svg .body.up {
  fill: rgba(45, 223, 97, 0.25);
  stroke: #69f392;
}

.midas-page10-chart-svg .body.down {
  fill: rgba(255, 77, 77, 0.24);
  stroke: #ff8f8f;
}

.midas-page10-chart-svg .volume.up {
  fill: rgba(45, 223, 97, 0.48);
}

.midas-page10-chart-svg .volume.down {
  fill: rgba(255, 77, 77, 0.42);
}

.midas-page10-chart-svg .ema9 {
  fill: none;
  stroke: #ffd86a;
  stroke-width: 2.2;
}

.midas-page10-chart-svg .ema20 {
  fill: none;
  stroke: #4ba4ff;
  stroke-width: 2.2;
}

.midas-page10-chart-svg .vwap {
  fill: none;
  stroke: #d976ff;
  stroke-width: 2;
  stroke-dasharray: 8 7;
}

.midas-page10-chart-svg .label {
  fill: #f3f8ff;
  font-size: 14px;
  font-weight: 900;
}

.midas-page10-chart-svg .sub {
  fill: #8fa8c8;
  font-size: 11px;
  font-weight: 700;
}

.midas-page10-empty-state {
  display: grid;
  place-items: center;
  min-height: 112px;
  padding: 14px;
  color: #eef3fb;
  font-size: 16px;
  text-align: center;
  background: rgba(17, 28, 47, 0.88);
}

@media (max-width: 1400px) {
  .midas-page10-grid {
    grid-template-columns: 1fr;
  }

  .midas-page10-left-cluster,
  .midas-page10-right {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 900px) {
  .midas-page10-hero {
    grid-template-columns: 1fr;
  }

  .midas-page10-left-cluster,
  .midas-page10-right,
  .midas-page10-quote-grid {
    grid-template-columns: 1fr;
  }

  .midas-page10-quote-top {
    grid-template-columns: 1fr;
  }

  .midas-page10-quote-top aside {
    justify-items: start;
  }

  .midas-page10-chart-wrap {
    grid-template-columns: 1fr;
  }

  .midas-page10-chart-tools {
    grid-auto-flow: column;
    grid-template-columns: repeat(8, minmax(0, 1fr));
  }
}

.midas-rank-table td:first-child,
.midas-rank-table th:first-child {
  width: 180px;
}

.midas-touch-panel {
  overflow-x: auto;
}

.midas-table .positive {
  color: #26d150 !important;
}

.midas-table .negative {
  color: #ed4848 !important;
}

.midas-rec {
  display: inline-grid;
  min-width: 28px;
  min-height: 24px;
  place-items: center;
  border: 1px solid #566f5d;
  color: #e9f8ea;
  background: #62906a;
}

.midas-rec.rec-h {
  border-color: #d8d0a9;
  color: #15110b;
  background: #ebe5bd;
}

.midas-rec.rec-s {
  border-color: #914343;
  background: #8c3333;
}

.midas-chart {
  display: block;
  width: 100%;
  height: 270px;
  background: #050505;
}

.midas-chart rect {
  fill: #050505;
}

.midas-chart line {
  stroke: #191919;
  stroke-width: 1;
}

.midas-chart g line {
  stroke: #5cb86d;
  stroke-width: 1.5;
}

.midas-chart g rect {
  fill: transparent;
  stroke: #5cb86d;
  stroke-width: 1.5;
}

.midas-chart g.down line,
.midas-chart g.down rect {
  stroke: #ed2626;
}

.midas-chart g.down rect {
  fill: #ed2626;
}

.midas-chart path {
  fill: none;
  stroke-linecap: round;
  stroke-width: 5;
}

.midas-chart .fast {
  stroke: #ed1111;
}

.midas-chart .slow {
  stroke: #53c383;
}

.midas-chart text {
  fill: rgba(210, 210, 210, .22);
  font-size: 48px;
  font-weight: 900;
  text-anchor: middle;
}

.midas-chart text + text {
  font-size: 28px;
}

.midas-pnf-wrap {
  display: grid;
  grid-template-columns: minmax(280px, .72fr) minmax(520px, 1.28fr);
  grid-template-areas:
    "stats chart"
    "evidence chart";
  align-items: stretch;
  gap: 8px;
  padding: 8px;
  background: #050505;
}

.midas-pnf-chart {
  grid-area: chart;
  display: block;
  width: 100%;
  height: clamp(620px, 44vw, 820px);
  background: #040404;
}

.midas-pnf-chart.advanced {
  min-height: 620px;
}

.midas-pnf-chart rect {
  fill: #040404;
}

.midas-pnf-chart line {
  stroke: #1d1d1d;
  stroke-width: 1;
}

.midas-pnf-chart text {
  font-weight: 900;
  text-anchor: middle;
  dominant-baseline: central;
}

.midas-pnf-chart .pnf-x {
  fill: #67dc74;
  font-size: 25px;
}

.midas-pnf-chart .pnf-o {
  fill: #e05252;
  font-size: 25px;
}

.midas-pnf-chart .pnf-breakout {
  stroke: #e2c269;
  stroke-width: 2;
}

.midas-pnf-chart .pnf-stop {
  stroke: #a63c3c;
  stroke-width: 2;
}

.midas-pnf-chart .pnf-trend {
  fill: none;
  stroke: #52b66c;
  stroke-width: 2;
  stroke-dasharray: 7 6;
}

.midas-pnf-chart .pnf-resistance {
  fill: none;
  stroke: #d94949;
  stroke-width: 2;
  stroke-dasharray: 9 5;
}

.midas-pnf-chart .pnf-focus {
  fill: rgba(226, 194, 105, .16);
  stroke: #e2c269;
  stroke-width: 2;
}

.midas-pnf-chart .pnf-title {
  fill: #e2c269;
  font-size: 18px;
  text-anchor: start;
}

.midas-pnf-chart .pnf-breakout-label,
.midas-pnf-chart .pnf-stop-label {
  fill: #aaa197;
  font-size: 13px;
  text-anchor: end;
}

.midas-pnf-chart .pnf-axis {
  fill: #8d887d;
  font-size: 12px;
  text-anchor: start;
}

.midas-pnf-chart .pnf-pattern {
  fill: #f0d36d;
  font-size: 18px;
  text-anchor: start;
}

.midas-pnf-chart .pnf-source {
  fill: #928c82;
  font-size: 13px;
  text-anchor: start;
}

.midas-pnf-wrap.green .midas-pnf-chart {
  box-shadow: inset 0 0 0 2px #1f7d45;
}

.midas-pnf-wrap.yellow .midas-pnf-chart {
  box-shadow: inset 0 0 0 2px #d1ad4b;
}

.midas-pnf-wrap.red .midas-pnf-chart {
  box-shadow: inset 0 0 0 2px #9c2d2d;
}

.midas-pnf-stats {
  grid-area: stats;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 6px;
  align-content: start;
}

.midas-pnf-stats.advanced {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.midas-pnf-stats span {
  display: grid;
  gap: 3px;
  padding: 7px;
  border: 1px solid #2e2e2e;
  color: #d6cda9;
  background: #0a0a0a;
  font-size: 12px;
}

.midas-pnf-stats b {
  color: #8f8a82;
  font-size: 10px;
  text-transform: uppercase;
}

.midas-pnf-evidence {
  grid-area: evidence;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px;
  align-content: start;
}

.midas-pnf-evidence div {
  display: grid;
  gap: 3px;
  min-height: 42px;
  padding: 7px;
  border: 1px solid #2f2f2f;
  background: #090909;
  color: #bdb5aa;
  font-size: 11px;
}

.midas-pnf-evidence div.pass {
  border-color: #276f3c;
  color: #dfffe5;
  background: #0d1f12;
}

.midas-pnf-evidence b {
  color: #e0c469;
  font-size: 10px;
  text-transform: uppercase;
}

.midas-pnf-evidence span {
  line-height: 1.25;
}

.midas-spacex-panel {
  grid-column: 1 / -1;
}

.midas-v2-shell {
  grid-column: 1 / -1;
  min-width: 0;
}

.midas-v2-header {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(220px, 360px);
  gap: 10px;
  margin-bottom: 8px;
  padding: 14px;
  border: 1px solid #214d83;
  background: linear-gradient(135deg, #082443, #0c315d 45%, #08101d);
  color: #eaf4ff;
}

.midas-v2-header span {
  color: #91cbff;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.midas-v2-header strong {
  display: block;
  color: #ffffff;
  font-size: 30px;
}

.midas-v2-header p,
.midas-v2-header i {
  margin: 4px 0 0;
  color: #b7cee6;
  font-style: normal;
}

.midas-v2-header aside {
  display: grid;
  align-content: center;
  gap: 6px;
  padding: 10px;
  border: 1px solid #3a6da4;
  background: rgba(0, 0, 0, .24);
}

.midas-v2-header aside b {
  color: #f0d36e;
  text-transform: uppercase;
}

.midas-v2-grid {
  display: grid;
  grid-template-columns: minmax(360px, .95fr) minmax(560px, 1.55fr);
  gap: 8px;
}

.midas-ticker-badge {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  min-width: 0;
  color: #fff;
  font-weight: 1000;
  letter-spacing: .5px;
  text-shadow: 0 1px 0 rgba(0, 0, 0, .45);
  vertical-align: middle;
}

.midas-ticker-badge i {
  display: inline-grid;
  place-items: center;
  flex: 0 0 auto;
  width: 34px;
  height: 34px;
  border: 2px solid #49d33d;
  border-radius: 50%;
  color: #061006;
  background:
    radial-gradient(circle at 35% 25%, #a7ff82 0 12%, #41d433 30%, #0d5918 62%, #031306 100%);
  box-shadow:
    inset 0 2px 7px rgba(255, 255, 255, .45),
    inset 0 -8px 12px rgba(0, 0, 0, .5),
    0 0 10px rgba(73, 211, 61, .35);
  font-style: normal;
  font-size: 18px;
  font-weight: 1000;
}

.midas-ticker-badge b {
  overflow: hidden;
  color: #fff;
  font-size: 22px;
  line-height: 1;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.midas-ticker-badge.compact {
  gap: 6px;
}

.midas-ticker-badge.compact i {
  width: 24px;
  height: 24px;
  border-width: 1px;
  font-size: 13px;
}

.midas-ticker-badge.compact b {
  font-size: 13px;
}

.midas-ticker-badge.tiny {
  gap: 5px;
}

.midas-ticker-badge.tiny i {
  width: 20px;
  height: 20px;
  border-width: 1px;
  font-size: 11px;
}

.midas-ticker-badge.tiny b {
  color: #f0d36d;
  font-size: 12px;
}

.midas-ticker-badge.page5 b {
  color: #0f172a;
  font-size: 18px;
  text-shadow: none;
}

.midas-ticker-badge.hero {
  gap: 14px;
}

.midas-ticker-badge.hero i {
  width: 58px;
  height: 58px;
  border-width: 2px;
  font-size: 28px;
}

.midas-ticker-badge.hero b {
  font-size: 38px;
  letter-spacing: 1px;
}

.midas-v2-race {
  grid-column: 1;
  background: #061b31;
}

.midas-v2-race-track {
  display: grid;
  gap: 7px;
  padding: 10px;
}

.midas-v2-race-track button {
  position: relative;
  display: grid;
  grid-template-columns: 28px 108px 72px 1fr;
  align-items: center;
  min-height: 42px;
  overflow: hidden;
  border: 1px solid #286ba6;
  color: #eff8ff;
  background: #09213b;
  font: inherit;
  text-align: left;
}

.midas-v2-race-track button.active {
  border-color: #f0d36d;
  box-shadow: inset 0 0 0 2px rgba(240, 211, 109, .75);
}

.midas-v2-race-track button.active::after {
  position: absolute;
  inset: 0 0 0 auto;
  width: 6px;
  background: #f0d36d;
  content: "";
}

.midas-v2-race-track button::before {
  position: absolute;
  inset: 0 auto 0 0;
  width: var(--race);
  background: linear-gradient(90deg, #35c63f, rgba(53, 198, 63, .18));
  content: "";
}

.midas-v2-race-track button > * {
  position: relative;
  z-index: 1;
  padding: 0 7px;
}

.midas-v2-race-track button > b {
  color: #071420;
  background: #9cff68;
}

.midas-v2-race-track button > span {
  color: #e7ffdf;
  font-weight: 900;
}

.midas-v2-race-track button > i {
  color: #c4d2df;
  font-style: normal;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.midas-v2-race p {
  margin: 0;
  padding: 0 10px 10px;
  color: #bdd1e4;
}

.midas-v2-detail {
  grid-column: 2;
  grid-row: span 2;
  background: linear-gradient(#111827, #06080c);
}

.midas-v2-quote-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: end;
  padding: 14px;
  border-bottom: 1px solid #263a58;
}

.midas-v2-quote-head small {
  display: block;
  color: #96b9df;
  font-weight: 900;
}

.midas-v2-quote-head strong {
  margin-right: 12px;
  color: #f5f8ff;
  font-size: 38px;
}

.midas-v2-quote-head > span {
  color: #d9ecff;
  font-size: 18px;
  font-weight: 900;
}

.midas-v2-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  padding: 0 14px 10px;
}

.midas-v2-metrics span {
  display: grid;
  gap: 3px;
  padding: 8px;
  background: rgba(255, 255, 255, .05);
  color: #aebed0;
}

.midas-v2-metrics b {
  color: #eef7ff;
}

.midas-v2-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding: 0 14px 10px;
}

.midas-v2-actions button {
  min-height: 26px;
  border: 1px solid #617a9c;
  color: #eef7ff;
  background: #142844;
  font-weight: 800;
}

.midas-v2-strategies {
  grid-column: 1 / -1;
  overflow-x: auto;
  background: #050a11;
}

.midas-v2-table {
  width: 100%;
  min-width: 1380px;
  table-layout: fixed;
}

.midas-v2-table th,
.midas-v2-table td {
  padding: 6px 8px;
  font-size: 12px;
  line-height: 1.15;
  white-space: normal;
  overflow-wrap: anywhere;
}

.midas-v2-table th:nth-child(1),
.midas-v2-table td:nth-child(1) {
  width: 76px;
}

.midas-v2-table th:nth-child(2),
.midas-v2-table td:nth-child(2) {
  width: 210px;
}

.midas-v2-table th:nth-child(3),
.midas-v2-table td:nth-child(3),
.midas-v2-table th:nth-child(4),
.midas-v2-table td:nth-child(4),
.midas-v2-table th:nth-child(5),
.midas-v2-table td:nth-child(5),
.midas-v2-table th:nth-child(6),
.midas-v2-table td:nth-child(6),
.midas-v2-table th:nth-child(7),
.midas-v2-table td:nth-child(7),
.midas-v2-table th:nth-child(9),
.midas-v2-table td:nth-child(9),
.midas-v2-table th:nth-child(10),
.midas-v2-table td:nth-child(10),
.midas-v2-table th:nth-child(11),
.midas-v2-table td:nth-child(11),
.midas-v2-table th:nth-child(16),
.midas-v2-table td:nth-child(16) {
  width: 72px;
}

.midas-v2-table th:nth-child(8),
.midas-v2-table td:nth-child(8) {
  width: 124px;
}

.midas-v2-table th:nth-child(12),
.midas-v2-table td:nth-child(12),
.midas-v2-table th:nth-child(13),
.midas-v2-table td:nth-child(13),
.midas-v2-table th:nth-child(14),
.midas-v2-table td:nth-child(14) {
  width: 88px;
}

.midas-v2-table th:nth-child(15),
.midas-v2-table td:nth-child(15) {
  width: 96px;
}

.midas-v2-symbol {
  color: #f0d36d;
  font-size: 13px;
  letter-spacing: .5px;
}

.midas-v2-company {
  color: #cfc7bb;
  font-size: 11px;
}

.midas-v2-heat {
  display: inline-grid;
  min-width: 42px;
  min-height: 26px;
  place-items: center;
  color: #dfefff;
  background: #30445a;
}

.midas-v2-heat.hot {
  background: #26a735;
}

.midas-v2-heat.cold {
  color: #300;
  background: #f04455;
}

.midas-v2-cards {
  grid-column: 1 / -1;
  background: #061b31;
}

.midas-v2-card-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(240px, 1fr));
  gap: 8px;
  padding: 10px;
}

.midas-v2-card-grid article {
  position: relative;
  overflow: hidden;
  border: 1px solid #1d4d7c;
  background: linear-gradient(#50a7ff, #cde9ff 52%, #f1f5fb 53%);
  color: #061221;
}

.midas-v2-card-grid article > button {
  position: absolute;
  top: 6px;
  right: 6px;
  z-index: 2;
  width: 28px;
  height: 28px;
  border: 0;
  color: #fff;
  background: #b21f32;
  font-weight: 900;
}

.midas-v2-card-grid h3 {
  margin: 0;
  padding: 8px 38px 8px 10px;
  background: #e9f1fb;
  color: #111;
  font-size: 14px;
}

.midas-v2-mini {
  height: 138px;
  overflow: hidden;
}

.midas-v2-mini .midas-chart {
  height: 170px;
  transform: translateY(-20px);
}

.midas-v2-card-grid p {
  margin: 8px 10px;
  color: #111;
  font-weight: 900;
}

.midas-v2-card-grid p b {
  color: #148a38;
}

.midas-v2-card-grid article > div:not(.midas-v2-mini) {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 4px;
  padding: 0 8px 8px;
}

.midas-v2-card-grid span {
  display: grid;
  place-items: center;
  min-height: 42px;
  background: #d7e0ec;
  color: #2c3340;
  font-size: 11px;
  font-weight: 900;
  text-align: center;
}

.midas-v2-card-grid span b {
  color: #071221;
  font-size: 16px;
}

.midas-v2-card-grid footer {
  display: grid;
  grid-template-columns: 48px 1fr 48px;
  min-height: 30px;
  background: linear-gradient(90deg, #b73345, #24a63d);
  color: #fff;
  font-weight: 900;
  text-align: center;
  text-transform: uppercase;
}

.midas-v3-shell {
  display: grid;
  gap: 10px;
  grid-column: 1 / -1;
}

.midas-v3-header {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(220px, .34fr);
  gap: 12px;
  padding: 16px;
  border: 1px solid #2c2c2c;
  background: radial-gradient(circle at 12% 10%, rgba(50, 192, 82, .14), transparent 28%), #070707;
}

.midas-v3-header span {
  color: #65d36b;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 2px;
  text-transform: uppercase;
}

.midas-v3-header strong {
  display: block;
  margin-top: 5px;
  color: #f0cd67;
  font-size: 24px;
  line-height: 1.1;
}

.midas-v3-header p,
.midas-v3-header i {
  margin: 7px 0 0;
  color: #bdb7ad;
  font-size: 13px;
  line-height: 1.4;
}

.midas-v3-header aside {
  display: grid;
  align-content: center;
  gap: 5px;
  padding: 12px;
  border: 1px solid #334d36;
  background: #071107;
  text-align: right;
}

.midas-v3-header aside b {
  color: #6df07a;
  font-size: 30px;
}

.midas-v3-map {
  display: grid;
  grid-template-columns: minmax(520px, 1.08fr) minmax(420px, .92fr);
  gap: 10px;
}

.midas-v3-chart .midas-pnf-chart.advanced {
  height: 620px;
  min-height: 620px;
}

.midas-v3-alignment,
.midas-v3-objects,
.midas-v3-scenarios,
.midas-v3-lifecycle,
.midas-v3-note {
  background: #070707;
}

.midas-v3-align-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  padding: 10px;
}

.midas-v3-align-grid div,
.midas-v3-quality,
.midas-v3-step-grid div,
.midas-v3-alerts p,
.midas-v3-note p {
  border: 1px solid #2e2e2e;
  background: #0c0c0c;
}

.midas-v3-align-grid div {
  display: grid;
  gap: 5px;
  padding: 10px;
}

.midas-v3-align-grid b,
.midas-v3-quality b,
.midas-v3-step-grid b,
.midas-v3-alerts b,
.midas-v3-object-grid b {
  color: #e2c463;
  font-size: 11px;
  text-transform: uppercase;
}

.midas-v3-align-grid span,
.midas-v3-step-grid span,
.midas-v3-alerts span {
  color: #c9c3ba;
  font-size: 13px;
  line-height: 1.35;
}

.midas-v3-quality {
  margin: 0 10px 10px;
  padding: 10px;
}

.midas-v3-quality strong {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  color: #f0eee8;
  font-size: 15px;
}

.midas-v3-quality strong span {
  color: #6ddd73;
}

.midas-v3-quality p {
  display: grid;
  grid-template-columns: minmax(120px, 1fr) 56px;
  gap: 8px;
  align-items: center;
  margin: 8px 0 0;
  color: #c9c3ba;
  font-size: 12px;
}

.midas-v3-quality p i {
  grid-column: 1 / -1;
  height: 5px;
  background: linear-gradient(90deg, #5dd765 var(--q), #2e2e2e var(--q));
}

.midas-v3-quality em,
.midas-v3-clean,
.midas-v3-alignment li,
.midas-v3-note p {
  color: #aaa39a;
  font-size: 12px;
  line-height: 1.45;
}

.midas-v3-alignment ul {
  margin: 0 10px 10px 28px;
  padding: 0;
}

.midas-v3-clean {
  margin: 0 10px 10px;
}

.midas-v3-scenarios small {
  color: #928d86;
  font-size: 11px;
}

.midas-v3-score {
  display: inline-grid;
  min-width: 42px;
  min-height: 28px;
  place-items: center;
  color: #fff;
  font-size: 13px;
}

.midas-v3-score.high {
  background: #357846;
}

.midas-v3-score.medium {
  color: #16120b;
  background: #d0b653;
}

.midas-v3-score.low {
  background: #8a3636;
}

.midas-v3-bullish td:first-child {
  color: #6ddd73;
}

.midas-v3-bearish td:first-child {
  color: #ff5a5f;
}

.midas-v3-neutral td:first-child {
  color: #f0cd67;
}

.midas-v3-object-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(180px, 1fr));
  gap: 8px;
  padding: 10px;
}

.midas-v3-object-grid article {
  display: grid;
  gap: 7px;
  min-height: 160px;
  padding: 10px;
  border: 2px solid #7e3838;
  background: #0a0a0a;
}

.midas-v3-object-grid article.medium {
  border-color: #c4a844;
}

.midas-v3-object-grid article.high {
  border-color: #4fb65d;
}

.midas-v3-object-grid header,
.midas-v3-object-grid footer {
  display: flex;
  justify-content: space-between;
  gap: 8px;
}

.midas-v3-object-grid header span {
  display: inline-grid;
  min-width: 44px;
  place-items: center;
  color: #f6f0e7;
  background: #242424;
  font-weight: 900;
}

.midas-v3-object-grid strong {
  color: #f0eee8;
  font-size: 14px;
}

.midas-v3-object-grid p {
  margin: 0;
  color: #e0c96e;
  font-size: 15px;
  font-weight: 900;
}

.midas-v3-object-grid footer i,
.midas-v3-object-grid footer em,
.midas-v3-object-grid small {
  color: #aaa39a;
  font-size: 11px;
  font-style: normal;
}

.midas-v3-step-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  padding: 10px;
}

.midas-v3-step-grid div {
  display: grid;
  gap: 7px;
  min-height: 82px;
  padding: 10px;
  border-left: 4px solid #7f3a3a;
}

.midas-v3-step-grid div.pass {
  border-left-color: #4fb65d;
  background: #0b180e;
}

.midas-v3-alerts {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 8px;
  padding: 0 10px 10px;
}

.midas-v3-alerts p,
.midas-v3-note p {
  display: grid;
  gap: 6px;
  margin: 0;
  padding: 10px;
}

.midas-page4-shell {
  display: grid;
  gap: 12px;
  grid-column: 1 / -1;
  min-height: 820px;
  padding: 12px;
  border: 1px solid #25333e;
  background:
    radial-gradient(circle at 8% 8%, rgba(85, 238, 140, .20), transparent 24%),
    radial-gradient(circle at 94% 4%, rgba(255, 215, 96, .18), transparent 26%),
    linear-gradient(135deg, #07130e, #07101c 54%, #10100a);
}

.midas-page4-top {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(150px, .22fr);
  gap: 12px;
  align-items: stretch;
}

.midas-page4-top > div,
.midas-page4-top aside {
  border: 1px solid rgba(244, 219, 126, .35);
  background: rgba(0, 0, 0, .45);
  box-shadow: 0 20px 60px rgba(0, 0, 0, .22);
}

.midas-page4-top > div {
  padding: 18px;
}

.midas-page4-top span {
  color: #5df28a;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 2px;
  text-transform: uppercase;
}

.midas-page4-top strong {
  display: block;
  margin-top: 4px;
  color: #ffe889;
  font-size: 34px;
  line-height: 1.05;
}

.midas-page4-top p {
  max-width: 880px;
  margin: 8px 0 0;
  color: #eef7ef;
  font-size: 15px;
  line-height: 1.45;
}

.midas-page4-top aside {
  display: grid;
  place-items: center;
  padding: 14px;
  text-align: center;
}

.midas-page4-top aside b {
  color: #65f59b;
  font-size: 44px;
  line-height: 1;
}

.midas-page4-top aside i {
  color: #f4d975;
  font-size: 12px;
  font-style: normal;
  font-weight: 900;
  text-transform: uppercase;
}

.midas-page4-workspace {
  display: grid;
  grid-template-columns: minmax(360px, .42fr) minmax(640px, 1fr);
  gap: 12px;
  align-items: start;
}

.midas-page4-list,
.midas-page4-detail {
  border: 1px solid rgba(255, 255, 255, .12);
  background: rgba(0, 0, 0, .42);
  backdrop-filter: blur(8px);
}

.midas-page4-list-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  padding: 13px 14px;
  border-bottom: 1px solid rgba(255, 255, 255, .12);
}

.midas-page4-list-head span {
  color: #72f9a2;
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.midas-page4-list-head b {
  color: #fff4c6;
  font-size: 15px;
}

.midas-page4-cards {
  display: grid;
  gap: 9px;
  max-height: 920px;
  overflow: auto;
  padding: 12px;
}

.midas-page4-cards button {
  display: grid;
  grid-template-columns: 34px 148px 52px 72px minmax(110px, 1fr);
  gap: 8px;
  align-items: center;
  min-height: 58px;
  border: 0;
  color: #07100b;
  background: linear-gradient(135deg, #b2f56f, #4fe28b);
  font: inherit;
  text-align: left;
  cursor: pointer;
}

.midas-page4-cards button.bright {
  background: linear-gradient(135deg, #f7d85d, #70eb9a);
}

.midas-page4-cards button.watch {
  background: linear-gradient(135deg, #7ed7ff, #d8f06d);
}

.midas-page4-cards button.quiet {
  background: linear-gradient(135deg, #dad7d0, #a8c9ff);
}

.midas-page4-cards button.active {
  box-shadow: 0 0 0 3px #fff, 0 0 0 6px #42f37d;
  transform: translateX(4px);
}

.midas-page4-cards button > i,
.midas-page4-cards button > span {
  display: inline-grid;
  min-height: 32px;
  place-items: center;
  color: #07100b;
  background: rgba(255, 255, 255, .55);
  font-style: normal;
  font-weight: 1000;
}

.midas-page4-symbol {
  display: block;
  min-width: 0;
  padding: 6px 10px;
  overflow: hidden;
  color: #ffffff;
  background: rgba(8, 34, 19, .22);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(20px, 2.2vw, 30px);
  font-weight: 1000;
  line-height: 1;
  letter-spacing: 0;
  text-align: center;
  text-shadow: 0 2px 3px rgba(0, 0, 0, .35);
  text-overflow: clip;
  white-space: nowrap;
}

.midas-page4-cards em {
  font-style: normal;
  font-weight: 1000;
}

.midas-page4-cards small {
  color: #162419;
  font-size: 12px;
  font-weight: 900;
}

.midas-page4-detail {
  display: grid;
  gap: 12px;
  padding: 12px;
}

.midas-page4-hero-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 124px;
  gap: 12px;
  align-items: center;
  padding: 18px;
  color: #07100b;
  background: linear-gradient(135deg, #5ff38c, #ffdd61 58%, #73d7ff);
}

.midas-page4-hero-card.bright {
  background: linear-gradient(135deg, #ffe36f, #55ec95, #8ed8ff);
}

.midas-page4-hero-card.watch {
  background: linear-gradient(135deg, #8fd7ff, #e9f277);
}

.midas-page4-hero-card.quiet {
  background: linear-gradient(135deg, #d9e2ee, #f3e3a2);
}

.midas-page4-hero-card span,
.midas-page4-metrics span,
.midas-page4-strategy span {
  color: rgba(7, 16, 11, .7);
  font-size: 12px;
  font-weight: 1000;
  letter-spacing: 1.4px;
  text-transform: uppercase;
}

.midas-page4-hero-card strong {
  display: block;
  color: #07100b;
  font-size: 56px;
  line-height: 1;
}

.midas-page4-hero-card p {
  margin: 5px 0 0;
  color: #102114;
  font-size: 18px;
  font-weight: 800;
}

.midas-page4-hero-card aside {
  display: grid;
  place-items: center;
  min-height: 112px;
  color: #fff;
  background: #06130b;
}

.midas-page4-hero-card aside b {
  font-size: 44px;
  line-height: 1;
}

.midas-page4-hero-card aside i {
  color: #ffe889;
  font-size: 12px;
  font-style: normal;
  font-weight: 1000;
  text-transform: uppercase;
}

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

.midas-page4-metrics article,
.midas-page4-strategy > div,
.midas-page4-bottom,
.midas-page4-source {
  border: 1px solid rgba(255, 255, 255, .12);
  background: rgba(4, 10, 8, .76);
}

.midas-page4-metrics article {
  display: grid;
  gap: 5px;
  min-height: 94px;
  padding: 12px;
}

.midas-page4-metrics article span,
.midas-page4-strategy span {
  color: #f3d76c;
}

.midas-page4-metrics b {
  color: #fff;
  font-size: 24px;
}

.midas-page4-metrics i {
  color: #b6c6bd;
  font-size: 12px;
  font-style: normal;
  line-height: 1.25;
}

.midas-page4-chart {
  min-height: 320px;
  padding: 8px;
  border: 1px solid rgba(255, 255, 255, .12);
  background: #030504;
}

.midas-page4-chart .midas-chart {
  height: 360px;
}

.midas-page4-strategy {
  display: grid;
  grid-template-columns: minmax(0, .95fr) minmax(280px, .55fr);
  gap: 10px;
}

.midas-page4-strategy > div {
  padding: 14px;
}

.midas-page4-strategy strong {
  display: block;
  margin-top: 5px;
  color: #65f59b;
  font-size: 25px;
}

.midas-page4-strategy p {
  margin: 8px 0 0;
  color: #eef4ee;
  font-size: 15px;
  line-height: 1.5;
}

.midas-page4-checks {
  display: grid;
  gap: 8px;
}

.midas-page4-checks p {
  display: grid;
  grid-template-columns: 82px 1fr;
  gap: 8px;
  margin: 0;
  padding: 8px;
  border-left: 5px solid #ffcf53;
  background: rgba(255, 255, 255, .06);
}

.midas-page4-checks p.pass {
  border-left-color: #55f188;
}

.midas-page4-checks b {
  color: #fff4c6;
  font-size: 12px;
}

.midas-page4-checks span {
  color: #dfe8df;
  font-size: 12px;
  letter-spacing: 0;
  text-transform: none;
}

.midas-page4-bottom {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 8px;
  padding: 10px;
}

.midas-page4-bottom button {
  min-height: 44px;
  border: 1px solid rgba(255, 232, 137, .45);
  color: #f4dc80;
  background: rgba(0, 0, 0, .35);
  font: inherit;
  font-weight: 900;
}

.midas-page4-bottom button:nth-child(1) {
  color: #5df28a;
}

.midas-page4-source {
  margin: 0;
  padding: 10px 12px;
  color: #d4cab6;
  font-size: 12px;
}

.midas-page4-intel {
  display: grid;
  gap: 10px;
}

.midas-page4-happy-map {
  display: grid;
  grid-template-columns: minmax(0, .8fr) minmax(320px, 1fr);
  gap: 12px;
  padding: 14px;
  border: 1px solid rgba(255, 232, 137, .35);
  background:
    linear-gradient(135deg, rgba(92, 239, 142, .14), rgba(255, 221, 97, .12)),
    rgba(2, 8, 6, .78);
}

.midas-page4-happy-map header span,
.midas-page4-scenarios span,
.midas-page4-risk-map span,
.midas-page4-objects header span,
.midas-page4-lifecycle b {
  color: #f5d86d;
  font-size: 12px;
  font-weight: 1000;
  letter-spacing: 1.2px;
  text-transform: uppercase;
}

.midas-page4-happy-map header strong {
  display: block;
  margin-top: 5px;
  color: #67f69d;
  font-size: 30px;
  line-height: 1.05;
}

.midas-page4-happy-map header p,
.midas-page4-model-note {
  margin: 8px 0 0;
  color: #e9f3ea;
  font-size: 14px;
  line-height: 1.45;
}

.midas-page4-score-bubbles {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 8px;
}

.midas-page4-score-bubbles article {
  display: grid;
  min-height: 104px;
  place-items: center;
  padding: 10px;
  color: #06120a;
  background:
    radial-gradient(circle at 50% 34%, #fff8bf 0 22%, transparent 23%),
    conic-gradient(#58ec8f var(--score), rgba(255, 255, 255, .2) 0),
    linear-gradient(135deg, #54e68e, #ffd95e);
  text-align: center;
}

.midas-page4-score-bubbles b {
  font-size: 30px;
  line-height: 1;
}

.midas-page4-score-bubbles span {
  color: #092312;
  font-size: 11px;
  font-weight: 1000;
  letter-spacing: .8px;
  text-transform: uppercase;
}

.midas-page4-scenarios {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.midas-page4-scenarios article,
.midas-page4-risk-map article,
.midas-page4-objects,
.midas-page4-lifecycle,
.midas-page4-model-note {
  border: 1px solid rgba(255, 255, 255, .12);
  background: rgba(4, 10, 8, .76);
}

.midas-page4-scenarios article {
  min-height: 156px;
  padding: 14px;
  border-top: 7px solid #55f188;
}

.midas-page4-scenarios article.neutral {
  border-top-color: #ffd95e;
}

.midas-page4-scenarios article.bear {
  border-top-color: #ff6d72;
}

.midas-page4-scenarios b {
  display: block;
  margin-top: 5px;
  color: #fff8d3;
  font-size: 19px;
}

.midas-page4-scenarios p,
.midas-page4-scenarios small {
  display: block;
  margin-top: 8px;
  color: #dfe8df;
  font-size: 13px;
  line-height: 1.38;
}

.midas-page4-risk-map {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 8px;
}

.midas-page4-risk-map article {
  display: grid;
  gap: 6px;
  min-height: 82px;
  padding: 11px;
}

.midas-page4-risk-map b {
  color: #fff;
  font-size: 18px;
  line-height: 1.15;
  overflow-wrap: anywhere;
}

.midas-page4-objects {
  display: grid;
  gap: 10px;
  padding: 12px;
}

.midas-page4-objects header {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
}

.midas-page4-objects header b {
  color: #70f79e;
}

.midas-page4-objects > div {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.midas-page4-objects article {
  min-height: 84px;
  padding: 10px;
  border-left: 6px solid #ffd95e;
  background: rgba(255, 255, 255, .06);
}

.midas-page4-objects article.high {
  border-left-color: #55f188;
}

.midas-page4-objects article.low {
  border-left-color: #ff6d72;
}

.midas-page4-objects article b {
  display: block;
  color: #fff4c6;
  font-size: 13px;
  text-transform: capitalize;
}

.midas-page4-objects article span {
  display: inline-block;
  margin-top: 6px;
  padding: 3px 7px;
  color: #06120a;
  background: #f4d975;
  font-size: 12px;
  font-weight: 1000;
}

.midas-page4-objects article p {
  margin: 7px 0 0;
  color: #dfe8df;
  font-size: 12px;
  line-height: 1.3;
}

.midas-page4-lifecycle {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 8px;
  padding: 10px;
}

.midas-page4-lifecycle p {
  display: grid;
  gap: 6px;
  min-height: 78px;
  margin: 0;
  padding: 10px;
  border: 1px solid rgba(255, 217, 94, .45);
  background: rgba(255, 217, 94, .08);
}

.midas-page4-lifecycle p.pass {
  border-color: rgba(85, 241, 136, .55);
  background: rgba(85, 241, 136, .12);
}

.midas-page4-lifecycle span {
  color: #ecf3ec;
  font-size: 12px;
  line-height: 1.3;
}

.midas-page4-model-note {
  padding: 10px 12px;
  border-color: rgba(112, 249, 162, .3);
}

.midas-page5-shell {
  display: grid;
  gap: 18px;
  grid-column: 1 / -1;
  padding: 16px;
  border: 1px solid #dbe6f7;
  background:
    radial-gradient(circle at 0% 0%, rgba(81, 163, 255, .12), transparent 28%),
    radial-gradient(circle at 100% 0%, rgba(56, 189, 248, .14), transparent 24%),
    radial-gradient(circle at 100% 100%, rgba(245, 158, 11, .08), transparent 30%),
    linear-gradient(180deg, #ffffff, #f5f7fc 42%, #eef4ff);
  color: #121417;
}

.midas-page5-top {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 240px;
  gap: 14px;
  align-items: stretch;
}

.midas-page5-top > div,
.midas-page5-top aside,
.midas-page5-outlook,
.midas-page5-forecast,
.midas-page5-related,
.midas-page5-news {
  border: 1px solid #d9e2f2;
  background: #fff;
  box-shadow: 0 12px 30px rgba(17, 24, 39, .06);
}

.midas-page5-top > div {
  padding: 18px 20px;
  border-top: 4px solid #3b82f6;
}

.midas-page5-top span,
.midas-page5-outlook h3,
.midas-page5-forecast h3,
.midas-page5-related h3,
.midas-page5-news h3 {
  color: #111827;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 2px;
  text-transform: uppercase;
}

.midas-page5-top strong {
  display: block;
  margin-top: 6px;
  color: #0f172a;
  font-size: 32px;
  line-height: 1.05;
}

.midas-page5-top p {
  max-width: 900px;
  margin: 10px 0 0;
  color: #505965;
  font-size: 15px;
  line-height: 1.5;
}

.midas-page5-top aside {
  display: grid;
  place-items: center;
  gap: 4px;
  padding: 16px;
  text-align: center;
  background: linear-gradient(135deg, #e6f7ff, #f8f1ff 55%, #fef3c7);
  border-top: 4px solid #22c55e;
}

.midas-page5-top aside b {
  color: #0f172a;
  font-size: 42px;
  line-height: 1;
}

.midas-page5-top aside i {
  color: #64748b;
  font-size: 12px;
  font-style: normal;
  font-weight: 900;
  text-transform: uppercase;
}

.midas-page5-hero {
  display: grid;
  grid-template-columns: minmax(0, .98fr) minmax(420px, 1fr);
  gap: 14px;
}

.midas-page5-outlook,
.midas-page5-forecast {
  border-radius: 22px;
  padding: 18px;
}

.midas-page5-outlook {
  border-top: 4px solid #10b981;
}

.midas-page5-forecast {
  border-top: 4px solid #f59e0b;
}

.midas-page5-outlook p,
.midas-page5-forecast p,
.midas-page5-footnote,
.midas-page5-related small,
.midas-page5-news span {
  color: #6b7280;
  font-size: 14px;
  line-height: 1.5;
}

.midas-page5-outlook-grid {
  display: grid;
  grid-template-columns: minmax(220px, 260px) minmax(0, 1fr);
  gap: 12px;
  margin-top: 14px;
  align-items: center;
}

.midas-page5-donut-card {
  display: grid;
  justify-items: center;
  gap: 6px;
  padding: 12px;
  border-radius: 22px;
  background: linear-gradient(180deg, #eefbf4, #f3f8ff);
}

.midas-page5-donut-card svg {
  width: 180px;
  height: 180px;
}

.midas-page5-donut-card .ring {
  fill: none;
  stroke-width: 16;
  transform: rotate(-90deg);
  transform-origin: 90px 90px;
}

.midas-page5-donut-card .ring.base {
  stroke: #e5e7eb;
}

.midas-page5-donut-card .ring.buy {
  stroke: #0f8b2f;
}

.midas-page5-donut-card .ring.hold {
  stroke: #f5bc14;
}

.midas-page5-donut-card .ring.sell {
  stroke: #d12b2b;
}

.midas-page5-donut-card text {
  fill: #0f172a;
  font-size: 18px;
  font-weight: 900;
}

.midas-page5-donut-card strong {
  color: #0f172a;
  font-size: 20px;
}

.midas-page5-donut-card span {
  color: #65748b;
  font-size: 13px;
}

.midas-page5-rating-legend {
  display: grid;
  gap: 10px;
  padding: 10px 12px;
}

.midas-page5-rating-legend div {
  display: grid;
  grid-template-columns: 14px 1fr auto;
  gap: 8px;
  align-items: center;
  color: #334155;
  font-size: 15px;
  font-weight: 700;
}

.midas-page5-rating-legend i {
  width: 12px;
  height: 12px;
  border-radius: 3px;
}

.midas-page5-rating-legend i.buy {
  background: #0f8b2f;
}

.midas-page5-rating-legend i.hold {
  background: #f5bc14;
}

.midas-page5-rating-legend i.sell {
  background: #d12b2b;
}

.midas-page5-rating-legend b {
  color: #0f172a;
}

.midas-page5-forecast-bars {
  display: grid;
  gap: 14px;
  margin-top: 16px;
}

.midas-page5-forecast-bars > div {
  display: grid;
  grid-template-columns: 92px 1fr;
  gap: 12px;
  align-items: center;
}

.midas-page5-forecast-bars > div > span {
  color: #475569;
  font-size: 15px;
  font-weight: 700;
}

.midas-page5-forecast-bars .bar {
  position: relative;
  display: grid;
  align-items: center;
  min-height: 42px;
  padding: 0 14px;
  border-radius: 12px;
  background: linear-gradient(90deg, #e8eef7, #d9e2ef);
  overflow: hidden;
}

.midas-page5-forecast-bars .bar i {
  position: absolute;
  inset: 0 auto 0 0;
  display: block;
  background: linear-gradient(90deg, #16a34a, #38bdf8);
}

.midas-page5-forecast-bars .bar b {
  position: relative;
  color: #fff;
  font-size: 15px;
  font-weight: 900;
  text-align: right;
  z-index: 1;
  text-shadow: 0 1px 2px rgba(0, 0, 0, .18);
}

.midas-page5-current {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-top: 14px;
  padding: 12px 14px;
  border-radius: 14px;
  background: linear-gradient(90deg, #eff6ff, #ecfeff);
}

.midas-page5-current span {
  color: #6b7280;
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
}

.midas-page5-current b {
  color: #0f172a;
  font-size: 24px;
}

.midas-page5-related-wrap {
  display: grid;
}

.midas-page5-related,
.midas-page5-news {
  padding: 18px;
  border-radius: 22px;
}

.midas-page5-related h3,
.midas-page5-news h3 {
  margin: 0;
}

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

.midas-page5-related-card {
  display: grid;
  gap: 6px;
  min-height: 206px;
  padding: 14px;
  border: 1px solid #e5e7ef;
  border-radius: 18px;
  background: linear-gradient(180deg, #fff, #f8fbff);
  color: #0f172a;
  font: inherit;
  text-align: left;
  cursor: pointer;
}

.midas-page5-related-card:nth-child(1) { box-shadow: inset 0 3px 0 #22c55e; }
.midas-page5-related-card:nth-child(2) { box-shadow: inset 0 3px 0 #38bdf8; }
.midas-page5-related-card:nth-child(3) { box-shadow: inset 0 3px 0 #f59e0b; }
.midas-page5-related-card:nth-child(4) { box-shadow: inset 0 3px 0 #a855f7; }

.midas-page5-related-card .midas-ticker-badge {
  align-self: start;
}

.midas-page5-related-card strong {
  font-size: 18px;
  line-height: 1.15;
}

.midas-page5-related-card i {
  color: #111827;
  font-style: normal;
  font-size: 18px;
  font-weight: 900;
}

.midas-page5-related-card b {
  font-size: 16px;
}

.midas-page5-related-card b.up {
  color: #0f8b2f;
}

.midas-page5-related-card b.down {
  color: #d12b2b;
}

.midas-page5-related-card small {
  margin-top: 4px;
  color: #6b7280;
  font-size: 13px;
  line-height: 1.35;
}

.midas-mini-spark {
  width: 100%;
  height: 64px;
  margin-top: auto;
}

.midas-mini-spark path {
  fill: none;
  stroke-width: 3.2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.midas-mini-spark.up path {
  stroke: #1d8a31;
}

.midas-mini-spark.down path {
  stroke: #d12b2b;
}

.midas-page5-news {
  display: grid;
  gap: 6px;
}

.midas-page5-news-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 10px;
}

.midas-page5-news-item {
  display: grid;
  gap: 8px;
  padding: 14px;
  border: 1px solid #e4e8f0;
  border-radius: 16px;
  color: #0f172a;
  background: linear-gradient(180deg, #fff, #f8fbff);
  text-decoration: none;
}

.midas-page5-news-item:hover {
  box-shadow: 0 12px 28px rgba(15, 23, 42, .08);
}

.midas-page5-news-item strong {
  color: #0f172a;
  font-size: 18px;
  line-height: 1.35;
}

.midas-page5-footnote {
  margin: 0;
  padding: 0 2px;
}

.midas-page6-shell {
  display: grid;
  gap: 14px;
  grid-column: 1 / -1;
  padding: 14px;
  color: #e9f7df;
  background:
    radial-gradient(circle at 12% 0%, rgba(87, 255, 74, .14), transparent 28%),
    radial-gradient(circle at 88% 10%, rgba(232, 189, 74, .12), transparent 32%),
    linear-gradient(180deg, #050805, #081006 42%, #030503);
}

.midas-page6-hero,
.midas-page6-workflow,
.midas-page6-main,
.midas-page6-two,
.midas-page6-hypo-grid,
.midas-page6-risk-grid,
.midas-page6-timeframes,
.midas-page6-tool-grid,
.midas-page6-validation-grid {
  display: grid;
  gap: 12px;
}

.midas-page6-hero {
  grid-template-columns: minmax(0, 1fr) 340px;
  align-items: stretch;
}

.midas-page6-hero > div,
.midas-page6-hero aside,
.midas-page6-workflow,
.midas-page6-hypothesis,
.midas-page6-objects,
.midas-page6-scenarios,
.midas-page6-score,
.midas-page6-alignment,
.midas-page6-risk,
.midas-page6-tools,
.midas-page6-validation {
  border: 1px solid rgba(130, 255, 90, .24);
  background: linear-gradient(180deg, rgba(16, 28, 15, .96), rgba(5, 9, 5, .98));
  box-shadow: inset 0 1px 0 rgba(255, 230, 122, .13), 0 18px 44px rgba(0, 0, 0, .24);
}

.midas-page6-hero > div {
  padding: 18px 20px;
  border-left: 4px solid #69e94d;
}

.midas-page6-hero span,
.midas-page6-score .midas-panel-title span,
.midas-page6-tools h3,
.midas-page6-validation h3 {
  color: #f1d86b;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 1.6px;
  text-transform: uppercase;
}

.midas-page6-hero strong {
  display: block;
  margin-top: 6px;
  color: #f7ffe9;
  font-size: 34px;
  line-height: 1.05;
}

.midas-page6-hero p,
.midas-page6-hero small,
.midas-page6-hypo-grid i,
.midas-page6-scenarios p,
.midas-page6-scenarios small,
.midas-page6-risk p,
.midas-page6-tools p,
.midas-page6-validation p,
.midas-page6-alignment li,
.midas-page6-alignment p,
.midas-page6-alignment small {
  color: #b9cbb0;
  line-height: 1.45;
}

.midas-page6-hero aside {
  display: grid;
  place-items: center;
  gap: 8px;
  padding: 18px;
  text-align: center;
  background: radial-gradient(circle at 50% 0%, rgba(111, 255, 74, .28), transparent 42%), #091209;
}

.midas-page6-hero aside b {
  color: #f2d36b;
  font-size: 34px;
}

.midas-page6-hero aside i {
  color: #99b98e;
  font-size: 12px;
  font-style: normal;
}

.midas-page6-workflow {
  grid-template-columns: repeat(7, minmax(0, 1fr));
  padding: 10px;
}

.midas-page6-workflow span {
  padding: 10px;
  border: 1px solid rgba(105, 233, 77, .28);
  background: rgba(105, 233, 77, .08);
  color: #eaf8dd;
  font-size: 12px;
  font-weight: 900;
  text-align: center;
}

.midas-page6-main {
  grid-template-columns: minmax(560px, 1.15fr) minmax(420px, .85fr);
}

.midas-page6-chart .midas-pnf-wrap {
  min-height: 620px;
}

.midas-page6-chart .midas-pnf-chart.advanced {
  height: 600px;
  min-height: 600px;
}

.midas-page6-chart-stack {
  display: grid;
  gap: 10px;
}

.midas-page6-chart-toolbar {
  display: grid;
  grid-template-columns: minmax(220px, .35fr) minmax(0, 1fr);
  gap: 12px;
  align-items: start;
  padding: 10px;
  border: 1px solid rgba(241, 216, 107, .18);
  background: rgba(0, 0, 0, .28);
}

.midas-page6-chart-toolbar b {
  display: block;
  color: #f6f0c6;
  font-size: 24px;
}

.midas-page6-chart-toolbar div:first-child span {
  display: block;
  color: #a7bba1;
  font-size: 12px;
}

.midas-page6-chart-toolbar div:last-child {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.midas-page6-chart-toolbar div:last-child span,
.midas-page6-active-layers span {
  padding: 5px 8px;
  border: 1px solid rgba(105, 233, 77, .34);
  color: #dfffd7;
  background: rgba(105, 233, 77, .12);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: .5px;
  text-transform: uppercase;
}

.midas-page6-evidence-chart {
  display: block;
  width: 100%;
  min-height: 620px;
  border: 1px solid rgba(241, 216, 107, .22);
  background: #f2f5fb;
}

.midas-page6-evidence-chart .chart-bg {
  fill: #f3f6fb;
}

.midas-page6-evidence-chart .grid,
.midas-page6-evidence-chart .pane-line,
.midas-page6-evidence-chart .rsi-mid {
  stroke: rgba(55, 65, 81, .2);
  stroke-width: 1;
}

.midas-page6-evidence-chart .demand-zone {
  fill: rgba(56, 189, 248, .14);
  stroke: rgba(56, 189, 248, .45);
  stroke-width: 1.5;
}

.midas-page6-evidence-chart g line {
  stroke: #2f855a;
  stroke-width: 1.7;
}

.midas-page6-evidence-chart g rect {
  fill: rgba(47, 133, 90, .28);
  stroke: #2f855a;
  stroke-width: 1.6;
}

.midas-page6-evidence-chart g.down line,
.midas-page6-evidence-chart g.down rect {
  stroke: #e11d48;
}

.midas-page6-evidence-chart g.down rect {
  fill: rgba(225, 29, 72, .32);
}

.midas-page6-evidence-chart path {
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.midas-page6-evidence-chart .ema9 {
  stroke: #ff7a1a;
  stroke-width: 4;
}

.midas-page6-evidence-chart .sma20 {
  stroke: #6a9d4a;
  stroke-width: 4;
}

.midas-page6-evidence-chart .sma50 {
  stroke: #2563eb;
  stroke-width: 4;
}

.midas-page6-evidence-chart .sma200 {
  stroke: #d05252;
  stroke-width: 4;
}

.midas-page6-evidence-chart .vwap {
  stroke: #8b5cf6;
  stroke-width: 3;
  stroke-dasharray: 8 7;
}

.midas-page6-evidence-chart .support-line,
.midas-page6-evidence-chart .target-line {
  stroke: #16a34a;
  stroke-width: 2.5;
}

.midas-page6-evidence-chart .resistance-line,
.midas-page6-evidence-chart .stop-line {
  stroke: #dc2626;
  stroke-width: 2.5;
}

.midas-page6-evidence-chart .fib-line {
  stroke: #c9a227;
  stroke-width: 1.3;
  stroke-dasharray: 7 7;
}

.midas-page6-evidence-chart .trend-channel {
  stroke: #1f9d55;
  stroke-width: 2.2;
  stroke-dasharray: 11 8;
}

.midas-page6-evidence-chart .trend-channel.upper {
  stroke: #be123c;
}

.midas-page6-evidence-chart .volume {
  opacity: .42;
}

.midas-page6-evidence-chart .volume.up,
.midas-page6-evidence-chart .macd.up {
  fill: #5fa163;
}

.midas-page6-evidence-chart .volume.down,
.midas-page6-evidence-chart .macd.down {
  fill: #d76d6d;
}

.midas-page6-evidence-chart .rsi {
  stroke: #111827;
  stroke-width: 3;
}

.midas-page6-evidence-chart .macd-line {
  stroke: #111827;
  stroke-width: 3;
}

.midas-page6-evidence-chart .event-marker {
  fill: #7c3aed;
  opacity: .85;
}

.midas-page6-evidence-chart .event-label,
.midas-page6-evidence-chart .title,
.midas-page6-evidence-chart .sub,
.midas-page6-evidence-chart .axis,
.midas-page6-evidence-chart .pane-label,
.midas-page6-evidence-chart .support-line-label,
.midas-page6-evidence-chart .resistance-line-label,
.midas-page6-evidence-chart .stop-line-label,
.midas-page6-evidence-chart .target-line-label,
.midas-page6-evidence-chart .fib-line-label {
  fill: #111827;
  font-weight: 900;
}

.midas-page6-evidence-chart .event-label {
  fill: #ffffff;
  font-size: 14px;
  text-anchor: middle;
}

.midas-page6-evidence-chart .title {
  font-size: 24px;
}

.midas-page6-evidence-chart .sub,
.midas-page6-evidence-chart .pane-label,
.midas-page6-evidence-chart .axis,
.midas-page6-evidence-chart .support-line-label,
.midas-page6-evidence-chart .resistance-line-label,
.midas-page6-evidence-chart .stop-line-label,
.midas-page6-evidence-chart .target-line-label,
.midas-page6-evidence-chart .fib-line-label {
  font-size: 13px;
}

.midas-page6-chart-readout {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
}

.midas-page6-chart-readout span {
  padding: 10px;
  border: 1px solid rgba(241, 216, 107, .22);
  color: #f6f0c6;
  background: rgba(0, 0, 0, .28);
}

.midas-page6-chart-readout b {
  display: block;
  color: #79e85b;
  font-size: 11px;
  letter-spacing: .8px;
  text-transform: uppercase;
}

.midas-page6-two {
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
}

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

.midas-page6-hypo-grid article,
.midas-page6-risk-grid article,
.midas-page6-timeframes article,
.midas-page6-scenarios article,
.midas-page6-validation article {
  padding: 13px;
  border: 1px solid rgba(241, 216, 107, .22);
  background: rgba(0, 0, 0, .28);
}

.midas-page6-hypo-grid span,
.midas-page6-risk-grid span,
.midas-page6-timeframes b,
.midas-page6-scenarios span {
  display: block;
  color: #79e85b;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.midas-page6-hypo-grid b,
.midas-page6-risk-grid b,
.midas-page6-timeframes span,
.midas-page6-scenarios b {
  display: block;
  margin-top: 4px;
  color: #f6f0c6;
  font-size: 18px;
}

.midas-page6-objects {
  overflow-x: auto;
}

.midas-page6-objects .midas-table {
  min-width: 1280px;
}

.midas-page6-pill {
  display: inline-grid;
  place-items: center;
  min-width: 42px;
  padding: 4px 8px;
  color: #061006;
}

.midas-page6-pill.high {
  background: #65e84d;
}

.midas-page6-pill.medium {
  background: #f1d86b;
}

.midas-page6-pill.low {
  background: #ff6b6b;
}

.midas-page6-scenarios > div {
  display: grid;
  gap: 10px;
}

.midas-page6-scenarios article.bullish {
  border-left: 5px solid #65e84d;
}

.midas-page6-scenarios article.bearish {
  border-left: 5px solid #ff5555;
}

.midas-page6-scenarios article.neutral {
  border-left: 5px solid #f1d86b;
}

.midas-page6-score p {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 70px;
  gap: 12px;
  align-items: center;
  margin: 10px 0;
  padding-bottom: 10px;
  color: #eaf8dd;
  border-bottom: 1px solid rgba(255, 255, 255, .08);
}

.midas-page6-score p i {
  position: absolute;
  left: 0;
  right: auto;
  bottom: 0;
  width: var(--score);
  height: 3px;
  background: linear-gradient(90deg, #ff6b6b, #f1d86b, #65e84d);
}

.midas-page6-score p span {
  color: #f1d86b;
  font-weight: 900;
  text-align: right;
}

.midas-page6-penalties {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

.midas-page6-penalties b,
.midas-page6-penalties span {
  padding: 6px 9px;
  border: 1px solid rgba(255, 107, 107, .35);
  color: #ffd6d6;
  background: rgba(255, 85, 85, .12);
}

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

.midas-page6-risk-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-bottom: 12px;
}

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

.midas-page6-tool-grid > div {
  display: grid;
  gap: 8px;
  align-content: start;
}

.midas-page6-tool-grid article,
.midas-page6-tool-grid label {
  display: grid;
  gap: 6px;
  padding: 9px 10px;
  border: 1px solid rgba(105, 233, 77, .22);
  color: #eaf8dd;
  background: rgba(105, 233, 77, .07);
  font: inherit;
  font-weight: 800;
}

.midas-page6-tool-grid article {
  grid-template-columns: minmax(150px, .28fr) 70px minmax(0, 1fr);
  align-items: center;
}

.midas-page6-tool-grid article b {
  color: #f6f0c6;
}

.midas-page6-tool-grid article span {
  color: #f1d86b;
  font-size: 11px;
  text-transform: uppercase;
}

.midas-page6-tool-grid article p {
  margin: 0;
  color: #b9cbb0;
  font-weight: 700;
}

.midas-page6-active-layers {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  align-content: start;
}

.midas-page6-validation-grid {
  grid-template-columns: .8fr 1.2fr;
}

.midas-page6-validation article {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-content: start;
}

.midas-page6-validation article span,
.midas-page6-validation article p {
  margin: 0;
  padding: 7px 9px;
  border: 1px solid rgba(241, 216, 107, .22);
  color: #eaf8dd;
  background: rgba(241, 216, 107, .08);
}

.midas-page6-validation article p b {
  margin-right: 6px;
  color: #65e84d;
}

.midas-page7-shell {
  display: grid;
  gap: 16px;
  grid-column: 1 / -1;
  padding: 16px;
  color: #f7ffe9;
  background:
    radial-gradient(circle at 8% 4%, rgba(95, 232, 99, .22), transparent 28%),
    radial-gradient(circle at 82% 0%, rgba(56, 189, 248, .18), transparent 30%),
    radial-gradient(circle at 65% 78%, rgba(250, 204, 21, .12), transparent 34%),
    linear-gradient(135deg, #04120c, #061622 52%, #0a1007);
}

.midas-page7-hero,
.midas-page7-board,
.midas-page7-detail {
  border: 1px solid rgba(186, 255, 120, .28);
  background: rgba(3, 11, 9, .78);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .08), 0 18px 44px rgba(0, 0, 0, .24);
}

.midas-page7-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 16px;
  align-items: center;
  padding: 18px;
}

.midas-page7-hero > div span,
.midas-page7-board .midas-panel-title span,
.midas-page7-detail h3 {
  color: #ffdf72;
  font-size: 12px;
  font-weight: 950;
  letter-spacing: 1.6px;
  text-transform: uppercase;
}

.midas-page7-hero strong {
  display: block;
  margin-top: 6px;
  color: #ffffff;
  font-size: 42px;
  line-height: 1;
  text-shadow: 0 0 24px rgba(104, 255, 117, .24);
}

.midas-page7-hero p,
.midas-page7-hero small,
.midas-page7-detail p,
.midas-page7-card small,
.midas-page7-card i,
.midas-page7-card em {
  color: #cce4c5;
  line-height: 1.4;
}

.midas-page7-hero aside {
  display: grid;
  grid-template-columns: 116px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  padding: 12px;
  border: 1px solid rgba(103, 232, 249, .28);
  background: linear-gradient(135deg, rgba(8, 47, 73, .78), rgba(6, 78, 59, .58));
}

.midas-page7-hero aside p {
  margin: 0;
  color: #dfffd7;
  font-size: 18px;
  font-weight: 900;
}

.midas-page7-hero aside b {
  color: #80ff72;
  font-size: 28px;
}

.midas-page7-gauge {
  width: 112px;
  height: 112px;
  transform: rotate(-90deg);
}

.midas-page7-gauge circle {
  fill: none;
  stroke-width: 12;
}

.midas-page7-gauge .track {
  stroke: rgba(255, 255, 255, .14);
}

.midas-page7-gauge .meter {
  stroke: url("#midasFuelGradient");
  stroke: #6dff4f;
  stroke-linecap: round;
}

.midas-page7-gauge text {
  fill: #fff7d1;
  font-size: 24px;
  font-weight: 950;
  text-anchor: middle;
  transform: rotate(90deg);
  transform-origin: 60px 60px;
}

.midas-page7-gauge .label {
  fill: #b9ffc8;
  font-size: 11px;
  letter-spacing: .8px;
  text-transform: uppercase;
}

.midas-page7-detail {
  padding: 0;
  overflow: hidden;
}

.midas-page7-detail-grid {
  display: grid;
  grid-template-columns: 260px 330px minmax(340px, 1fr) minmax(340px, 1fr);
  gap: 12px;
  padding: 14px;
}

.midas-page7-detail-grid article,
.midas-page7-card {
  border: 1px solid rgba(255, 255, 255, .14);
  background: linear-gradient(180deg, rgba(255, 255, 255, .08), rgba(255, 255, 255, .03));
}

.midas-page7-score-hero {
  display: grid;
  align-content: center;
  gap: 8px;
  padding: 18px;
  min-height: 226px;
}

.midas-page7-score-hero.prime {
  background: linear-gradient(135deg, #046c4e, #22c55e);
}

.midas-page7-score-hero.build {
  background: linear-gradient(135deg, #0e7490, #67e8f9);
  color: #031018;
}

.midas-page7-score-hero.watch {
  background: linear-gradient(135deg, #a16207, #fde047);
  color: #151004;
}

.midas-page7-score-hero.risk {
  background: linear-gradient(135deg, #991b1b, #fb7185);
}

.midas-page7-score-hero span {
  font-size: 13px;
  font-weight: 950;
  letter-spacing: 1.2px;
  text-transform: uppercase;
}

.midas-page7-score-hero strong {
  color: inherit;
  font-size: 76px;
  line-height: .88;
}

.midas-page7-score-hero p,
.midas-page7-score-hero b {
  margin: 0;
  color: inherit;
}

.midas-page7-radar {
  display: block;
  width: 100%;
  height: 230px;
}

.midas-page7-radar circle,
.midas-page7-radar line {
  fill: none;
  stroke: rgba(255, 255, 255, .15);
  stroke-width: 1;
}

.midas-page7-radar polygon {
  fill: rgba(103, 232, 249, .28);
  stroke: #7cff6b;
  stroke-width: 3;
}

.midas-page7-radar text {
  fill: #f7ffe9;
  font-size: 12px;
  font-weight: 900;
  text-anchor: middle;
}

.midas-page7-bars {
  display: grid;
  gap: 9px;
}

.midas-page7-bars p {
  position: relative;
  display: grid;
  grid-template-columns: minmax(120px, 1fr) 42px 72px;
  gap: 8px;
  align-items: center;
  margin: 0;
  padding: 9px;
  border: 1px solid rgba(255, 255, 255, .12);
  background: rgba(0, 0, 0, .24);
}

.midas-page7-bars p i {
  position: absolute;
  left: 9px;
  right: auto;
  bottom: 4px;
  width: var(--fuel);
  height: 4px;
  background: linear-gradient(90deg, #fb7185, #fde047, #4ade80);
}

.midas-page7-bars p span {
  color: #eaffdf;
  font-weight: 900;
}

.midas-page7-bars p b {
  color: #ffdf72;
  text-align: right;
}

.midas-page7-bars p em {
  color: #9ccbb5;
  font-size: 11px;
  font-style: normal;
  text-align: right;
}

.midas-page7-detail-charts {
  grid-column: span 2;
}

.midas-page7-detail-charts > div {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.midas-page7-spark {
  display: block;
  width: 100%;
  height: 92px;
  border-radius: 6px;
  background:
    linear-gradient(rgba(255, 255, 255, .08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .08) 1px, transparent 1px),
    rgba(0, 0, 0, .24);
  background-size: 100% 24px, 45px 100%, auto;
}

.midas-page7-spark .area {
  fill: rgba(103, 232, 249, .17);
  stroke: none;
}

.midas-page7-spark .line {
  fill: none;
  stroke: #67e8f9;
  stroke-width: 4;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.midas-page7-spark.volume .line {
  stroke: #facc15;
}

.midas-page7-spark.quality .line {
  stroke: #a78bfa;
}

.midas-page7-spark.risk .line {
  stroke: #4ade80;
}

.midas-page7-spark.catalyst .line {
  stroke: #fb7185;
}

.midas-page7-spark text {
  fill: #fff7d1;
  font-size: 12px;
  font-weight: 950;
}

.midas-page7-proof,
.midas-page7-trade-box {
  display: grid;
  gap: 8px;
  align-content: start;
  padding: 14px;
}

.midas-page7-proof p,
.midas-page7-trade-box p {
  margin: 0;
  padding: 8px 10px;
  border: 1px solid rgba(74, 222, 128, .24);
  background: rgba(34, 197, 94, .11);
  font-weight: 850;
}

.midas-page7-proof.warn p {
  border-color: rgba(251, 113, 133, .32);
  background: rgba(251, 113, 133, .12);
}

.midas-page7-trade-box p {
  display: grid;
  grid-template-columns: 92px minmax(0, 1fr);
}

.midas-page7-trade-box b {
  color: #ffdf72;
}

.midas-page7-board {
  padding: 0;
  overflow: hidden;
}

.midas-page7-card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 12px;
  padding: 14px;
}

.midas-page7-card {
  position: relative;
  display: grid;
  grid-template-columns: 52px 1fr 72px;
  gap: 8px 12px;
  align-items: center;
  min-height: 260px;
  padding: 16px;
  color: #ffffff;
  text-align: left;
  cursor: pointer;
}

.midas-page7-card.prime {
  background: linear-gradient(135deg, rgba(34, 197, 94, .32), rgba(6, 95, 70, .46));
}

.midas-page7-card.build {
  background: linear-gradient(135deg, rgba(14, 165, 233, .3), rgba(22, 78, 99, .44));
}

.midas-page7-card.watch {
  background: linear-gradient(135deg, rgba(250, 204, 21, .25), rgba(113, 63, 18, .34));
}

.midas-page7-card.risk {
  background: linear-gradient(135deg, rgba(248, 113, 113, .25), rgba(69, 10, 10, .36));
}

.midas-page7-card.active {
  outline: 4px solid #fff7a8;
  box-shadow: 0 0 0 8px rgba(250, 204, 21, .18), 0 0 34px rgba(103, 232, 249, .2);
}

.midas-page7-rank,
.midas-page7-card > b {
  display: grid;
  place-items: center;
  min-height: 48px;
  border: 1px solid rgba(255, 255, 255, .18);
  background: rgba(255, 255, 255, .16);
  color: #ffffff;
  font-size: 22px;
  font-weight: 950;
}

.midas-page7-card strong {
  align-self: end;
  min-width: 0;
  color: #ffffff;
  font-size: clamp(28px, 4vw, 46px);
  line-height: .95;
  overflow-wrap: anywhere;
  text-shadow: 0 2px 12px rgba(0, 0, 0, .34);
}

.midas-page7-card small {
  grid-column: 2 / 4;
  min-height: 38px;
  font-size: 14px;
}

.midas-page7-card i {
  grid-column: 1 / 3;
  font-style: normal;
  font-weight: 950;
  letter-spacing: .8px;
  text-transform: uppercase;
}

.midas-page7-card em {
  justify-self: end;
  font-style: normal;
  font-weight: 950;
}

.midas-page7-card em.up {
  color: #99ff87;
}

.midas-page7-card em.down {
  color: #ff9aa5;
}

.midas-page7-mini-grid {
  display: grid;
  grid-column: 1 / 4;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.midas-page8-shell {
  display: grid;
  gap: 14px;
  grid-column: 1 / -1;
  padding: 14px;
  color: #f8fbff;
  background:
    radial-gradient(circle at 10% 0%, rgba(56, 189, 248, .22), transparent 28%),
    radial-gradient(circle at 80% 8%, rgba(34, 197, 94, .18), transparent 30%),
    linear-gradient(135deg, #05111e, #061310 56%, #090b10);
}

.midas-page8-hero,
.midas-page8-detail,
.midas-page8-table-wrap {
  border: 1px solid rgba(125, 211, 252, .28);
  background: rgba(2, 8, 18, .76);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .08), 0 18px 40px rgba(0, 0, 0, .24);
}

.midas-page8-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 330px;
  gap: 16px;
  align-items: center;
  padding: 18px;
}

.midas-page8-hero span,
.midas-page8-detail > div span,
.midas-page8-detail-chart + .midas-page8-tags,
.midas-page8-table-wrap .midas-panel-title span {
  color: #7dd3fc;
  font-size: 12px;
  font-weight: 950;
  letter-spacing: 1.5px;
  text-transform: uppercase;
}

.midas-page8-hero strong {
  display: block;
  margin-top: 6px;
  color: #ffffff;
  font-size: 42px;
  line-height: 1;
}

.midas-page8-hero p,
.midas-page8-hero small,
.midas-page8-detail p {
  color: #c7d2fe;
  line-height: 1.45;
}

.midas-page8-hero aside {
  display: grid;
  gap: 6px;
  padding: 16px;
  border: 1px solid rgba(74, 222, 128, .28);
  background: linear-gradient(135deg, rgba(20, 83, 45, .72), rgba(8, 47, 73, .72));
}

.midas-page8-hero aside b {
  color: #86efac;
  font-size: 56px;
  line-height: .9;
}

.midas-page8-hero aside span {
  color: #ecfeff;
  font-size: 17px;
}

.midas-page8-hero aside i {
  color: #bae6fd;
  font-style: normal;
}

.midas-page8-wheel {
  display: grid;
  grid-template-columns: 150px repeat(4, minmax(110px, 1fr));
  gap: 10px;
  align-items: center;
  padding: 12px;
  border: 1px solid rgba(250, 204, 21, .34);
  background:
    radial-gradient(circle at 8% 50%, rgba(250, 204, 21, .16), transparent 30%),
    linear-gradient(135deg, rgba(9, 22, 36, .92), rgba(7, 39, 24, .92));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .08);
}

.midas-page8-wheel > span {
  color: #fde68a;
  font-size: 12px;
  font-weight: 950;
  letter-spacing: 1.7px;
  text-transform: uppercase;
}

.midas-page8-wheel button {
  display: flex;
  min-width: 0;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 58px;
  border: 2px solid rgba(134, 239, 172, .36);
  border-radius: 999px;
  color: #f8fbff;
  background: linear-gradient(135deg, rgba(20, 184, 166, .20), rgba(34, 197, 94, .16));
  box-shadow: inset 0 0 18px rgba(134, 239, 172, .08), 0 10px 24px rgba(0, 0, 0, .22);
  cursor: pointer;
}

.midas-page8-wheel button:hover,
.midas-page8-wheel button.active {
  border-color: #86efac;
  background: linear-gradient(135deg, rgba(34, 197, 94, .44), rgba(14, 165, 233, .24));
  box-shadow: 0 0 0 3px rgba(134, 239, 172, .12), 0 0 24px rgba(74, 222, 128, .24);
}

.midas-page8-wheel button i {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  flex: 0 0 auto;
  border-radius: 50%;
  color: #04130a;
  font-style: normal;
  font-weight: 950;
  background: radial-gradient(circle at 35% 30%, #ecfccb, #4ade80 46%, #14532d 78%);
  box-shadow: 0 0 18px rgba(74, 222, 128, .48);
}

.midas-page8-wheel button b {
  overflow: hidden;
  color: #ffffff;
  font-size: 22px;
  font-weight: 1000;
  letter-spacing: .8px;
  text-overflow: ellipsis;
}

.midas-page8-detail {
  display: grid;
  grid-template-columns: 260px repeat(3, minmax(150px, 1fr));
  gap: 12px;
  padding: 14px;
}

.midas-page8-detail > div:first-child,
.midas-page8-detail article,
.midas-page8-detail-chart,
.midas-page8-tags,
.midas-page8-plan {
  border: 1px solid rgba(255, 255, 255, .14);
  background: rgba(255, 255, 255, .06);
}

.midas-page8-detail > div:first-child {
  display: grid;
  align-content: center;
  padding: 16px;
  background: linear-gradient(135deg, rgba(37, 99, 235, .32), rgba(20, 184, 166, .22));
}

.midas-page8-detail strong {
  color: #ffffff;
  font-size: 54px;
  line-height: .95;
}

.midas-page8-detail article {
  display: grid;
  align-content: center;
  padding: 14px;
}

.midas-page8-detail article b {
  color: #86efac;
  font-size: 32px;
}

.midas-page8-detail article i {
  color: #c7d2fe;
  font-style: normal;
  font-weight: 850;
}

.midas-page8-detail-chart {
  grid-column: span 2;
  min-height: 150px;
  padding: 12px;
}

.midas-page8-detail-chart .midas-page8-spark {
  height: 130px;
}

.midas-page8-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-content: start;
  padding: 14px;
}

.midas-page8-tags span,
.midas-page8-table em {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 4px 8px;
  border: 1px solid rgba(125, 211, 252, .32);
  background: rgba(14, 165, 233, .14);
  color: #e0f2fe;
  font-size: 11px;
  font-style: normal;
  font-weight: 950;
  letter-spacing: .4px;
  text-transform: uppercase;
}

.midas-page8-plan {
  display: grid;
  gap: 8px;
  grid-column: span 2;
  padding: 14px;
}

.midas-page8-plan p {
  display: grid;
  grid-template-columns: 90px minmax(0, 1fr);
  gap: 10px;
  margin: 0;
  padding: 8px 10px;
  background: rgba(0, 0, 0, .18);
}

.midas-page8-plan b {
  color: #7dd3fc;
}

.midas-page8-plan a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  padding: 8px 12px;
  color: #03120a;
  background: linear-gradient(135deg, #89ff8e, #f7dc6f);
  font-weight: 1000;
  text-decoration: none;
}

.midas-page8-plan a:hover {
  filter: brightness(1.08);
}

.midas-page8-table-wrap {
  overflow-x: auto;
}

.midas-page8-table {
  width: 100%;
  min-width: 1420px;
  border-collapse: collapse;
}

.midas-page8-table th,
.midas-page8-table td {
  padding: 10px 12px;
  border-bottom: 1px solid rgba(255, 255, 255, .08);
  border-right: 1px solid rgba(255, 255, 255, .08);
  color: #f8fbff;
  text-align: right;
  vertical-align: middle;
}

.midas-page8-table th {
  position: sticky;
  top: 0;
  z-index: 1;
  background: #08131f;
  color: #dbeafe;
  font-size: 12px;
  letter-spacing: .6px;
  text-transform: uppercase;
}

.midas-page8-table td:nth-child(2),
.midas-page8-table th:nth-child(2),
.midas-page8-table td:nth-child(11),
.midas-page8-table th:nth-child(11) {
  text-align: left;
}

.midas-page8-table tr {
  cursor: pointer;
}

.midas-page8-table tr:nth-child(even) td {
  background: rgba(255, 255, 255, .04);
}

.midas-page8-table tr:hover td,
.midas-page8-table tr.active td {
  background: rgba(56, 189, 248, .14);
}

.midas-page8-table strong {
  display: block;
  color: #ffffff;
  font-size: 22px;
}

.midas-page8-table td:nth-child(2) span {
  display: block;
  max-width: 260px;
  color: #a5b4fc;
  font-size: 12px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.midas-page8-table .positive {
  color: #4ade80;
  font-weight: 950;
}

.midas-page8-table .negative {
  color: #fb7185;
  font-weight: 950;
}

.midas-page8-score {
  display: inline-grid;
  place-items: center;
  min-width: 44px;
  min-height: 34px;
  background: linear-gradient(135deg, #22c55e, #2563eb);
  color: #ffffff;
  font-style: normal;
  font-weight: 950;
}

.midas-page8-spark {
  display: block;
  width: 220px;
  height: 88px;
  background:
    linear-gradient(rgba(255, 255, 255, .08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .08) 1px, transparent 1px),
    rgba(0, 0, 0, .22);
  background-size: 100% 22px, 44px 100%, auto;
}

.midas-page8-spark .area {
  fill: rgba(74, 222, 128, .18);
}

.midas-page8-spark .line {
  fill: none;
  stroke: #4ade80;
  stroke-width: 4;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.midas-page8-spark.down .area {
  fill: rgba(251, 113, 133, .16);
}

.midas-page8-spark.down .line {
  stroke: #fb7185;
}

.midas-page9-shell {
  display: grid;
  gap: 14px;
  grid-column: 1 / -1;
  padding: 18px;
  color: #f8fbff;
  background:
    radial-gradient(circle at 8% 4%, rgba(96, 165, 250, .22), transparent 28%),
    radial-gradient(circle at 18% 0%, rgba(132, 204, 22, .25), transparent 32%),
    radial-gradient(circle at 90% 10%, rgba(250, 204, 21, .22), transparent 30%),
    radial-gradient(circle at 78% 100%, rgba(45, 212, 191, .16), transparent 34%),
    linear-gradient(135deg, #06110b, #0a1b16 42%, #0d1320 74%, #140f10);
  border: 1px solid rgba(134, 239, 172, .20);
  border-radius: 18px;
}

.midas-page9-hero,
.midas-page9-score-strip,
.midas-page9-skill,
.midas-page9-evidence {
  border: 1px solid rgba(134, 239, 172, .30);
  background: linear-gradient(180deg, rgba(10, 17, 19, .90), rgba(5, 11, 13, .82));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, .08),
    0 18px 40px rgba(0, 0, 0, .26),
    0 0 0 1px rgba(255, 255, 255, .03);
  border-radius: 16px;
  overflow: hidden;
}

.midas-page9-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 16px;
  align-items: center;
  padding: 22px;
  background:
    radial-gradient(circle at left top, rgba(250, 204, 21, .10), transparent 24%),
    radial-gradient(circle at right center, rgba(34, 197, 94, .13), transparent 28%),
    linear-gradient(135deg, rgba(4, 12, 16, .94), rgba(11, 32, 23, .88));
}

.midas-page9-hero span,
.midas-page9-score-strip b,
.midas-page9-skill h3,
.midas-page9-evidence .midas-panel-title span {
  color: #fef08a;
  font-weight: 950;
  letter-spacing: 1.4px;
  text-transform: uppercase;
}

.midas-page9-hero > div > span {
  display: block;
  color: #86efac;
  font-size: 12px;
}

.midas-page9-hero strong {
  display: block;
  margin-top: 6px;
  color: #ffffff;
  font-size: 46px;
  line-height: .96;
  text-shadow: 0 6px 22px rgba(0, 0, 0, .35);
}

.midas-page9-hero p,
.midas-page9-hero small,
.midas-page9-skill p,
.midas-page9-skill em {
  color: #d9f99d;
  line-height: 1.45;
}

.midas-page9-hero aside {
  display: grid;
  justify-items: end;
  gap: 8px;
  padding: 18px;
  border: 1px solid rgba(250, 204, 21, .34);
  background:
    radial-gradient(circle at top right, rgba(250, 204, 21, .16), transparent 26%),
    linear-gradient(135deg, rgba(21, 128, 61, .44), rgba(15, 23, 42, .62));
  border-radius: 16px;
}

.midas-page9-hero aside.quote-missing {
  border-color: rgba(251, 113, 133, .5);
  background: linear-gradient(135deg, rgba(127, 29, 29, .50), rgba(15, 23, 42, .64));
}

.midas-page9-hero aside b {
  color: #fde68a;
  font-size: 34px;
  line-height: 1;
}

.midas-page9-hero aside i {
  color: #bbf7d0;
  font-style: normal;
  text-align: right;
}

.midas-page9-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 14px;
}

.midas-page9-pills b {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0 14px;
  border: 1px solid rgba(255, 255, 255, .12);
  border-radius: 999px;
  background:
    linear-gradient(135deg, rgba(56, 189, 248, .16), rgba(34, 197, 94, .18) 52%, rgba(250, 204, 21, .14));
  color: #f8fafc;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .6px;
  text-transform: uppercase;
}

.midas-page9-score-strip {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 10px;
  padding: 12px;
  background:
    linear-gradient(180deg, rgba(7, 16, 18, .94), rgba(7, 16, 18, .84)),
    radial-gradient(circle at center, rgba(34, 197, 94, .12), transparent 40%);
}

.midas-page9-score-strip p {
  display: grid;
  gap: 6px;
  margin: 0;
  padding: 13px 14px;
  border: 1px solid rgba(255, 255, 255, .08);
  border-radius: 14px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, .07), rgba(255, 255, 255, .03)),
    rgba(255, 255, 255, .04);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .06);
}

.midas-page9-score-strip b {
  font-size: 11px;
}

.midas-page9-score-strip span {
  color: #ffffff;
  font-size: 28px;
  font-weight: 1000;
}

.midas-page9-score-strip i {
  display: block;
  height: 8px;
  border-radius: 999px;
  background:
    linear-gradient(90deg, #ef4444, #facc15 52%, #22c55e) 0 0 / var(--score) 100% no-repeat,
    rgba(255, 255, 255, .14);
}

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

.midas-page9-skill {
  display: grid;
  gap: 10px;
  min-height: 310px;
  padding: 18px;
  position: relative;
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}

.midas-page9-skill::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 4px;
  background: linear-gradient(90deg, rgba(250, 204, 21, .8), rgba(34, 197, 94, .8), rgba(56, 189, 248, .75));
  opacity: .9;
}

.midas-page9-skill:hover {
  transform: translateY(-2px);
  border-color: rgba(250, 204, 21, .35);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, .08),
    0 22px 38px rgba(0, 0, 0, .28),
    0 0 24px rgba(56, 189, 248, .08);
}

.midas-page9-skill h3 {
  margin: 0;
  font-size: 18px;
}

.midas-page9-skill p {
  margin: 0;
  color: #bbf7d0;
}

.midas-page9-skill div {
  display: grid;
  gap: 8px;
}

.midas-page9-skill span {
  display: grid;
  gap: 4px;
  padding: 12px 12px 12px 14px;
  border-left: 4px solid rgba(250, 204, 21, .7);
  border-radius: 12px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, .06), rgba(255, 255, 255, .03)),
    rgba(255, 255, 255, .04);
}

.midas-page9-skill.calendar {
  background:
    radial-gradient(circle at top right, rgba(250, 204, 21, .12), transparent 28%),
    linear-gradient(180deg, rgba(22, 19, 6, .86), rgba(10, 13, 12, .90));
}

.midas-page9-skill.event {
  background:
    radial-gradient(circle at top right, rgba(56, 189, 248, .12), transparent 28%),
    linear-gradient(180deg, rgba(7, 18, 24, .88), rgba(8, 12, 14, .90));
}

.midas-page9-skill.tearsheet {
  background:
    radial-gradient(circle at top right, rgba(134, 239, 172, .12), transparent 28%),
    linear-gradient(180deg, rgba(7, 22, 14, .88), rgba(8, 12, 14, .90));
}

.midas-page9-skill.ideas {
  background:
    radial-gradient(circle at top right, rgba(244, 114, 182, .12), transparent 28%),
    linear-gradient(180deg, rgba(22, 10, 18, .88), rgba(9, 12, 14, .90));
}

.midas-page9-skill.risk {
  background:
    radial-gradient(circle at top right, rgba(251, 146, 60, .14), transparent 28%),
    linear-gradient(180deg, rgba(23, 13, 8, .88), rgba(10, 12, 14, .90));
}

.midas-page9-skill.midas-page9-scenarios {
  background:
    radial-gradient(circle at top right, rgba(168, 85, 247, .14), transparent 28%),
    linear-gradient(180deg, rgba(20, 10, 25, .88), rgba(9, 12, 14, .90));
}

.midas-page9-skill span.good,
.midas-page9-scenarios span.bullish {
  border-left-color: #22c55e;
}

.midas-page9-skill span.bad,
.midas-page9-scenarios span.bearish {
  border-left-color: #ef4444;
}

.midas-page9-skill span.watch,
.midas-page9-scenarios span.neutral {
  border-left-color: #facc15;
}

.midas-page9-skill b {
  color: #ffffff;
  font-size: 15px;
}

.midas-page9-skill i {
  color: #fef08a;
  font-style: normal;
  font-weight: 900;
}

.midas-page9-skill em {
  color: #cbd5e1;
  font-style: normal;
}

.midas-page9-evidence {
  padding: 16px;
  background:
    radial-gradient(circle at 86% 0%, rgba(56, 189, 248, .10), transparent 24%),
    linear-gradient(180deg, rgba(8, 13, 15, .90), rgba(5, 9, 11, .88));
}

.midas-page9-evidence > div:last-child {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.midas-page9-evidence article {
  display: grid;
  gap: 5px;
  padding: 12px;
  border: 1px solid rgba(255, 255, 255, .14);
  border-radius: 14px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, .06), rgba(255, 255, 255, .03)),
    rgba(255, 255, 255, .04);
}

.midas-page9-evidence b {
  color: #fef08a;
  text-transform: capitalize;
}

.midas-page9-evidence span,
.midas-page9-evidence i {
  color: #ffffff;
  font-style: normal;
  font-weight: 850;
}

.midas-page9-evidence em {
  color: #cbd5e1;
  font-style: normal;
}

.midas-spacex-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 14px;
  align-items: center;
  padding: 14px;
  border-bottom: 1px solid #2c2c2c;
  background: radial-gradient(circle at 8% 10%, rgba(74, 219, 69, .14), transparent 32%), #060806;
}

.midas-spacex-hero span,
.midas-spacex-news h3 span {
  color: #6ddd73;
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

.midas-spacex-hero strong {
  display: block;
  margin-top: 4px;
  color: #f0d36d;
  font-size: 26px;
  line-height: 1.05;
}

.midas-spacex-hero p {
  max-width: 760px;
  margin: 8px 0 0;
  color: #c6beb2;
  font-size: 13px;
  line-height: 1.4;
}

.midas-spacex-hero a {
  display: inline-grid;
  min-height: 34px;
  place-items: center;
  padding: 0 14px;
  border: 1px solid #477e51;
  color: #f6ffef;
  background: #112413;
  font-size: 12px;
  font-weight: 900;
  text-decoration: none;
  text-transform: uppercase;
}

.midas-spacex-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(260px, .8fr);
  gap: 10px;
  padding: 10px;
}

.midas-spacex-scorecard {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.midas-spacex-scorecard div,
.midas-spacex-facts,
.midas-spacex-charts > div,
.midas-spacex-news {
  border: 1px solid #2d2d2d;
  background: #080808;
}

.midas-spacex-scorecard div {
  display: grid;
  gap: 6px;
  padding: 9px;
}

.midas-spacex-scorecard b,
.midas-spacex-facts b,
.midas-spacex-news-row b {
  color: #e4c76b;
  font-size: 11px;
  text-transform: uppercase;
}

.midas-spacex-scorecard span {
  color: #f4eee4;
  font-size: 18px;
  font-weight: 900;
}

.midas-spacex-scorecard i {
  display: block;
  width: 100%;
  height: 5px;
  background: linear-gradient(90deg, #54d96a var(--score-width), #292929 var(--score-width));
}

.midas-spacex-scorecard p {
  margin: 0;
  color: #aaa39a;
  font-size: 11px;
  line-height: 1.35;
}

.midas-spacex-facts {
  padding: 8px;
}

.midas-spacex-facts p {
  display: grid;
  grid-template-columns: 104px 1fr;
  gap: 10px;
  margin: 0;
  padding: 6px 0;
  border-bottom: 1px solid #222;
  color: #d1c9bd;
  font-size: 12px;
}

.midas-spacex-facts p:last-child {
  border-bottom: 0;
}

.midas-spacex-charts {
  display: grid;
  grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr);
  gap: 10px;
  padding: 0 10px 10px;
}

.midas-spacex-charts h3,
.midas-spacex-news h3 {
  margin: 0;
  padding: 9px;
  border-bottom: 1px solid #282828;
  color: #e4c76b;
  font-size: 12px;
}

.midas-spacex-news {
  margin: 0 10px 10px;
}

.midas-spacex-news h3 {
  display: flex;
  justify-content: space-between;
  gap: 10px;
}

.midas-spacex-news-row {
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 10px;
  padding: 8px 10px;
  border-top: 1px solid #202020;
  color: #cfc7bb;
  font-size: 12px;
  text-decoration: none;
}

.midas-spacex-news-row:hover {
  background: #171407;
}

.midas-layout-row {
  display: block;
  width: 100%;
  min-height: 28px;
  padding: 6px 10px;
  border-right: 0;
  border-bottom: 0;
  border-left: 0;
  border-top: 1px solid #333;
  color: #d3d3d3;
  background: #2b2b2b;
  font-size: 12px;
  text-align: left;
}

.midas-layout-row.active {
  color: #101010;
  background: #9eb589;
}

@media (max-width: 1500px) {
  .midas-workbench {
    grid-template-columns: minmax(0, 1fr);
  }

  .midas-touch-panel,
  .midas-trader-panel {
    grid-column: auto;
  }

  .midas-pnf-panel {
    grid-column: 1 / -1;
  }
}

@media (max-width: 920px), (pointer: coarse) and (max-width: 1180px) {
  body[data-page="midas"] {
    min-width: 0;
    width: 100%;
    overflow-x: hidden;
  }

  body[data-page="midas"] .masthead,
  body[data-page="midas"] .nav-bar {
    display: none;
  }

  body[data-page="midas"] .content-page {
    padding: 4px;
  }

  .midas-lab {
    min-height: 100svh;
  }

  .midas-tabbar {
    min-height: 32px;
    padding-bottom: 3px;
    scroll-snap-type: x proximity;
  }

  .midas-tabbar button {
    min-width: 78px;
    min-height: 30px;
    font-size: 11px;
    scroll-snap-align: start;
  }

  .midas-market-tape {
    flex: 0 0 auto;
    min-height: 30px;
    margin-left: 2px;
    padding: 0 6px;
    scroll-snap-align: start;
  }

  .midas-market-tape span {
    font-size: 10px;
  }

  .midas-toolbar {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 5px;
    align-items: stretch;
    padding: 6px;
  }

  .midas-toolbar strong,
  .midas-toolbar .midas-data-source {
    grid-column: 1 / -1;
    min-width: 0;
    white-space: normal;
  }

  .midas-toolbar label,
  .midas-toolbar button,
  .midas-toolbar select,
  .midas-toolbar input {
    width: 100%;
    min-width: 0;
  }

  .midas-toolbar label {
    color: #c8c0b4;
  }

  .midas-lowfloat-columns {
    grid-template-columns: 1fr;
  }

  .midas-lowfloat-preset {
    overflow-x: auto;
  }

  .midas-workbench {
    display: block;
    padding-top: 6px;
  }

  .midas-toolbar button:not([data-midas-action="refresh"]) {
    display: none;
  }

  .midas-toolbar .midas-spacex-button {
    display: inline-grid !important;
  }

  .midas-spacex-layout,
  .midas-spacex-charts {
    grid-template-columns: 1fr;
  }

  .midas-v2-header,
  .midas-v2-grid,
  .midas-v3-header,
  .midas-v3-map,
  .midas-page5-top,
  .midas-page5-hero,
  .midas-page5-outlook-grid {
    grid-template-columns: 1fr;
  }

  .midas-v2-detail,
  .midas-v2-race,
  .midas-v2-strategies,
  .midas-v2-cards {
    grid-column: auto;
  }

  .midas-v2-card-grid {
    grid-template-columns: 1fr;
  }

  .midas-v2-race-track button {
    grid-template-columns: 26px 100px 68px minmax(120px, 1fr);
  }

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

  .midas-v3-header aside {
    text-align: left;
  }

  .midas-v3-chart .midas-pnf-chart.advanced {
    height: 520px;
    min-height: 520px;
  }

  .midas-v3-align-grid,
  .midas-v3-object-grid,
  .midas-v3-step-grid,
  .midas-v3-alerts {
    grid-template-columns: 1fr;
  }

  .midas-page4-shell {
    padding: 8px;
  }

  .midas-page4-top,
  .midas-page4-workspace,
  .midas-page4-strategy {
    grid-template-columns: 1fr;
  }

  .midas-page4-top strong {
    font-size: 28px;
  }

  .midas-page4-cards {
    max-height: none;
  }

  .midas-page4-cards button {
    grid-template-columns: 30px 118px 44px 64px minmax(90px, 1fr);
    gap: 5px;
    min-height: 54px;
  }

  .midas-page4-symbol {
    padding: 5px 8px;
    font-size: clamp(20px, 5.8vw, 26px);
  }

  .midas-page4-hero-card {
    grid-template-columns: 1fr;
  }

  .midas-page4-hero-card strong {
    font-size: 44px;
  }

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

  .midas-page4-happy-map,
  .midas-page4-scenarios,
  .midas-page4-risk-map,
  .midas-page4-objects > div,
  .midas-page4-lifecycle {
    grid-template-columns: 1fr;
  }

  .midas-page4-score-bubbles {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

  .midas-page5-related-grid,
  .midas-page5-news-grid {
    grid-template-columns: 1fr;
  }

  .midas-page5-shell {
    padding: 10px;
  }

  .midas-page5-top strong {
    font-size: 26px;
  }

  .midas-page5-donut-card svg {
    width: 160px;
    height: 160px;
  }

  .midas-page5-related-card {
    min-height: 176px;
  }

  .midas-page6-hero,
  .midas-page6-main,
  .midas-page6-two,
  .midas-page6-hypo-grid,
  .midas-page6-tool-grid,
  .midas-page6-validation-grid {
    grid-template-columns: 1fr;
  }

  .midas-page6-workflow,
  .midas-page6-timeframes,
  .midas-page6-risk-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .midas-page6-chart-toolbar,
  .midas-page6-chart-readout,
  .midas-page6-tool-grid article {
    grid-template-columns: 1fr;
  }

  .midas-page6-evidence-chart {
    min-width: 920px;
    min-height: 560px;
  }

  .midas-page6-chart-stack {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  .midas-page6-main {
    min-width: 0;
  }

  .midas-page6-chart .midas-pnf-chart.advanced {
    height: 460px;
    min-height: 460px;
  }

  .midas-page6-hero strong {
    font-size: 28px;
  }

  .midas-page7-hero,
  .midas-page7-detail-grid,
  .midas-page7-detail-charts,
  .midas-page7-detail-charts > div {
    grid-template-columns: 1fr;
  }

  .midas-page7-hero strong {
    font-size: 32px;
  }

  .midas-page7-hero aside {
    grid-template-columns: 100px 1fr;
  }

  .midas-page7-card-grid {
    grid-template-columns: 1fr;
  }

  .midas-page7-card {
    grid-template-columns: 48px minmax(0, 1fr) 64px;
    min-height: 236px;
  }

  .midas-page7-card strong {
    font-size: clamp(30px, 15vw, 54px);
  }

  .midas-page7-mini-grid {
    grid-template-columns: 1fr;
  }

  .midas-page7-spark {
    height: 86px;
  }

  .midas-page8-hero,
  .midas-page8-detail,
  .midas-page9-hero,
  .midas-page9-grid,
  .midas-page9-evidence > div:last-child {
    grid-template-columns: 1fr;
  }

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

  .midas-page8-wheel > span {
    grid-column: 1 / -1;
  }

  .midas-page8-hero strong {
    font-size: 32px;
  }

  .midas-page8-detail-chart,
  .midas-page8-plan {
    grid-column: auto;
  }

  .midas-page8-table-wrap {
    -webkit-overflow-scrolling: touch;
  }

  .midas-page9-score-strip {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .midas-page9-hero strong {
    font-size: 30px;
  }

  .midas-page9-hero aside {
    justify-items: start;
  }

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

  .midas-spacex-news-row {
    grid-template-columns: 92px 1fr;
  }

  .midas-pnf-chart,
  .midas-pnf-chart.advanced {
    height: 480px;
    min-height: 480px;
  }

  .midas-pnf-wrap {
    grid-template-columns: 1fr;
    grid-template-areas:
      "chart"
      "stats"
      "evidence";
  }

  .midas-pnf-stats.advanced,
  .midas-pnf-evidence {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .midas-comments {
    display: none;
  }

  .midas-grid {
    display: flex;
    flex-direction: column;
  }

  .midas-panel {
    margin-bottom: 6px;
  }

  .midas-touch-panel {
    order: -2;
  }

  .midas-touch-panel {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  .midas-table {
    font-size: 11px;
  }

  .midas-rank-table {
    min-width: 1280px;
  }

  .midas-col-company {
    width: 160px;
  }

  .midas-col-symbol {
    width: 132px;
  }

  .midas-col-score,
  .midas-col-price,
  .midas-col-change,
  .midas-col-pct,
  .midas-col-value,
  .midas-col-stop {
    width: 68px;
  }

  .midas-col-exch,
  .midas-col-ratio,
  .midas-col-rec,
  .midas-col-growth,
  .midas-col-eps {
    width: 44px;
  }

  .midas-col-label {
    width: 88px;
  }

  .midas-table th,
  .midas-table td {
    height: 28px;
    padding: 0 5px;
  }

  .midas-rank-table th:first-child,
  .midas-rank-table td:first-child {
    width: 150px;
    min-width: 150px;
    white-space: normal;
    overflow: visible;
    text-overflow: clip;
    line-height: 1.12;
  }

  .midas-rank-table th:nth-child(2),
  .midas-rank-table td:nth-child(2) {
    width: 132px;
    min-width: 132px;
    color: #f1ca5e;
    font-weight: 900;
  }

  .midas-rank-table th:nth-child(3),
  .midas-rank-table td:nth-child(3),
  .midas-rank-table th:nth-child(4),
  .midas-rank-table td:nth-child(4),
  .midas-rank-table th:nth-child(5),
  .midas-rank-table td:nth-child(5) {
    width: 52px;
  }

  .midas-swing-score,
  .midas-alpha-score,
  .midas-rec {
    min-width: 24px;
    min-height: 21px;
  }

  .midas-chart {
    min-height: 220px;
  }

  .midas-module-grid,
  .midas-tools-grid,
  .midas-tool-output,
  .midas-indicator-grid,
  .midas-ai-grid,
  .midas-platform-grid,
  .midas-swing-parts,
  .midas-alpha-parts {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 920px) and (orientation: landscape), (pointer: coarse) and (max-width: 1180px) and (orientation: landscape) {
  .midas-toolbar {
    grid-template-columns: 1fr 92px 120px 120px;
  }

  .midas-toolbar strong,
  .midas-toolbar .midas-data-source {
    grid-column: 1 / -1;
  }

  .midas-toolbar button {
    min-height: 25px;
    font-size: 11px;
  }

  .midas-table {
    font-size: 10.5px;
  }

  .midas-rank-table {
    min-width: 1080px;
  }

  .midas-rank-table th:first-child,
  .midas-rank-table td:first-child {
    width: 132px;
    min-width: 132px;
  }
}

@media (min-width: 740px) {
  body[data-page="dashboard"] {
    background:
      linear-gradient(90deg, #030303, #0d0c0a 48%, #030303),
      #050505;
  }

  .iphone-app {
    border-right: 1px solid #1e1b17;
    border-left: 1px solid #1e1b17;
  }
}

.midas-page11-shell {
  background: #ffffff;
  color: #172033;
  min-height: 100vh;
  padding: 18px;
  font-family: "IBM Plex Sans", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.midas-lab:has(.midas-page11-shell) {
  background: #ffffff;
  color: #172033;
}

.midas-lab:has(.midas-page11-shell) .midas-toolbar {
  background: #ffffff;
  border-color: #e5e7eb;
  color: #172033;
}

.midas-lab:has(.midas-page11-shell) .midas-toolbar label,
.midas-lab:has(.midas-page11-shell) .midas-toolbar .midas-data-status {
  color: #334155;
}

.midas-lab:has(.midas-page11-shell) .midas-tabbar {
  background: #f8fafc;
  border-color: #e5e7eb;
}

.midas-lab:has(.midas-page11-shell) .midas-tabbar button {
  background: #ffffff;
  border-color: #dbeafe;
  color: #172033;
}

.midas-lab:has(.midas-page11-shell) .midas-tabbar button.active {
  background: #dbeafe;
  border-color: #60a5fa;
  color: #111827;
}

.midas-page11-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(180px, 260px);
  gap: 18px;
  align-items: stretch;
  padding: 24px;
  border-radius: 28px;
  background: linear-gradient(135deg, #e9f8ff, #fff7c8 54%, #ecffdf);
  border: 3px solid #d9e8f3;
  box-shadow: 0 16px 30px rgba(44, 62, 80, 0.12);
}

.midas-page11-hero span,
.midas-page11-selected-copy span,
.midas-page11-most header span {
  display: inline-flex;
  color: #3478f6;
  font-size: 13px;
  font-weight: 1000;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.midas-page11-hero h1 {
  margin: 8px 0 10px;
  color: #111827;
  font-size: clamp(34px, 5vw, 68px);
  line-height: 0.96;
  letter-spacing: 0;
}

.midas-page11-hero p {
  max-width: 850px;
  margin: 0;
  color: #334155;
  font-size: clamp(18px, 2.2vw, 26px);
  line-height: 1.35;
  font-weight: 800;
}

.midas-page11-hero aside {
  display: grid;
  place-items: center;
  gap: 6px;
  border-radius: 24px;
  padding: 18px;
  color: #102315;
  background: #f8fafc;
  border: 4px solid #facc15;
}

.midas-page11-hero aside.buy {
  border-color: #22c55e;
  background: #dcfce7;
}

.midas-page11-hero aside.sell {
  border-color: #fb7185;
  background: #ffe4e6;
}

.midas-page11-hero aside strong {
  color: #111827;
  font-size: clamp(32px, 4vw, 56px);
  line-height: 1;
}

.midas-page11-hero aside b {
  font-size: clamp(40px, 5vw, 72px);
  line-height: 1;
}

.midas-page11-hero aside span {
  color: #111827;
  font-size: 22px;
  letter-spacing: 0;
}

.midas-page11-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 430px);
  gap: 18px;
  margin-top: 18px;
}

.midas-page11-main,
.midas-page11-most,
.midas-page11-footer {
  border: 3px solid #e5e7eb;
  border-radius: 26px;
  background: #ffffff;
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.08);
}

.midas-page11-selected {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(220px, 330px);
  gap: 18px;
  align-items: center;
  margin: 18px;
  padding: 22px;
  border-radius: 24px;
  background: #f8fafc;
  border: 3px solid #dbeafe;
}

.midas-page11-selected-copy h2 {
  margin: 8px 0 2px;
  color: #111827;
  font-size: clamp(54px, 9vw, 110px);
  line-height: 0.9;
}

.midas-page11-selected-copy p {
  margin: 0 0 16px;
  color: #475569;
  font-size: clamp(18px, 2.2vw, 26px);
  font-weight: 800;
}

.midas-page11-big-action {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-height: 64px;
  padding: 12px 18px;
  border-radius: 18px;
  color: #111827;
  background: #fef3c7;
  font-size: 28px;
  font-weight: 1000;
}

.midas-page11-big-action.buy {
  background: #bbf7d0;
}

.midas-page11-big-action.sell {
  background: #fecdd3;
}

.midas-page11-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  padding: 0 18px 18px;
}

.midas-page11-card {
  display: grid;
  gap: 10px;
  min-height: 260px;
  padding: 18px;
  border: 4px solid #e5e7eb;
  border-radius: 24px;
  background: #ffffff;
  color: #111827;
  text-align: left;
  cursor: pointer;
  box-shadow: 0 10px 20px rgba(15, 23, 42, 0.08);
}

.midas-page11-card.active {
  border-color: #38bdf8;
  box-shadow: 0 0 0 5px rgba(56, 189, 248, 0.18), 0 14px 30px rgba(15, 23, 42, 0.14);
}

.midas-page11-card.buy {
  background: #f0fdf4;
}

.midas-page11-card.hold {
  background: #fffbeb;
}

.midas-page11-card.sell {
  background: #fff1f2;
}

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

.midas-page11-card-top strong {
  color: #111827;
  font-size: clamp(30px, 4vw, 46px);
  line-height: 1;
}

.midas-page11-pill {
  min-width: 72px;
  padding: 8px 12px;
  border-radius: 999px;
  background: #ffffff;
  color: #111827;
  text-align: center;
  font-size: 18px;
  font-weight: 1000;
  border: 2px solid rgba(15, 23, 42, 0.12);
}

.midas-page11-score {
  display: flex;
  align-items: baseline;
  gap: 4px;
  color: #111827;
}

.midas-page11-score b {
  font-size: 58px;
  line-height: 0.9;
}

.midas-page11-score span {
  font-size: 24px;
  font-weight: 900;
}

.midas-page11-card p {
  margin: 0;
  color: #334155;
  font-size: 17px;
  font-weight: 850;
  line-height: 1.25;
}

.midas-page11-card small {
  color: #64748b;
  font-size: 16px;
  font-weight: 900;
}

.midas-page11-gauge {
  position: relative;
  width: min(100%, 290px);
  aspect-ratio: 2 / 1.1;
  align-self: center;
  justify-self: center;
}

.midas-page11-gauge-arc {
  position: absolute;
  inset: 0;
  border-radius: 290px 290px 30px 30px;
  background: conic-gradient(from 235deg at 50% 100%, #ef4444 0 47deg, #facc15 47deg 96deg, #22c55e 96deg 145deg, transparent 145deg 360deg);
  clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%);
}

.midas-page11-gauge::after {
  content: "";
  position: absolute;
  inset: 22px 22px 0;
  border-radius: 240px 240px 24px 24px;
  background: #ffffff;
}

.midas-page11-needle {
  position: absolute;
  left: 50%;
  bottom: 6%;
  z-index: 2;
  width: 8px;
  height: 74%;
  border-radius: 999px;
  background: #111827;
  transform-origin: 50% 92%;
  transform: translateX(-50%) rotate(var(--needle));
  box-shadow: 0 0 0 5px rgba(17, 24, 39, 0.08);
}

.midas-page11-needle::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -8px;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: #111827;
  transform: translateX(-50%);
}

.midas-page11-gauge-labels {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 3;
  display: flex;
  justify-content: space-between;
  color: #334155;
  font-size: 14px;
  font-weight: 1000;
}

.midas-page11-most {
  overflow: hidden;
}

.midas-page11-most header {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 18px;
  background: #eff6ff;
  border-bottom: 3px solid #dbeafe;
}

.midas-page11-most header b {
  color: #111827;
  font-size: 18px;
}

.midas-page11-most-list {
  display: grid;
  max-height: 920px;
  overflow: auto;
  padding: 10px;
  gap: 8px;
}

.midas-page11-most-list button {
  display: grid;
  grid-template-columns: 38px 1fr 88px 66px;
  gap: 8px;
  align-items: center;
  min-height: 58px;
  padding: 8px;
  border: 2px solid #e5e7eb;
  border-radius: 16px;
  background: #ffffff;
  color: #111827;
  cursor: pointer;
}

.midas-page11-most-list button.active {
  border-color: #38bdf8;
  background: #ecfeff;
}

.midas-page11-most-list i {
  display: grid;
  place-items: center;
  height: 38px;
  border-radius: 12px;
  background: #f1f5f9;
  color: #334155;
  font-style: normal;
  font-weight: 1000;
}

.midas-page11-most-list strong {
  color: #111827;
  font-size: 24px;
}

.midas-page11-most-list span {
  color: #64748b;
  text-align: right;
  font-weight: 900;
}

.midas-page11-most-list b {
  text-align: center;
  border-radius: 999px;
  padding: 6px;
  background: #fef3c7;
  color: #111827;
}

.midas-page11-most-list b.buy {
  background: #bbf7d0;
}

.midas-page11-most-list b.sell {
  background: #fecdd3;
}

.midas-page11-empty {
  margin: 8px;
  color: #64748b;
  font-weight: 900;
}

.midas-page11-footer {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  margin-top: 18px;
  padding: 18px;
  color: #334155;
  font-size: 17px;
  font-weight: 850;
}

.midas-page11-footer b {
  color: #111827;
}

.midas-page11-footer i {
  margin-left: auto;
  color: #64748b;
  font-style: normal;
  font-size: 14px;
}

@media (max-width: 1120px) {
  .midas-page11-layout {
    grid-template-columns: 1fr;
  }

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

@media (max-width: 680px) {
  .midas-page11-shell {
    padding: 10px;
  }

  .midas-page11-hero,
  .midas-page11-selected {
    grid-template-columns: 1fr;
    padding: 16px;
    border-radius: 22px;
  }

  .midas-page11-grid {
    grid-template-columns: 1fr;
    padding: 0 10px 10px;
  }

  .midas-page11-card {
    min-height: 230px;
    padding: 16px;
  }

  .midas-page11-most-list {
    max-height: none;
  }

  .midas-page11-most-list button {
    grid-template-columns: 34px 1fr 72px 58px;
    min-height: 56px;
  }

  .midas-page11-most-list strong {
    font-size: 21px;
  }
}

/* Page 11 visual polish: bright, simple, large-touch dashboard. */
.midas-lab:has(.midas-page11-shell) {
  background:
    radial-gradient(circle at 12% 0%, rgba(125, 211, 252, 0.3), transparent 28%),
    radial-gradient(circle at 88% 4%, rgba(190, 242, 100, 0.35), transparent 30%),
    #ffffff;
}

.midas-lab:has(.midas-page11-shell) .midas-toolbar {
  background: linear-gradient(90deg, #ffffff, #f0f9ff);
  border-bottom: 2px solid #dbeafe;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.08);
}

.midas-lab:has(.midas-page11-shell) .midas-tabbar {
  gap: 8px;
  padding: 10px;
  background: #ffffff;
  border-bottom: 2px solid #e0f2fe;
}

.midas-lab:has(.midas-page11-shell) .midas-tabbar button {
  min-height: 50px;
  border-radius: 16px;
  border: 2px solid #dbeafe;
  background: linear-gradient(180deg, #ffffff, #f8fafc);
  color: #1e293b;
  box-shadow: 0 5px 12px rgba(15, 23, 42, 0.08);
}

.midas-lab:has(.midas-page11-shell) .midas-tabbar button.active {
  background: linear-gradient(135deg, #38bdf8, #bef264);
  border-color: #0ea5e9;
  color: #06213a;
}

.midas-page11-shell {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.9), rgba(240, 249, 255, 0.95)),
    #ffffff;
  padding: clamp(12px, 2vw, 24px);
}

.midas-page11-hero {
  position: relative;
  overflow: hidden;
  grid-template-columns: minmax(0, 1fr) minmax(220px, 310px);
  min-height: 250px;
  padding: clamp(24px, 4vw, 42px);
  border: 0;
  background:
    radial-gradient(circle at 15% 20%, rgba(255, 255, 255, 0.92), transparent 22%),
    linear-gradient(135deg, #7dd3fc 0%, #bfdbfe 38%, #fde68a 70%, #bbf7d0 100%);
  box-shadow: 0 22px 50px rgba(14, 116, 144, 0.22);
}

.midas-page11-hero::before,
.midas-page11-hero::after {
  content: "";
  position: absolute;
  border-radius: 999px;
  pointer-events: none;
}

.midas-page11-hero::before {
  width: 220px;
  height: 220px;
  right: 18%;
  top: -80px;
  background: rgba(255, 255, 255, 0.35);
}

.midas-page11-hero::after {
  width: 340px;
  height: 340px;
  right: -130px;
  bottom: -170px;
  background: rgba(34, 197, 94, 0.2);
}

.midas-page11-hero > * {
  position: relative;
  z-index: 1;
}

.midas-page11-hero span,
.midas-page11-selected-copy span,
.midas-page11-most header span {
  color: #0369a1;
}

.midas-page11-hero h1 {
  max-width: 760px;
  color: #0f172a;
  text-shadow: 0 2px 0 rgba(255, 255, 255, 0.55);
}

.midas-page11-hero p {
  max-width: 850px;
  color: #1e293b;
}

.midas-page11-hero aside {
  min-height: 190px;
  border: 0;
  border-radius: 30px;
  background: rgba(255, 255, 255, 0.86);
  box-shadow: inset 0 0 0 4px #fde68a, 0 18px 34px rgba(15, 23, 42, 0.18);
}

.midas-page11-hero aside.buy {
  background: #ecfdf5;
  box-shadow: inset 0 0 0 4px #22c55e, 0 18px 34px rgba(22, 163, 74, 0.2);
}

.midas-page11-hero aside.sell {
  background: #fff1f2;
  box-shadow: inset 0 0 0 4px #fb7185, 0 18px 34px rgba(225, 29, 72, 0.18);
}

.midas-page11-layout {
  grid-template-columns: minmax(0, 1.55fr) minmax(340px, 0.75fr);
  align-items: start;
}

.midas-page11-main,
.midas-page11-most,
.midas-page11-footer {
  border: 0;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.1);
}

.midas-page11-selected {
  border: 0;
  background:
    linear-gradient(135deg, rgba(219, 234, 254, 0.92), rgba(236, 253, 245, 0.92)),
    #f8fafc;
  box-shadow: inset 0 0 0 3px #bfdbfe;
}

.midas-page11-selected-copy h2 {
  color: #0f172a;
  text-shadow: 0 3px 0 rgba(255, 255, 255, 0.7);
}

.midas-page11-big-action {
  min-height: 76px;
  border-radius: 22px;
  box-shadow: inset 0 -4px 0 rgba(15, 23, 42, 0.1);
}

.midas-page11-big-action.buy {
  background: linear-gradient(135deg, #86efac, #dcfce7);
}

.midas-page11-big-action.hold,
.midas-page11-big-action:not(.buy):not(.sell) {
  background: linear-gradient(135deg, #fde68a, #fef9c3);
}

.midas-page11-big-action.sell {
  background: linear-gradient(135deg, #fda4af, #ffe4e6);
}

.midas-page11-grid {
  gap: 16px;
}

.midas-page11-card {
  border: 0;
  min-height: 250px;
  border-radius: 28px;
  background: #ffffff;
  box-shadow: 0 14px 28px rgba(15, 23, 42, 0.11);
  transition: transform 160ms ease, box-shadow 160ms ease;
}

.midas-page11-card:hover,
.midas-page11-card:focus-visible {
  transform: translateY(-3px);
  box-shadow: 0 20px 34px rgba(15, 23, 42, 0.16);
  outline: 4px solid rgba(56, 189, 248, 0.35);
}

.midas-page11-card.active {
  box-shadow: 0 0 0 5px #38bdf8, 0 18px 36px rgba(14, 165, 233, 0.22);
}

.midas-page11-card.buy {
  background: linear-gradient(180deg, #f0fdf4, #dcfce7);
}

.midas-page11-card.hold {
  background: linear-gradient(180deg, #fffbeb, #fef3c7);
}

.midas-page11-card.sell {
  background: linear-gradient(180deg, #fff1f2, #ffe4e6);
}

.midas-page11-card-top strong {
  font-size: clamp(36px, 4.4vw, 54px);
}

.midas-page11-pill {
  color: #0f172a;
  background: rgba(255, 255, 255, 0.82);
  box-shadow: inset 0 -3px 0 rgba(15, 23, 42, 0.08);
}

.midas-page11-score {
  justify-content: center;
  padding: 8px 12px;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.65);
}

.midas-page11-score b {
  font-size: clamp(64px, 8vw, 92px);
}

.midas-page11-card p,
.midas-page11-card small {
  text-align: center;
}

.midas-page11-gauge {
  width: min(100%, 360px);
  filter: drop-shadow(0 12px 18px rgba(15, 23, 42, 0.12));
}

.midas-page11-gauge-arc {
  background:
    conic-gradient(from 235deg at 50% 100%,
      #fb7185 0 47deg,
      #facc15 47deg 96deg,
      #22c55e 96deg 145deg,
      transparent 145deg 360deg);
}

.midas-page11-needle {
  background: #0f172a;
}

.midas-page11-most header {
  background: linear-gradient(135deg, #e0f2fe, #fef9c3);
  border-bottom: 0;
}

.midas-page11-most-list {
  padding: 14px;
}

.midas-page11-most-list button {
  border: 0;
  min-height: 66px;
  border-radius: 20px;
  background: #ffffff;
  box-shadow: 0 8px 18px rgba(15, 23, 42, 0.08);
}

.midas-page11-most-list button:nth-child(3n + 1) {
  background: #eff6ff;
}

.midas-page11-most-list button:nth-child(3n + 2) {
  background: #f0fdf4;
}

.midas-page11-most-list button:nth-child(3n) {
  background: #fffbeb;
}

.midas-page11-most-list button:hover,
.midas-page11-most-list button:focus-visible {
  outline: 4px solid rgba(34, 197, 94, 0.22);
}

.midas-page11-most-list i {
  background: #0f172a;
  color: #ffffff;
}

.midas-page11-most-list button.active {
  background: #dbeafe;
  box-shadow: 0 0 0 4px #38bdf8;
}

.midas-page11-footer {
  background: linear-gradient(90deg, #eff6ff, #f0fdf4);
}

@media (max-width: 1120px) {
  .midas-page11-layout {
    grid-template-columns: 1fr;
  }

  .midas-page11-most-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    max-height: 640px;
  }
}

@media (max-width: 680px) {
  .midas-lab:has(.midas-page11-shell) .midas-tabbar {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  .midas-lab:has(.midas-page11-shell) .midas-tabbar button {
    min-width: 94px;
    min-height: 52px;
  }

  .midas-page11-hero {
    min-height: 0;
  }

  .midas-page11-selected {
    margin: 10px;
  }

  .midas-page11-card {
    min-height: 235px;
  }

  .midas-page11-card-top strong {
    font-size: 46px;
  }

  .midas-page11-most-list {
    grid-template-columns: 1fr;
    max-height: none;
  }
}

/* Page 11 compact gauges: keep the friendly look without letting gauges overrun cards. */
.midas-page11-grid {
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
}

.midas-page11-card {
  min-height: 214px;
  overflow: hidden;
}

.midas-page11-card-top strong {
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: clamp(30px, 3.2vw, 42px);
}

.midas-page11-card .midas-page11-gauge {
  width: 138px;
  max-width: 138px;
  justify-self: center;
}

.midas-page11-selected .midas-page11-gauge {
  width: min(100%, 260px);
}

.midas-page11-card .midas-page11-gauge-labels {
  font-size: 10px;
  bottom: 2px;
}

.midas-page11-card .midas-page11-needle {
  width: 5px;
  height: 68%;
}

.midas-page11-card .midas-page11-needle::after {
  width: 16px;
  height: 16px;
}

.midas-page11-card .midas-page11-score {
  padding: 4px 8px;
}

.midas-page11-card .midas-page11-score b {
  font-size: clamp(42px, 4vw, 58px);
}

.midas-page11-card .midas-page11-score span {
  font-size: 20px;
}

@media (max-width: 680px) {
  .midas-page11-grid {
    grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
    gap: 12px;
  }

  .midas-page11-card {
    min-height: 198px;
    border-radius: 22px;
  }

  .midas-page11-card-top strong {
    font-size: 34px;
  }

  .midas-page11-card .midas-page11-gauge {
    width: 112px;
    max-width: 112px;
  }

  .midas-page11-card .midas-page11-score b {
    font-size: 42px;
  }

  .midas-page11-selected .midas-page11-gauge {
    width: min(100%, 210px);
  }
}

/* Page 11 hard compact pass: dashboard cards, not posters. */
.midas-page11-shell {
  padding: clamp(8px, 1.2vw, 16px) !important;
}

.midas-page11-hero {
  grid-template-columns: minmax(0, 1fr) minmax(160px, 220px) !important;
  min-height: 0 !important;
  padding: clamp(16px, 2.2vw, 26px) !important;
  border-radius: 24px !important;
}

.midas-page11-hero h1 {
  font-size: clamp(34px, 4vw, 58px) !important;
  line-height: 0.94 !important;
}

.midas-page11-hero p {
  max-width: 620px !important;
  font-size: clamp(17px, 1.7vw, 24px) !important;
  line-height: 1.2 !important;
}

.midas-page11-hero aside {
  align-self: center !important;
  min-height: 126px !important;
  padding: 14px !important;
  border-radius: 20px !important;
}

.midas-page11-hero aside strong {
  font-size: clamp(28px, 3vw, 42px) !important;
}

.midas-page11-hero aside b {
  font-size: clamp(34px, 3.8vw, 50px) !important;
}

.midas-page11-layout {
  gap: 14px !important;
  margin-top: 14px !important;
}

.midas-page11-selected {
  grid-template-columns: minmax(0, 1fr) 112px !important;
  gap: 12px !important;
  margin: 12px !important;
  padding: 14px !important;
  border-radius: 20px !important;
}

.midas-page11-selected-copy h2 {
  font-size: clamp(36px, 4.8vw, 58px) !important;
  line-height: 0.9 !important;
}

.midas-page11-selected-copy p {
  margin-bottom: 10px !important;
  font-size: clamp(15px, 1.4vw, 18px) !important;
}

.midas-page11-big-action {
  min-height: 48px !important;
  padding: 8px 14px !important;
  border-radius: 16px !important;
  font-size: clamp(22px, 2.2vw, 30px) !important;
}

.midas-page11-selected .midas-page11-gauge {
  width: 108px !important;
  max-width: 108px !important;
}

.midas-page11-grid {
  grid-template-columns: repeat(auto-fit, minmax(178px, 1fr)) !important;
  gap: 10px !important;
  padding: 0 12px 12px !important;
}

.midas-page11-card {
  min-height: 168px !important;
  gap: 6px !important;
  padding: 12px !important;
  border-radius: 20px !important;
}

.midas-page11-card-top strong {
  font-size: clamp(28px, 2.5vw, 36px) !important;
}

.midas-page11-pill {
  min-width: 58px !important;
  padding: 5px 9px !important;
  font-size: 14px !important;
}

.midas-page11-card .midas-page11-gauge {
  width: 78px !important;
  max-width: 78px !important;
}

.midas-page11-card .midas-page11-gauge::after {
  inset: 10px 10px 0 !important;
}

.midas-page11-card .midas-page11-gauge-labels {
  display: none !important;
}

.midas-page11-card .midas-page11-needle {
  width: 4px !important;
  height: 65% !important;
}

.midas-page11-card .midas-page11-needle::after {
  width: 12px !important;
  height: 12px !important;
  bottom: -4px !important;
}

.midas-page11-card .midas-page11-score b {
  font-size: clamp(34px, 3vw, 46px) !important;
}

.midas-page11-card .midas-page11-score span {
  font-size: 16px !important;
}

.midas-page11-card p {
  font-size: 14px !important;
  line-height: 1.15 !important;
}

.midas-page11-card small {
  font-size: 13px !important;
}

@media (max-width: 680px) {
  .midas-page11-hero {
    grid-template-columns: 1fr !important;
  }

  .midas-page11-hero aside {
    display: grid !important;
    grid-template-columns: 1fr auto auto !important;
    min-height: 0 !important;
    gap: 12px !important;
    align-items: center !important;
    justify-items: start !important;
  }

  .midas-page11-hero aside strong,
  .midas-page11-hero aside b,
  .midas-page11-hero aside span {
    margin: 0 !important;
  }

  .midas-page11-selected {
    grid-template-columns: minmax(0, 1fr) 84px !important;
  }

  .midas-page11-selected .midas-page11-gauge {
    width: 78px !important;
    max-width: 78px !important;
  }

  .midas-page11-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }

  .midas-page11-card {
    min-height: 154px !important;
  }

  .midas-page11-card .midas-page11-gauge {
    width: 66px !important;
    max-width: 66px !important;
  }
}

/* Page 11 accurate speedometer: real red/yellow/green SVG arcs. */
.midas-page11-gauge {
  aspect-ratio: 2 / 1.05 !important;
}

.midas-page11-gauge::after,
.midas-page11-gauge-arc {
  content: none !important;
  display: none !important;
}

.midas-page11-gauge-svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
}

.midas-page11-gauge-segment {
  fill: none;
  stroke-width: 18;
  stroke-linecap: round;
}

.midas-page11-gauge-segment.sell {
  stroke: #fb7185;
}

.midas-page11-gauge-segment.hold {
  stroke: #facc15;
}

.midas-page11-gauge-segment.buy {
  stroke: #22c55e;
}

.midas-page11-card .midas-page11-gauge-segment {
  stroke-width: 20;
}

/* Page 11 infographic tiles inspired by simple mobile-friendly market graphics. */
.midas-page11-infographics {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin: 0 0 18px;
}

.midas-page11-info-tile {
  position: relative;
  min-height: 174px;
  overflow: hidden;
  border: 3px solid rgba(15, 23, 42, 0.12);
  border-radius: 22px;
  padding: 14px;
  color: #0f172a;
  box-shadow: 0 18px 38px rgba(15, 23, 42, 0.12);
}

.midas-page11-info-tile::before {
  content: "";
  position: absolute;
  inset: -28% -20% auto auto;
  width: 150px;
  height: 150px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.48);
}

.midas-page11-info-tile::after {
  content: "";
  position: absolute;
  inset: auto auto -36px -28px;
  width: 120px;
  height: 120px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.28);
}

.midas-page11-info-tile.target {
  background: linear-gradient(135deg, #fff7ad 0%, #ffd26d 46%, #ff9f43 100%);
  border-color: rgba(245, 158, 11, 0.55);
}

.midas-page11-info-tile.catalyst {
  background: linear-gradient(135deg, #dff4ff 0%, #84d4ff 50%, #5b8cff 100%);
  border-color: rgba(59, 130, 246, 0.55);
}

.midas-page11-info-tile.flow {
  background: linear-gradient(135deg, #dcffdf 0%, #8cf0a6 50%, #33c878 100%);
  border-color: rgba(34, 197, 94, 0.55);
}

.midas-page11-info-tile.risk {
  background: linear-gradient(135deg, #fff0f8 0%, #ffc7df 48%, #d8c8ff 100%);
  border-color: rgba(168, 85, 247, 0.5);
}

.midas-page11-info-tile.mode-strong {
  box-shadow: 0 18px 42px rgba(34, 197, 94, 0.22);
}

.midas-page11-info-tile.mode-watch {
  box-shadow: 0 18px 42px rgba(245, 158, 11, 0.2);
}

.midas-page11-info-tile.mode-risk {
  box-shadow: 0 18px 42px rgba(239, 68, 68, 0.18);
}

.midas-page11-info-head {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 10px;
}

.midas-page11-info-head span {
  font-size: 13px;
  font-weight: 1000;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.midas-page11-info-head b {
  min-width: 44px;
  border-radius: 999px;
  padding: 6px 9px;
  background: rgba(15, 23, 42, 0.9);
  color: #fff;
  font-size: 14px;
  font-weight: 1000;
  text-align: center;
  white-space: nowrap;
}

.midas-page11-info-art {
  position: relative;
  z-index: 1;
  height: 78px;
  margin: 4px 0 8px;
}

.midas-page11-info-art svg {
  width: 100%;
  height: 100%;
  display: block;
}

.midas-page11-info-art .grid {
  stroke: rgba(15, 23, 42, 0.16);
  stroke-width: 2;
}

.midas-page11-info-art .mountain,
.midas-page11-info-art .base {
  fill: rgba(37, 99, 235, 0.2);
  stroke: rgba(15, 23, 42, 0.72);
  stroke-width: 4;
}

.midas-page11-info-art .line,
.midas-page11-info-art .arrow,
.midas-page11-info-art .curve,
.midas-page11-info-art .wire {
  fill: none;
  stroke: #102033;
  stroke-width: 6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.midas-page11-info-art .check {
  fill: none;
  stroke: #16a34a;
  stroke-width: 12;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.midas-page11-info-art .bar {
  rx: 6;
  fill: rgba(15, 23, 42, 0.22);
}

.midas-page11-info-art .bar.hot {
  fill: #16a34a;
}

.midas-page11-info-art .bar.warn {
  fill: #f97316;
}

.midas-page11-info-art .bell {
  fill: #facc15;
  stroke: rgba(15, 23, 42, 0.75);
  stroke-width: 4;
}

.midas-page11-info-main {
  position: relative;
  z-index: 1;
}

.midas-page11-info-main strong {
  display: block;
  font-size: clamp(24px, 2.3vw, 34px);
  line-height: 1;
  font-weight: 1000;
  letter-spacing: 0;
}

.midas-page11-info-main small {
  display: block;
  margin-top: 6px;
  color: rgba(15, 23, 42, 0.75);
  font-size: 13px;
  font-weight: 850;
  line-height: 1.25;
}

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

@media (max-width: 700px) {
  .midas-page11-infographics {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .midas-page11-info-tile {
    min-height: 146px;
    border-radius: 18px;
    padding: 12px;
  }

  .midas-page11-info-art {
    height: 58px;
  }
}

/* Page 11 final home layout: clean hero, wide evidence cards, lower activity rail. */
.midas-lab:has(.midas-page11-shell) > .midas-tabbar,
.midas-lab:has(.midas-page11-shell) > .midas-toolbar {
  display: none !important;
}

.midas-lab:has(.midas-page11-shell) .midas-workbench {
  padding-top: 0 !important;
}

.midas-page11-shell {
  padding: clamp(14px, 2vw, 28px) !important;
}

.midas-page11-hero {
  display: grid !important;
  grid-template-columns: clamp(124px, 11vw, 190px) minmax(0, 1fr) minmax(160px, 220px) !important;
  gap: clamp(16px, 2.4vw, 34px) !important;
  align-items: center !important;
  min-height: 0 !important;
  padding: clamp(18px, 3vw, 34px) !important;
}

.midas-page11-logo-home {
  display: grid;
  place-items: center;
  width: clamp(116px, 10vw, 180px);
  aspect-ratio: 1;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: transparent;
  cursor: pointer;
  filter: drop-shadow(0 16px 28px rgba(10, 90, 30, 0.22));
}

.midas-page11-logo-home:focus-visible {
  outline: 5px solid rgba(56, 189, 248, 0.65);
  outline-offset: 6px;
}

.midas-page11-logo-home img {
  width: 100%;
  height: 100%;
  border-radius: 999px;
  object-fit: cover;
  display: block;
}

.midas-page11-hero-copy {
  min-width: 0;
}

.midas-page11-hero h1 {
  font-size: clamp(34px, 4vw, 64px) !important;
  max-width: none !important;
}

.midas-page11-hero p {
  max-width: 860px !important;
  font-size: clamp(17px, 1.55vw, 25px) !important;
  line-height: 1.25 !important;
}

.midas-page11-hero aside {
  min-height: 120px !important;
}

.midas-page11-layout {
  display: grid !important;
  grid-template-columns: 1fr !important;
  gap: 16px !important;
  align-items: stretch !important;
  margin-top: 16px !important;
}

.midas-page11-selected {
  margin: 0 !important;
}

.midas-page11-infographics {
  grid-template-columns: repeat(4, minmax(250px, 1fr)) !important;
  gap: 18px !important;
  margin: 0 !important;
}

.midas-page11-info-tile {
  min-height: 206px !important;
  padding: 18px !important;
}

.midas-page11-info-head span,
.midas-page11-info-main span,
.midas-page11-info-main small,
.midas-page11-info-tile small {
  overflow-wrap: anywhere;
}

.midas-page11-info-main strong {
  font-size: clamp(28px, 2.15vw, 44px) !important;
  overflow-wrap: anywhere;
}

.midas-page11-lower {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(430px, 0.92fr);
  gap: 18px;
  align-items: stretch;
}

.midas-page11-main,
.midas-page11-most {
  min-width: 0;
  height: 100%;
}

.midas-page11-grid {
  grid-template-columns: repeat(3, minmax(180px, 1fr)) !important;
  padding: 18px !important;
}

.midas-page11-most {
  display: flex;
  flex-direction: column;
  align-self: stretch;
}

.midas-page11-most-list {
  flex: 1 1 auto;
  max-height: none !important;
  align-content: start;
}

@media (max-width: 1320px) {
  .midas-page11-infographics {
    grid-template-columns: repeat(2, minmax(260px, 1fr)) !important;
  }

  .midas-page11-lower {
    grid-template-columns: 1fr !important;
  }

  .midas-page11-most-list {
    grid-template-columns: repeat(2, minmax(220px, 1fr)) !important;
  }
}

@media (max-width: 760px) {
  .midas-page11-hero {
    grid-template-columns: 94px minmax(0, 1fr) !important;
  }

  .midas-page11-logo-home {
    width: 94px;
  }

  .midas-page11-hero aside {
    grid-column: 1 / -1;
  }

  .midas-page11-infographics,
  .midas-page11-most-list {
    grid-template-columns: 1fr !important;
  }

  .midas-page11-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    padding: 12px !important;
  }
}

@media (max-width: 470px) {
  .midas-page11-hero {
    grid-template-columns: 76px minmax(0, 1fr) !important;
    gap: 12px !important;
  }

  .midas-page11-logo-home {
    width: 76px;
  }

  .midas-page11-hero h1 {
    font-size: 31px !important;
  }

  .midas-page11-hero p {
    font-size: 15px !important;
  }

  .midas-page11-grid {
    grid-template-columns: 1fr !important;
  }
}
