:root {
  color-scheme: dark;
  --lime: #efffbe;
  --black: #050505;
  --panel: rgba(5, 5, 5, 0.96);
  --surface: #171717;
  --white: #fff;
  --muted: rgba(255, 255, 255, 0.56);
  --faint: rgba(255, 255, 255, 0.52);
  --line: rgba(255, 255, 255, 0.1);
  --radius: 23px;
  --mono: "SFMono-Regular", "Roboto Mono", "Cascadia Code", Menlo, monospace;
}

* {
  box-sizing: border-box;
}

html {
  min-width: 320px;
  min-height: 100%;
  background: var(--lime);
}

body {
  min-width: 320px;
  min-height: 100vh;
  margin: 0;
  overflow-x: hidden;
  color: var(--white);
  background:
    radial-gradient(circle at 52% 18%, rgba(255, 255, 255, 0.92) 0 5%, transparent 18%),
    repeating-radial-gradient(ellipse at 57% 38%, transparent 0 40px, rgba(255, 255, 255, 0.48) 43px 50px, transparent 53px 79px),
    radial-gradient(circle at 75% 74%, #fff 0 5%, transparent 21%),
    linear-gradient(115deg, var(--lime), #fff 45%, var(--lime) 67%, #fff);
  font: 14px/1.4 var(--mono);
}

button,
select,
a {
  font: inherit;
}

button,
select {
  min-height: 42px;
  border: 0;
  cursor: pointer;
}

button {
  color: inherit;
}

a {
  color: inherit;
  text-decoration: none;
}

button:focus-visible,
select:focus-visible,
a:focus-visible {
  outline: 2px solid var(--lime);
  outline-offset: 2px;
}

[hidden] {
  display: none !important;
}

.app-shell {
  display: grid;
  min-height: 100vh;
  padding: 14px;
  gap: 14px;
}

.left-column,
.center-column,
.right-column {
  display: grid;
  min-width: 0;
  min-height: 0;
  gap: 14px;
}

.panel {
  min-width: 0;
  overflow: hidden;
  border: 1px solid rgba(239, 255, 190, 0.18);
  border-radius: var(--radius);
  background:
    linear-gradient(135deg, rgba(239, 255, 190, 0.035), transparent 28%),
    var(--panel);
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.12);
}

.brand {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 23px 23px 18px;
  color: var(--lime);
  font-size: 23px;
}

.brand-mark,
.avatar,
.model-card header i,
.position header i {
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: var(--black);
  background: var(--lime);
  font-style: normal;
  font-weight: 800;
}

.brand-mark {
  width: 42px;
  height: 42px;
  font-size: 25px;
}

.side-nav nav {
  display: grid;
  gap: 7px;
  padding: 0 18px 22px;
}

.model-nav {
  min-width: 0;
}

.nav-button {
  display: flex;
  width: 100%;
  align-items: center;
  gap: 12px;
  padding: 11px 14px;
  border-radius: 13px;
  color: var(--white);
  background: transparent;
  text-align: left;
}

.nav-button > span {
  display: grid;
  width: 27px;
  height: 27px;
  flex: 0 0 auto;
  place-items: center;
  border: 1px solid currentColor;
  border-radius: 8px;
  font-size: 9px;
}

.nav-button i {
  margin-left: auto;
  font-style: normal;
}

.nav-button:hover,
.nav-button.active {
  color: var(--black);
  background: var(--lime);
}

.model-menu {
  display: grid;
  gap: 4px;
  padding: 5px 8px 4px 53px;
}

.model-menu button {
  display: flex;
  min-height: 32px;
  align-items: center;
  gap: 7px;
  padding: 6px 9px;
  border-radius: 9px;
  color: var(--muted);
  background: transparent;
  font-size: 9px;
  text-align: left;
}

.model-menu button:hover,
.model-menu button.active {
  color: var(--black);
  background: var(--lime);
}

.model-menu i {
  display: grid;
  width: 18px;
  height: 18px;
  place-items: center;
  border: 1px solid currentColor;
  border-radius: 50%;
  font-size: 7px;
  font-style: normal;
}

.conversation,
.trades,
.chart-panel {
  display: flex;
  min-height: 0;
  flex-direction: column;
}

.section-head,
.chart-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  padding: 19px 21px 15px;
  border-bottom: 1px solid var(--line);
}

.section-head small,
.chart-header small {
  color: var(--faint);
  font-size: 9px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.section-head h2,
.chart-header h1 {
  margin: 5px 0 0;
  font-size: 20px;
  line-height: 1.1;
  letter-spacing: -0.05em;
}

.section-head > span {
  color: var(--muted);
  font-size: 10px;
  white-space: nowrap;
}

.filter-row,
.trade-filter {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 15px;
  border-bottom: 1px solid var(--line);
}

.filter-row select,
.trade-filter select {
  min-width: 0;
  flex: 1;
  padding: 0 35px 0 12px;
  border: 1px solid rgba(239, 255, 190, 0.42);
  border-radius: 11px;
  color: var(--black);
  background: var(--lime);
}

.filter-row > span {
  color: var(--muted);
  font-size: 10px;
  white-space: nowrap;
}

.message-list,
.trade-view {
  min-height: 0;
  flex: 1;
  overflow: auto;
  scrollbar-color: var(--faint) transparent;
}

.message {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  gap: 11px;
  padding: 17px 18px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}

.avatar {
  width: 34px;
  height: 34px;
  font-size: 11px;
}

.message > div {
  min-width: 0;
}

.message header {
  display: flex;
  align-items: center;
  gap: 8px;
}

.message header b {
  min-width: 0;
  overflow: hidden;
  color: var(--lime);
  font-size: 10px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.message header em {
  color: var(--faint);
  font-style: normal;
  font-weight: 400;
}

.message time {
  margin-left: auto;
  color: var(--faint);
  font-size: 9px;
  white-space: nowrap;
}

.badges {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin-top: 7px;
}

.badges span {
  padding: 3px 6px;
  border: 1px solid var(--line);
  border-radius: 5px;
  color: var(--muted);
  font-size: 8px;
}

.badges span:first-child,
.badges span:last-child {
  border-color: rgba(239, 255, 190, 0.42);
  color: var(--lime);
}

.message p {
  margin: 10px 0 0;
  padding-left: 10px;
  border-left: 2px solid var(--lime);
  color: var(--muted);
  font-size: 10px;
  line-height: 1.65;
}

.ticker {
  display: flex;
  min-height: 55px;
  align-items: center;
  border-radius: 999px;
  white-space: nowrap;
}

.ticker-track {
  display: flex;
  width: max-content;
  animation: ticker 28s linear infinite;
}

.ticker:hover .ticker-track {
  animation-play-state: paused;
}

.ticker-set {
  display: flex;
}

.ticker-set > span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 0 18px;
  color: var(--muted);
}

.ticker-set b {
  display: grid;
  width: 22px;
  height: 22px;
  place-items: center;
  border-radius: 50%;
  color: var(--black);
  background: var(--lime);
  font-size: 9px;
}

.ticker-set strong {
  color: var(--white);
}

.ticker-set em {
  color: var(--muted);
  font-style: normal;
}

@keyframes ticker {
  to {
    transform: translateX(-50%);
  }
}

.chart-header {
  border-bottom: 0;
  padding-bottom: 0;
}

.ranges {
  display: flex;
  gap: 5px;
}

.ranges button {
  min-width: 42px;
  min-height: 36px;
  border: 1px solid var(--line);
  border-radius: 9px;
  color: var(--muted);
  background: transparent;
}

.ranges button:hover,
.ranges button.active {
  color: var(--black);
  background: var(--lime);
}

.chart-scroll {
  min-height: 0;
  flex: 1;
  padding: 5px 8px 12px;
}

.chart-scroll svg {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 300px;
}

.grid line {
  stroke: var(--line);
  stroke-width: 1;
}

.axis text {
  fill: var(--faint);
  font-size: 10px;
}

.line {
  fill: none;
  stroke: var(--white);
  stroke-width: 3;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-dasharray: 1450;
  stroke-dashoffset: 1450;
  animation: draw 1.6s ease forwards;
  cursor: pointer;
  pointer-events: stroke;
  transition: opacity 0.2s ease, stroke-width 0.2s ease, filter 0.2s ease;
}

.line:focus {
  outline: none;
}

.line:focus-visible {
  stroke-width: 5px;
  filter: drop-shadow(0 0 6px rgba(239, 255, 190, 0.9));
}

.line.is-selected {
  stroke: var(--lime);
  stroke-width: 5;
  filter: drop-shadow(0 0 5px rgba(239, 255, 190, 0.4));
}

.line.is-muted {
  opacity: 0.13;
}

.line.two {
  stroke: var(--lime);
}

.line.three {
  stroke: rgba(239, 255, 190, 0.46);
}

.line.four {
  stroke: rgba(255, 255, 255, 0.5);
}

@keyframes draw {
  to {
    stroke-dashoffset: 0;
  }
}

.endpoints circle {
  fill: var(--black);
  stroke: var(--lime);
  stroke-width: 3;
}

.endpoints text {
  fill: var(--lime);
  font-size: 12px;
  font-weight: 700;
}

.endpoints > g {
  transition: opacity 0.2s ease;
}

.endpoints > g.is-muted {
  opacity: 0.13;
}

.endpoints > g.is-selected circle {
  stroke-width: 4;
  filter: drop-shadow(0 0 4px rgba(239, 255, 190, 0.5));
}

.model-strip {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  padding: 11px;
  scroll-snap-type: x proximity;
  scrollbar-color: var(--faint) transparent;
}

.model-card {
  min-width: 246px;
  flex: 1 0 246px;
  padding: 15px;
  border: 1px solid var(--line);
  border-radius: 17px;
  background:
    repeating-linear-gradient(0deg, transparent 0 3px, rgba(255, 255, 255, 0.018) 3px 4px),
    #0d0d0d;
  cursor: pointer;
  scroll-snap-align: start;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.model-card:hover {
  border-color: rgba(239, 255, 190, 0.38);
  transform: translateY(-2px);
}

.model-card:focus-visible {
  outline: 2px solid var(--lime);
  outline-offset: -3px;
}

.model-card.is-selected {
  border-color: var(--lime);
  box-shadow: inset 0 0 0 1px rgba(239, 255, 190, 0.3), 0 0 24px rgba(239, 255, 190, 0.08);
}

.model-card header {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px;
}

.model-card header > span,
.model-card header small {
  color: var(--faint);
  font-size: 9px;
}

.model-card header b {
  overflow: hidden;
  color: var(--lime);
  font-size: 10px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.model-card header i {
  display: inline-grid;
  width: 20px;
  height: 20px;
  margin-right: 5px;
  font-size: 8px;
}

.equity {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin: 15px 0 10px;
  padding-bottom: 9px;
  border-bottom: 1px solid var(--line);
}

.equity strong {
  font-size: 23px;
}

.equity em {
  color: var(--muted);
  font-size: 10px;
  font-style: normal;
}

.model-card dl {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 13px;
  margin: 0;
}

.model-card dl div,
.treasury dl div {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  padding: 3px 0;
  color: var(--muted);
  font-size: 8px;
  text-transform: uppercase;
}

.model-card dt,
.model-card dd,
.treasury dt,
.treasury dd {
  margin: 0;
}

.model-card dd,
.treasury dd {
  color: var(--white);
}

.model-card dl div:nth-child(2) dd,
.model-card dl div:last-child dd {
  color: var(--lime);
}

.bar {
  height: 5px;
  margin: 10px 0 8px;
  overflow: hidden;
  border-radius: 99px;
  background: rgba(255, 255, 255, 0.25);
}

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

.model-card footer {
  overflow: hidden;
  color: var(--faint);
  font-size: 8px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  padding: 0 13px 10px;
  border-bottom: 1px solid var(--line);
}

.tabs button {
  border-radius: 10px;
  color: var(--muted);
  background: var(--surface);
}

.tabs button:hover,
.tabs button.active {
  color: var(--black);
  background: var(--lime);
}

.position,
.trade-view > table {
  min-width: 0;
}

.position {
  border-bottom: 1px solid var(--line);
}

.position > header {
  position: sticky;
  left: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 13px 14px 10px;
  color: var(--lime);
  background: rgba(14, 14, 14, 0.98);
  font-size: 10px;
}

.position header b {
  display: flex;
  align-items: center;
  gap: 7px;
}

.position header i {
  width: 24px;
  height: 24px;
  font-size: 8px;
}

.position header strong {
  font-size: 8px;
  text-transform: uppercase;
}

table {
  width: 100%;
  border-collapse: collapse;
  color: var(--muted);
  font-size: 9px;
}

th,
td {
  padding: 10px 12px;
  border-top: 1px solid rgba(255, 255, 255, 0.07);
  text-align: left;
  white-space: nowrap;
}

th {
  color: var(--white);
  font-size: 8px;
  text-transform: uppercase;
}

th:last-child,
td:last-child {
  text-align: right;
}

tbody td:first-child,
tbody td:last-child {
  color: var(--lime);
}

.treasury {
  position: relative;
  padding-bottom: 14px;
  background:
    repeating-linear-gradient(0deg, transparent 0 3px, rgba(255, 255, 255, 0.02) 3px 4px),
    var(--panel);
}

.treasury > header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 18px 12px;
  border-bottom: 1px solid var(--line);
}

.treasury h2 {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  color: var(--lime);
  font-size: 15px;
}

.treasury h2 i {
  display: grid;
  width: 28px;
  height: 28px;
  place-items: center;
  border-radius: 50%;
  color: var(--black);
  background: var(--lime);
  font-style: normal;
}

.treasury h2 span {
  color: var(--muted);
  font-weight: 400;
}

.treasury header small {
  color: var(--faint);
  font-size: 8px;
  text-transform: uppercase;
}

.treasury > a {
  display: block;
  margin: 0 18px;
  padding: 9px 0;
  border-bottom: 1px solid var(--line);
  color: var(--faint);
  font-size: 8px;
}

.distribution {
  margin: 12px 18px;
  padding: 13px;
  border: 1px solid rgba(239, 255, 190, 0.28);
  border-radius: 14px;
}

.distribution > div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  color: var(--faint);
  font-size: 8px;
  text-transform: uppercase;
}

.distribution > div + div {
  margin-top: 7px;
}

.distribution strong {
  color: var(--lime);
  font-size: 26px;
}

.distribution progress {
  width: 100%;
  height: 5px;
  margin-top: 7px;
  accent-color: var(--lime);
}

.treasury dl {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 17px;
  margin: 0 18px;
}

.treasury dl div {
  padding: 6px 0;
  border-bottom: 1px dotted rgba(255, 255, 255, 0.12);
}

.treasury dl div:nth-child(n + 3) dd {
  color: var(--lime);
}

.treasury > p {
  margin: 11px 18px 0;
  overflow: hidden;
  color: var(--faint);
  font-size: 8px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.toast {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 20;
  max-width: calc(100vw - 36px);
  padding: 12px 15px;
  border-radius: 11px;
  color: var(--black);
  background: var(--lime);
  opacity: 0;
  pointer-events: none;
  transform: translateY(10px);
  transition: 0.18s ease;
}

.toast.visible {
  opacity: 1;
  transform: translateY(0);
}

@media (min-width: 1180px) {
  body {
    height: 100vh;
    overflow: hidden;
  }

  .app-shell {
    grid-template-columns: clamp(250px, 21vw, 330px) minmax(400px, 1fr) clamp(320px, 28vw, 430px);
    height: 100dvh;
  }

  .left-column {
    grid-template-rows: auto minmax(0, 1fr);
  }

  .center-column {
    grid-template-rows: auto minmax(330px, 1fr) minmax(225px, 28vh);
  }

  .right-column {
    grid-template-rows: minmax(0, 1fr) auto;
  }
}

@media (max-width: 1179px) {
  .app-shell {
    grid-template-columns: minmax(0, 1fr);
  }

  .left-column,
  .center-column,
  .right-column {
    display: contents;
  }

  .side-nav { order: 1; }
  .ticker { order: 2; }
  .chart-panel { order: 3; min-height: 520px; }
  .model-strip { order: 4; min-height: 290px; }
  .trades { order: 5; min-height: 530px; }
  .treasury { order: 6; }
  .conversation { order: 7; min-height: 590px; }

  .side-nav nav {
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }

  .nav-button {
    justify-content: center;
    padding-inline: 8px;
    font-size: 10px;
    text-align: center;
  }

  .nav-button > span,
  .nav-button > i {
    display: none;
  }
}

@media (max-width: 620px) {
  .app-shell {
    padding: 8px;
    gap: 8px;
  }

  .panel {
    border-radius: 17px;
  }

  .brand {
    padding: 17px 16px 13px;
    font-size: 20px;
  }

  .brand-mark {
    width: 36px;
    height: 36px;
    font-size: 20px;
  }

  .side-nav nav {
    display: flex;
    overflow-x: auto;
    gap: 5px;
    padding: 0 10px 11px;
    scrollbar-width: none;
  }

  .model-nav {
    flex: 0 0 auto;
  }

  .model-menu {
    min-width: 170px;
    padding: 4px;
  }

  .nav-button {
    min-width: max-content;
    min-height: 44px;
    padding: 9px 11px;
  }

  .ticker {
    min-height: 52px;
  }

  .ticker-set > span {
    padding-inline: 12px;
    font-size: 11px;
  }

  .section-head,
  .chart-header {
    align-items: flex-start;
    flex-direction: column;
    padding: 16px 15px 13px;
  }

  .ranges {
    width: 100%;
  }

  .ranges button {
    min-height: 44px;
    flex: 1;
  }

  .chart-panel {
    min-height: 430px;
  }

  .chart-scroll {
    overflow-x: auto;
    padding-inline: 0;
  }

  .chart-scroll svg {
    width: 100%;
    max-width: none;
    min-height: 300px;
  }

  .chart-scroll {
    overflow-x: hidden;
  }

  .model-card {
    min-width: min(82vw, 330px);
    flex-basis: min(82vw, 330px);
  }

  .filter-row {
    align-items: stretch;
    flex-direction: column;
  }

  .trades {
    min-height: 560px;
  }

  .trade-view {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  .position {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  .treasury dl {
    grid-template-columns: 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}


/* горизонтальные скроллеры: видимая полоса и затухание у правого края */
.model-strip,
.chart-scroll,
.trade-view,
.position {
  scrollbar-width: thin;
}

.model-strip::-webkit-scrollbar,
.chart-scroll::-webkit-scrollbar,
.trade-view::-webkit-scrollbar,
.position::-webkit-scrollbar {
  height: 6px;
}

.model-strip::-webkit-scrollbar-thumb,
.chart-scroll::-webkit-scrollbar-thumb,
.trade-view::-webkit-scrollbar-thumb,
.position::-webkit-scrollbar-thumb {
  border-radius: 3px;
  background: rgba(239, 255, 190, 0.34);
}

.model-strip::-webkit-scrollbar-track,
.chart-scroll::-webkit-scrollbar-track,
.trade-view::-webkit-scrollbar-track,
.position::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.05);
}

.model-strip {
  -webkit-mask-image: linear-gradient(90deg, #000 0, #000 calc(100% - 28px), transparent 100%);
  mask-image: linear-gradient(90deg, #000 0, #000 calc(100% - 28px), transparent 100%);
}

.model-strip.at-end {
  -webkit-mask-image: none;
  mask-image: none;
}

.brand-glyph {
  display: block;
  width: 74%;
  height: auto;
}

/* панель сделок узкая на любом экране — таблицы показываем карточками, иначе режутся колонки */
/* узкий экран: таблица разворачивается в карточки, ничего не режется */
.position table,
.trade-view[data-view="completed"] table {
  min-width: 0;
  display: block;
}

.position thead,
.trade-view[data-view="completed"] thead {
  display: none;
}

.position tbody,
.trade-view[data-view="completed"] tbody {
  display: grid;
  gap: 8px;
}

.position tr,
.trade-view[data-view="completed"] tr {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px 10px;
  padding: 11px 12px;
  border: 1px solid rgba(239, 255, 190, 0.14);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.02);
}

.position td,
.trade-view[data-view="completed"] td {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: 3px;
  padding: 0;
  border: 0;
  font-size: 12px;
  word-break: break-word;
}

.position td::before,
.trade-view[data-view="completed"] td::before {
  color: var(--faint);
  content: attr(data-label);
  font-size: 9px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.position td:last-child,
.trade-view[data-view="completed"] td:last-child {
  grid-column: 1 / -1;
}



/* активный пункт и наведение больше не выглядят одинаково */
.nav-button:hover:not(.active),
.tabs button:hover:not(.active),
.ranges button:hover:not(.active),
.model-menu button:hover:not(.active) {
  color: var(--lime);
  background: rgba(239, 255, 190, 0.12);
}

/* внешняя ссылка в казне читалась как обычный текст */
.treasury > a {
  color: var(--lime);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.treasury > a:hover {
  text-decoration-thickness: 2px;
}

.brand:hover {
  opacity: 0.82;
}

/* подсказка о горизонтальной прокрутке там, где её не было видно */
.side-nav nav,
.chart-scroll {
  -webkit-mask-image: linear-gradient(90deg, #000 0, #000 calc(100% - 24px), transparent 100%);
  mask-image: linear-gradient(90deg, #000 0, #000 calc(100% - 24px), transparent 100%);
}

.side-nav nav.at-end,
.chart-scroll.at-end {
  -webkit-mask-image: none;
  mask-image: none;
}

@media (min-width: 1180px) {
  .side-nav nav,
  .chart-scroll {
    -webkit-mask-image: none;
    mask-image: none;
  }
}


@media (max-width: 1179px) {
  .model-nav {
    position: relative;
  }

  .model-menu {
    position: fixed;
    z-index: 40;
    top: auto;
    right: 12px;
    bottom: 12px;
    left: 12px;
    display: grid;
    gap: 4px;
    padding: 10px;
    border: 1px solid rgba(239, 255, 190, 0.34);
    border-radius: 16px;
    background: #0c0d0a;
    box-shadow: 0 22px 60px rgba(0, 0, 0, 0.62);
  }

  .model-menu button {
    min-height: 46px;
  }
}

/* чип с результатом закрытой сделки в ленте */
.pnl-chip {
  display: flex;
  gap: 6px;
  margin: 6px 0 0;
}

.pnl-chip span {
  padding: 2px 7px;
  border: 1px solid rgba(239, 255, 190, 0.24);
  border-radius: 5px;
  color: var(--lime);
  font-size: 10px;
}

.visually-hidden {
  position: absolute;
  overflow: hidden;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  border: 0;
  clip-path: inset(50%);
  white-space: nowrap;
}

.filter-row select,
.trade-filter select {
  min-width: 0;
  flex: 1 1 auto;
}

.filter-row > span {
  flex: 0 0 auto;
  white-space: nowrap;
}


/* плашки под фирменный знак: тёмные, иначе салатовый знак сливается с фоном */
.brand-mark,
.treasury h2 i {
  border: 1px solid rgba(239, 255, 190, 0.35);
  background: #0b0c09;
}
