/* Main Board page layout — components live in orbis_ds.css */

.main-board-page {
  font-family: var(--ods-font);
  background: var(--ods-bg);
  color: var(--ods-text);
  min-height: 100vh;
}

/* Bootstrap replacements (Main Board no longer loads Bootstrap) */
.mb-hidden,
.main-board-page .d-none {
  display: none !important;
}

.main-board-page .visually-hidden {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

.main-board-shell {
  max-width: var(--ods-max-width);
  margin: 0 auto;
  padding: 16px 24px 24px;
}

/* Full-height desk: left board (~78%) + right analysis column (~22%, mockup) */
.mb-desk {
  display: grid;
  grid-template-columns: minmax(0, 1fr) clamp(300px, 23.5%, 380px);
  gap: 16px;
  align-items: start;
  min-height: calc(100vh - var(--mb-topnav-h, 72px) - 32px);
}

.mb-desk__main {
  min-width: 0;
  display: flex;
  flex-direction: column;
}

/* Desktop: Market Structure above Opportunities (DOM is mobile-first) */
@media (min-width: 769px) {
  .mb-desk__main > .main-board-status {
    order: 0;
  }

  .mb-desk__main > .mb-section--structure {
    order: 1;
  }

  .mb-desk__main > .mb-section--opportunities {
    order: 2;
  }

  .mb-desk__main > .mb-filters {
    order: 3;
  }

  .mb-desk__main > .mb-screener {
    order: 4;
  }

  .mb-desk__main > .mb-section--sector-indices {
    order: 5;
  }

  .mb-desk__main > .mb-section--waitlist {
    order: 6;
  }

  .mb-desk__main > .mb-copyright {
    order: 7;
  }
}

/* Mobile: Market Structure, then sector indices (DOM has indices before structure) */
@media (max-width: 768px) {
  .mb-desk__main > .main-board-status {
    order: 0;
  }

  .mb-desk__main > .mb-section--opportunities {
    order: 1;
  }

  .mb-desk__main > .mb-filters {
    order: 2;
  }

  .mb-desk__main > .mb-screener {
    order: 3;
  }

  .mb-desk__main > .mb-section--structure {
    order: 4;
  }

  .mb-desk__main > .mb-section--sector-indices {
    order: 5;
  }

  .mb-desk__main > .mb-section--waitlist {
    order: 6;
  }

  .mb-desk__main > .mb-copyright {
    order: 7;
  }
}

.mb-filters {
  position: sticky;
  top: var(--mb-topnav-h, 72px);
  z-index: 30;
  margin-bottom: 24px;
}

.mb-filters .ods-toolbar {
  backdrop-filter: blur(8px);
}

.mb-filter--toggle {
  height: 36px;
  margin-top: 16px;
}

.mb-screener__head {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}

.mb-screener__hint {
  display: none;
}

.mb-ticker-block {
  display: contents;
}

/* Screener: stack meta under ticker so exchange / earnings form vertical columns */
.mb-table .ods-ticker-cell {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-start;
  gap: 4px;
  min-width: 0;
}

.mb-table .ods-ticker-cell__badges {
  display: grid;
  grid-template-columns: 4.75rem minmax(5.5rem, auto) auto;
  align-items: center;
  column-gap: 6px;
  width: max-content;
  max-width: 100%;
}

.mb-table .ods-ticker-cell__exch {
  width: 4.75rem;
}

.mb-table .ods-ticker-cell__earn {
  min-width: 5.5rem;
}

.mb-result-count {
  font-size: 12px;
  color: var(--ods-text-muted);
}

.mb-table-wrap {
  max-height: min(70vh, 820px);
}

/*
 * Right panel: full viewport height under top nav, beside the whole board
 * (structure + opportunities + screener), not only beside the table.
 */
.mb-panel {
  position: sticky;
  top: calc(var(--mb-topnav-h, 72px) + 8px);
  height: calc(100dvh - var(--mb-topnav-h, 72px) - 16px);
  max-height: calc(100dvh - var(--mb-topnav-h, 72px) - 16px);
  min-height: calc(100dvh - var(--mb-topnav-h, 72px) - 16px);
  overflow: auto;
  align-self: start;
  border-radius: 16px;
  display: flex;
  flex-direction: column;
  box-sizing: border-box;
}

.mb-panel #mbPanelEmpty {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 0;
}

.mb-panel #mbPanelBody {
  flex: 1 1 auto;
  min-height: 0;
}

.mb-panel #mbPanelBody.mb-hidden,
.mb-panel #mbPanelBody.d-none {
  display: none !important;
}

/* Two-column workspace; solo sections span full width */
.mb-panel__cols {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 0 14px;
  align-items: start;
}

.mb-panel__col {
  min-width: 0;
}

.mb-panel__col--full {
  grid-column: 1 / -1;
}

/* Compact typography to match the mockup */
.mb-panel .ods-panel__ticker {
  font-size: 20px;
}

.mb-panel .ods-panel__company {
  font-size: 12px;
}

.mb-panel .ods-kv {
  font-size: 11px;
  gap: 4px 12px;
  grid-template-columns: max-content minmax(0, 1fr);
}

.mb-panel .ods-kv dt {
  white-space: nowrap;
}

.mb-panel .ods-kv dd {
  margin: 0;
  min-width: 0;
  text-align: right;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.mb-panel .ods-kv__sub {
  display: block;
  margin-top: 1px;
  font-size: 10px;
  font-weight: 400;
  color: var(--ods-text-muted);
  white-space: normal;
  overflow-wrap: break-word;
  line-height: 1.2;
}

/* Rank Score Details: signed contributions */
.mb-why {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 11px;
}

.mb-why__item {
  display: flex;
  align-items: baseline;
  gap: 6px;
  min-width: 0;
}

.mb-why__mark {
  font-weight: 700;
  flex: none;
}

.mb-why__item--pos .mb-why__mark,
.mb-why__item--pos .mb-why__pts {
  color: var(--ods-green-bright);
}

.mb-why__item--neg .mb-why__mark,
.mb-why__item--neg .mb-why__pts {
  color: var(--ods-red-bright);
}

.mb-why__label {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.mb-why__pts {
  flex: none;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}

.mb-panel .ods-panel-block {
  margin-bottom: 12px;
  padding-top: 10px;
}

.mb-panel .ods-panel-block__title {
  font-size: 10px;
  margin-bottom: 6px;
  white-space: nowrap;
}

.mb-panel .ods-panel-block__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 8px;
}

.mb-panel .ods-panel-block__head .ods-panel-block__title {
  margin-bottom: 0;
  flex: 1 1 auto;
  min-width: 0;
}

.mb-panel .ods-panel-block__actions {
  flex-shrink: 0;
}

.mb-panel .ods-checklist {
  font-size: 11px;
}

.mb-panel .ods-ring {
  width: 78px;
  height: 78px;
}

.mb-panel .ods-ring__n {
  font-size: 20px;
}

.mb-panel .ods-ring__g {
  font-size: 10px;
}

.mb-panel .ods-ring__sub {
  font-size: 10px;
  text-align: center;
}

.mb-panel__score-row--col {
  justify-content: flex-start;
}

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

.mb-panel__score-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
  min-width: 0;
}

.mb-panel__score-label {
  margin: 0;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--ods-text-muted);
}

.mb-panel__score-pair .ods-ring {
  width: 72px;
  height: 72px;
}

.mb-panel__score-pair .ods-ring__n {
  font-size: 18px;
}

.mb-why-block + .mb-why-block {
  margin-top: 10px;
}

.mb-why-block__title {
  margin: 0 0 6px;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--ods-text-muted);
}

.mb-why-block__hint {
  font-weight: 500;
  letter-spacing: 0;
  text-transform: none;
  opacity: 0.7;
}

/* Price (6M): full-width stage; plot fills remaining space beside Y labels */
.mb-panel .ods-chart--axis,
.mb-panel .ods-chart__stage {
  width: 100%;
  max-width: 100%;
}

.mb-panel .ods-chart__yaxis {
  min-height: 220px;
}

.mb-panel .ods-chart--axis .ods-chart__plot svg {
  height: 220px;
}

/* Toned kv values (mockup-style colored reads) */
.mb-kvtone {
  font-weight: 600;
}

.mb-kvtone--pos {
  color: var(--ods-green-bright);
}

.mb-kvtone--neg {
  color: var(--ods-red-bright);
}

.mb-kvtone--neu {
  color: var(--ods-amber-bright);
}

.mb-kvtone--entry {
  color: var(--ods-amber-bright);
}

.mb-panel__price-row {
  display: flex;
  align-items: baseline;
  gap: 10px;
  margin-bottom: 10px;
  flex-wrap: wrap;
}

.mb-panel__price {
  font-size: 22px;
  font-weight: 700;
  color: var(--ods-text-bright);
}

.mb-panel__price-asof {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.02em;
  line-height: 1.3;
  color: #38bdf8;
  white-space: nowrap;
}

.mb-live-peek-btn {
  margin: 0;
  margin-left: 4px;
  padding: 1px 6px;
  border: 1px solid rgba(148, 163, 184, 0.28);
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.35);
  color: rgba(186, 198, 214, 0.92);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.03em;
  line-height: 1.35;
  cursor: pointer;
  align-self: center;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
  transition: color 160ms ease, border-color 160ms ease, background 160ms ease;
}

.mb-live-peek-btn:hover,
.mb-live-peek-btn:focus-visible {
  color: rgba(248, 250, 252, 0.98);
  border-color: rgba(125, 211, 252, 0.45);
  background: rgba(30, 41, 59, 0.55);
  outline: none;
}

.mb-live-peek-btn.is-loading {
  opacity: 0.6;
  cursor: wait;
}

.mb-live-peek {
  display: inline-flex;
  align-items: baseline;
  gap: 6px;
  margin-left: 6px;
  padding: 1px 0;
  animation: mb-live-peek-in 280ms ease-out;
}

.mb-live-peek__price {
  font-size: 14px;
  font-weight: 650;
  color: rgba(241, 245, 249, 0.96);
  font-variant-numeric: tabular-nums;
}

.mb-live-peek__meta {
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.02em;
  color: rgba(148, 163, 184, 0.85);
  white-space: nowrap;
}

@keyframes mb-live-peek-in {
  from {
    opacity: 0;
    transform: translateY(2px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (prefers-reduced-motion: reduce) {
  .mb-live-peek {
    animation: none;
  }
}

/* Vol 5 panel internals */
.mb-panel__header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 14px;
}

.mb-panel__header-main {
  min-width: 0;
}

.mb-panel__header .ods-panel__company {
  margin-bottom: 6px;
}

.mb-panel__header-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
}

.mb-panel__header-actions {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 8px;
  flex-shrink: 0;
}

.mb-panel__close {
  display: none;
  appearance: none;
  border: 1px solid rgba(148, 163, 184, 0.35);
  background: rgba(15, 23, 42, 0.75);
  color: #e2e8f0;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 600;
  padding: 8px 12px;
  min-height: 36px;
  cursor: pointer;
}

.mb-panel__sheet-handle {
  display: none;
}

.mb-nav-toggle {
  display: none;
}

.mb-sheet-backdrop {
  display: none;
}

.mb-topnav__nav {
  display: contents;
}

.mb-panel__score-row {
  display: flex;
  align-items: center;
  gap: 16px;
}

.mb-panel__score-side {
  flex: 1 1 auto;
  min-width: 0;
}

.mb-panel__narrative {
  margin: 0 0 8px;
  font-size: 12px;
  line-height: 1.55;
  color: var(--ods-text-soft);
}

.mb-panel__actions {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid var(--ods-border);
}

.mb-panel__actions-row {
  display: flex;
  width: 100%;
}

.mb-panel__actions-row--split {
  flex-wrap: wrap;
  gap: 8px;
}

.mb-share-plan {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.mb-trade-plan-body {
  transition: opacity 0.14s ease, transform 0.14s ease;
  opacity: 1;
  transform: translateY(0);
}

.mb-trade-plan-body.is-switching {
  opacity: 0;
  transform: translateY(4px);
  pointer-events: none;
}

.mb-share-plan__layers {
  display: inline-flex;
  border: 1px solid rgba(148, 163, 184, 0.28);
  border-radius: 8px;
  overflow: hidden;
  background: rgba(15, 23, 42, 0.55);
}

.mb-share-plan__layer {
  appearance: none;
  border: 0;
  background: transparent;
  color: #94a3b8;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.03em;
  padding: 5px 10px;
  cursor: pointer;
  line-height: 1.2;
}

.mb-share-plan__layer + .mb-share-plan__layer {
  border-left: 1px solid rgba(148, 163, 184, 0.22);
}

.mb-share-plan__layer.is-active {
  background: rgba(96, 165, 250, 0.18);
  color: #e2e8f0;
}

.mb-share-plan__layer:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

.mb-share-plan__btn {
  width: auto;
  white-space: nowrap;
  padding: 4px 10px;
  font-size: 11px;
}

/* Sections fade in with a slight stagger */
.mb-panel .ods-panel-block {
  animation: mb-panel-in 260ms var(--ods-ease, ease-in-out) backwards;
}
.mb-panel .ods-panel-block:nth-child(3) { animation-delay: 30ms; }
.mb-panel .ods-panel-block:nth-child(4) { animation-delay: 60ms; }
.mb-panel .ods-panel-block:nth-child(5) { animation-delay: 90ms; }
.mb-panel .ods-panel-block:nth-child(6) { animation-delay: 120ms; }
.mb-panel .ods-panel-block:nth-child(n + 7) { animation-delay: 150ms; }

@keyframes mb-panel-in {
  from {
    opacity: 0;
    transform: translateY(4px);
  }
}

@media (prefers-reduced-motion: reduce) {
  .mb-panel .ods-panel-block {
    animation: none;
  }
}

@media (max-width: 1200px) {
  .mb-desk {
    grid-template-columns: minmax(0, 1fr) minmax(280px, 320px);
  }
}

@media (max-width: 1100px) {
  .mb-desk {
    grid-template-columns: 1fr;
    min-height: 0;
  }
  .mb-panel {
    position: static;
    height: auto;
    min-height: 320px;
    max-height: none;
  }
}

.mb-topnav {
  position: sticky;
  top: 0;
  z-index: 40;
  min-height: 54px;
  height: auto;
  overflow: visible;
  padding: 8px 0;
  background: rgba(7, 22, 38, 0.94);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--ods-border);
}

.mb-topnav__inner {
  max-width: var(--ods-max-width);
  margin: 0 auto;
  min-height: 40px;
  height: auto;
  padding: 0 24px;
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  justify-content: flex-start;
  gap: 12px 16px;
}

.mb-topnav__left,
.mb-topnav__right {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: nowrap;
  min-width: 0;
}

.mb-topnav__left {
  flex-shrink: 0;
}

.mb-topnav__right {
  flex: 0 0 auto;
  justify-content: flex-end;
  max-width: 100%;
  overflow-x: auto;
  scrollbar-width: none;
}
.mb-topnav__right::-webkit-scrollbar {
  display: none;
}

/* Compact nav buttons so everything fits one row */
.mb-topnav__right .rules-link {
  white-space: nowrap;
  padding: 3px 9px;
  font-size: 12px;
}

/* Brand: logo only in the slim bar */
.main-board-page .site-brand--header {
  align-items: center;
}

.main-board-page .site-brand-logo-wrap {
  width: 32px;
  height: 32px;
}

.main-board-page .site-brand-logo-wrap .site-brand-logo {
  width: 32px;
  height: 32px;
}

.main-board-page .site-brand-name,
.main-board-page .site-brand-tagline {
  display: none;
}

.mb-topnav__brand {
  color: var(--ods-green-bright);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.mb-pilot-badge {
  display: inline-flex;
  align-items: center;
  padding: 2px 7px;
  border-radius: 4px;
  border: 1px solid rgba(251, 146, 60, 0.55);
  background: rgba(251, 146, 60, 0.12);
  color: #fdba74;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  line-height: 1.2;
  white-space: nowrap;
}

.mb-pilot-banner {
  border-bottom: 1px solid rgba(251, 146, 60, 0.28);
  background: rgba(251, 146, 60, 0.08);
  color: #fde68a;
  font-size: 12px;
  line-height: 1.35;
  padding: 8px 24px;
  text-align: center;
}

.mb-pilot-banner__lead,
.mb-pilot-banner__universe {
  margin: 0;
}

.mb-pilot-banner__universe {
  margin-top: 3px;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.01em;
  color: rgba(226, 232, 240, 0.72);
}

.mb-pilot-banner strong {
  color: #fdba74;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-size: 11px;
}

/* Title + last-pull meta */
.mb-topnav__titles {
  display: flex;
  flex-direction: row;
  align-items: baseline;
  gap: 10px;
  min-width: 0;
  flex-wrap: wrap;
}

.mb-topnav__app {
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--ods-text-bright);
}

.mb-topnav__meta {
  font-size: 11px;
  color: var(--ods-text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 280px;
}

.mb-topnav__search {
  flex-shrink: 0;
  width: clamp(170px, 16vw, 260px);
}

/* Public: no app nav — pin search to the far right. */
.mb-public-surface .mb-topnav__search {
  margin-left: auto;
}

/* Private: nav + search cluster on the right; search is rightmost. */
.main-board-page:not(.mb-public-surface) .mb-topnav__right {
  margin-left: auto;
}

.mb-gemini {
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid var(--ods-border, rgba(255, 255, 255, 0.08));
}

.mb-gemini__toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 10px;
}

.mb-gemini__strategy {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: min(100%, 200px);
  flex: 1 1 180px;
}

.mb-gemini__strategy-label {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--ods-text-muted, #8b9bb8);
}

.mb-gemini__select {
  width: 100%;
  min-height: 34px;
  padding: 6px 10px;
  border-radius: 8px;
  border: 1px solid var(--ods-border, rgba(120, 90, 200, 0.35));
  background: rgba(8, 12, 28, 0.55);
  color: var(--ods-text, #e8eef7);
  font-size: 12px;
}

.mb-gemini__ask {
  flex-shrink: 0;
  font-size: 12px;
  line-height: 1.2;
  padding: 8px 14px;
  border-radius: 8px;
  border: 1px solid #6b4fb5;
  background: rgba(120, 90, 200, 0.16);
  color: #dcc8ff;
  cursor: pointer;
  font-weight: 600;
  transition: background 0.15s ease, color 0.15s ease;
}

.mb-gemini__ask:hover:not(:disabled) {
  background: rgba(120, 90, 200, 0.3);
  color: #f0e6ff;
}

.mb-gemini__ask:disabled {
  opacity: 0.65;
  cursor: wait;
}

.mb-gemini__panel {
  margin-top: 10px;
  border-radius: 10px;
  border: 1px solid rgba(120, 90, 200, 0.35);
  background: linear-gradient(165deg, rgba(28, 22, 48, 0.72), rgba(8, 12, 28, 0.55));
  overflow: hidden;
}

.mb-gemini__panel[hidden] {
  display: none !important;
}

.mb-gemini__summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  list-style: none;
  cursor: pointer;
  padding: 10px 12px;
  user-select: none;
}

.mb-gemini__summary::-webkit-details-marker {
  display: none;
}

.mb-gemini__summary-left {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.mb-gemini__chev {
  width: 8px;
  height: 8px;
  border-right: 2px solid #c8b4ff;
  border-bottom: 2px solid #c8b4ff;
  transform: rotate(-45deg);
  transition: transform 0.15s ease;
  flex-shrink: 0;
}

.mb-gemini__panel[open] .mb-gemini__chev {
  transform: rotate(45deg);
}

.mb-gemini__summary-title {
  font-size: 12px;
  font-weight: 700;
  color: #e8e0ff;
  letter-spacing: 0.02em;
}

.mb-gemini__summary-meta {
  font-size: 11px;
  color: var(--ods-text-muted, #8b9bb8);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.mb-gemini__summary-actions {
  flex-shrink: 0;
}

.mb-gemini__share {
  font-size: 12px;
  line-height: 1.2;
  padding: 5px 12px;
  border-radius: 6px;
  border: 1px solid #4a6bb5;
  background: rgba(80, 120, 200, 0.14);
  color: #c8d8ff;
  cursor: pointer;
  font-weight: 600;
}

.mb-gemini__share:hover:not(:disabled) {
  background: rgba(80, 120, 200, 0.3);
  color: #e8eeff;
}

.mb-gemini__share:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.mb-gemini__body {
  padding: 0 12px 12px;
  border-top: 1px solid rgba(120, 90, 200, 0.22);
}

.mb-gemini__card {
  display: flex;
  justify-content: center;
  margin: 12px 0 10px;
  overflow: visible;
}

.mb-gemini__card .shareable-trade-card {
  width: 100%;
  max-width: 520px;
  box-sizing: border-box;
}

/* Main Board panel is often < 480px — force stacked header even without container queries */
.mb-gemini__card .shareable-trade-card__header-row {
  grid-template-columns: 1fr;
  justify-items: start;
  gap: 0.4rem;
}

.mb-gemini__card .shareable-trade-card__header-title,
.mb-gemini__card .shareable-trade-card__header-tagline {
  text-align: left;
  justify-self: start;
  white-space: normal;
  line-height: 1.3;
}

.mb-gemini__metrics {
  display: grid;
  gap: 8px;
  margin-top: 4px;
}

.mb-gemini__metric {
  display: grid;
  grid-template-columns: 92px 1fr;
  gap: 8px;
  align-items: start;
  padding: 8px 10px;
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.22);
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.mb-gemini__metric-label {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--ods-text-muted, #8b9bb8);
  padding-top: 2px;
}

.mb-gemini__metric-value {
  font-size: 13px;
  line-height: 1.4;
  color: var(--ods-text, #e8eef7);
  word-break: break-word;
}

.mb-gemini__loading,
.mb-gemini__empty {
  padding: 12px 2px;
  font-size: 12px;
  color: var(--ods-text-soft, #a8b6d0);
}

.mb-gemini__error {
  padding: 12px 2px;
  font-size: 12px;
  color: #fca5a5;
}

.mb-gemini__raw {
  margin: 10px 0 0;
  padding: 10px 12px;
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.25);
  border: 1px solid var(--ods-border, rgba(255, 255, 255, 0.08));
  color: var(--ods-text, #e8eef7);
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 12px;
  line-height: 1.45;
  white-space: pre-wrap;
  word-break: break-word;
}

.mb-gemini__raw-text {
  display: none;
}

.main-board-status {
  margin: 0 0 12px;
  font-size: 13px;
  color: var(--ods-text-soft);
}

.main-board-status:empty {
  display: none;
}

.mb-section {
  margin-bottom: var(--ods-section-gap);
}

.mb-section--waitlist .ods-section__title {
  font-size: 12px;
}

.mb-waitlist__lede {
  margin: 0 0 12px;
  max-width: 36rem;
  font-size: 12px;
  line-height: 1.45;
  color: var(--ods-text-soft);
}

.mb-waitlist__form {
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-width: 24rem;
}

.mb-waitlist__fields {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.mb-waitlist__form .ods-field > span {
  font-size: 10px;
}

.mb-waitlist__form .ods-input {
  font-size: 12px;
  height: 32px;
  padding: 6px 10px;
}

.mb-waitlist__optional {
  font-weight: 400;
  text-transform: none;
  letter-spacing: 0;
  opacity: 0.7;
}

.mb-waitlist__textarea {
  resize: vertical;
  min-height: 56px;
  height: auto !important;
  padding: 8px 10px !important;
}

@media (min-width: 769px) {
  .mb-waitlist__form {
    max-width: 42rem;
  }

  .mb-waitlist__fields {
    display: grid;
    grid-template-columns: minmax(11rem, 15rem) minmax(0, 1fr);
    gap: 12px 14px;
    align-items: start;
  }

  .mb-waitlist__email .ods-input {
    height: 36px;
  }

  .mb-waitlist__textarea {
    min-height: 52px;
    height: 52px !important;
    padding: 8px 10px !important;
    line-height: 1.35;
  }
}

.mb-waitlist__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 12px;
}

.mb-waitlist__actions .ods-btn {
  padding: 5px 10px;
  font-size: 11px;
  line-height: 1.2;
}

.mb-waitlist__status {
  margin: 0;
  font-size: 11px;
  line-height: 1.35;
  color: var(--ods-text-soft);
}

.mb-waitlist__status.is-ok {
  color: var(--ods-success, #34d399);
}

.mb-waitlist__status.is-err {
  color: var(--ods-danger, #f87171);
}

.mb-copyright {
  margin-top: 8px;
  padding-top: 16px;
  border-top: 1px solid rgba(148, 163, 184, 0.18);
}

.mb-copyright p {
  margin: 0;
  font-size: 11px;
  line-height: 1.4;
  color: var(--ods-text-soft, #94a3b8);
  opacity: 0.85;
}

/* Public Main Board (orbisflux.systems): lean screener — no track stars / Structural col */
.mb-public-surface .mb-table [data-col="structural"],
.mb-public-surface .ods-star {
  display: none !important;
}

.mb-public-surface .mb-export-csv,
.mb-public-surface .mb-panel__actions,
.mb-public-surface .mb-gemini,
.mb-public-surface .mb-filters {
  display: none !important;
}

/* Public: logo is not a link; drop the black/glow frame so it sits in the bar */
.mb-public-surface .site-brand--static {
  cursor: default;
  pointer-events: none;
}

.mb-public-surface .site-brand-logo-wrap {
  background: transparent;
  box-shadow: none;
  border-radius: 6px;
  overflow: visible;
}

.mb-public-surface .site-brand-logo-wrap .site-brand-logo {
  filter: none;
  object-fit: contain;
}

.mb-public-surface .mb-topnav__nav,
.mb-public-surface .mb-topnav__right {
  display: none !important;
}

@media (max-width: 1000px) {
  .mb-topnav {
    height: auto;
    min-height: 54px;
  }
  .mb-topnav__inner {
    flex-wrap: wrap;
    padding: 0 16px;
    height: auto;
  }
  .mb-topnav__left,
  .mb-topnav__right {
    flex-wrap: wrap;
  }
  .mb-filters {
    top: var(--mb-topnav-h, 0px);
  }
  .main-board-shell {
    padding: 16px;
  }
}

/* —— Mobile Main Board —— */
@media (max-width: 768px) {
  .main-board-shell {
    padding: 12px 12px 24px;
  }

  .mb-desk {
    grid-template-columns: 1fr;
    gap: 12px;
    min-height: 0;
  }

  .mb-desk__main > .mb-section--structure {
    margin-top: 8px;
  }

  .mb-topnav {
    padding: 8px 0;
  }

  .mb-topnav__inner {
    flex-wrap: nowrap;
    align-items: center;
    gap: 8px;
    padding: 0 12px;
  }

  .mb-topnav__left {
    flex: 1 1 auto;
    min-width: 0;
    gap: 6px;
    align-items: center;
  }

  .main-board-page .site-brand-logo-wrap,
  .main-board-page .site-brand-logo-wrap .site-brand-logo {
    width: 26px;
    height: 26px;
  }

  .mb-public-surface .site-brand-logo-wrap,
  .mb-public-surface .site-brand-logo-wrap .site-brand-logo {
    width: 22px;
    height: 22px;
  }

  .mb-public-surface .site-brand--header {
    align-self: center;
    line-height: 0;
  }

  .mb-topnav__titles {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    gap: 1px;
    min-width: 0;
    flex: 1 1 auto;
  }

  .mb-pilot-banner {
    padding: 7px 12px;
    font-size: 11px;
    text-align: left;
  }

  .mb-topnav__brand {
    font-size: 9px;
    line-height: 1.2;
    letter-spacing: 0.03em;
    white-space: normal;
  }

  .mb-pilot-badge {
    font-size: 8px;
    padding: 1px 5px;
  }

  .mb-topnav__meta {
    display: block;
    max-width: 100%;
    font-size: 9px;
    line-height: 1.25;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .mb-nav-toggle {
    display: none !important;
  }

  .mb-topnav__right {
    display: none !important;
  }

  .mb-topnav__search {
    display: block;
    flex: 0 0 auto;
    width: min(46vw, 168px);
    min-width: 132px;
    margin-left: auto;
    align-self: flex-start;
  }

  .mb-topnav__search input {
    height: 30px;
    min-height: 30px;
    font-size: 11px;
    line-height: 1.2;
    padding: 0 8px;
    border-radius: 8px;
    width: 100%;
  }

  #mbStructureCards.ods-grid-5,
  #mbOppCards.ods-grid-3 {
    display: grid;
    width: 100%;
    gap: 10px;
  }

  /* Opportunities: full-width stacked cards */
  #mbOppCards.ods-grid-3 {
    grid-template-columns: 1fr;
  }

  /* Structure: two equal columns that fill the phone width */
  #mbStructureCards.ods-grid-5 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  #mbOppCards .ods-card,
  #mbStructureCards .ods-card {
    width: 100%;
    min-width: 0;
    box-sizing: border-box;
  }

  #mbOppCards .ods-card--row {
    min-height: 72px;
    padding: 12px 14px;
  }

  #mbOppCards .ods-card--row .ods-kpi__value {
    font-size: 28px;
  }

  .mb-filters {
    display: none !important;
  }

  .mb-screener,
  .mb-screener__head,
  .mb-table-wrap {
    width: 100%;
    max-width: 100%;
  }

  .mb-screener__head {
    flex-wrap: nowrap;
    align-items: baseline;
    gap: 8px;
    row-gap: 4px;
  }

  .mb-screener__head #mbListTitle {
    flex: 0 1 auto;
    min-width: 0;
    font-size: 14px !important;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .mb-screener__hint {
    display: inline;
    flex: 0 0 auto;
    margin: 0 0 0 auto;
    font-size: 11px;
    font-weight: 600;
    line-height: 1.3;
    color: #f97316;
    white-space: nowrap;
  }

  .mb-export-csv {
    display: none !important;
  }

  .mb-panel__actions {
    display: none !important;
  }

  /* Page scroll + sticky headers (overflow:auto on wrap breaks viewport sticky) */
  .mb-table-wrap {
    max-height: none;
    overflow: visible;
  }

  .mb-table {
    table-layout: fixed;
    width: 100%;
  }

  .mb-table thead th {
    top: var(--mb-topnav-h, 54px);
    z-index: 25;
    box-shadow: 0 1px 0 rgba(255, 255, 255, 0.06);
    padding: 10px 6px;
    font-size: 10px;
  }

  /* Mobile: Trend, Entry, Ticker, Chg %, Price */
  .mb-table [data-col="structural"],
  .mb-table [data-col="signals"],
  .mb-table [data-col="volume"],
  .mb-table [data-col="cap"],
  .mb-table [data-col="sector"],
  .mb-table [data-col="rank"] {
    display: none;
  }

  .mb-table [data-col="trend"],
  .mb-table [data-col="entry"] {
    width: 14%;
    text-align: center;
  }

  .mb-table [data-col="ticker"] {
    width: 34%;
  }

  .mb-table [data-col="change"] {
    width: 18%;
    text-align: right;
  }

  .mb-table [data-col="price"] {
    width: 20%;
    text-align: right;
  }

  .mb-table [data-col="change"] .ods-muted {
    display: none;
  }

  .mb-table [data-col="change"] .ods-chg--up,
  .mb-table [data-col="change"] .ods-chg--down,
  .mb-table [data-col="change"] .ods-chg--flat {
    font-size: 11px;
    font-weight: 600;
    white-space: nowrap;
  }

  .mb-table .ods-score {
    width: 40px;
    height: 40px;
  }

  .mb-table .ods-score__n {
    font-size: 11px;
  }

  .mb-table .ods-score__g {
    font-size: 8px;
  }

  .mb-table .ods-ticker-cell__main .ods-company {
    display: none;
  }

  .mb-table .mb-ticker-block > .ods-ticker-cell,
  .mb-table .ods-ticker-cell {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 1px;
    min-width: 0;
    max-width: 100%;
    overflow: hidden;
  }

  /* Stack meta under ticker so earnings stays near the symbol, not into price */
  .mb-table .ods-ticker-cell__badges {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 1px;
    max-width: 100%;
  }

  .mb-table .ods-ticker-cell__exch,
  .mb-table .ods-ticker-cell__earn {
    width: auto;
    min-width: 0;
    max-width: 100%;
  }

  .mb-table .ods-ticker-cell__earn .ods-badge {
    font-size: 8px;
    padding: 0 4px;
    line-height: 1.25;
  }

  .mb-table .ods-ticker {
    font-size: 13px;
    line-height: 1.15;
  }

  .mb-table .ods-exch {
    font-size: 8px;
    padding: 1px 5px;
  }

  .mb-table .ods-star {
    display: none !important;
  }

  .mb-table .ods-sticky-col {
    position: static;
    left: auto;
  }

  .mb-table tbody tr {
    cursor: pointer;
  }

  .mb-table tbody td {
    padding: 10px 6px;
  }

  .mb-table .ods-price {
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
  }

  .mb-panel__cols {
    grid-template-columns: 1fr;
  }

  .mb-panel__price-row {
    gap: 8px 10px;
    align-items: center;
  }

  .mb-live-peek-btn {
    margin-left: 0;
    padding: 4px 10px;
    font-size: 11px;
    min-height: 28px;
  }

  .mb-live-peek {
    margin-left: 0;
    width: 100%;
    flex-basis: 100%;
  }

  .mb-live-peek__price {
    font-size: 15px;
  }

  .mb-panel__close {
    display: inline-flex;
    align-items: center;
  }

  .mb-panel__sheet-handle {
    display: block;
    width: 42px;
    height: 4px;
    border-radius: 999px;
    background: rgba(148, 163, 184, 0.45);
    margin: 6px auto 10px;
    flex-shrink: 0;
  }

  .mb-sheet-backdrop {
    display: block;
    position: fixed;
    inset: 0;
    z-index: 55;
    background: rgba(2, 8, 18, 0.62);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease;
  }

  body.mb-sheet-open .mb-sheet-backdrop {
    opacity: 1;
    pointer-events: auto;
  }

  .mb-panel {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    top: auto;
    z-index: 60;
    width: 100%;
    height: min(92dvh, 900px);
    max-height: 92dvh;
    min-height: 0;
    margin: 0;
    border-radius: 18px 18px 0 0;
    transform: translateY(110%);
    transition: transform 0.28s cubic-bezier(0.2, 0.8, 0.2, 1);
    box-shadow: 0 -16px 48px rgba(0, 0, 0, 0.5);
    padding-bottom: env(safe-area-inset-bottom, 0);
  }

  body.mb-sheet-open .mb-panel {
    transform: translateY(0);
  }

.mb-trade-plan-body {
  transition: opacity 0.14s ease, transform 0.14s ease;
  opacity: 1;
  transform: translateY(0);
}

.mb-trade-plan-body.is-switching {
  opacity: 0;
  transform: translateY(4px);
  pointer-events: none;
}

  .mb-share-plan__btn,
  .mb-share-plan__layer {
    min-height: 40px;
  }

  .ods-pagination {
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    justify-content: flex-start;
    gap: 6px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  .ods-pagination__info {
    flex: 1 1 auto;
    min-width: 0;
    margin-right: 0;
    font-size: 10px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .ods-pagination .mb-page-size {
    flex: 0 0 auto;
    margin: 0;
    font-size: 11px;
    gap: 4px !important;
  }

  .ods-pagination .mb-page-size .ods-select {
    height: 32px;
    min-height: 32px;
    padding: 0 6px;
    font-size: 12px;
  }

  .ods-pagination .ods-btn {
    flex: 0 0 auto;
    min-height: 32px;
    min-width: 0;
    padding: 4px 10px;
    font-size: 12px;
  }
}

@media (max-width: 480px) {
  #mbStructureCards.ods-grid-5 {
    grid-template-columns: 1fr;
  }

  .mb-table [data-col="trend"],
  .mb-table [data-col="entry"] {
    width: 13%;
  }

  .mb-table [data-col="ticker"] {
    width: 32%;
  }

  .mb-table [data-col="change"] {
    width: 20%;
  }

  .mb-table [data-col="price"] {
    width: 22%;
  }

  .mb-screener__hint {
    font-size: 10px;
  }
}

/* ── 7d News detail (info button + modal) ─────────────────────────────── */

.mb-news-info,
.mb-info-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  padding: 0;
  border-radius: 999px;
  border: 1px solid rgba(96, 165, 250, 0.45);
  background: rgba(96, 165, 250, 0.12);
  color: var(--ods-blue-bright, #60a5fa);
  cursor: pointer;
  line-height: 1;
  flex-shrink: 0;
}

.mb-news-info:hover,
.mb-news-info:focus-visible,
.mb-info-btn:hover,
.mb-info-btn:focus-visible {
  background: rgba(96, 165, 250, 0.22);
  border-color: rgba(96, 165, 250, 0.7);
  outline: none;
}

.mb-news-info__glyph,
.mb-info-btn__glyph {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 12px;
  font-style: italic;
  font-weight: 700;
  line-height: 1;
}

body.mb-news-modal-open {
  overflow: hidden;
}

.mb-news-modal {
  position: fixed;
  inset: 0;
  z-index: 12000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: max(12px, env(safe-area-inset-top)) max(12px, env(safe-area-inset-right))
    max(12px, env(safe-area-inset-bottom)) max(12px, env(safe-area-inset-left));
  background: rgba(3, 10, 20, 0.72);
  backdrop-filter: blur(4px);
}

.mb-news-modal[hidden] {
  display: none !important;
}

.mb-news-modal__panel {
  width: min(1100px, 100%);
  max-height: min(88vh, 900px);
  display: flex;
  flex-direction: column;
  background: var(--ods-bg-secondary, #0b1f35);
  border: 1px solid var(--ods-border, rgba(255, 255, 255, 0.08));
  border-radius: var(--ods-radius, 16px);
  box-shadow: var(--ods-shadow-lg, 0 14px 32px rgba(0, 0, 0, 0.3));
  overflow: hidden;
}

.mb-news-modal__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 16px;
  border-bottom: 1px solid var(--ods-border, rgba(255, 255, 255, 0.08));
  flex-shrink: 0;
}

.mb-news-modal__title {
  margin: 0;
  font-size: 15px;
  font-weight: 600;
  color: var(--ods-text-bright, #f5f8ff);
}

.mb-news-modal__close {
  width: 32px;
  height: 32px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--ods-text-muted, #8fa2c8);
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
}

.mb-news-modal__close:hover,
.mb-news-modal__close:focus-visible {
  background: var(--ods-hover, rgba(255, 255, 255, 0.05));
  color: var(--ods-text, #e8eef7);
  outline: none;
}

.mb-news-modal__body {
  padding: 14px 16px 18px;
  overflow: auto;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
}

.mb-news-modal__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 8px 14px;
  margin-bottom: 12px;
}

.mb-news-modal__symbol {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--ods-text-bright, #f5f8ff);
}

.mb-news-modal__meta-bits {
  font-size: 11px;
  color: var(--ods-text-muted, #8fa2c8);
}

.mb-news-modal__table-wrap {
  overflow: auto;
  max-height: min(52vh, 480px);
  border: 1px solid var(--ods-border, rgba(255, 255, 255, 0.08));
  border-radius: var(--ods-radius-sm, 10px);
  background: var(--ods-table, #101b2b);
  -webkit-overflow-scrolling: touch;
}

.mb-news-modal__table {
  width: 100%;
  border-collapse: collapse;
  font-size: 11px;
  line-height: 1.35;
  color: var(--ods-text, #e8eef7);
}

.mb-news-modal__table th,
.mb-news-modal__table td {
  padding: 8px 10px;
  border-bottom: 1px solid var(--ods-border, rgba(255, 255, 255, 0.08));
  vertical-align: top;
  white-space: nowrap;
}

.mb-news-modal__table th {
  position: sticky;
  top: 0;
  z-index: 1;
  background: #152338;
  color: var(--ods-text-soft, #9fb0d8);
  font-weight: 600;
  text-align: left;
}

.mb-news-modal__table tbody tr:last-child td {
  border-bottom: 0;
}

.mb-news-modal__table tbody tr:hover td {
  background: var(--ods-hover, rgba(255, 255, 255, 0.05));
}

.mb-news-modal__event {
  min-width: 14rem;
  max-width: 22rem;
  white-space: normal !important;
}

.mb-news-modal__table td.is-pos {
  color: var(--ods-green-bright, #34d399);
}

.mb-news-modal__table td.is-neg {
  color: var(--ods-red-bright, #f87171);
}

.mb-news-modal__empty {
  margin: 0;
  font-size: 12px;
  color: var(--ods-text-muted, #8fa2c8);
}

.mb-news-modal__markdown {
  margin: 0;
  padding: 10px 12px;
  white-space: pre-wrap;
  font-size: 11px;
  line-height: 1.4;
  color: var(--ods-text-soft, #9fb0d8);
  background: var(--ods-table, #101b2b);
  border: 1px solid var(--ods-border, rgba(255, 255, 255, 0.08));
  border-radius: var(--ods-radius-sm, 10px);
  max-height: min(52vh, 480px);
  overflow: auto;
}

.mb-news-modal__sources {
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid var(--ods-border, rgba(255, 255, 255, 0.08));
}

.mb-news-modal__sources-title {
  margin: 0 0 8px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: var(--ods-text-soft, #9fb0d8);
}

.mb-news-modal__sources-list {
  margin: 0;
  padding-left: 1.1rem;
  font-size: 12px;
  line-height: 1.45;
  color: var(--ods-text, #e8eef7);
}

.mb-news-modal__sources-list li + li {
  margin-top: 4px;
}

.mb-news-modal__sources-list a {
  color: var(--ods-blue-bright, #60a5fa);
  text-decoration: none;
  word-break: break-word;
}

.mb-news-modal__sources-list a:hover {
  text-decoration: underline;
}

.mb-news-modal .ai-news-source-grid {
  margin-top: 2px;
}

.mb-news-modal--compact .mb-news-modal__panel {
  width: min(520px, 100%);
  max-height: min(84vh, 640px);
}

.mb-metrics-gloss__intro {
  margin: 0 0 14px;
  font-size: 13px;
  line-height: 1.45;
  color: var(--ods-text-soft, #9fb0d8);
}

.mb-metrics-gloss__brand {
  color: var(--ods-text-bright, #f5f8ff);
  font-weight: 700;
}

.mb-metrics-gloss {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.mb-metrics-gloss__item {
  padding: 10px 12px;
  border: 1px solid var(--ods-border, rgba(255, 255, 255, 0.08));
  border-radius: var(--ods-radius-sm, 10px);
  background: var(--ods-table, #101b2b);
}

.mb-metrics-gloss__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 4px;
}

.mb-metrics-gloss__name {
  font-size: 13px;
  font-weight: 700;
  color: var(--ods-text-bright, #f5f8ff);
}

.mb-metrics-gloss__range {
  font-size: 11px;
  color: var(--ods-text-muted, #8fa2c8);
  white-space: nowrap;
}

.mb-metrics-gloss__body {
  margin: 0;
  font-size: 12px;
  line-height: 1.45;
  color: var(--ods-text-soft, #9fb0d8);
}

@media (max-width: 720px) {
  .mb-news-modal {
    align-items: stretch;
    padding: 0;
  }

  .mb-news-modal__panel {
    width: 100%;
    max-height: 100%;
    height: 100%;
    border-radius: 0;
    border: 0;
  }

  .mb-news-modal__head {
    padding: 12px 14px;
    padding-top: max(12px, env(safe-area-inset-top));
  }

  .mb-news-modal__body {
    padding: 12px 12px max(18px, env(safe-area-inset-bottom));
  }

  .mb-news-modal__table-wrap {
    max-height: none;
  }

  .mb-news-modal__table {
    font-size: 10px;
  }

  .mb-news-modal__event {
    min-width: 11rem;
    max-width: 16rem;
  }
}

.mb-section--sector-indices {
  margin-top: 0.35rem;
}

.mb-sector-indices-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.35rem 1rem;
  margin-bottom: 0.55rem;
}

.mb-sector-indices-meta {
  margin: 0;
  font-size: 0.75rem;
  color: var(--ods-muted, rgba(200, 210, 230, 0.72));
}

.mb-sector-indices-meta__base {
  color: #7dd3fc;
  font-weight: 500;
}

.main-board-page .mb-sector-indices-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 0.25rem;
  align-items: stretch;
}

.main-board-page .mb-sector-indices-grid .sector-index-mini-card {
  height: 100%;
  min-height: 7.5rem;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
}

.main-board-page .mb-sector-indices-grid .sector-index-mini-card__metrics {
  margin-top: auto;
}

.main-board-page .mb-sector-indices-grid .sector-index-mini-card--universe {
  grid-column: auto;
}

.main-board-page .mb-sector-mini__arrow {
  width: 0.95rem;
  height: 0.95rem;
  flex-shrink: 0;
  vertical-align: -0.12em;
  margin-right: 0.2rem;
}

.main-board-page .sector-index-mini-card__name {
  display: flex;
  align-items: center;
  gap: 0.15rem;
}

.main-board-page .sector-index-mini-card__detail-link {
  margin-left: auto;
  font-size: 0.7rem;
  opacity: 0.65;
  text-decoration: none;
  white-space: nowrap;
}

.main-board-page .sector-index-mini-card__detail-link:hover {
  opacity: 1;
  text-decoration: underline;
}

.main-board-page .mb-sector-tone--strong-long,
.main-board-page .mb-sector-mini--strong-long .mb-sector-mini__arrow {
  color: #34d399;
}

.main-board-page .mb-sector-tone--cond-long,
.main-board-page .mb-sector-mini--cond-long .mb-sector-mini__arrow {
  color: #86efac;
}

.main-board-page .mb-sector-tone--cond-short,
.main-board-page .mb-sector-mini--cond-short .mb-sector-mini__arrow {
  color: #f87171;
}

.main-board-page .mb-sector-tone--strong-short,
.main-board-page .mb-sector-mini--strong-short .mb-sector-mini__arrow {
  color: #f87171;
}

.main-board-page .mb-sector-mini--strong-long {
  border-color: rgba(47, 157, 106, 0.55);
  background: linear-gradient(150deg, #123d2c 0%, #111a36 100%);
}

.main-board-page .mb-sector-mini--cond-long {
  border-color: rgba(111, 143, 58, 0.55);
  background: linear-gradient(150deg, #2a3b19 0%, #111a36 100%);
}

.main-board-page .mb-sector-mini--cond-short {
  border-color: rgba(212, 160, 23, 0.55);
  background: linear-gradient(150deg, #3d2818 0%, #111a36 100%);
}

.main-board-page .mb-sector-mini--strong-short {
  border-color: rgba(176, 68, 68, 0.6);
  background: linear-gradient(150deg, #3a181c 0%, #111a36 100%);
}

@media (max-width: 900px) {
  .main-board-page .mb-sector-indices-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
