/* INNI v12 — reference-inspired three-tier navigation / edge-to-edge Models.
   Crucially, this stylesheet applies only while the Models top-level tab is active.
   Account, Trade Log and Market Data views retain their existing layout.
*/
#alphaApplication[data-inni-three-tier="stochastic"] #inniModelsButton[aria-selected="true"] {
  background: #0e514d !important;
  color: #fff !important;
}
#alphaApplication[data-inni-three-tier="stochastic"] #inniModelsButton[aria-selected="true"]::after {
  content: none !important;
  display: none !important;
}

/* Second navigation bar: full-bleed rectangular tabs, beginning at x=0. */
#alphaApplication[data-inni-three-tier="stochastic"] #inniStochasticBar {
  box-sizing: border-box !important;
  width: 100% !important;
  max-width: none !important;
  margin: 0 !important;
  padding: 0 !important;
  gap: 0 !important;
  align-items: stretch !important;
  justify-content: flex-start !important;
  background: #f2f4f4 !important;
  border-bottom: 1px solid #dce5e3 !important;
}
#alphaApplication[data-inni-three-tier="stochastic"] #inniStochasticBar > button {
  box-sizing: border-box !important;
  position: relative !important;
  margin: 0 !important;
  min-height: 46px !important;
  padding: 0 24px !important;
  border: 0 !important;
  border-right: 1px solid #dce4e3 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  color: #596a6e !important;
  background: #f2f4f4 !important;
  font-weight: 550 !important;
}
#alphaApplication[data-inni-three-tier="stochastic"] #inniStochasticBar > button[aria-selected="true"] {
  background: #fff !important;
  color: #203a3d !important;
  font-weight: 700 !important;
  border-bottom: 0 !important;
}
#alphaApplication[data-inni-three-tier="stochastic"] #inniStochasticBar > button:hover:not([aria-selected="true"]) {
  color: #124e48 !important;
  background: #e9f1ef !important;
}

/* Third navigation bar: active text + underline, with no filled active tab. */
#alphaApplication[data-inni-three-tier="stochastic"] #inniModelsSubbar {
  box-sizing: border-box !important;
  width: 100% !important;
  max-width: none !important;
  margin: 0 !important;
  padding: 0 !important;
  gap: 0 !important;
  background: #fff !important;
  top: 100px !important; /* desktop: 54px primary + 46px second tier */
}
#alphaApplication[data-inni-three-tier="stochastic"] #inniModelsSubbar > .inni-subtab {
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  color: #65777d !important;
  padding: 0 18px !important;
  box-shadow: none !important;
}
#alphaApplication[data-inni-three-tier="stochastic"] #inniModelsSubbar > .inni-subtab[aria-selected="true"] {
  background: transparent !important;
  color: #0d625a !important;
  font-weight: 700 !important;
}
#alphaApplication[data-inni-three-tier="stochastic"] #inniModelsSubbar > .inni-subtab[aria-selected="true"]::after {
  content: "" !important;
  display: block !important;
  position: absolute !important;
  bottom: 0 !important;
  left: 0 !important;
  right: 0 !important;
  height: 3px !important;
  background: #17786f !important;
}
#alphaApplication[data-inni-three-tier="stochastic"] #inniModelsSubbar > .inni-subtab:hover:not([aria-selected="true"]) {
  background: transparent !important;
  color: #0d625a !important;
}

/* Model workspace is a full-width white canvas, not a framed nested card. */
#alphaApplication[data-inni-three-tier="stochastic"] .institutional-main {
  box-sizing: border-box !important;
  width: 100% !important;
  max-width: none !important;
  margin: 0 !important;
  padding: 0 !important;
  background: #fff !important;
}
#alphaApplication[data-inni-three-tier="stochastic"] .inni-workspace-windows {
  box-sizing: border-box !important;
  width: 100% !important;
  max-width: none !important;
  margin: 0 !important;
  padding: 0 !important;
  background: #fff !important;
}
#alphaApplication[data-inni-three-tier="stochastic"] .inni-window {
  box-sizing: border-box !important;
  width: 100% !important;
  max-width: none !important;
  min-height: calc(100vh - 140px) !important;
  margin: 0 !important;
  padding: 12px 16px 28px !important;
  border: 0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  background: #fff !important;
}
@media (max-width: 700px) {
  #alphaApplication[data-inni-three-tier="stochastic"] #inniStochasticBar > button {
    min-height: 38px !important;
    padding: 0 15px !important;
  }
  #alphaApplication[data-inni-three-tier="stochastic"] #inniModelsSubbar {
    top: 88px !important; /* mobile: 50px primary + 38px second tier */
  }
  #alphaApplication[data-inni-three-tier="stochastic"] #inniModelsSubbar > .inni-subtab {
    padding: 0 12px !important;
  }
  #alphaApplication[data-inni-three-tier="stochastic"] .inni-window {
    padding: 10px 10px 20px !important;
  }
}

/* Projection cards: preserve the white surface and original interval palette.
   Selection affects ONLY the left edge; every corner is sharp/square. */
#alphaApplication[data-inni-three-tier="stochastic"] .tf-summary .tf-tile,
#alphaApplication[data-inni-three-tier="stochastic"] .tf-summary .tf-tile[aria-pressed="true"],
#alphaApplication[data-inni-three-tier="stochastic"] .tf-summary .tf-tile[aria-pressed="false"] {
  box-sizing: border-box !important;
  background: #fff !important;
  color: #203541 !important;
  border: 1px solid #dbe3e7 !important;
  border-left: 4px solid #101820 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  transition: border-left-color 120ms ease !important;
}
#alphaApplication[data-inni-three-tier="stochastic"] .tf-summary .tf-tile[aria-pressed="true"] {
  border-left-color: var(--tf-color) !important;
}
#alphaApplication[data-inni-three-tier="stochastic"] .tf-summary .tf-tile .tf-title,
#alphaApplication[data-inni-three-tier="stochastic"] .tf-summary .tf-tile strong,
#alphaApplication[data-inni-three-tier="stochastic"] .tf-summary .tf-tile small,
#alphaApplication[data-inni-three-tier="stochastic"] .tf-summary .tf-tile[aria-pressed="true"] .tf-title,
#alphaApplication[data-inni-three-tier="stochastic"] .tf-summary .tf-tile[aria-pressed="true"] strong,
#alphaApplication[data-inni-three-tier="stochastic"] .tf-summary .tf-tile[aria-pressed="true"] small {
  color: #293d4b !important;
  opacity: 1 !important;
}
#alphaApplication[data-inni-three-tier="stochastic"] .tf-summary .tf-tile .tf-focus {
  border-radius: 0 !important;
}
#alphaApplication[data-inni-three-tier="stochastic"] .tf-summary .tf-tile:focus-visible {
  outline: 2px solid var(--tf-color) !important;
  outline-offset: 2px !important;
}

/* No manual bottom-right graph size knob: chart fills the Models pane.
   Chart inner plot + watchlist still use the existing responsive layout. */
#alphaApplication[data-inni-three-tier="stochastic"] .workspace {
  width: 100% !important;
  min-width: 0 !important;
}
#alphaApplication[data-inni-three-tier="stochastic"] .workspace > .chartbox {
  box-sizing: border-box !important;
  width: 100% !important;
  max-width: 100% !important;
  min-width: 0 !important;
  flex: 1 1 100% !important;
  height: max(660px, calc(100dvh - 230px)) !important;
  min-height: max(660px, calc(100dvh - 230px)) !important;
}
#alphaApplication[data-inni-three-tier="stochastic"] .workspace > .chartbox:fullscreen {
  width: 100vw !important;
  max-width: none !important;
  height: 100dvh !important;
}
#alphaApplication[data-inni-three-tier="stochastic"] #graphResizeHandle,
#alphaApplication[data-inni-three-tier="stochastic"] #graphSizeStatus {
  display: none !important;
}
@media (max-width: 700px) {
  #alphaApplication[data-inni-three-tier="stochastic"] .workspace > .chartbox {
    height: max(580px, calc(100dvh - 178px)) !important;
    min-height: max(580px, calc(100dvh - 178px)) !important;
  }
}
