/* Measured Intel.trade dark-default visual vocabulary; scoped to avoid changing the Benmork host. */
.it-app {
  background: var(--it-bg);
  color: var(--it-text);
  font:
    12px/1.4 "Geist Variable",
    ui-sans-serif,
    system-ui,
    -apple-system,
    Segoe UI,
    sans-serif;
  letter-spacing: -0.1px;
  color-scheme: dark;
  height: 100dvh;
  min-height: 640px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  -webkit-font-smoothing: antialiased;
}
.it-app *,
.it-app *:before,
.it-app *:after {
  box-sizing: border-box;
}
.it-app button,
.it-app input,
.it-app select {
  font: inherit;
  color: inherit;
  letter-spacing: inherit;
}
.it-app button {
  border: 0;
  background: transparent;
  cursor: pointer;
  padding: 4px 7px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  border-radius: 3px;
  transition:
    background 0.15s cubic-bezier(0.4, 0, 0.2, 1),
    color 0.15s;
}
.it-app button:hover:not(:disabled) {
  background: #ffffff0a;
  color: #fff;
}
.it-app button:disabled {
  opacity: 0.35;
  cursor: not-allowed;
}
.it-app button:focus-visible,
.it-app input:focus-visible,
.it-app select:focus-visible,
.it-app [tabindex]:focus-visible {
  outline: 1px solid #aaa;
  outline-offset: 2px;
}
.it-app input:not([type="checkbox"]):not([type="range"]),
.it-app select {
  border: 1px solid var(--it-border);
  border-radius: 3px;
  background: #191919;
  padding: 6px 8px;
  min-width: 0;
  outline-offset: 1px;
}
.it-app input[type="checkbox"] {
  accent-color: var(--it-buy);
  height: 13px;
  width: 13px;
  flex-shrink: 0;
}
.it-app input[type="range"] {
  accent-color: var(--it-buy);
  width: 100%;
  height: 16px;
  cursor: ew-resize;
}
.it-app input::placeholder {
  color: var(--it-faint);
}
.it-app h1,
.it-app h2,
.it-app h3,
.it-app p {
  margin: 0;
}
.it-app a {
  color: inherit;
}
.it-app code {
  font:
    11px ui-monospace,
    monospace;
  color: #c6c6c6;
}
.it-app .mono {
  font-family:
    ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono",
    monospace;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.2px;
}
.it-app .muted {
  color: var(--it-muted);
}
.it-app .up {
  color: var(--it-buy) !important;
}
.it-app .down {
  color: var(--it-sell) !important;
}
.it-app .warn {
  color: var(--it-warn);
}
.it-app .it-spacer {
  flex: 1;
  min-width: 0;
}
.it-app .sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.it-app small {
  font-size: 10px;
}
.it-app kbd {
  background: #252525;
  border: 1px solid #393939;
  border-radius: 3px;
  padding: 1px 4px;
  font:
    10px ui-monospace,
    monospace;
  white-space: nowrap;
  color: #aaa;
}
.it-icon {
  width: 32px;
  height: 28px;
  padding: 0 !important;
  flex-shrink: 0;
  color: #939393 !important;
}
.it-icon.active {
  color: #efefef !important;
  background: #ffffff0d !important;
}
.it-icon svg {
  flex-shrink: 0;
}
.it-app .it-primary {
  background: var(--it-text);
  color: #111;
  padding: 6px 10px;
  font-size: 11px;
}
.it-app .it-primary:hover {
  background: #d6d6d6 !important;
  color: #111 !important;
}
.it-app .it-divider {
  height: 14px;
  width: 1px;
  background: #343434;
  margin: 0 6px;
}
.it-app .it-badge {
  display: inline-flex;
  white-space: nowrap;
  align-items: center;
  color: #929292;
  background: #ffffff05;
  border: 1px solid #343434;
  border-radius: 3px;
  padding: 1px 4px;
  font-size: 9px;
  line-height: 13px;
  letter-spacing: 0.15px;
}
.it-app .it-count {
  font:
    9px ui-monospace,
    monospace;
  background: #2b2b2b;
  color: #bbb;
  min-width: 15px;
  text-align: center;
  border-radius: 3px;
  padding: 1px 3px;
}
.it-app .it-market-logo {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  font-size: 12px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.it-app .it-mode-badge {
  font:
    9px/1 ui-monospace,
    monospace;
  letter-spacing: 0.5px;
  padding: 4px 5px;
  border: 1px solid #5b4d28;
  border-radius: 3px;
  color: var(--it-warn);
  white-space: nowrap;
}
.it-app .it-mode-badge.live {
  color: var(--it-buy);
  border-color: #2f5741;
}
.it-app-header {
  height: 42px;
  min-height: 42px;
  display: flex;
  align-items: center;
  padding: 0 10px;
  gap: 12px;
  background: #0c0c0c;
}
.it-app .it-brand {
  padding: 0 10px 0 0;
  gap: 6px;
  height: 28px;
}
.it-brand svg {
  width: 25px;
  height: 25px;
}
.it-brand b {
  font-size: 18px;
  letter-spacing: -1px;
  font-weight: 600;
}
.it-top-nav {
  display: flex;
  gap: 13px;
  align-items: center;
  height: 100%;
  white-space: nowrap;
}
.it-app .it-top-nav button {
  height: 100%;
  padding: 0;
  color: #a1a1a1;
  font-size: 12px;
}
.it-app .it-top-nav button.active {
  color: #efefef;
}
.it-app .it-top-nav button:hover {
  background: none;
}
.it-header-tools {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}
.it-app .it-header-search {
  width: 146px;
  height: 28px;
  justify-content: flex-start;
  color: #999;
  border: 1px solid #2a2a2a;
  background: #171717;
  font-size: 11px;
}
.it-header-search kbd {
  margin-left: auto;
  font-size: 9px;
  border: 0;
  background: #262626;
}
.it-app .it-account-button {
  height: 28px;
  background: #ededed;
  color: #111;
  font-size: 11px;
  margin-left: 4px;
  padding: 4px 13px;
}
.it-app .it-account-button:hover {
  color: #111 !important;
  background: #d7d7d7 !important;
}
.it-app .it-account-value {
  height: 28px;
  color: #c3c3c3;
  font-size: 11px;
  min-width: 92px;
}
.it-ticker {
  height: 36px;
  min-height: 36px;
  display: flex;
  align-items: center;
  border-top: 1px solid #1d1d1d;
  border-bottom: 1px solid #1d1d1d;
  padding: 0 8px;
  gap: 6px;
  position: relative;
}
.it-ticker-items {
  overflow-x: auto;
  scrollbar-width: none;
  display: flex;
  align-items: center;
  gap: 11px;
  flex: 1;
  white-space: nowrap;
  height: 100%;
}
.it-ticker-items::-webkit-scrollbar {
  display: none;
}
.it-app .it-ticker-items button {
  padding: 3px 4px;
  font-size: 11px;
  gap: 6px;
  flex-shrink: 0;
}
.it-ticker-items .it-market-logo {
  width: 16px;
  height: 16px;
  font-size: 9px;
}
.it-ticker-items b {
  font-weight: 500;
}
.it-ticker-items .mono {
  font-size: 10px;
}
.it-app .it-ticker-search {
  width: 26px;
  height: 23px;
  border: 1px solid #282828;
  color: #999;
  flex-shrink: 0;
}
.it-workbench {
  flex: 1;
  min-height: 0;
  display: grid;
  grid-template-rows: minmax(0, 1fr) var(--it-bottom-height);
  gap: 8px;
  padding: 0 8px;
}
.it-main-grid {
  display: grid;
  grid-template-columns:
    var(--it-news-width) minmax(300px, 1fr) var(--it-data-width)
    61px;
  gap: 8px;
  min-height: 0;
  min-width: 0;
}
.it-workbench.ticket-open .it-main-grid {
  grid-template-columns:
    minmax(260px, calc(var(--it-news-width) - 50px))
    minmax(300px, 1fr) minmax(300px, calc(var(--it-data-width) - 200px))
    330px;
}
.it-workbench.hide-feed .it-main-grid {
  grid-template-columns: minmax(300px, 1fr) var(--it-data-width) 61px;
}
.it-workbench.hide-feed.ticket-open .it-main-grid {
  grid-template-columns:
    minmax(300px, 1fr) minmax(300px, var(--it-data-width))
    330px;
}
.it-workbench.hide-data .it-main-grid {
  grid-template-columns: var(--it-news-width) minmax(300px, 1fr) 61px;
}
.it-workbench.hide-data.ticket-open .it-main-grid {
  grid-template-columns: var(--it-news-width) minmax(300px, 1fr) 330px;
}
.it-workbench.hide-data.hide-feed .it-main-grid {
  grid-template-columns: minmax(300px, 1fr) 61px;
}
.it-workbench.hide-data.hide-feed.ticket-open .it-main-grid {
  grid-template-columns: minmax(300px, 1fr) 330px;
}
.it-grid-feed,
.it-grid-chart,
.it-grid-data,
.it-grid-ticket {
  min-height: 0;
  min-width: 0;
  position: relative;
}
.it-panel {
  height: 100%;
  background: var(--it-panel);
  border-radius: var(--it-radius);
  border: 1px solid #292929;
  min-width: 0;
  overflow: hidden;
}
.it-panel-toolbar {
  height: 36px;
  min-height: 36px;
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 0 8px;
  border-bottom: 1px solid #242424;
}
.it-panel-toolbar strong {
  font-weight: 500;
  font-size: 11px;
  white-space: nowrap;
}
.it-panel-toolbar > button {
  font-size: 10px;
  color: #aaa;
}
.it-panel-toolbar .it-icon {
  width: 24px;
  height: 24px;
}
.it-panel-content {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-width: 0;
  min-height: 0;
  overflow: hidden;
}
.it-rail {
  width: 43px;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 8px 3px;
  border-right: 1px solid #252525;
}
.it-rail .it-icon {
  height: 35px;
  width: 35px;
}
.it-feed,
.it-market-data {
  display: flex;
}
.it-subtoolbar {
  height: 34px;
  min-height: 34px;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 8px;
  color: #999;
  border-bottom: 1px solid #232323;
  font-size: 10px;
}
.it-subtoolbar select {
  padding: 2px 5px !important;
  font-size: 10px;
}
.it-app .it-segments {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  white-space: nowrap;
  border-radius: 3px;
  background: #10101080;
  padding: 2px;
}
.it-app .it-segments button {
  padding: 3px 7px;
  color: #898989;
  font-size: 10px;
  line-height: 16px;
  border-radius: 3px;
  min-height: 22px;
}
.it-app .it-segments button.active {
  background: #282828;
  color: #eee;
}
.it-search-inline {
  display: flex;
  gap: 6px;
  align-items: center;
  height: 27px;
  min-height: 27px;
  padding: 0 9px;
  color: var(--it-muted);
  background: #111;
  margin: 6px 8px;
  border: 1px solid #292929;
  border-radius: 3px;
}
.it-app .it-search-inline input {
  height: 22px;
  flex: 1;
  border: 0 !important;
  background: none !important;
  padding: 0 !important;
  font-size: 11px;
  outline: 0;
}
.it-feed-scroll {
  flex: 1;
  min-height: 0;
  overflow: auto;
  padding: 0 7px 7px;
  scrollbar-width: thin;
  scrollbar-color: #3a3a3a transparent;
}
.it-news-card {
  padding: 9px 8px 8px;
  background: #1c1c1c;
  border: 1px solid #2a2a2a;
  border-radius: 4px;
  margin-bottom: 7px;
}
.it-news-card header {
  display: flex;
  align-items: center;
  gap: 5px;
  white-space: nowrap;
  font-size: 10px;
  color: var(--it-muted);
}
.it-news-card header b {
  font-weight: 500;
  max-width: 130px;
  overflow: hidden;
  text-overflow: ellipsis;
  color: #aaa;
}
.it-source-avatar {
  display: grid;
  place-items: center;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #3c394d;
  color: #c6bfea;
  font-size: 10px;
  flex-shrink: 0;
}
.it-news-card p {
  font-size: 12px;
  line-height: 1.5;
  margin: 8px 0 10px;
  font-weight: 400;
  color: #e3e3e3;
}
.it-news-market {
  border-top: 1px solid #303030;
  padding-top: 6px;
  margin-top: 5px;
}
.it-news-quote {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 10px;
  white-space: nowrap;
}
.it-app .it-news-quote button {
  padding: 0;
  gap: 4px;
  font-size: 10px;
}
.it-news-quote .it-market-logo {
  width: 14px;
  height: 14px;
  font-size: 8px;
}
.it-news-quote small {
  font-size: 8px;
  color: var(--it-muted);
}
.it-news-actions {
  display: flex;
  align-items: center;
  gap: 5px;
  margin-top: 6px;
}
.it-news-actions small {
  font-size: 8px;
}
.it-app .it-buy-outline,
.it-app .it-sell-outline {
  height: 21px;
  font-size: 9px;
  padding: 2px 9px;
  border: 1px solid #315840;
  color: #62e89b;
  background: #62e89b05;
}
.it-app .it-sell-outline {
  border-color: #633d3b;
  color: #ff6f68;
  background: #ff6f6805;
}
.it-market-list-row {
  display: flex !important;
  width: 100%;
  height: 50px;
  padding: 6px 4px !important;
  gap: 8px !important;
  justify-content: flex-start !important;
  border-bottom: 1px solid #242424 !important;
  text-align: left;
}
.it-market-list-row > span:not(.it-spacer) {
  display: flex;
  flex-direction: column;
  gap: 1px;
}
.it-market-list-row > span.it-market-logo {
  display: inline-flex;
  flex-direction: row;
}
.it-market-list-row small {
  font-size: 9px;
  color: var(--it-muted);
}
.it-market-list-row .mono {
  text-align: right;
  font-size: 11px;
}
.it-activity-row {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 2px;
  border-bottom: 1px solid #292929;
  font-size: 11px;
}
.it-activity-row small {
  display: block;
  font-size: 10px;
  color: #888;
  margin-top: 3px;
}
.it-side-dot {
  height: 6px;
  width: 6px;
  border-radius: 50%;
  background: currentColor;
}
.it-agenda-date {
  font-size: 9px;
  letter-spacing: 0.4px;
  color: var(--it-muted);
  padding: 10px 0;
}
.it-agenda-row {
  display: flex;
  gap: 9px;
  padding: 16px 0;
  border-bottom: 1px solid #282828;
  font-size: 9px;
  align-items: flex-start;
}
.it-agenda-row > div {
  flex: 1;
}
.it-agenda-row b {
  display: block;
  font-size: 11px;
  margin: 5px 0;
  font-weight: 450;
}
.it-agenda-row small {
  font:
    9px ui-monospace,
    monospace;
  color: #888;
}
.it-alert-form {
  padding: 12px 3px;
  display: grid;
  gap: 10px;
  font-size: 11px;
}
.it-alert-form label {
  display: flex;
  flex-direction: column;
  gap: 5px;
  color: #999;
}
.it-alert-form button {
  justify-self: start;
}
.it-chart-panel {
  display: flex;
  flex-direction: column;
  position: relative;
}
.it-market-header {
  display: flex;
  align-items: center;
  height: 57px;
  min-height: 57px;
  padding: 0 8px;
  gap: 9px;
  overflow: hidden;
}
.it-market-header > .it-icon {
  width: 16px;
}
.it-market-header > .it-market-logo {
  width: 27px;
  height: 27px;
  font-size: 17px;
}
.it-app .it-market-title {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0;
  padding: 0;
  color: #efefef;
  white-space: nowrap;
}
.it-market-title small {
  font-size: 8px;
  color: var(--it-muted);
}
.it-market-title strong {
  font-size: 13px;
  font-weight: 500;
  line-height: 18px;
}
.it-market-metric {
  display: flex;
  flex-direction: column;
  gap: 2px;
  white-space: nowrap;
  min-width: 58px;
}
.it-market-metric small {
  color: var(--it-muted);
  font-size: 9px;
}
.it-market-metric b {
  font-size: 11px;
  font-weight: 400;
}
.it-market-header .it-segments {
  margin-left: auto;
}
.it-market-header .it-segments button {
  font-size: 9px;
  padding: 2px 5px;
}
.it-chart-toolbar {
  height: 31px;
  min-height: 31px;
  display: flex;
  align-items: center;
  gap: 3px;
  padding: 0 4px 0 8px;
  border-bottom: 1px solid #292929;
  border-top: 1px solid #292929;
  color: #929292;
  overflow: hidden;
  white-space: nowrap;
}
.it-timeframes {
  display: flex;
  align-items: center;
  gap: 0;
}
.it-app .it-timeframes button {
  font-size: 10px;
  padding: 3px 6px;
  color: #8d8d8d;
}
.it-app .it-timeframes button.active {
  color: #efefef;
}
.it-chart-toolbar > button {
  font-size: 10px;
}
.it-chart-toolbar .it-icon {
  height: 26px;
  width: 26px;
}
.it-chart-body {
  flex: 1;
  min-height: 0;
  display: flex;
}
.it-drawing-rail {
  width: 36px;
  flex-shrink: 0;
  border-right: 1px solid #262626;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 7px;
  padding-top: 8px;
  background: #151515;
}
.it-drawing-rail .it-icon {
  width: 28px;
  height: 28px;
}
.it-chart-stage {
  position: relative;
  flex: 1;
  min-width: 0;
  min-height: 0;
  background: #121212;
  overflow: hidden;
}
.it-candle-canvas {
  height: 100%;
  width: 100%;
  position: absolute;
  inset: 0;
}
.it-ohlc {
  pointer-events: none;
  position: absolute;
  top: 8px;
  left: 8px;
  right: 70px;
  font-size: 9px;
  line-height: 16px;
  color: #d0d0d0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  z-index: 2;
  background: #12121288;
}
.it-ohlc span {
  margin-left: 8px;
}
.it-watermark {
  pointer-events: none;
  position: absolute;
  left: 50%;
  top: 42%;
  transform: translate(-50%, -50%);
  color: #ffffff09;
  font-size: 52px;
  letter-spacing: -3px;
  font-weight: 600;
  line-height: 1;
}
.it-watermark span {
  display: block;
  text-align: center;
  font-size: 10px;
  font-weight: 400;
  letter-spacing: 8px;
  margin-top: 12px;
  margin-left: 8px;
}
.it-chart-zoom {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 2px;
  background: #202020df;
  border: 1px solid #363636;
  border-radius: 4px;
  opacity: 0.45;
}
.it-chart-zoom:hover {
  opacity: 1;
}
.it-chart-zoom .it-icon {
  width: 26px;
  height: 24px;
}
.it-chart-footer {
  display: flex;
  align-items: center;
  height: 25px;
  min-height: 25px;
  padding: 0 8px;
  border-top: 1px solid #292929;
  font:
    9px ui-monospace,
    monospace;
  color: #888;
}
.it-chart-footer button {
  font-size: 9px;
  padding: 2px 5px;
}
.it-chart-footer .active {
  color: #eee;
}
.it-depth {
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 15px;
}
.it-depth svg {
  width: 100%;
  max-height: 85%;
  flex: 1;
}
.it-depth p {
  text-align: center;
  font-size: 10px;
  color: #888;
  padding: 8px;
}
.it-book-header {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 4px;
  height: 27px;
  align-items: center;
  padding: 0 9px;
  color: var(--it-muted);
  font-size: 9px;
  white-space: nowrap;
}
.it-book-header span {
  text-align: right;
}
.it-book-header span:first-child {
  text-align: left;
}
.it-book-scroll {
  overflow: auto;
  flex: 1;
  min-height: 0;
  scrollbar-width: thin;
  scrollbar-color: #333 transparent;
}
.it-app .it-book-row {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 4px;
  align-items: center;
  position: relative;
  width: 100%;
  height: 19px;
  min-height: 19px;
  padding: 0 9px;
  font-size: 10px;
  line-height: 19px;
  border-radius: 0;
  isolation: isolate;
  white-space: nowrap;
}
.it-book-row > span {
  text-align: right;
  z-index: 1;
}
.it-book-row > span:nth-child(2) {
  text-align: left;
}
.it-book-row .it-book-bar {
  position: absolute;
  right: 0;
  top: 0;
  bottom: 0;
  opacity: 0.12;
  z-index: 0;
  pointer-events: none;
}
.it-book-mid {
  display: flex;
  align-items: center;
  gap: 10px;
  height: 38px;
  min-height: 38px;
  padding: 0 10px;
  border-block: 1px solid #2a2a2a;
}
.it-book-mid b {
  font-size: 16px;
  font-weight: 500;
}
.it-book-mid > span {
  font-size: 9px;
  color: var(--it-muted);
}
.it-book-ratio {
  height: 27px;
  min-height: 27px;
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 0 8px;
  font:
    9px ui-monospace,
    monospace;
  border-top: 1px solid #242424;
}
.it-ratio {
  height: 4px;
  flex: 1;
  background: #ff6f6860;
  overflow: hidden;
  border-radius: 2px;
}
.it-ratio i {
  height: 100%;
  display: block;
  background: #62e89b95;
}
.it-participant-kpis {
  display: flex;
  gap: 15px;
  justify-content: space-between;
  padding: 12px 8px;
  border-bottom: 1px solid #252525;
}
.it-participant-kpis small {
  font-size: 8px;
  color: var(--it-muted);
  display: block;
}
.it-participant-kpis b {
  font-size: 15px;
  font-weight: 400;
  margin-top: 6px;
  display: block;
}
.it-live-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #62e89b;
  flex-shrink: 0;
  display: inline-block;
}
.it-live-dot.stale {
  background: var(--it-warn);
}
.it-live-dot.error {
  background: #ff6f68;
}
.it-ticket {
  display: flex;
  flex-direction: column;
  padding: 0 11px 12px;
  overflow: auto;
  scrollbar-width: thin;
  scrollbar-color: #383838 transparent;
}
.it-ticket .it-panel-toolbar {
  margin: 0 -11px 8px;
}
.it-ticket > .it-segments {
  background: none;
  margin: 0 -4px 7px;
  border-bottom: 1px solid #303030;
  border-radius: 0;
  padding: 0;
}
.it-ticket > .it-segments button {
  flex: 1;
  height: 29px;
  font-size: 11px;
  border-radius: 0;
}
.it-ticket > .it-segments button.active {
  background: none;
  border-bottom: 1px solid #eee;
  color: #eee;
}
.it-ticket-risk {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 10px;
  color: var(--it-muted);
  margin: 0 0 10px;
}
.it-ticket-risk .it-badge {
  font-size: 8px;
  border-color: #292929;
}
.it-ticket-side > .it-segments {
  display: flex;
  background: #0d0d0d;
  width: 100%;
  padding: 3px;
  gap: 3px;
}
.it-ticket-side .it-segments button {
  flex: 1;
  font-size: 11px;
  height: 28px;
  color: #a1a1a1;
  font-weight: 500;
}
.it-ticket-side.buy .it-segments button.active {
  background: #62e89b;
  color: #111;
}
.it-ticket-side.sell .it-segments button.active {
  background: #ff6f68;
  color: #111;
}
.it-ticket-stat {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  font-size: 10px;
  color: #888;
  margin: 16px 0;
}
.it-ticket-stat b {
  font-size: 10px;
  color: #eee;
  font-weight: 400;
}
.it-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 10px;
  color: #9a9a9a;
  margin-bottom: 12px;
}
.it-input-group {
  display: flex;
  align-items: center;
  gap: 6px;
  background: #111;
  border: 1px solid #343434;
  border-radius: 3px;
  min-height: 38px;
  padding-right: 10px;
}
.it-app .it-input-group input {
  border: 0 !important;
  background: none !important;
  font-size: 12px;
  color: #e0e0e0;
  flex: 1;
  width: 100%;
  padding: 8px 9px !important;
  font-family: ui-monospace, monospace;
  outline: 0;
}
.it-input-group small {
  font-size: 10px;
  color: #999;
}
.it-input-group button {
  font-size: 9px !important;
  border: 1px solid #333 !important;
  padding: 2px 5px !important;
  color: #bbb;
}
.it-size-slider {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 3px;
}
.it-size-slider span {
  font-size: 10px;
  color: #999;
}
.it-slider-ticks {
  display: flex;
  justify-content: space-between;
  color: var(--it-muted);
  font-size: 8px;
  margin: 1px 35px 14px 0;
}
.it-ticket-checks {
  display: flex;
  gap: 16px;
  font-size: 10px;
  color: #bbb;
  margin: 6px 0 16px;
}
.it-ticket-checks label {
  display: flex;
  align-items: center;
  gap: 3px;
}
.it-app .it-draft-button {
  min-height: 38px;
  width: 100%;
  background: #62e89b;
  color: #111;
  font-size: 12px;
  font-weight: 500;
  border: 1px solid #62e89b;
}
.it-app .it-draft-button:hover {
  background: #80eead;
  color: #111;
}
.it-app .it-draft-button.sell {
  background: #ff6f68;
  border-color: #ff6f68;
}
.it-app .it-draft-button.sell:hover {
  background: #ff8a84;
}
.it-brackets {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}
.it-brackets input {
  width: 100%;
}
.it-ticket-details {
  display: grid;
  gap: 10px;
  margin-top: 20px;
  color: var(--it-muted);
  font-size: 10px;
}
.it-ticket-details > div {
  display: flex;
  justify-content: space-between;
  gap: 8px;
}
.it-ticket-details b {
  font-weight: 400;
  color: #ddd;
}
.it-ticket-details > div > span:last-child {
  color: #a1a1a1;
}
.it-safety-note {
  font-size: 10px !important;
  line-height: 1.6 !important;
  color: var(--it-muted) !important;
  margin-top: 20px !important;
  padding-top: 12px;
  border-top: 1px solid #292929;
}
.it-form-error,
.it-form-success {
  font-size: 10px !important;
  line-height: 1.5 !important;
  margin-top: 8px !important;
}
.it-form-error {
  color: #ff6f68;
}
.it-form-success {
  color: #62e89b;
}
.it-ticket-collapsed {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 6px 3px;
  gap: 15px;
}
.it-ticket-collapsed > span {
  writing-mode: vertical-rl;
  font: inherit;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.4;
  letter-spacing: 0;
  color: var(--it-text);
}
.it-ticket-collapsed > svg {
  margin-top: auto;
  color: var(--it-muted);
  width: 15px;
  height: 15px;
}
.it-bottom {
  display: flex;
  flex-direction: column;
  min-height: 0;
}
.it-bottom-tabs {
  display: flex;
  gap: 8px;
  align-items: center;
  height: 31px;
  min-height: 31px;
  padding: 0 8px;
  overflow: auto;
  white-space: nowrap;
  scrollbar-width: none;
  border-bottom: 1px solid #292929;
}
.it-app .it-bottom-tabs button {
  font-size: 10px;
  color: #8d8d8d;
  padding: 4px 5px;
  height: 31px;
  border-radius: 0;
  gap: 5px;
  position: relative;
}
.it-bottom-tabs button.active {
  color: #efefef;
}
.it-bottom-tabs button.active:after {
  content: "";
  position: absolute;
  bottom: 0;
  height: 1px;
  left: 4px;
  right: 4px;
  background: #ddd;
}
.it-bottom-toolbar {
  height: 29px;
  min-height: 29px;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 8px;
  border-bottom: 1px solid #252525;
}
.it-bottom-toolbar .it-icon {
  height: 23px;
  width: 24px;
}
.it-bottom-toolbar .it-segments button {
  min-height: 18px;
  font-size: 9px;
  padding: 0 6px;
}
.it-bottom-toolbar > small {
  font-size: 8px;
}
.it-bottom-content {
  flex: 1;
  min-height: 0;
  overflow: hidden;
}
.it-data-wrap {
  height: 100%;
  overflow: auto;
  scrollbar-width: thin;
  scrollbar-color: #383838 transparent;
}
.it-table {
  border-collapse: collapse;
  width: 100%;
  font-size: 10px;
  white-space: nowrap;
  text-align: left;
}
.it-table th {
  height: 27px;
  position: sticky;
  top: 0;
  background: #151515;
  z-index: 2;
  color: var(--it-muted);
  font-size: 9px;
  font-weight: 400;
  letter-spacing: 0.2px;
  border-bottom: 1px solid #2c2c2c;
  padding: 0 10px;
}
.it-table th button {
  font-size: 9px !important;
  padding: 0 !important;
  justify-content: flex-start !important;
  color: #888 !important;
  height: 100%;
}
.it-table td {
  height: 30px;
  padding: 3px 10px;
  border-bottom: 1px solid #242424;
  font-weight: 400;
  color: #cfcfcf;
}
.it-table tr:hover td {
  background: #ffffff03;
}
.it-table .numeric {
  text-align: right;
  font-variant-numeric: tabular-nums;
}
.it-table th.numeric button {
  margin-left: auto;
}
.it-table-note {
  font-size: 10px;
  color: var(--it-muted);
  padding: 6px 9px;
}
.it-progress-cell {
  min-width: 70px;
  position: relative;
  border-radius: 2px;
  height: 17px;
  background: #252525;
  padding: 2px 4px;
  overflow: hidden;
}
.it-progress-cell > span {
  position: absolute;
  inset: 0 auto 0 0;
  background: #62e89b20;
  border-right: 1px solid #62e89b55;
}
.it-progress-cell small {
  position: relative;
  font-size: 9px;
  z-index: 1;
}
.it-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 25px 18px;
  min-height: 115px;
  color: var(--it-muted);
  gap: 9px;
}
.it-empty h3 {
  font-size: 12px;
  font-weight: 450;
  color: #aaa;
}
.it-empty p {
  font-size: 11px;
  line-height: 1.6;
  color: var(--it-muted);
  max-width: 330px;
}
.it-empty > button {
  font-size: 10px;
}
.it-resize-handle {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 8px;
  z-index: 4;
  cursor: col-resize;
  touch-action: none;
}
.it-resize-handle.right {
  right: -8px;
}
.it-resize-handle.left {
  left: -8px;
}
.it-resize-handle:hover,
.it-resize-handle:focus {
  background: #aaa3;
  border-radius: 4px;
}
.it-statusbar {
  height: 24px;
  min-height: 24px;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 10px;
  color: var(--it-muted);
  font-size: 9px;
  background: #0c0c0c;
  border-top: 1px solid #222;
  white-space: nowrap;
  overflow: hidden;
}
.it-statusbar > .mono {
  font-size: 9px;
}
.it-status-source {
  color: var(--it-muted);
}
.it-loading {
  flex: 1;
  min-height: 350px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 15px;
  color: #888;
  background: #111;
}
.it-loading h2 {
  font-size: 16px;
  font-weight: 450;
  color: #ddd;
}
.it-loading p {
  font-size: 12px;
}
.it-loading small {
  font-size: 10px;
  color: var(--it-muted);
}
.it-loading > .it-primary {
  font-size: 12px;
}
.it-mobile-market,
.it-mobile-tabs,
.it-mobile-nav {
  display: none;
}
.it-page {
  flex: 1;
  min-height: 0;
  padding: 14px 8px 8px;
  display: flex;
  flex-direction: column;
}
.it-page-heading {
  display: flex;
  align-items: center;
  padding: 0 10px 13px;
}
.it-page-heading h1 {
  font-size: 19px;
  font-weight: 500;
}
.it-page-heading p {
  font-size: 10px;
  color: var(--it-muted);
  margin-top: 3px;
}
.it-market-overview {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  margin-bottom: 12px;
}
.it-market-overview > div {
  padding: 16px;
  background: #151515;
  border: 1px solid #2a2a2a;
  border-radius: 4px;
}
.it-market-overview small {
  display: block;
  color: var(--it-muted);
  font-size: 9px;
  letter-spacing: 0.4px;
  margin-bottom: 8px;
}
.it-market-overview b {
  font-size: 22px;
  font-weight: 400;
}
.it-market-overview > div:last-child b {
  font-size: 15px;
}
.it-market-browser {
  display: flex;
  flex-direction: column;
  min-height: 0;
  flex: 1;
  background: #151515;
  border: 1px solid #292929;
  border-radius: 4px;
  overflow: hidden;
}
.it-palette-input {
  height: 48px;
  min-height: 48px;
  padding: 0 14px;
  display: flex;
  align-items: center;
  gap: 11px;
  border-bottom: 1px solid #2b2b2b;
  color: var(--it-muted);
}
.it-app .it-palette-input input {
  border: 0 !important;
  outline: 0 !important;
  background: none !important;
  flex: 1;
  font-size: 14px;
  padding: 0 !important;
  height: 100%;
  color: #e5e5e5;
}
.it-palette-input kbd {
  font-size: 8px;
}
.it-browser-filters {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  border-bottom: 1px solid #282828;
  min-height: 43px;
  white-space: nowrap;
  overflow-x: auto;
}
.it-browser-filters > button {
  font-size: 10px;
  color: #888;
}
.it-browser-filters > button.active {
  color: #ddd;
}
.it-browser-filters .muted {
  font-size: 9px;
}
.it-browser-table {
  flex: 1;
  min-height: 0;
  overflow: auto;
}
.it-market-browser .it-table td {
  height: 48px;
  font-size: 11px;
}
.it-market-browser .it-table th {
  height: 30px;
}
.it-asset-cell {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 175px;
}
.it-app .it-fav {
  width: 19px;
  height: 22px;
  padding: 0;
  color: var(--it-muted);
}
.it-app .it-fav.active {
  color: #e8c968;
}
.it-app .it-fav.active svg {
  fill: #e8c96833;
}
.it-asset-cell .it-market-logo {
  height: 25px;
  width: 25px;
  font-size: 15px;
}
.it-app .it-asset-select {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 0;
  gap: 1px;
}
.it-asset-select b {
  font-size: 12px;
  font-weight: 500;
  color: #ddd;
}
.it-asset-select small {
  font-size: 9px;
  color: var(--it-muted);
}
.it-table .keyboard-selected td {
  background: #262626;
}
.it-palette-footer {
  height: 33px;
  min-height: 33px;
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 0 13px;
  font-size: 9px;
  color: var(--it-muted);
  border-top: 1px solid #282828;
}
.it-palette-footer kbd {
  font-size: 8px;
}
.it-modal {
  background: #161616;
  color: #efefef;
  border: 1px solid #3a3a3a;
  border-radius: 6px;
  box-shadow: 0 16px 70px #0009;
  padding: 0;
  width: min(1120px, calc(100vw - 40px));
  height: min(720px, calc(100dvh - 70px));
  max-width: none;
  max-height: none;
  overflow: hidden;
  font:
    12px/1.4 "Geist Variable",
    system-ui,
    sans-serif;
}
.it-modal[open] {
  display: flex;
  flex-direction: column;
}
.it-modal::backdrop {
  background: #0009;
}
.it-modal-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 49px;
  min-height: 49px;
  padding: 0 17px;
  border-bottom: 1px solid #303030;
}
.it-modal-heading h2 {
  font-size: 11px;
  font-weight: 450;
  letter-spacing: 0.7px;
}
.it-modal .it-market-browser {
  border: 0;
  border-radius: 0;
}
.it-modal .it-market-browser .it-palette-input {
  height: 58px;
  min-height: 58px;
}
.it-modal .it-market-browser .it-palette-input input {
  font-size: 16px;
}
.it-settings-body {
  display: flex;
  flex: 1;
  min-height: 0;
}
.it-settings-body > nav {
  width: 177px;
  flex-shrink: 0;
  padding: 15px 10px;
  display: flex;
  flex-direction: column;
  gap: 5px;
  border-right: 1px solid #2b2b2b;
}
.it-settings-body > nav button {
  justify-content: flex-start;
  font-size: 10px;
  letter-spacing: 0.3px;
  color: #888;
  height: 32px;
  padding: 7px 10px;
}
.it-settings-body > nav button.active {
  background: #252525;
  color: #eee;
}
.it-settings-content {
  padding: 28px 32px;
  overflow: auto;
  flex: 1;
  min-width: 0;
}
.it-settings-content h3,
.it-drawer-body h3 {
  font-size: 10px;
  letter-spacing: 0.6px;
  font-weight: 450;
  color: #ddd;
  margin-bottom: 10px;
}
.it-settings-content > p {
  color: #888;
  font-size: 11px;
  line-height: 1.8;
  margin: 8px 0 18px;
}
.it-setting-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  padding: 18px 0;
  border-bottom: 1px solid #2c2c2c;
  font-size: 11px;
}
.it-setting-row b {
  font-weight: 450;
  color: #ddd;
}
.it-setting-row small {
  display: block;
  color: var(--it-muted);
  font-size: 10px;
  line-height: 1.6;
  margin-top: 5px;
  max-width: 440px;
}
.it-setting-row input[role="switch"] {
  appearance: none;
  width: 29px;
  height: 16px;
  background: #333;
  border-radius: 10px;
  position: relative;
  cursor: pointer;
  transition: background 0.15s;
  flex-shrink: 0;
}
.it-setting-row input[role="switch"]:checked {
  background: #62e89b;
}
.it-setting-row input[role="switch"]:after {
  content: "";
  display: block;
  position: absolute;
  width: 12px;
  height: 12px;
  left: 2px;
  top: 2px;
  border-radius: 50%;
  background: #999;
}
.it-setting-row input[role="switch"]:checked:after {
  left: 15px;
  background: #0f3820;
}
.it-info-box {
  background: #1f1f1f;
  border: 1px solid #333;
  padding: 16px;
  font-size: 11px;
  line-height: 1.9;
  color: #999;
  border-radius: 4px;
  margin: 15px 0;
}
.it-drawer {
  width: 390px;
  height: 100dvh;
  max-height: none;
  margin: 0 0 0 auto;
  border-radius: 0;
  border-right: 0;
  border-top: 0;
  border-bottom: 0;
  box-shadow: -20px 0 60px #0007;
}
.it-drawer-tabs {
  padding: 10px 12px;
  border-bottom: 1px solid #2b2b2b;
}
.it-drawer-tabs .it-segments {
  display: flex;
}
.it-drawer-tabs .it-segments button {
  flex: 1;
  height: 28px;
  font-size: 11px;
}
.it-drawer-body {
  flex: 1;
  min-height: 0;
  overflow: auto;
  padding: 21px 15px;
  scrollbar-width: thin;
  scrollbar-color: #444 transparent;
}
.it-drawer-body > p {
  font-size: 10px;
  color: var(--it-muted);
  line-height: 1.8;
  margin: 6px 0 18px;
}
.it-app .it-layout-card {
  padding: 12px 9px;
  display: flex;
  gap: 13px;
  width: 100%;
  text-align: left;
  justify-content: flex-start;
  border: 1px solid #2b2b2b;
  border-radius: 4px;
  margin-bottom: 8px;
  background: #191919;
}
.it-app .it-layout-card.active {
  background: #212121;
  border-color: #606060;
}
.it-layout-card > span {
  flex: 1;
}
.it-layout-card b {
  font-size: 11px;
  font-weight: 450;
  display: block;
}
.it-layout-card small {
  font-size: 9px;
  color: var(--it-muted);
  display: block;
  line-height: 1.5;
  margin-top: 3px;
}
.it-layout-card > svg {
  width: 14px;
  flex-shrink: 0;
}
.it-layout-preview {
  display: grid;
  grid-template-columns: 20% 48% 28%;
  grid-template-rows: 35px 14px;
  width: 87px;
  gap: 2px;
  flex-shrink: 0;
}
.it-layout-preview i {
  background: #555;
  border: 1px solid #666;
  border-radius: 1px;
}
.it-layout-preview i:nth-child(1) {
  background: #353535;
}
.it-layout-preview i:nth-child(3) {
  background: #3d3d3d;
}
.it-layout-preview i:nth-child(4) {
  grid-column: 1/4;
  background: #333;
}
.it-layout-preview.no-feed {
  grid-template-columns: 65% 31%;
}
.it-layout-preview.no-feed i:first-child {
  display: none;
}
.it-layout-preview.no-feed i:nth-child(4) {
  grid-column: 1/3;
}
.it-layout-preview.no-feed.no-book {
  grid-template-columns: 100%;
}
.it-layout-preview.no-feed.no-book i:nth-child(3) {
  display: none;
}
.it-layout-preview.no-feed.no-book i:nth-child(4) {
  grid-column: 1;
}
.it-drawer-body h3:not(:first-child) {
  margin-top: 25px;
}
.it-drawer-range {
  display: block;
  margin: 17px 0;
}
.it-drawer-range > span {
  display: flex;
  justify-content: space-between;
  font-size: 10px;
  color: #888;
  margin-bottom: 8px;
}
.it-drawer-range b {
  font-size: 9px;
  font-weight: 400;
  color: #ccc;
}
.it-drawer-footer {
  height: 52px;
  min-height: 52px;
  border-top: 1px solid #303030;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 13px;
  font-size: 9px;
  color: #888;
}
.it-drawer-footer button {
  font-size: 9px;
  color: #bbb;
}
.it-theme-card {
  border: 1px solid #666 !important;
  background: #212121 !important;
  width: 100%;
  padding: 12px !important;
  justify-content: flex-start !important;
  font-size: 11px;
  gap: 12px !important;
}
.it-theme-card > span {
  display: flex;
  width: 62px;
  height: 35px;
  gap: 3px;
}
.it-theme-card i {
  height: 100%;
  flex: 1;
  background: #0c0c0c;
  border: 1px solid #444;
}
.it-theme-card i:nth-child(2) {
  background: #151515;
}
.it-theme-card i:nth-child(3) {
  background: #212121;
}
.it-theme-card > b {
  font-size: 10px;
  flex: 1;
  font-weight: 450;
  text-align: left;
}
.it-theme-card > svg {
  width: 13px;
}
.it-palette-swatches {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
}
.it-palette-swatches > div {
  display: flex;
  flex-direction: column;
  gap: 6px;
  text-align: center;
}
.it-palette-swatches i {
  height: 34px;
  width: 100%;
  border: 1px solid #333;
  border-radius: 3px;
}
.it-palette-swatches code {
  font-size: 9px;
  color: #888;
}
.it-toast {
  position: fixed;
  right: 16px;
  bottom: 40px;
  background: #222;
  border: 1px solid #454545;
  box-shadow: 0 5px 30px #0008;
  border-radius: 5px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  max-width: 420px;
  color: #ccc;
  font-size: 11px;
  z-index: 9;
}
.it-toast > svg {
  color: #62e89b;
  flex-shrink: 0;
}
.it-toast .it-icon {
  height: 23px;
  width: 23px;
}
.it-app.comfortable .it-table td {
  height: 37px;
}
.it-app.comfortable .it-news-card p {
  font-size: 13px;
}
.it-app.comfortable .it-book-row {
  height: 23px;
  min-height: 23px;
}
.it-app.reduce-motion * {
  animation: none !important;
  transition: none !important;
  scroll-behavior: auto !important;
}
@media (min-width: 1700px) {
  .it-market-header {
    gap: 11px;
  }
  .it-market-header .it-market-metric {
    min-width: 65px;
  }
  .it-app-header {
    gap: 20px;
  }
  .it-header-search {
    width: 168px !important;
  }
}
@media (max-width: 1699px) and (min-width: 1281px) {
  .it-main-grid {
    grid-template-columns:
      minmax(260px, calc(var(--it-news-width) - 70px))
      minmax(300px, 1fr) minmax(280px, calc(var(--it-data-width) - 220px))
      61px;
  }
  .it-workbench.ticket-open .it-main-grid {
    grid-template-columns: 270px minmax(300px, 1fr) 300px 310px;
  }
  .it-top-nav {
    gap: 10px;
  }
  .it-app .it-top-nav button {
    font-size: 11px;
  }
  .it-header-tools {
    gap: 3px;
  }
  .it-header-search {
    width: 110px !important;
  }
  .it-hide-medium {
    display: none;
  }
  .it-header-tools .it-account-value {
    min-width: 70px;
  }
  .it-brand b {
    font-size: 16px;
  }
  .it-header-tools .it-icon {
    width: 26px;
  }
}
@media (max-width: 1280px) and (min-width: 768px) {
  .it-grid-feed {
    display: none;
  }
  .it-main-grid,
  .it-workbench.hide-feed .it-main-grid {
    grid-template-columns: minmax(300px, 1fr) 300px 61px;
  }
  .it-workbench.ticket-open .it-main-grid,
  .it-workbench.hide-feed.ticket-open .it-main-grid {
    grid-template-columns: minmax(320px, 1fr) 300px;
  }
  .it-workbench.ticket-open .it-grid-data {
    display: none;
  }
  .it-workbench.hide-data .it-main-grid,
  .it-workbench.hide-data.hide-feed .it-main-grid {
    grid-template-columns: minmax(300px, 1fr) 61px;
  }
  .it-workbench.hide-data.ticket-open .it-main-grid,
  .it-workbench.hide-data.hide-feed.ticket-open .it-main-grid {
    grid-template-columns: minmax(300px, 1fr) 300px;
  }
  .it-top-nav button:nth-child(n + 4) {
    display: none;
  }
  .it-brand b {
    font-size: 16px;
  }
  .it-app-header {
    gap: 12px;
  }
  .it-top-nav {
    gap: 12px;
  }
  .it-header-tools .it-header-search {
    width: 95px;
  }
  .it-header-tools > .it-icon {
    width: 26px;
  }
  .it-account-value {
    min-width: 65px !important;
  }
  .it-market-metric.it-hide-medium {
    display: none;
  }
  .it-status-source {
    display: none;
  }
  .it-market-overview b {
    font-size: 18px;
  }
  .it-resize-handle {
    display: none;
  }
}
@media (max-width: 767px) {
  .it-app {
    height: auto;
    min-height: 100dvh;
    overflow: visible;
    padding-bottom: 49px;
  }
  .it-app-header {
    height: 43px;
    min-height: 43px;
    padding: 0 10px;
    gap: 8px;
  }
  .it-brand b {
    font-size: 17px;
  }
  .it-brand svg {
    height: 24px;
    width: 24px;
  }
  .it-top-nav {
    display: none;
  }
  .it-header-tools {
    gap: 4px;
  }
  .it-header-tools > .it-icon:not([aria-label="Customize workspace"]) {
    display: none;
  }
  .it-header-tools .it-header-search {
    width: 27px;
    border: 0;
    padding: 0;
    justify-content: center;
    background: none;
  }
  .it-header-search > span,
  .it-header-search kbd,
  .it-account-button,
  .it-account-value {
    display: none !important;
  }
  .it-mode-badge {
    font-size: 8px !important;
    padding: 3px !important;
  }
  .it-ticker {
    height: 33px;
    min-height: 33px;
    padding: 0 7px;
  }
  .it-ticker-items {
    gap: 9px;
  }
  .it-ticker-items button {
    font-size: 10px !important;
  }
  .it-ticker-items .mono {
    font-size: 9px;
  }
  .it-mobile-market {
    height: 45px;
    min-height: 45px;
    display: flex;
    align-items: center;
    padding: 0 10px;
    gap: 7px;
    background: #141414;
    border-bottom: 1px solid #242424;
  }
  .it-mobile-market > button {
    padding: 0;
    font-size: 12px;
    gap: 5px;
  }
  .it-mobile-market > b {
    font-size: 12px;
    font-weight: 450;
  }
  .it-mobile-market > .mono {
    font-size: 10px;
  }
  .it-mobile-tabs {
    display: flex;
    align-items: center;
    height: 36px;
    min-height: 36px;
    background: #151515;
    padding: 0 8px;
  }
  .it-mobile-tabs .it-segments {
    background: none;
    gap: 9px;
    padding: 0;
  }
  .it-mobile-tabs .it-segments button {
    font-size: 10px;
    padding: 5px 7px;
    min-height: 28px;
  }
  .it-mobile-tabs .it-segments button.active {
    background: none;
    color: #eee;
  }
  .it-workbench {
    display: flex;
    flex-direction: column;
    padding: 0 0 7px;
    gap: 7px;
    flex: none;
    min-height: 0;
  }
  .it-main-grid,
  .it-workbench.ticket-open .it-main-grid,
  .it-workbench.hide-feed .it-main-grid,
  .it-workbench.hide-feed.ticket-open .it-main-grid,
  .it-workbench.hide-data .it-main-grid,
  .it-workbench.hide-data.ticket-open .it-main-grid,
  .it-workbench.hide-data.hide-feed .it-main-grid,
  .it-workbench.hide-data.hide-feed.ticket-open .it-main-grid {
    display: block;
    height: 460px;
    min-height: 460px;
  }
  .it-grid-feed,
  .it-grid-data,
  .it-grid-ticket,
  .it-grid-chart {
    display: none;
    height: 100%;
    width: 100%;
  }
  .it-workbench.mobile-chart .it-grid-chart {
    display: block;
  }
  .it-workbench.mobile-order-book .it-grid-data {
    display: block;
  }
  .it-workbench.mobile-flow .it-grid-feed {
    display: block;
  }
  .it-workbench.mobile-trade .it-grid-ticket {
    display: block;
  }
  .it-workbench.mobile-trade .it-main-grid {
    height: 590px;
  }
  .it-workbench.mobile-flow .it-main-grid {
    height: 560px;
  }
  .it-panel {
    border-radius: 0;
    border-left: 0;
    border-right: 0;
  }
  .it-market-header {
    display: none;
  }
  .it-chart-toolbar {
    height: 31px;
    min-height: 31px;
    padding-left: 4px;
    gap: 1px;
  }
  .it-timeframes button {
    font-size: 9px !important;
    padding: 4px 5px !important;
  }
  .it-chart-toolbar > .it-icon {
    width: 22px;
  }
  .it-chart-toolbar > .it-divider {
    margin: 0 2px;
  }
  .it-chart-toolbar > .it-icon[aria-label*="advanced"] {
    display: none;
  }
  .it-drawing-rail {
    width: 30px;
    gap: 6px;
    padding-top: 5px;
  }
  .it-drawing-rail .it-icon {
    width: 26px;
    height: 26px;
  }
  .it-ohlc {
    left: 5px;
    top: 5px;
    font-size: 8px;
    right: 64px;
    line-height: 15px;
    white-space: normal;
    max-height: 32px;
  }
  .it-ohlc span {
    display: block;
    margin: 0;
  }
  .it-watermark {
    font-size: 42px;
  }
  .it-watermark span {
    font-size: 8px;
    letter-spacing: 6px;
  }
  .it-bottom {
    height: 195px;
    min-height: 195px;
    flex: none;
  }
  .it-bottom-tabs {
    height: 33px;
    min-height: 33px;
    gap: 8px;
  }
  .it-bottom-tabs button {
    font-size: 10px !important;
  }
  .it-bottom-toolbar > small {
    display: none;
  }
  .it-table td {
    font-size: 10px;
  }
  .it-statusbar {
    height: 24px;
    min-height: 24px;
    font-size: 8px;
    gap: 6px;
    padding: 0 8px;
  }
  .it-statusbar > .mono {
    font-size: 8px;
  }
  .it-status-source {
    display: none;
  }
  .it-mobile-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: 49px;
    background: #151515fa;
    border-top: 1px solid #303030;
    display: flex;
    align-items: stretch;
    z-index: 8;
    padding-bottom: env(safe-area-inset-bottom, 0px);
  }
  .it-mobile-nav button {
    flex: 1;
    display: flex;
    flex-direction: column;
    font-size: 9px;
    gap: 3px;
    color: var(--it-muted);
    border-radius: 0;
    padding: 6px 0;
  }
  .it-mobile-nav button.active {
    color: #eee;
  }
  .it-mobile-nav svg {
    width: 16px;
    height: 16px;
  }
  .it-resize-handle {
    display: none;
  }
  .it-page {
    padding: 10px 7px;
    min-height: calc(100dvh - 150px);
  }
  .it-page-heading h1 {
    font-size: 17px;
  }
  .it-page-heading p {
    font-size: 9px;
  }
  .it-market-overview {
    grid-template-columns: repeat(2, 1fr);
    gap: 6px;
  }
  .it-market-overview > div {
    padding: 10px;
  }
  .it-market-overview b {
    font-size: 17px;
  }
  .it-market-overview > div:last-child b {
    font-size: 11px;
  }
  .it-page .it-market-browser {
    min-height: 450px;
  }
  .it-browser-filters {
    gap: 7px;
    padding: 6px;
  }
  .it-browser-filters .it-segments button {
    font-size: 9px;
    padding: 3px 5px;
  }
  .it-palette-input {
    height: 42px;
    min-height: 42px;
    padding: 0 10px;
  }
  .it-palette-input input {
    font-size: 12px !important;
  }
  .it-market-browser .it-table td {
    height: 43px;
  }
  .it-asset-cell {
    min-width: 165px;
    gap: 6px;
  }
  .it-asset-select b {
    font-size: 11px;
  }
  .it-asset-select small {
    font-size: 8px;
  }
  .it-modal {
    width: calc(100vw - 16px);
    height: calc(100dvh - 32px);
    border-radius: 5px;
    margin: 16px auto;
  }
  .it-modal-heading {
    height: 44px;
    min-height: 44px;
    padding: 0 12px;
  }
  .it-modal-heading h2 {
    font-size: 10px;
  }
  .it-modal .it-market-browser .it-palette-input {
    height: 48px;
    min-height: 48px;
  }
  .it-settings-body {
    flex-direction: column;
  }
  .it-settings-body > nav {
    width: 100%;
    flex-direction: row;
    padding: 6px;
    border-right: 0;
    border-bottom: 1px solid #303030;
    gap: 3px;
  }
  .it-settings-body > nav button {
    font-size: 9px;
    height: 27px;
    padding: 5px 9px;
  }
  .it-settings-content {
    padding: 20px 15px;
  }
  .it-setting-row {
    gap: 10px;
    padding: 16px 0;
  }
  .it-setting-row small {
    font-size: 10px;
  }
  .it-setting-row kbd {
    font-size: 8px;
  }
  .it-drawer {
    width: 100%;
    height: 100dvh;
    margin: 0;
    border-radius: 0;
  }
  .it-drawer-body {
    padding: 17px;
  }
  .it-drawer-footer {
    font-size: 10px;
  }
  .it-palette-footer {
    gap: 9px;
    font-size: 8px;
    padding: 0 8px;
  }
  .it-palette-footer kbd {
    font-size: 8px;
  }
  .it-toast {
    left: 10px;
    right: 10px;
    bottom: 58px;
    width: auto;
    font-size: 10px;
  }
  .it-ticket {
    padding: 0 15px 18px;
  }
  .it-ticket .it-panel-toolbar {
    margin-left: -15px;
    margin-right: -15px;
  }
  .it-book-row {
    height: 21px !important;
    min-height: 21px !important;
  }
  .it-feed .it-rail,
  .it-market-data .it-rail {
    width: 43px;
  }
  .it-news-card p {
    font-size: 12px;
  }
  .it-book-mid b {
    font-size: 17px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .it-app * {
    transition: none !important;
    animation: none !important;
    scroll-behavior: auto !important;
  }
}
@media (forced-colors: active) {
  .it-app .it-panel,
  .it-app .it-modal {
    border: 1px solid CanvasText;
  }
  .it-app button {
    forced-color-adjust: auto;
  }
  .it-app .it-book-bar {
    display: none;
  }
}

/* Native Benmork slots. Calculations and action ownership stay in the host components. */
body.is-terminal { margin: 0; background: var(--it-bg); }
.term.it-app { display: flex; padding: 0; gap: 0; margin: 0; width: 100%; max-width: none; min-height: 640px; }
.it-app [hidden] { display: none !important; }
.it-app a { color: inherit; text-decoration: none; }
.it-app a:focus-visible { outline: 2px solid var(--it-buy); outline-offset: 2px; }
.it-app-header { overflow: visible; }
.it-app .it-brand { display: inline-flex; align-items: center; gap: 6px; flex-shrink: 0; }
.it-app .it-brand svg { width: 22px; height: 22px; }
.it-app .it-top-nav a { font-size: 11px; color: var(--it-muted); white-space: nowrap; }
.it-app .it-top-nav a:hover { color: var(--it-text); }
.it-app .it-account-button { padding: 4px 10px; background: var(--it-text); color: var(--it-bg); border-radius: 3px; white-space: nowrap; }
.it-app .octo-account-select select { max-width: 150px; padding: 4px; font-size: 11px; }
.it-app .octo-lang { padding: 6px; }
.it-app .it-header-tools form { margin: 0; }
.it-app .octo-market-head { display: flex; align-items: center; gap: 9px; min-height: 45px; padding: 5px 10px; flex-shrink: 0; border-bottom: 1px solid var(--it-soft-border); white-space: nowrap; }
.it-app .octo-market-head strong { font-size: 13px; }
.it-app .octo-feed-state { display: flex; align-items: center; gap: 6px; min-height: 24px; padding: 2px 10px; color: var(--it-muted); border-bottom: 1px solid var(--it-soft-border); font-size: 11px; }
.it-app .octo-feed-state time { margin-left: auto; }
.it-app .it-grid-chart { display: flex; flex-direction: column; overflow: visible; }
.it-app .octo-native-chart { flex: 1; min-height: 0; min-width: 0; overflow: hidden; background: var(--it-chart); }
.it-app .chart-shell { font-family: 'Geist Variable', sans-serif; }
.it-app .chart-bar { min-height: 35px; }
.it-app .chart-intervals button { min-height: 28px; font-size: 11px; }
.it-app .chart-shell .chart-body { min-height: 0; }
.it-app .chart-canvas { min-width: 0; min-height: 0; }
.it-app .chart-wait { height: 100%; }
.it-app .octo-instrument-card { position: relative; }
.it-app .octo-instrument-card > summary { list-style: none; cursor: pointer; display: flex; padding: 5px; }
.it-app .octo-instrument-card > summary:focus-visible { outline: 2px solid var(--it-buy); }
.it-app .octo-instrument-card > .inst-card { position: absolute; z-index: 30; top: 32px; left: -80px; width: 320px; max-height: 65vh; overflow: auto; padding: 12px; white-space: normal; background: var(--it-panel); border: 1px solid var(--it-border); box-shadow: 0 10px 30px #0008; }
.it-app .it-ticket { display: flex; flex-direction: column; }
.it-app .octo-native-order { overflow-y: auto; flex: 1; min-height: 0; }
.it-app .order-panel { padding: 10px; border: 0; border-radius: 0; background: transparent; }
.it-app .order-panel .panel-h { font-family: inherit; font-size: 12px; }
.it-app .order-panel button { border-radius: 3px; }
.it-app .order-panel .op-types button { display: block; padding: 8px 5px; border-bottom: 2px solid transparent; }
.it-app .order-panel .op-types button[aria-checked='true'] { border-bottom-color: var(--it-buy); }
.it-app .order-panel .op-sides { gap: 8px; }
.it-app .order-panel button.buy { background: var(--it-buy); color: var(--it-bg); }
.it-app .order-panel button.sell { background: var(--it-sell); color: var(--it-bg); }
.it-app .order-panel input { min-height: 36px; }
.it-app .order-panel input[type='range'] { min-height: 20px; padding: 0; border: 0; }
.it-app .order-panel .op-check input { width: auto; }
.it-app .order-panel .op-step button { min-width: 32px; }
.it-app .order-panel .unit-btn { background: var(--it-raised); }
.it-app .area-margin { padding: 10px; background: transparent; border: 0; border-top: 1px solid var(--it-soft-border); }
.it-app .area-margin h2 { font-family: inherit; font-size: 12px; }
.it-app .area-margin dl > div { display: flex; justify-content: space-between; gap: 8px; padding: 3px 0; }
.it-app .area-margin dt { color: var(--it-muted); }
.it-app .area-margin dd { margin: 0; }
.it-app .octo-native-account { height: 100%; min-width: 0; overflow: auto; }
.it-app .octo-native-account > div:not([hidden]) { height: 100%; }
.it-app .tables { height: 100%; min-height: 0; }
.it-app .tables-head { flex-shrink: 0; }
.it-app .tabs-mini { display: flex; overflow-x: auto; }
.it-app .tabs-mini button { min-height: 34px; padding: 5px 12px; border-bottom: 1px solid transparent; border-radius: 0; white-space: nowrap; }
.it-app .tabs-mini button[aria-selected='true'] { color: var(--it-text); border-bottom-color: var(--it-buy); }
.it-app .table-scroll { min-height: 0; flex: 1; }
.it-app .empty-row { padding: 12px; font-size: 12px; }
.it-app .grid-table { font-size: 11px; }
.it-app .grid-table th { font-size: 10px; background: var(--it-panel); }
.it-app .grid-table td { padding: 4px 10px; }
.it-app .grid-table .row-actions button { border: 1px solid var(--it-border); }
.it-app .it-statusbar { min-height: 26px; font-size: 10px; }
.it-app .it-statusbar button { font-size: 10px; }
.it-app .it-statusbar .term-credit { margin: 0; font-size: 10px; flex-shrink: 0; }
.it-app .it-statusbar .octo-disclosure { white-space: nowrap; }
.it-app .it-depth { flex: 1; min-height: 0; }
.it-app .it-depth svg { max-height: calc(100% - 30px); }
.it-app .it-book-ratio { color: var(--it-muted); }
.it-app .it-live-dot { flex-shrink: 0; }
.it-app .it-unavailable { color: var(--it-muted); padding: 14px; }
.it-app .mono, .it-app .num { font-variant-numeric: tabular-nums; }
@media (min-width: 768px) and (max-width: 1699px) {
  .it-app .octo-volume { display: none; }
}
/* The section links need the width: from 1200 px, below that the phone strip (site-nav.css) carries them. */
@media (min-width: 768px) and (max-width: 1199px) {
  .it-app .it-top-nav a { display: none; }
}
@media (max-width: 1280px) and (min-width: 768px) {
  .it-app .it-header-tools .it-account-value { display: none; }
}
@media (max-width: 767px) {
  .term.it-app { min-height: 100dvh; padding-bottom: 56px; }
  .it-app .it-app-header { min-height: 52px; height: auto; flex-wrap: wrap; padding-block: 4px; gap: 4px; }
  .it-app .it-brand b { font-size: 15px; }
  .it-app .it-header-tools { margin-left: auto; flex-wrap: wrap; justify-content: flex-end; }
  .it-app .it-header-tools .it-icon { display: inline-flex; min-width: 36px; min-height: 44px; }
  .it-app .it-header-tools .it-icon[aria-pressed] { padding: 4px; }
  .it-app .it-header-tools .it-account-value, .it-app .it-header-tools .it-mode-badge { display: none; }
  .it-app .it-header-tools > form { display: none; }
  .it-app .octo-lang { min-width: 44px; min-height: 44px; display: flex; align-items: center; justify-content: center; }
  .it-app .it-header-search { min-width: 36px; min-height: 44px; }
  .it-app .it-account-button { display: inline-flex; min-height: 44px; align-items: center; max-width: 115px; overflow: hidden; text-overflow: ellipsis; }
  .it-app .octo-account-select { width: 100%; order: 10; }
  .it-app .octo-account-select select { max-width: none; width: 100%; min-height: 44px; }
  .it-app .octo-market-head { gap: 5px; flex-wrap: wrap; font-size: 11px; }
  .it-app .octo-market-head .it-spacer { display: none; }
  .it-app .octo-market-head .it-segments { margin-left: auto; }
  .it-app .octo-market-head button { min-height: 44px; }
  .it-app .octo-native-chart { min-height: 340px; }
  .it-app .octo-feed-state { font-size: 11px; flex-wrap: wrap; }
  .it-app .octo-feed-state time { font-size: 10px; }
  .it-app .octo-instrument-card > .inst-card { left: -75px; width: min(310px,calc(100vw - 24px)); }
  .it-app .octo-native-order { overflow: visible; }
  .it-app .octo-native-account { min-height: 200px; }
  .it-app .it-statusbar { flex-wrap: wrap; height: auto; min-height: 60px; padding: 6px 10px; }
  .it-app .it-statusbar .term-credit { display: block; }
  .it-app .it-mobile-tabs button, .it-app .it-mobile-nav button { min-height: 44px; }
  .it-app .it-ticker button { min-height: 44px; }
  .it-app .it-ticker { min-height: 46px; }
  .it-app .it-rail .it-icon { min-height: 44px; }
  .it-app .it-book-row { min-height: 44px; }
  .it-app .it-panel-toolbar button, .it-app .it-subtoolbar button, .it-app .it-subtoolbar select { min-height: 44px; }
  .it-app .tabs-mini button { min-height: 44px; }
  .it-app .grid-table .row-actions button { min-height: 44px; }
  .it-app .it-grid-ticket { overflow: visible; }
  .it-app .it-workbench.mobile-trade .it-main-grid { height: auto; }
}
.it-app .mh-name { color: var(--it-muted); font-size: 11px; }
.it-app .octo-feed-state .feed-src { margin-left: auto; font-size: 10px; padding: 0; border: 0; background: transparent; }
.it-app .octo-feed-state time { margin-left: 0; }
@media (max-width: 1699px) { .it-app .mh-name, .it-app .octo-feed-state .feed-src { display: none; } }
@media (max-width: 767px) {
  .it-app .it-grid-chart { display: none; }
  .it-app .it-workbench.mobile-chart .it-grid-chart { display: flex; }
}
@media (max-width: 767px) {
  .it-app .it-header-tools .it-account-button { display: inline-flex !important; max-width: 68px; font-size: 11px; }
  .it-app .it-header-tools > .it-icon[title='Приватность'], .it-app .it-header-tools > .it-icon[title='Toggle privacy mode'] { display: none; }
  .it-app .octo-volume { display: none; }
  .it-app .octo-market-head > button:first-child { display: none; }
}

/* Keep the instrument, panel controls and feed status on one scrollable row. */
.it-app .it-workbench { grid-template-rows: auto minmax(0, 1fr) var(--it-bottom-height); }
.it-app .octo-market-strip { display: flex; align-items: center; min-width: 0; gap: 2px; background: var(--it-panel); border-bottom: 1px solid var(--it-soft-border); }
.it-app .octo-market-strip > .octo-instrument-card { flex: 0 0 auto; margin-left: 5px; z-index: 31; }
.it-app .octo-market-strip > .octo-instrument-card > .inst-card { left: 0; }
.it-app .octo-market-scroll { flex: 1; min-width: 0; min-height: 44px; padding: 0 6px; gap: 8px; flex-wrap: nowrap; overflow-x: auto; overscroll-behavior-x: contain; scrollbar-width: thin; border: 0; }
.it-app .octo-market-scroll:focus-visible { outline: 2px solid var(--it-buy); outline-offset: -2px; }
.it-app .octo-market-scroll > * { flex-shrink: 0; }
.it-app .octo-market-scroll > button:first-child { display: inline-flex; }
.it-app .octo-market-scroll .it-spacer { display: block; flex: 1 0 8px; }
.it-app .octo-market-scroll .octo-feed-state { flex-wrap: nowrap; white-space: nowrap; border: 0; padding: 0; min-height: 0; }
.it-app .octo-market-scroll .octo-feed-state .feed-src { display: inline; margin-left: 0; }
@media (max-width: 767px) {
  .it-app .octo-market-scroll { font-size: 11px; gap: 6px; }
  .it-app .octo-market-scroll strong { font-size: 12px; }
  .it-app .octo-market-scroll .it-mobile-tabs { padding: 0; height: auto; min-height: 44px; background: transparent; }
  .it-app .octo-market-scroll .it-mobile-tabs .it-segments { gap: 0; }
  .it-app .octo-market-scroll .it-mobile-tabs button { padding-inline: 8px; }
  .it-app .octo-market-strip > .octo-instrument-card > summary { min-height: 44px; align-items: center; }
}

/* Compact header, data dot and one phone panel switch (task 13, beta 2).
   Header: brand, search, account, menu on one line at every width; settings, layout,
   privacy and language live in the menu on phones. */
.it-app { --m-head: 52px; --m-ticker: 44px; --m-strip: 48px; --m-nav: 56px; }
.it-app .it-app-header { flex-wrap: nowrap; min-width: 0; }
.it-app .it-header-tools { flex-wrap: nowrap; min-width: 0; }
.it-app .it-desk-tools { display: inline-flex; align-items: center; gap: 3px; }
.it-app .it-account-value { display: inline-flex; align-items: center; gap: 5px; white-space: nowrap; flex-shrink: 0; }
.it-app .it-account-button, .it-app .it-account-button:hover { display: inline-flex; align-items: center; gap: 7px; min-width: 0; max-width: 200px; height: 30px; padding: 0 10px 0 3px; color: var(--it-text) !important; background: var(--it-raised) !important; border: 1px solid var(--it-border); border-radius: 15px; font-size: 11px; white-space: nowrap; }
.it-app .it-account-button:hover { border-color: var(--it-muted); }
.it-app .it-account-signin, .it-app .it-account-signin:hover { padding-left: 12px; }
.it-app .it-avatar { display: grid; place-items: center; flex: none; width: 24px; height: 24px; border-radius: 50%; background: var(--it-bg); color: var(--it-buy); font-size: 11px; font-weight: 600; }
.it-app .it-account-name { min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.it-app .it-header-menu { position: relative; flex: none; }
.it-app .it-header-menu > summary { display: grid; place-items: center; width: 32px; height: 30px; list-style: none; cursor: pointer; color: var(--it-text); border-radius: var(--it-radius); }
.it-app .it-header-menu > summary::-webkit-details-marker { display: none; }
.it-app .it-header-menu > summary:hover, .it-app .it-header-menu[open] > summary { background: var(--it-raised); }
.it-app .it-header-menu > summary:focus-visible { outline: 2px solid var(--it-buy); outline-offset: 1px; }
.it-app .it-menu-pop { position: absolute; z-index: 60; top: calc(100% + 6px); right: 0; display: grid; min-width: 220px; padding: 6px; background: var(--it-panel); border: 1px solid var(--it-border); border-radius: var(--it-radius); box-shadow: 0 12px 32px rgb(0 0 0 / 0.5); }
.it-app .it-menu-pop > button, .it-app .it-menu-pop > a, .it-app .it-menu-pop form button { display: flex; align-items: center; gap: 10px; width: 100%; min-height: 40px; padding: 0 10px; justify-content: flex-start; color: var(--it-text); font-size: 12px; text-align: left; background: none; border: 0; border-radius: var(--it-radius); }
.it-app .it-menu-pop > button:hover, .it-app .it-menu-pop > a:hover, .it-app .it-menu-pop form button:hover { background: var(--it-raised); }
.it-app .it-menu-pop > button[aria-pressed='true'] { color: var(--it-buy); }
.it-app .it-menu-pop form { margin: 0; padding-top: 4px; border-top: 1px solid var(--it-soft-border); }
.it-app .it-menu-pop .octo-account-select { display: block; padding: 4px; }
.it-app .it-menu-pop .octo-account-select select { width: 100%; max-width: none; min-height: 40px; }
.it-app .octo-lang-code { display: inline-grid; place-items: center; width: 22px; font-size: 11px; font-weight: 600; color: var(--it-muted); }
.it-app .it-menu-mobile { display: none !important; }

/* Favourite pairs: whole chips only. A chip that does not fit wraps onto a hidden row,
   the plus has its own column and opens the full list. */
.it-app .it-ticker { padding-right: 0; gap: 0; }
.it-app .it-ticker-items { flex-wrap: wrap; align-content: flex-start; overflow: hidden; row-gap: 12px; column-gap: 12px; height: 100%; padding-right: 8px; }
.it-app .it-ticker-items button { height: 100%; }
.it-app .it-ticker-search { position: static; flex: none; display: grid; place-items: center; width: 40px; height: 100%; border: 0; border-left: 1px solid var(--it-soft-border); border-radius: 0; background: var(--it-bg); }

/* The instrument row: no scroll, so the data popover is never clipped. */
.it-app .octo-market-scroll { overflow: visible; }
.it-app .octo-market-scroll > button:first-child { min-width: 0; }
.it-app .octo-feed-dot { position: relative; flex: none; }
.it-app .octo-feed-dot > summary { display: inline-flex; align-items: center; gap: 6px; min-height: 30px; padding: 0 6px; list-style: none; cursor: pointer; color: var(--it-muted); border-radius: var(--it-radius); }
.it-app .octo-feed-dot > summary::-webkit-details-marker { display: none; }
.it-app .octo-feed-dot > summary:hover, .it-app .octo-feed-dot[open] > summary { background: var(--it-raised); color: var(--it-text); }
.it-app .octo-feed-dot > summary:focus-visible { outline: 2px solid var(--it-buy); outline-offset: 1px; }
.it-app .octo-feed-dot .octo-feed-word { color: var(--it-warn); font-size: 11px; font-weight: 500; }
.it-app .octo-feed-dot.data-lost .octo-feed-word { color: var(--it-sell); }
.it-app .octo-feed-dot.data-lost .it-live-dot { background: var(--it-sell); box-shadow: none; }
.it-app .octo-feed-pop { position: absolute; z-index: 40; top: calc(100% + 6px); left: 0; display: grid; gap: 4px; width: max-content; max-width: min(300px, calc(100vw - 24px)); padding: 10px 12px; white-space: normal; font-size: 11px; color: var(--it-muted); background: var(--it-panel); border: 1px solid var(--it-border); border-radius: var(--it-radius); box-shadow: 0 12px 32px rgb(0 0 0 / 0.5); }
.it-app .octo-feed-pop strong { color: var(--it-text); font-weight: 500; }
.it-app .octo-feed-pop .feed-src { display: block; padding: 0; border: 0; background: none; font-size: 11px; color: var(--it-text); }
.it-app .octo-feed-pop time { font-variant-numeric: tabular-nums; }

@media (max-width: 767px) {
  .term.it-app { padding-bottom: calc(var(--m-nav) + env(safe-area-inset-bottom, 0px)); }
  .it-app .it-app-header { height: var(--m-head); min-height: var(--m-head); flex-wrap: nowrap; padding: 0 8px 0 12px; gap: 6px; }
  .it-app .it-brand { padding: 0; }
  .it-app .it-brand b { font-size: 16px; }
  .it-app .it-header-tools { margin-left: auto; gap: 4px; justify-content: flex-end; }
  .it-app .it-desk-tools, .it-app .it-header-tools .it-mode-badge, .it-app .it-header-tools .it-account-value { display: none !important; }
  .it-app .it-header-tools .it-header-search { display: grid; place-items: center; width: 44px; min-width: 44px; height: 44px; padding: 0; border: 0; background: none; color: var(--it-text); }
  .it-app .it-header-tools .it-account-button { display: inline-flex !important; height: 36px; min-height: 36px; max-width: 128px; font-size: 12px; border-radius: 18px; }
  .it-app .it-avatar { width: 28px; height: 28px; font-size: 12px; }
  .it-app .it-header-menu > summary { width: 44px; height: 44px; }
  .it-app .it-menu-mobile { display: flex !important; }
  .it-app .it-menu-pop { position: fixed; top: calc(var(--m-head) - 2px); right: 8px; left: auto; width: min(280px, calc(100vw - 16px)); }

  .it-app .it-ticker { height: var(--m-ticker); min-height: var(--m-ticker); padding-left: 10px; }
  .it-app .it-ticker-items { column-gap: 14px; }
  .it-app .it-ticker-items button { min-height: var(--m-ticker); font-size: 11px !important; }
  .it-app .it-ticker-items .mono { font-size: 10px; }
  .it-app .it-ticker-items .it-market-logo { display: none; }
  .it-app .it-ticker-items button { gap: 5px; padding-inline: 2px; }
  .it-app .it-ticker-search { width: 44px; }

  .it-app .octo-market-strip { height: var(--m-strip); }
  .it-app .octo-market-scroll { min-height: var(--m-strip); padding: 0 4px; gap: 8px; }
  .it-app .octo-market-scroll strong { font-size: 13px; }
  .it-app .octo-market-scroll > b { font-size: 13px; }
  .it-app .octo-market-scroll .octo-chart-view, .it-app .octo-market-scroll .it-spacer { display: none; }
  .it-app .octo-feed-dot { margin-left: auto; }
  .it-app .octo-feed-dot > summary { min-height: 44px; padding: 0 8px; }
  .it-app .octo-feed-pop { left: auto; right: 0; }
  .it-app .octo-feed-word + svg { display: none; }
  .it-app .octo-feed-dot > summary:has(.octo-feed-word) { padding: 0 4px; }

  /* The panel fills the screen between the instrument row and the bottom bar. */
  .it-app .it-main-grid,
  .it-app .it-workbench.ticket-open .it-main-grid,
  .it-app .it-workbench.hide-feed .it-main-grid,
  .it-app .it-workbench.hide-data .it-main-grid,
  .it-app .it-workbench.hide-data.hide-feed .it-main-grid { height: max(360px, calc(100dvh - var(--m-head) - var(--m-ticker) - var(--m-strip) - var(--m-nav) - env(safe-area-inset-bottom, 0px))); min-height: 0; }
  .it-app .it-workbench.mobile-trade .it-main-grid { height: auto; min-height: 0; }
  /* «Лента» on phones: the panel takes the screen between the strip and the bottom bar, so the news column
     scrolls inside it (height: auto let it grow to ~53 000 px and the finger moved nothing, task 46). */
  .it-app .it-workbench.mobile-flow .it-main-grid { height: max(360px, calc(100dvh - var(--m-head) - var(--m-ticker) - var(--m-strip) - var(--m-nav) - env(safe-area-inset-bottom, 0px))); min-height: 0; }
  .it-app .it-workbench.mobile-flow .it-grid-feed, .it-app .it-workbench.mobile-flow .it-grid-feed > .it-feed { height: 100%; min-height: 0; }
  /* At the top or bottom of the feed the swipe goes on to the page (account panel below), instead of stopping. */
  .it-app .it-workbench.mobile-flow .bnc-feed { overscroll-behavior-y: auto; }
  .it-app .it-workbench { padding: 0; gap: 0; }
  .it-app .octo-native-chart { min-height: 0; }
  .it-app .it-grid-data { overflow: hidden; }
  .it-app .it-grid-data > * { max-width: 100%; }

  /* The bottom bar is solid and above the chart, never a veil over it. */
  .it-app .it-mobile-nav { z-index: 50; height: calc(var(--m-nav) + env(safe-area-inset-bottom, 0px)); background: var(--it-bg); border-top: 1px solid var(--it-border); }
  .it-app .it-mobile-nav button { justify-content: center; align-items: center; gap: 4px; min-height: var(--m-nav); font-size: 10px; position: relative; }
  .it-app .it-mobile-nav button.active { color: var(--it-text); }
  /* Profile at the right end of the phone bar (Chip, 10.11); the order book item left the bar. */
  .it-app .it-mobile-nav > a.it-mobile-nav-profile { flex: 1; display: flex; flex-direction: column; justify-content: center; align-items: center; gap: 4px; min-height: var(--m-nav); font-size: 10px; color: var(--it-muted); }
  .it-app .it-mobile-nav > a.it-mobile-nav-profile:focus-visible { outline: 2px solid var(--it-buy); outline-offset: -2px; }
  .it-app .it-mobile-nav button.active::before { content: ''; position: absolute; top: -1px; left: 22%; right: 22%; height: 2px; background: var(--it-buy); }
  .it-app .it-mobile-nav svg { width: 18px; height: 18px; }
}
@media (max-width: 359px) {
  .it-app .it-brand b { display: none; }
}

/* Order form share field: the generic Octo input box (border, padding, min-height) clipped «57» to «5'». */
.it-app .order-panel .op-pct-in input { width: 4ch; min-width: 4ch; min-height: 0; height: auto; padding: 0; border: 0; background: none; text-align: right; }
.it-app .order-panel .op-ticks { color: var(--it-muted); }
@media (max-width: 759px) {
  /* Percent field beside the slider on phones: 64 x 36, number right-aligned, «%» suffix inside. */
  .it-app .order-panel .op-size .op-step { width: 64px; height: 36px; border-radius: var(--it-radius); }
  .it-app .order-panel .op-size .op-pct-in { flex: 1; min-width: 0; height: 34px; padding: 0 8px 0 4px; border: 0; justify-content: flex-end; gap: 1px; font: 500 14px var(--font-mono); font-variant-numeric: tabular-nums; }
  .it-app .order-panel .op-size .op-pct-in input { width: 3ch; min-width: 3ch; }
  .it-app .order-panel .op-ticks span.on { color: var(--it-text); }
}
@media (max-width: 767px) {
  /* Order book under the chart on the phone's Chart tab (Chip, 10.11): the chart keeps its screen-high box,
     the existing market data panel follows in the page flow at a fixed height, then the account tables.
     :not(#_) only lifts these rules over the per-state height rules above. */
  .it-app .it-workbench.mobile-chart .it-main-grid:not(#_) { height: auto; min-height: 0; }
  /* The chart (an iframe or a canvas) takes every swipe made on it. On phones it keeps about 60% of the screen
     between the strip and the bottom bar, so the order book below stays in view and a swipe there scrolls the page
     to the book, trades and positions (task 46; it used to fill the whole screen). */
  /* Default about 78% of the area between the strip and the bottom bar; the bar under the chart changes it
     (--m-chart-h, kept in this browser) up to all but 60 px of that area; the book below is then reached by scrolling. */
  .it-app .it-workbench.mobile-chart .it-grid-chart:not(#_) {
    --m-avail: calc(100dvh - var(--m-head) - var(--m-ticker) - var(--m-strip) - var(--m-nav) - env(safe-area-inset-bottom, 0px));
    position: relative; padding-bottom: 22px;
    height: min(max(220px, var(--m-chart-h, calc(var(--m-avail) * 0.78))), max(220px, calc(var(--m-avail) - 60px)));
  }
  .it-app .it-workbench.mobile-chart .it-chart-sizer { display: flex; }
  .it-app .it-workbench.mobile-chart .it-grid-data:not(#_) { display: block; height: auto; border-top: 1px solid var(--it-soft-border); }
  .it-app .it-workbench.mobile-chart .it-grid-data .it-book-scroll { overflow: visible; }
  /* Compact: the 8 asks and 8 bids nearest the price, so both sides and the spread fit under the chart. */
  .it-app .it-workbench.mobile-chart .it-book-scroll > .it-book-row:has(+ .it-book-row + .it-book-row + .it-book-row + .it-book-row + .it-book-row + .it-book-row + .it-book-row + .it-book-row ~ .it-book-mid),
  .it-app .it-workbench.mobile-chart .it-book-mid + .it-book-row + .it-book-row + .it-book-row + .it-book-row + .it-book-row + .it-book-row + .it-book-row + .it-book-row ~ .it-book-row { display: none; }
}
@media (max-width: 767px) {
  /* Account tables on phones (Chip, 10.11): no inner scroll, every position in the page flow, then the footer.
     :not(#_) lifts these over the fixed-height desktop panel rules above. */
  .it-app .it-bottom:not(#_) { height: auto; min-height: 0; overflow: visible; }
  .it-app .octo-native-account:not(#_), .it-app .octo-native-account:not(#_) > div:not([hidden]), .it-app .tables:not(#_) { height: auto; min-height: 0; overflow: visible; }
  .it-app .table-scroll:not(#_) { overflow: visible; flex: none; max-height: none; height: auto; }
  .it-app .tables-head { display: flex; flex-wrap: wrap; align-items: center; }
  .it-app .tables-head .tabs-mini { flex: 1 1 100%; }
  .it-app .pos-view { display: flex; margin: 8px 12px 0; padding: 2px; border: 1px solid var(--it-border); border-radius: var(--it-radius); }
  .it-app .pos-view button { min-height: 36px; padding: 0 14px; border: 0; border-radius: var(--it-radius); background: none; color: var(--it-muted); font-size: 12px; }
  .it-app .pos-view button[aria-checked='true'] { background: var(--it-raised); color: var(--it-text); font-weight: 600; }
  .it-app .pos-view button:focus-visible { outline: 2px solid var(--it-buy); outline-offset: -2px; }
  /* Compact: one line per position, market, side, size and P&L. Entry, price, TP/SL and the actions stay in the full view. */
  .it-app .grid-table.data-cards.pos-compact tr { grid-template-columns: minmax(0, 1.2fr) auto minmax(0, 1fr) minmax(0, 1.2fr); align-items: center; gap: 8px; padding: 4px 12px; }
  .it-app .grid-table.data-cards.pos-compact td:nth-child(4), .it-app .grid-table.data-cards.pos-compact td:nth-child(5), .it-app .grid-table.data-cards.pos-compact td:nth-child(7), .it-app .grid-table.data-cards.pos-compact td.row-actions, .it-app .grid-table.data-cards.pos-compact .edit-row { display: none; }
  .it-app .grid-table.data-cards.pos-compact td::before { display: none; }
  .it-app .grid-table.data-cards.pos-compact td:first-child { grid-column: auto; font-size: 13px; white-space: nowrap; overflow-wrap: normal; text-align: left; }
  .it-app .grid-table.data-cards.pos-compact td:first-child .link-btn { min-height: 44px; padding: 0; white-space: nowrap; }
  .it-app .grid-table.data-cards.pos-compact td:nth-child(3), .it-app .grid-table.data-cards.pos-compact td:nth-child(6) { text-align: right; white-space: nowrap; }
  .it-app .grid-table.data-cards.pos-compact td:nth-child(6) small { display: none; }
}
@media (max-width: 767px) {
  /* Phone bar (Chip, 10.11, variant 1): every item on one baseline, label at the bottom and the icon right above
     it, so all icons end 22px above the bar's bottom edge (the bar's own padding adds the safe area). «Торговля»
     gets a 28px icon on a 52px notch in the bar's colour that rises 10px over the bar, its outline continuing
     the bar's top border. Colours unchanged. */
  .it-app .it-mobile-nav > button:not(#_), .it-app .it-mobile-nav > a:not(#_) { justify-content: flex-end; padding: 0 0 7px; gap: 4px; line-height: 12px; position: relative; overflow: visible; }
  .it-app .it-mobile-nav > button.it-nav-trade { isolation: isolate; }
  .it-app .it-mobile-nav > button.it-nav-trade.active::before { display: none; }
  .it-app .it-mobile-nav > button.it-nav-trade svg { width: 28px; height: 28px; }
  .it-app .it-mobile-nav > button.it-nav-trade::after { content: ''; position: absolute; left: 50%; bottom: 15px; width: 52px; height: 52px; border-radius: 50%; background: var(--it-bg); border: 1px solid; border-color: var(--it-border) var(--it-border) transparent transparent; transform: translateX(-50%) rotate(-45deg); z-index: -1; }
}

/* Chip's desktop reference: chart leads, a narrower book and a visible right ticket.
   Bound the resizable feed/book by their share of the screen; give spare width to the chart. */
@media (min-width: 1280px) {
  .it-app .it-workbench {
    --it-desktop-feed: min(var(--it-news-width), 19vw);
    --it-desktop-book: min(var(--it-data-width), 18vw);
    --it-desktop-ticket: clamp(300px, 19vw, 480px);
  }
  .it-app .it-workbench .it-grid-feed,
  .it-app .it-workbench.ticket-open .it-grid-data { display: block; }
  .it-app .it-workbench .it-main-grid { grid-template-columns: minmax(220px, var(--it-desktop-feed)) minmax(300px, 1fr) minmax(240px, var(--it-desktop-book)) 61px; }
  .it-app .it-workbench.ticket-open .it-main-grid { grid-template-columns: minmax(220px, var(--it-desktop-feed)) minmax(300px, 1fr) minmax(240px, var(--it-desktop-book)) var(--it-desktop-ticket); }
  .it-app .it-workbench.hide-feed .it-main-grid { grid-template-columns: minmax(300px, 1fr) minmax(240px, var(--it-desktop-book)) 61px; }
  .it-app .it-workbench.hide-feed.ticket-open .it-main-grid { grid-template-columns: minmax(300px, 1fr) minmax(240px, var(--it-desktop-book)) var(--it-desktop-ticket); }
  .it-app .it-workbench.hide-data .it-main-grid { grid-template-columns: minmax(220px, var(--it-desktop-feed)) minmax(300px, 1fr) 61px; }
  .it-app .it-workbench.hide-data.ticket-open .it-main-grid { grid-template-columns: minmax(220px, var(--it-desktop-feed)) minmax(300px, 1fr) var(--it-desktop-ticket); }
  .it-app .it-workbench.hide-data.hide-feed .it-main-grid { grid-template-columns: minmax(300px, 1fr) 61px; }
  .it-app .it-workbench.hide-data.hide-feed.ticket-open .it-main-grid { grid-template-columns: minmax(300px, 1fr) var(--it-desktop-ticket); }
}

/* Long/Short labels: +15% over the 12px terminal font, on every viewport. */
.it-app .order-panel .op-sides .submit { font-weight: 700; font-size: 13.8px; white-space: nowrap; }

/* Official TradingView widgets: a solid surface, full-width content and an
   attribution outside the scrolling body as well as the provider's own credit. */
.it-app .it-feed-widget-scroll { display: flex; padding: 0; overflow: auto; }
.it-app .it-tv-feed { display: flex; flex: 1; flex-direction: column; min-width: 0; min-height: 440px; background: #131722; color: #d1d4dc; }
.it-app .it-tv-host { display: flex; flex: 1 1 340px; height: 340px; min-height: 340px; min-width: 0; }
.it-app .it-tv-host > * { display: block; width: 100%; height: 100%; min-height: 340px; color-scheme: dark; }
.it-app .it-tv-filters { display: flex; flex-wrap: wrap; gap: 8px; padding: 8px; }
.it-app .it-tv-filters label { flex: 1 1 110px; min-width: 0; font-size: 11px; }
.it-app .it-tv-filters select { display: block; width: 100%; max-width: 100%; margin-top: 4px; background: #1e222d; color: #d1d4dc; border: 1px solid #434651; border-radius: 4px; padding: 5px 3px; }
.it-app .it-tv-attribution { display: block; flex-shrink: 0; padding: 9px; background: #131722; color: #78a7ff; font-size: 13px; line-height: 1.4; overflow-wrap: anywhere; }
.it-app .it-tv-status, .it-app .it-tv-unavailable { padding: 10px; font-size: 12px; line-height: 1.5; background: #131722; }
.it-app .it-tv-status button { color: #78a7ff; text-decoration: underline; }

/* News inherits the terminal identity through TradingView's public theme API.
   Do not pierce shadow roots, scale text or conceal the provider's branding. */
.it-app .it-tv-feed[data-kind='news'] {
  min-height: 0;
  background: var(--it-panel);
  color: var(--it-text);
  font-family: inherit;
}
.it-app .it-tv-feed[data-kind='news'] .it-tv-host { padding: 8px; box-sizing: border-box; }
.it-app .it-tv-feed[data-kind='news'] tv-news-feed {
  --tv-widget-background-color: var(--it-panel);
  --tv-widget-font-family: 'Geist Variable', sans-serif;
  --tv-widget-text-color: var(--it-text);
  --tv-widget-text-secondary-color: var(--it-muted);
  --tv-widget-text-tertiary-color: var(--it-muted);
  --tv-widget-border-color: var(--it-soft-border);
  --tv-widget-attribution-border-color: var(--it-soft-border);
  --tv-widget-hover-background-color: var(--it-raised);
  --tv-widget-popup-background-color: var(--it-raised);
  --tv-widget-link-color: var(--it-muted);
  --tv-widget-accent-color: var(--it-buy);
  --tv-widget-focus-outline-color: var(--it-buy);
  --tv-widget-scrollbar-color: var(--it-border);
}
.it-app .it-tv-feed[data-kind='news'] .it-tv-attribution,
.it-app .it-tv-feed[data-kind='news'] .it-tv-status {
  background: var(--it-panel);
  color: var(--it-muted);
  padding: 10px 12px;
  font-size: 11px;
}
.it-app .it-tv-feed[data-kind='news'] .it-tv-attribution { border-top: 1px solid var(--it-soft-border); }
.it-app .it-tv-feed[data-kind='news'] .it-tv-status button { color: var(--it-buy); }

/* Append after public/octo-terminal.css. No generic .it-statusbar override; popovers are portalled. */
.bm-terminal-footer,
.bm-terminal-footer *,
.bm-session-popover,
.bm-session-popover * {
  box-sizing: border-box;
}
.bm-terminal-footer {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
  gap: 8px;
  width: 100%;
  height: 24px;
  min-height: 24px;
  padding: 0 8px;
  background: #1b1b1b;
  border-top: 1px solid #262626;
  color: #a1a1a1;
  font:
    11px/15.75px ui-monospace,
    SFMono-Regular,
    Menlo,
    Monaco,
    Consolas,
    "Liberation Mono",
    monospace;
  flex-shrink: 0;
  overflow: visible;
  isolation: isolate;
}
.bm-terminal-footer button {
  font: inherit;
  color: inherit;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  border: 0;
  background: none;
  cursor: pointer;
  white-space: nowrap;
  padding: 2px;
  border-radius: 3px;
  transition:
    background 0.1s,
    color 0.1s;
  line-height: 15.75px;
  min-height: 0;
}
.bm-terminal-footer button:hover,
.bm-terminal-footer button:focus-visible {
  background: #ffffff08;
  color: #efefef;
}
.bm-terminal-footer button:focus-visible,
.bm-session-popover button:focus-visible,
.bm-session-popover select:focus-visible {
  outline: 1px solid #888;
  outline-offset: 2px;
}
.bm-footer-left,
.bm-footer-tools {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  white-space: nowrap;
  height: 20px;
}
.bm-footer-left {
  overflow: hidden;
}
.bm-footer-tools {
  justify-content: flex-end;
  gap: 10px;
  font:
    11px/15.75px "Geist Variable",
    ui-sans-serif,
    system-ui,
    sans-serif;
  overflow: hidden;
}
.bm-footer-tools > * {
  min-width: 0;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
}
.bm-footer-tools .link-btn {
  font-size: 10px;
  padding: 0;
  height: 20px;
}
.bm-footer-health {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  min-width: 0;
  max-width: 180px;
  outline-offset: 2px;
}
.bm-footer-health > span {
  overflow: hidden;
  text-overflow: ellipsis;
}
.bm-footer-health i {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  display: inline-block;
  flex-shrink: 0;
  background: #6a6a6a;
}
.bm-footer-health i[data-status="live"] {
  background: #4fc9b2;
}
.bm-footer-health i[data-status="stale"],
.bm-footer-health i[data-status="wait"] {
  background: #e8c968;
}
.bm-footer-health i[data-status="error"],
.bm-footer-health i[data-status="offline"] {
  background: #ff6f68;
}
.bm-footer-build {
  padding: 0 3px !important;
  color: #6a6a6a !important;
  font-size: 10px !important;
}
.bm-footer-attribution {
  min-width: 0;
  white-space: nowrap;
  display: inline-flex;
  font:
    11px/15.75px ui-monospace,
    monospace;
}
.bm-footer-attribution a {
  text-decoration: underline;
  text-underline-offset: 2px;
  color: #aaa;
}
.bm-footer-attribution .term-credit {
  padding: 0;
  margin: 0;
  font: inherit;
  color: inherit;
}
.bm-footer-attribution a:hover {
  color: #efefef;
}
.bm-footer-sessions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 3px;
  height: 22px;
  min-width: 0;
  white-space: nowrap;
  padding: 0 3px;
}
.bm-terminal-footer .bm-footer-clock {
  height: 20px;
  padding: 1px 3px;
  gap: 6px;
  margin-right: 8px;
  font-size: 11px;
  color: #a1a1a1;
}
.bm-footer-clock time {
  font-variant-numeric: tabular-nums;
  color: #c3c3c3;
}
.bm-footer-clock > span {
  font-size: 10px;
  color: #6a6a6a;
}
.bm-footer-clock svg {
  opacity: 0.55;
  flex-shrink: 0;
}
.bm-terminal-footer .bm-session-token {
  height: 22px;
  padding: 2px 10px 2px 2px;
  gap: 6px;
  font-family: "Geist Variable", ui-sans-serif, system-ui, sans-serif;
  font-size: 11px;
  flex-shrink: 0;
}
.bm-session-token > span:not(.bm-session-dial) {
  line-height: 15.75px;
}
.bm-session-token[aria-expanded="true"] {
  color: #efefef;
  background: #ffffff07;
}
.bm-session-countdown {
  font:
    10px/15.75px ui-monospace,
    monospace !important;
  letter-spacing: -0.2px;
  color: #8c8c8c;
  font-variant-numeric: tabular-nums;
}
.bm-session-dial {
  position: relative;
  display: inline-block;
  flex-shrink: 0;
  width: 18px;
  height: 18px;
}
.bm-session-dial > svg:first-child {
  position: absolute;
  inset: 0;
  width: 18px;
  height: 18px;
}
.bm-session-flag {
  display: inline-block;
  flex-shrink: 0;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  vertical-align: middle;
}
.bm-session-dial > .bm-session-flag {
  position: absolute;
  inset: 3px;
  width: 12px;
  height: 12px;
}
.bm-session-popover {
  position: fixed;
  z-index: 90;
  width: 300px;
  max-width: calc(100vw - 16px);
  max-height: calc(100dvh - 64px);
  overflow: auto;
  padding: 12px;
  border-radius: 4px;
  background: #181818;
  color: #efefef;
  box-shadow:
    0 0 0 1px #efefef1a,
    0 4px 6px -1px #0000001a,
    0 2px 4px -2px #0000001a;
  font:
    11px/14.85px ui-monospace,
    SFMono-Regular,
    Menlo,
    Monaco,
    Consolas,
    "Liberation Mono",
    monospace;
  animation: bm-footer-show 0.1s ease-out;
  overscroll-behavior: contain;
  scrollbar-width: thin;
  scrollbar-color: #444 transparent;
}
.bm-session-card {
  display: grid;
  color: #a1a1a1;
  font:
    11px/14.85px "Geist Variable",
    ui-sans-serif,
    system-ui,
    -apple-system,
    "Segoe UI",
    sans-serif;
}
.bm-session-card header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  height: 18px;
}
.bm-session-card header strong {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  line-height: 14.85px;
  font-weight: 450;
  color: #efefef;
  white-space: nowrap;
}
.bm-session-card header > span {
  font-size: 11px;
  color: #6a6a6a;
  white-space: nowrap;
}
.bm-session-card p {
  padding: 0;
  margin: 0;
}
.bm-session-card .bm-session-description {
  font-size: 11px;
  line-height: 14.85px;
  margin: 6px 0 10px;
  color: #a1a1a1;
}
.bm-session-timelines {
  display: grid;
  gap: 6px;
}
.bm-session-timeline {
  display: grid;
  grid-template-columns: 88px minmax(0, 1fr);
  align-items: center;
  gap: 2px 8px;
}
.bm-session-venue {
  font-size: 10px;
  color: #9a9a9a;
}
.bm-session-bar {
  height: 7px;
  background: #383838;
  border-radius: 2px;
  position: relative;
  isolation: isolate;
  overflow: hidden;
}
.bm-session-bar > i {
  display: block;
  position: absolute;
  top: 0;
  bottom: 0;
  opacity: 0.72;
  border-right: 1px solid #181818;
}
.bm-session-bar > b {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 1px;
  background: #efefef;
  z-index: 2;
}
.bm-session-hours {
  grid-column: 2;
  font:
    9px/13.5px ui-monospace,
    monospace;
  color: #6a6a6a;
  letter-spacing: 0.1px;
  white-space: normal;
  overflow-wrap: normal;
}
.bm-session-card dl {
  margin: 12px 0 0;
  padding: 0;
  display: grid;
  border-top: 1px solid #2b2b2b;
  padding-top: 4px;
}
.bm-session-card dl > div {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  padding: 3px 0;
  min-height: 21.85px;
}
.bm-session-card dt {
  color: #6a6a6a;
  white-space: nowrap;
}
.bm-session-card dd {
  margin: 0;
  text-align: right;
  color: #efefef;
  font:
    11px/14.85px ui-monospace,
    monospace;
  max-width: 205px;
}
.bm-session-card dl > div:nth-child(3) dd {
  color: var(--bm-session-value, #efefef);
}
.bm-session-card dl > div:last-child dd {
  color: #a1a1a1;
}
.bm-session-sr {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.bm-timezone-popover label {
  font:
    11px "Geist Variable",
    system-ui,
    sans-serif;
  display: grid;
  gap: 10px;
  color: #aaa;
}
.bm-timezone-popover select {
  display: block;
  width: 100%;
  background: #202020;
  color: #ddd;
  border: 1px solid #383838;
  border-radius: 3px;
  padding: 6px;
  font:
    11px ui-monospace,
    monospace;
}
.bm-timezone-popover > button {
  float: right;
  margin-top: 12px;
  padding: 4px 12px;
  border: 1px solid #444;
  background: #252525;
  border-radius: 3px;
  color: #ddd;
  font:
    11px "Geist Variable",
    system-ui,
    sans-serif;
  cursor: pointer;
}
@keyframes bm-footer-show {
  from {
    opacity: 0;
    transform: translateY(3px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}
@media (max-width: 1100px) {
  .bm-footer-health > span {
    display: none;
  }
  .bm-footer-build {
    display: none !important;
  }
  .bm-footer-tools .octo-disclosure {
    max-width: 120px;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  .bm-footer-tools {
    gap: 6px;
  }
}
@media (max-width: 767px) {
  .bm-terminal-footer {
    height: 48px;
    min-height: 48px;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    grid-template-rows: 24px 24px;
    gap: 0 6px;
    padding: 0 8px;
  }
  .bm-footer-sessions {
    grid-column: 1/3;
    grid-row: 1;
    justify-content: center;
    padding: 0;
    gap: 1px;
  }
  .bm-footer-left {
    grid-row: 2;
    grid-column: 1;
    font-size: 9px;
    gap: 6px;
  }
  .bm-footer-tools {
    grid-row: 2;
    grid-column: 2;
    font-size: 9px;
    gap: 6px;
  }
  .bm-footer-attribution,
  .bm-footer-attribution .term-credit {
    font-size: 9px;
  }
  .bm-footer-tools .link-btn {
    font-size: 9px;
  }
  .bm-footer-tools .octo-disclosure {
    display: none;
  }
  .bm-terminal-footer .bm-footer-clock {
    font-size: 10px;
    gap: 3px;
    margin-right: 3px;
  }
  .bm-footer-clock > span {
    display: none;
  }
  .bm-terminal-footer .bm-session-token {
    font-size: 10px;
    padding-right: 5px;
    gap: 4px;
  }
  .bm-session-countdown {
    font-size: 9px !important;
  }
  .bm-session-dial {
    width: 18px;
    height: 18px;
  }
  .bm-session-popover {
    max-height: calc(100dvh - 90px);
  }
}
@media (max-width: 350px) {
  .bm-session-token .bm-session-countdown {
    display: none;
  }
  .bm-footer-clock {
    margin-right: 8px !important;
  }
}
@media (prefers-reduced-motion: reduce) {
  .bm-session-popover {
    animation: none;
  }
  .bm-terminal-footer button {
    transition: none;
  }
}
@media (forced-colors: active) {
  .bm-session-popover {
    border: 1px solid CanvasText;
  }
  .bm-session-bar {
    outline: 1px solid CanvasText;
  }
}

/* Preserve the host navigation's raised trade button and the provider credit. */
.bm-terminal-footer .bm-footer-attribution { flex-shrink: 0; }
@media (max-width: 1600px) {
  .bm-footer-health > span { display: none; }
}
@media (max-width: 1100px) {
  .bm-credit-detail { display: none; }
}
@media (max-width: 767px) {
  .bm-terminal-footer { margin-bottom: 24px; }
}
.bm-footer-health i[data-status="down"] { background: #ff6f68; }

/* News column (handoff 2026-11-10, scoped .bnc-*): does not restyle the chart or TradingView. */
.bnc-column{--bnc-bg:var(--it-bg,#121212);--bnc-card:var(--it-panel,#202020);--bnc-raised:var(--it-raised,#292929);--bnc-line:var(--it-soft-border,#303030);--bnc-text:var(--it-text,#e5e5e5);--bnc-muted:var(--it-muted,#929592);--bnc-green:var(--it-buy,#62d99b);--bnc-red:var(--it-sell,#f36c70);display:flex;flex-direction:column;width:100%;height:100%;min-width:0;min-height:0;overflow:hidden;background:var(--bnc-bg);color:var(--bnc-text);font:13px/1.42 'Geist Variable',Arial,sans-serif;border:1px solid var(--bnc-line);border-radius:4px;isolation:isolate;color-scheme:dark;box-sizing:border-box}
.bnc-column *{box-sizing:border-box}.bnc-column button,.bnc-column input,.bnc-column summary{font:inherit}.bnc-column button,.bnc-column summary,.bnc-column a{-webkit-tap-highlight-color:transparent}.bnc-column button{cursor:pointer;color:inherit}.bnc-column button:disabled{cursor:not-allowed;opacity:.38}.bnc-column button:focus-visible,.bnc-column a:focus-visible,.bnc-column summary:focus-visible,.bnc-column input:focus-visible,.bnc-feed:focus-visible{outline:2px solid var(--bnc-green);outline-offset:2px}.bnc-column button{border:1px solid var(--bnc-line);background:transparent;border-radius:3px}.bnc-column button:hover:not(:disabled){background:var(--bnc-raised)}.bnc-column summary{cursor:pointer;list-style:none}.bnc-column summary::-webkit-details-marker{display:none}.bnc-column svg{flex:none}
.bnc-header{flex:none;position:relative;z-index:5;background:var(--bnc-bg);border-bottom:1px solid var(--bnc-line)}.bnc-toolbar{display:flex;align-items:center;gap:8px;padding:16px 12px;min-width:0}.bnc-tabs{display:flex;flex:none;border:1px solid var(--bnc-line);border-radius:3px;overflow:hidden}.bnc-tabs button{display:flex;align-items:center;gap:7px;min-height:34px;padding:0 12px;border:0;border-radius:0;font-weight:600;color:var(--bnc-muted)}.bnc-tabs button+button{border-left:1px solid var(--bnc-line)}.bnc-tabs button[aria-pressed=true]{color:var(--bnc-text);background:var(--bnc-raised)}.bnc-market-dot{display:block;width:16px;height:16px;background:#102f29;border-radius:3px;position:relative}.bnc-market-dot:after{content:'';position:absolute;inset:4px 3px;background:#80e3c7;clip-path:polygon(0 0,35% 20%,65% 0,100% 20%,100% 100%,65% 80%,35% 100%,0 80%)}
.bnc-sources{position:relative;min-width:0}.bnc-sources>summary{display:flex;align-items:center;gap:5px;min-height:36px;padding:0 9px;border:1px solid var(--bnc-line);border-radius:3px;background:#1d1f1e;white-space:nowrap}.bnc-count{font-size:11px;line-height:19px;padding:0 4px;color:var(--bnc-green);background:#1b392b;border:1px solid #335542;border-radius:2px;font-variant-numeric:tabular-nums}.bnc-add{display:grid;place-items:center;width:34px;height:36px;margin-left:auto;flex:none}.bnc-source-menu{position:absolute;top:calc(100% + 8px);right:-30px;width:260px;max-width:calc(100vw - 32px);max-height:360px;overflow:auto;padding:8px;background:#222423;border:1px solid #404340;border-radius:4px;box-shadow:0 10px 32px #0008;z-index:10}.bnc-source-menu-head{display:flex;justify-content:space-between;align-items:center;padding:4px 4px 10px;font-size:12px}.bnc-source-menu-head button{padding:4px 8px;font-size:11px}.bnc-source-menu label{display:flex;align-items:center;gap:9px;padding:9px 4px;cursor:pointer;border-top:1px solid var(--bnc-line);font-size:12px}.bnc-source-menu input{accent-color:var(--bnc-green)}.bnc-source-menu label span:last-child{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.bnc-search{display:flex;align-items:center;gap:8px;height:36px;margin:0 12px 9px;padding:0 10px;border:1px solid #353735;border-radius:3px;color:var(--bnc-muted);background:#171817}.bnc-search input{width:100%;min-width:0;padding:0;border:0;outline:0;background:transparent;color:var(--bnc-text);font-size:12px}.bnc-search input::-webkit-search-cancel-button{-webkit-appearance:none}.bnc-search:focus-within{border-color:var(--bnc-green)}.bnc-search button{display:grid;place-items:center;border:0;padding:0}.bnc-demo{padding:5px 12px;border-top:1px solid var(--bnc-line);font:9px/1.4 ui-monospace,monospace;letter-spacing:.03em;color:#b1a286;background:#1b1915}
.bnc-feed-wrap{position:relative;display:flex;flex:1;min-height:0;min-width:0}.bnc-feed{flex:1;min-width:0;overflow-y:auto;overflow-x:hidden;overscroll-behavior:contain;padding:8px;scrollbar-width:thin;scrollbar-color:#414441 transparent}.bnc-feed::-webkit-scrollbar{width:5px}.bnc-feed::-webkit-scrollbar-thumb{background:#414441;border-radius:4px}.bnc-latest{position:absolute;top:12px;left:50%;transform:translateX(-50%);z-index:3;display:flex;align-items:center;gap:8px;padding:8px 13px!important;border-radius:30px!important;border-color:#363936!important;background:#191b19!important;box-shadow:0 3px 15px #0006;white-space:nowrap;font:11px ui-monospace,monospace!important}.bnc-card{position:relative;padding:13px 12px 12px;margin:0 0 8px;background:var(--bnc-card);border:1px solid var(--bnc-line);border-radius:4px;box-shadow:inset 0 0 0 1px #ffffff02}.bnc-card:last-child{margin-bottom:0}.bnc-card-header{display:flex;align-items:center;gap:6px;min-width:0}.bnc-mark{display:inline-flex;align-items:center;justify-content:center;position:relative;flex:none;overflow:hidden;width:24px;height:24px;border-radius:50%;background:var(--mark-color);color:#fff;font-size:9px;font-weight:700;line-height:1}.bnc-mark img{width:100%;height:100%;object-fit:cover}.bnc-source-name{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:11px;font-weight:650;letter-spacing:-.02em}.bnc-verified{color:#8fa8b3;display:inline-flex}.bnc-verified svg{width:13px;height:13px}.bnc-separator,.bnc-card-header time{flex:none;color:var(--bnc-muted);font-size:10px;white-space:nowrap}.bnc-card-actions{margin-left:auto;display:flex;align-items:center;gap:5px;color:var(--bnc-muted)}.bnc-card-actions a,.bnc-card-actions summary{display:grid;place-items:center;width:20px;height:24px;color:inherit}.bnc-card-actions svg{width:13px;height:13px}.bnc-card-actions details{position:relative}.bnc-card-menu{position:absolute;right:0;top:28px;z-index:4;background:#292c29;border:1px solid #414641;padding:5px;white-space:nowrap;box-shadow:0 4px 18px #0007}.bnc-card-menu button{padding:7px;font-size:11px}.bnc-body{margin:15px 0 18px;font-size:11px;line-height:1.3;letter-spacing:-.012em;white-space:pre-wrap;overflow-wrap:anywhere;color:#c8cac8}.bnc-media{display:block;width:100%;margin:0 0 17px;border:1px solid #343734;border-radius:3px;overflow:hidden;background:#181b19}.bnc-media img{display:block;width:100%;height:auto;max-height:220px;object-fit:cover}.bnc-instruments{border-top:1px solid #2e312e;padding-top:15px}.bnc-instrument{padding:10px;background:#171917;border:1px solid #303530}.bnc-instrument+.bnc-instrument{border-top:0}.bnc-instrument-top{display:flex;align-items:center;gap:6px;min-width:0}.bnc-instrument .bnc-mark{width:20px;height:20px;border-radius:3px;font-size:8px}.bnc-symbol{font-size:12px;white-space:nowrap;flex-shrink:0}.bnc-quote{margin-left:auto;display:flex;align-items:center;justify-content:flex-end;gap:4px;flex-wrap:wrap;font:11px/1.2 ui-monospace,'SFMono-Regular',Consolas,monospace;font-variant-numeric:tabular-nums;min-width:0}.bnc-quote>span{white-space:nowrap}.bnc-positive{color:var(--bnc-green)}.bnc-negative{color:var(--bnc-red)}.bnc-trade{display:flex;gap:4px;margin-left:1px}.bnc-trade button{font-size:10px;padding:4px 5px;min-height:25px}.bnc-trade .bnc-long{color:var(--bnc-green);border-color:#47715a}.bnc-trade .bnc-short{color:var(--bnc-red);border-color:#77474a}.bnc-sentiment{display:flex;align-items:center;gap:8px;margin-top:10px;color:var(--bnc-muted);font:10px/1.2 ui-monospace,monospace}.bnc-sentiment-label{padding:2px 5px;border:1px solid currentColor;border-radius:2px;white-space:nowrap}.bnc-bullish{color:var(--bnc-green)}.bnc-bearish{color:var(--bnc-red)}.bnc-meter{height:5px;min-width:20px;flex:1;overflow:hidden;border-radius:8px;background:#373a37}.bnc-meter>span{display:block;height:100%;background:currentColor;border-radius:8px}.bnc-confidence{width:28px;text-align:right}.bnc-no-score{font-size:9px;color:var(--bnc-muted)}.bnc-state{margin:4px 0 10px;padding:24px 16px;text-align:center;border:1px dashed #3b403b;border-radius:4px;color:var(--bnc-muted);font-size:12px}.bnc-state button{display:block;margin:12px auto 0;padding:7px 11px}.bnc-error{color:#f2b7a3}
@media(max-width:380px){.bnc-toolbar{gap:5px;padding:10px 8px}.bnc-tabs button{padding:0 8px}.bnc-sources>summary{padding:0 6px;font-size:11px}.bnc-search{margin-inline:8px}.bnc-card{padding:11px 9px}.bnc-quote{font-size:10px}.bnc-instrument{padding:9px 7px}.bnc-trade button{padding:4px;font-size:9px}.bnc-source-name{max-width:130px}.bnc-source-menu{right:-35px}}
@media(prefers-reduced-motion:reduce){.bnc-column *{scroll-behavior:auto!important;transition:none!important}}

/* The News tab hosts the column: one scroll (the column's own feed), no outer padding or second frame. */
.it-app .it-feed-scroll.it-feed-news { display: flex; flex-direction: column; min-height: 0; padding: 0; overflow: hidden; }
.it-app .it-feed-news .bnc-column { flex: 1; border: 0; border-radius: 0; }
/* The terminal's news panel can be 220px wide: the toolbar compacts by the column's own width. */
.it-app .bnc-column { container-type: inline-size; }
/* The source label goes first: tabs, the filter count and the add button must not touch (390 px phones). */
@container (max-width: 400px) {
  .bnc-sources > summary > span:not(.bnc-count) { display: none; }
}
@container (max-width: 340px) {
  .bnc-toolbar { gap: 5px; padding: 10px 8px; }
  .bnc-tabs button { gap: 5px; padding: 0 8px; }
  .bnc-sources > summary { padding: 0 6px; }
  .bnc-sources > summary > span:not(.bnc-count) { display: none; }
  .bnc-search { margin-inline: 8px; }
  .bnc-card { padding: 11px 9px; }
  .bnc-instrument { padding: 9px 7px; }
  .bnc-source-menu { right: auto; left: -60px; width: 230px; }
}
@container (max-width: 250px) {
  .bnc-tabs .bnc-market-dot { display: none; }
  .bnc-trade button { padding: 4px; font-size: 9px; }
}
/* Tree News: the feed credit, the market a search resolved to, the earlier-stories button. */
.bnc-aggregator, .bnc-resolved { margin: 0 12px 9px; font-size: 11px; line-height: 1.4; color: var(--bnc-muted); }
.bnc-aggregator a { color: var(--bnc-text); text-decoration: underline; text-underline-offset: 2px; }
.bnc-resolved b { color: var(--bnc-text); font-weight: 600; }
.bnc-column .bnc-older { display: block; width: 100%; margin-top: 8px; padding: 9px; font-size: 12px; color: var(--bnc-muted); }
.bnc-body { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 10; overflow: hidden; }
/* Air between the header and the story (Chip 13.11), and above the instruments line; .it-app p { margin: 0 } would win over plain .bnc-body. */
.bnc-column .bnc-body { margin: 8px 0 12px; }
.bnc-column .bnc-body:last-child { margin-bottom: 0; }
@container (max-width: 340px) {
  .bnc-aggregator, .bnc-resolved { margin-inline: 8px; }
  .bnc-aggregator span { display: none; }
}
/* Source menu (Chip 13.11): anchored to the toolbar, not the filter button, so it starts at the toolbar padding
   and never leaves the column, which clips it (overflow: hidden) wherever the button sits. */
.bnc-column .bnc-toolbar { position: relative; }
.bnc-column .bnc-sources { position: static; }
.bnc-column .bnc-source-menu { top: calc(100% - 8px); left: 12px; right: auto; width: 260px; max-width: calc(100% - 24px); }
@container (max-width: 340px) {
  .bnc-column .bnc-source-menu { top: calc(100% - 2px); left: 8px; max-width: calc(100% - 16px); }
}
@media (max-width: 380px) {
  .bnc-column .bnc-source-menu { top: calc(100% - 2px); left: 8px; max-width: calc(100% - 16px); }
}
/* Source filter keeps its own width: a three-digit count (140) never runs under the add button. */
.bnc-toolbar > .bnc-sources { flex: none; }
.bnc-count { min-width: 2ch; text-align: center; white-space: nowrap; }
@container (max-width: 250px) {
  .bnc-toolbar { gap: 4px; padding-inline: 6px; }
  .bnc-tabs button { padding: 0 6px; }
  .bnc-sources > summary { gap: 3px; padding: 0 5px; }
  .bnc-add { width: 30px; }
}
/* The source name opens the story where it was published (Chip 13.11: no translator line, a clickable source). */
.bnc-column a.bnc-source-name { color: inherit; text-decoration: none; }
.bnc-column a.bnc-source-name:hover { text-decoration: underline; text-underline-offset: 2px; }
/* Chart height bar (phones only): a grip under the chart, outside the chart frame, so the drag never reaches the chart. */
.it-chart-sizer { display: none; position: absolute; left: 0; right: 0; bottom: 0; height: 22px; align-items: center; justify-content: center; cursor: row-resize; touch-action: none; user-select: none; -webkit-user-select: none; background: var(--it-panel, #171a19); border-top: 1px solid var(--it-soft-border, #2a2e2c); z-index: 3; }
.it-chart-sizer > span { width: 44px; height: 4px; border-radius: 2px; background: var(--it-muted, #6f7572); }
.it-chart-sizer.dragging > span, .it-chart-sizer:focus-visible > span { background: var(--it-buy, #62d99b); }
.it-chart-sizer:focus-visible { outline: 2px solid var(--it-buy, #62d99b); outline-offset: -2px; }
/* Two charts (Chip, 10.11): side by side on a computer, one under the other on a phone. Each pane has its own market
   and timeframe; the bar over the second one makes its market the traded one. */
.it-app .octo-chart-layout { display: inline-flex; flex: none; gap: 2px; padding: 2px; border: 1px solid var(--it-soft-border, #2a2e2c); border-radius: 999px; }
.it-app .octo-chart-layout button { display: inline-grid; place-items: center; width: 34px; height: 24px; padding: 0; border: 0; border-radius: 999px; background: transparent; color: var(--it-muted, #9aa09d); cursor: pointer; }
.it-app .octo-chart-layout button:hover { color: var(--it-text, #e5e5e5); }
.it-app .octo-chart-layout button.active { color: var(--it-buy, #62d99b); background: var(--it-raised, #1f2321); }
.it-app :is(.octo-chart-layout button, .octo-chart-layout-menu > summary, .octo-chart-layout-pop button):focus-visible { outline: 2px solid var(--it-buy, #62d99b); outline-offset: 1px; }
.it-app .octo-chart-layout-icon { flex: none; }
.it-app .octo-chart-layout-menu { display: none; position: relative; flex: none; }
.it-app .octo-chart-layout-menu > summary { display: grid; place-items: center; width: 44px; height: 44px; list-style: none; border: 1px solid transparent; border-radius: var(--it-radius, 4px); color: var(--it-muted, #9aa09d); cursor: pointer; }
.it-app .octo-chart-layout-menu > summary::-webkit-details-marker { display: none; }
.it-app .octo-chart-layout-menu > summary.active, .it-app .octo-chart-layout-menu[open] > summary { color: var(--it-buy, #62d99b); border-color: var(--it-buy, #62d99b); }
.it-app .octo-chart-layout-pop { position: absolute; right: 0; top: calc(100% + 4px); z-index: 40; display: grid; min-width: 210px; padding: 4px; border: 1px solid var(--it-soft-border, #2a2e2c); border-radius: 6px; background: var(--it-panel, #171a19); }
.it-app .octo-chart-layout-pop button { display: flex; align-items: center; justify-content: flex-start; gap: 10px; min-height: 44px; padding: 0 12px; border: 0; border-radius: var(--it-radius, 4px); background: transparent; color: var(--it-text, #e5e5e5); font: inherit; font-size: 13px; text-align: left; cursor: pointer; }
.it-app .octo-chart-layout-pop button.active { color: var(--it-buy, #62d99b); background: var(--it-raised, #1f2321); }
.it-app .it-grid-chart.two-charts { flex-direction: row; }
.it-app .it-grid-chart.two-charts > .octo-native-chart { flex: 1 1 0; min-width: 0; }
.it-app .it-grid-chart.two-charts > .octo-second-chart { border-left: 1px solid var(--it-soft-border, #2a2e2c); }
/* A chosen split wins over the screen's default (below): side by side or one under the other, on any screen. */
.it-app .it-grid-chart.two-charts.split-cols:not(#_) { flex-direction: row; }
.it-app .it-grid-chart.two-charts.split-cols:not(#_) > .octo-second-chart { border-left: 1px solid var(--it-soft-border, #2a2e2c); border-top: 0; }
.it-app .it-grid-chart.two-charts.split-rows:not(#_) { flex-direction: column; }
.it-app .it-grid-chart.two-charts.split-rows:not(#_) > .octo-second-chart { border-left: 0; border-top: 1px solid var(--it-soft-border, #2a2e2c); }
.it-app .octo-second-pane { display: flex; flex-direction: column; height: 100%; min-height: 0; }
.it-app .octo-second-pane > :last-child { flex: 1; min-height: 0; }
.it-app .octo-second-bar { display: flex; align-items: center; gap: 8px; height: 28px; flex: none; padding: 0 8px; border-bottom: 1px solid var(--it-soft-border, #2a2e2c); font-size: 12px; }
.it-app .octo-second-bar button { margin-left: auto; height: 22px; padding: 0 8px; border: 1px solid var(--it-soft-border, #2a2e2c); border-radius: 3px; background: transparent; color: var(--it-text, #e5e5e5); font: inherit; font-size: 11px; cursor: pointer; }
.it-app .octo-second-bar button:hover { border-color: var(--it-buy, #62d99b); }
.it-app .octo-second-bar button:focus-visible { outline: 2px solid var(--it-buy, #62d99b); outline-offset: 1px; }
@media (max-width: 767px) {
  /* One 44 px button with the current layout that always stays on screen (the market name gives way first); its menu
     lists the three layouts with words, 44 px rows. */
  .it-app .octo-market-scroll .octo-chart-layout { display: none; }
  .it-app .octo-market-scroll .octo-chart-layout-menu { display: block; margin-left: auto; }
  .it-app .octo-market-scroll > button:first-child { flex-shrink: 1; overflow: hidden; }
  .it-app .octo-market-scroll > button:first-child strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  /* Two charts on a phone share the chart area; by default it takes all but 60 px above the bottom bar (the bar still changes it),
     and never less than 440 px, 220 px per chart (Chip: at 220 px for both they were cut off). */
  .it-app .it-workbench.mobile-chart .it-grid-chart.two-charts:not(#_) { height: min(max(440px, var(--m-chart-h, calc(var(--m-avail) - 60px))), max(440px, calc(var(--m-avail) - 60px))); }
  .it-app .it-grid-chart.two-charts { flex-direction: column; }
  .it-app .it-grid-chart.two-charts > .octo-second-chart { border-left: 0; border-top: 1px solid var(--it-soft-border, #2a2e2c); }
}

/* Portrait phone pass (Evgeny A., 10.11.2026 21:33 UTC: «терминал ужасно на телефоне в вертикальном положении»). Phones only,
   the computer layout is untouched; the chart-count switcher (beta37 territory) keeps its own rules. */
@media (max-width: 767px) {
  /* Tap targets of at least 44 px. */
  .it-app .it-app-header .it-brand, .it-app .it-app-header .it-account-signin { min-height: 44px; display: inline-flex; align-items: center; }
  .it-app .it-menu-pop > :is(button, a) { min-height: 44px; }
  .it-app .octo-instrument-card > summary, .it-app .octo-feed-dot > summary { display: inline-flex; align-items: center; justify-content: center; min-width: 44px; min-height: 44px; }
  .it-app .it-market-data .it-rail > button { min-width: 44px; }
  .bm-terminal-footer :is(.bm-footer-clock, .bm-session-token, .term-cookie) { min-height: 44px; }
  .bm-terminal-footer .term-credit a { display: inline-flex; align-items: center; min-height: 44px; }
  /* Readable sizes: nothing under 11 px. */
  .it-app .it-ticker-items .mono, .it-app .it-panel-toolbar small, .it-app .it-subtoolbar :is(span, small), .it-app dd small { font-size: 11px; }
  .it-app :is(.it-book-header, .it-book-mid, .it-book-ratio) span { font-size: 11px; }
  .it-app .it-book-row span { font-size: 11.5px; }
  .it-app .it-mobile-nav > :is(button, a):not(#_), .it-app .it-mobile-nav > :is(button, a) * { font-size: 11px; }
  .bm-terminal-footer :is(.term-credit, .term-credit a, .bm-footer-clock time, .bm-session-token span, .term-cookie) { font-size: 11px; }
  .bm-terminal-footer .bm-session-token .bm-session-countdown { font-size: 11px !important; } /* its base rule sets font with !important */
}
/* The instrument row fits 360 px: the market name gives way first, and the row's own change in percent (the active
   ticker above shows the same figure) steps aside, so the chart-count switcher stays on screen without a side scroll. */
@media (max-width: 400px) {
  .it-app .octo-market-scroll { gap: 6px; }
  .it-app .octo-market-scroll > button:first-child { flex-shrink: 1; min-width: 0; overflow: hidden; }
  .it-app .octo-market-scroll > button:first-child > * { min-width: 0; overflow: hidden; text-overflow: ellipsis; }
  .it-app .octo-market-scroll > b.mono + span.mono { display: none; }
}
/* «Купить челлендж» in the terminal header: the site's green pill (Chip, 12.11.2026), from 1200 px; narrower
   screens reach the checkout from the order panel. */
.it-app .it-header-buy { display: none; align-items: center; height: 28px; padding: 0 14px; border-radius: 999px; background: var(--it-buy); color: #0c0c0c; font-size: 12px; font-weight: 600; white-space: nowrap; text-decoration: none; }
.it-app .it-header-buy:hover { background: #7af0ad; }
.it-app .it-header-buy:focus-visible { outline: 2px solid var(--it-text); outline-offset: 2px; }
@media (min-width: 1200px) { .it-app .it-header-buy { display: inline-flex; } }
/* Two charts: the main chart's head row matches the second chart's (same 28 px bar), so both chart areas start at
   the same height; the tag marks which market the order form trades. */
.it-app .octo-main-pane > :last-child { flex: 1; min-height: 0; }
.it-app .octo-pane-tag { margin-left: auto; display: inline-flex; align-items: center; height: 22px; padding: 0 8px; border: 1px solid color-mix(in srgb, var(--it-buy, #62e89b) 45%, transparent); border-radius: 3px; color: var(--it-buy, #62e89b); font-size: 11px; white-space: nowrap; }
/* Theme toggle in the header (dark by default, light after the Intel.trade Light preset, src/terminal/theme.ts). */
.it-app .it-theme-toggle { display: inline-grid; flex: none; place-items: center; width: 30px; height: 30px; padding: 0; border: 1px solid var(--it-soft-border); border-radius: 999px; background: transparent; color: var(--it-text); cursor: pointer; }
.it-app .it-theme-toggle svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; }
.it-app .it-theme-toggle:hover { border-color: var(--it-border); }
.it-app .it-theme-toggle:focus-visible { outline: 2px solid var(--it-text); outline-offset: 2px; }

/* Demo account (task 488): the always-there header button, the DEMO strip over the order form and the closable
   invitation card. Terminal tokens only, so the light theme (octo-light.css) follows on its own. */
.it-demo-button { display: inline-flex; align-items: center; min-height: 32px; padding: 0 12px; border: 1px solid var(--it-border); border-radius: 999px; color: var(--it-text); font-size: 12px; font-weight: 600; white-space: nowrap; text-decoration: none; }
.it-demo-button:hover { border-color: var(--it-muted); }
.it-demo-button .demo-short { display: none; }
.it-demo-button:focus-visible, .demo-card :is(a, button):focus-visible { outline: 2px solid var(--it-text); outline-offset: 2px; }
/* The demo mark (Chip 13.11.2026, task 71): amber, never the green of Long, so a demo cannot pass for a bought account. */
.it-demo-chip { display: inline-flex; align-items: center; gap: 6px; min-height: 28px; padding: 0 10px 0 3px; border: 1px solid var(--it-warn); border-radius: 999px; background: color-mix(in srgb, var(--it-warn) 14%, transparent); color: var(--it-text); font-size: 12px; font-weight: 600; white-space: nowrap; font-variant-numeric: tabular-nums; }
.it-demo-chip b, .demo-tag { padding: 2px 7px; background: var(--it-warn); color: var(--it-bg); font-size: 11px; font-weight: 800; letter-spacing: 0.08em; }
.it-demo-chip b { border-radius: 999px; }
.demo-tag { display: inline-block; border-radius: 4px; }
.demo-strip { display: flex; flex-direction: column; gap: 6px; margin: 0 0 8px; padding: 8px 12px; border: 1px solid var(--it-warn); border-left-width: 3px; border-radius: 6px; background: color-mix(in srgb, var(--it-warn) 10%, var(--it-panel)); color: var(--it-text); font-size: 12px; }
.demo-strip p { margin: 0; }
.demo-strip .demo-strip-head { display: flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 600; font-variant-numeric: tabular-nums; }
.demo-strip-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.demo-strip-actions > :is(a:not(.magnetic), form) { flex: 1 1 140px; }
.demo-strip-actions form { display: flex; margin: 0; }
.demo-strip-actions :is(a, button):focus-visible { outline: 2px solid var(--it-text); outline-offset: 2px; }
.demo-strip .button:not(.magnetic) { flex: 1 1 0; justify-content: center; min-height: 44px; padding: 0 10px; font-size: 12px; white-space: nowrap; }
.demo-open-form, .it-app .it-header-tools > form.demo-open-form { display: contents; }
button.it-demo-button { background: none; font: inherit; font-size: 12px; font-weight: 600; cursor: pointer; }
.demo-card { position: fixed; right: 16px; bottom: 56px; z-index: 60; width: min(360px, calc(100vw - 24px)); padding: 16px 16px 14px; border: 1px solid var(--it-border); border-radius: 8px; background: var(--it-panel); color: var(--it-text); box-shadow: 0 12px 32px rgba(0, 0, 0, 0.28); }
.demo-card h2 { margin: 6px 32px 6px 0; font-size: 16px; line-height: 1.3; }
.demo-card p { margin: 0; color: var(--it-muted); font-size: 13px; line-height: 1.45; }
.demo-card .demo-card-eyebrow { color: var(--it-muted); font-size: 12px; }
.demo-card-close { position: absolute; top: 8px; right: 8px; display: grid; place-items: center; width: 36px; height: 36px; border: 0; border-radius: 6px; background: none; color: var(--it-muted); cursor: pointer; }
.demo-card-close:hover { background: var(--it-raised); color: var(--it-text); }
.demo-card-actions { display: flex; gap: 8px; margin-top: 12px; }
.demo-card-actions .button { min-height: 40px; }
@media (max-width: 767px) {
  .demo-card { left: 12px; right: 12px; width: auto; bottom: calc(72px + env(safe-area-inset-bottom)); }
  .demo-card-actions .button { flex: 1; justify-content: center; min-height: 44px; }
  .it-demo-button { min-height: 36px; padding: 0 10px; }
  .it-demo-button .demo-full { display: none; }
  .it-demo-button .demo-short { display: inline; }
  /* Two lines on a phone, so the badge keeps its countdown and the menu stays on a 390 px screen. */
  .it-demo-chip { flex-direction: column; justify-content: center; gap: 1px; min-height: 36px; padding: 2px 6px; border-radius: 8px; font-size: 10px; line-height: 1.15; }
  .it-demo-chip b { padding: 1px 5px; border-radius: 4px; font-size: 10px; }
}
/* Signed in on a narrow phone with the demo badge or button: the avatar alone, so the menu stays on screen. */
@media (max-width: 480px) { .it-app .it-header-tools:has(.it-demo-chip, .it-demo-button) .it-account-name { display: none; } }
@media (prefers-reduced-motion: no-preference) { .demo-card { animation: demo-card-in 0.18s ease-out; } }
@keyframes demo-card-in { from { opacity: 0; transform: translateY(8px); } }

/* Header: logo and menu in one type and on one level (Evgeny A., 13.11.2026). The menu's buttons (Торговля, Рынки)
   were 12px and filled the header height while its links were 11px inline boxes, so the two halves differed in size
   and sat at different heights; the 18px logo's baseline was 3px below the links. Now every menu item takes one size
   per width and the logo and menu share a baseline in one row centred in the header. Below 1200px the menu is hidden
   and the wrapper steps aside (display: contents), so the phone and tablet header is unchanged. */
.it-app .it-head-lead { display: contents; }
@media (min-width: 1200px) {
  .it-app .it-head-lead { display: flex; align-items: baseline; gap: 20px; align-self: center; }
  .it-app .it-head-lead .it-brand { height: auto; }
  .it-app .it-head-lead .it-brand svg { align-self: center; }
  .it-app .it-head-lead .it-brand b { align-self: baseline; line-height: 1.2; }
  .it-app .it-head-lead .it-top-nav { height: auto; align-items: baseline; }
  .it-app .it-head-lead .it-top-nav > :is(button, a) {
    height: auto; padding: 0; align-self: baseline;
    font-family: inherit; font-size: 12px; font-weight: 400; letter-spacing: normal; line-height: 1.4;
  }
}
@media (min-width: 1281px) and (max-width: 1699px) {
  .it-app .it-head-lead .it-top-nav > :is(button, a) { font-size: 11px; }
}

/* Closed trades and their replay videos (task 43): the terminal's flat controls, no lift or shadow on hover. */
.it-app .pos-view.replay-format { display: flex; flex-shrink: 0; margin: 0 8px; padding: 2px; border: 1px solid var(--it-border); border-radius: var(--it-radius); }
.it-app .replay-format button { min-height: 26px; padding: 0 10px; border: 0; border-radius: var(--it-radius); background: none; color: var(--it-muted); font-size: 11px; }
.it-app .replay-format button[aria-checked='true'] { background: var(--it-raised); color: var(--it-text); font-weight: 600; }
.it-app .replay-format button:focus-visible, .it-app .replay-btn:focus-visible { outline: 2px solid var(--it-buy); outline-offset: -2px; }
.it-app .replay-actions { display: inline-flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: 6px; }
.it-app .replay-btn { display: inline-flex; align-items: center; gap: 6px; min-height: 28px; padding: 0 10px; border: 1px solid var(--it-border); border-radius: 4px; background: var(--it-panel); color: var(--it-text); font-size: 11px; text-decoration: none; white-space: nowrap; cursor: pointer; }
.it-app .replay-btn:hover:not(:disabled) { border-color: var(--it-muted); }
.it-app .replay-btn:disabled { color: var(--it-muted); cursor: progress; }
.it-app .replay-btn.quiet { background: none; color: var(--it-muted); }
.it-app .replay-spin { width: 10px; height: 10px; border: 2px solid var(--it-border); border-top-color: var(--it-buy); border-radius: 50%; animation: bm-replay-spin 0.9s linear infinite; }
@keyframes bm-replay-spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .it-app .replay-spin { animation: none; border-top-color: var(--it-muted); } }
.it-app .replay-error { color: var(--it-sell); font-size: 11px; }
.it-app .trade-closed { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; padding: 6px 12px; border-bottom: 1px solid var(--it-soft-border); background: var(--it-panel); font-size: 12px; }
.it-app .trade-closed > span:first-child { flex: 1 1 auto; min-width: 0; }
.it-app .trades-more { padding: 8px 12px; }
.it-app .trades-table .row-actions { white-space: nowrap; }
@media (max-width: 767px) {
  .it-app .pos-view.replay-format { margin: 8px 12px 0; }
  .it-app .replay-format button { min-height: 36px; padding: 0 14px; font-size: 12px; }
  .it-app .replay-btn { min-height: 44px; font-size: 12px; }
  .it-app .grid-table.data-cards .row-actions .replay-actions { width: 100%; }
  .it-app .grid-table.data-cards .row-actions .replay-btn { flex: 1; justify-content: center; }
}
