:root {
  --bg: var(--canvas);
  --bg-panel: var(--paper);
  --surface: var(--paper);
  --surface2: #f4f7f3;
  --surface3: #e8ede8;
  --border: var(--line);
  --border-strong: #cbd6cd;
  --text: var(--ink);
  --text-primary: var(--ink);
  --text-muted: var(--muted);
  --text-dim: #8b9790;
  --text-danger: var(--negative);
  --accent: var(--green-700);
  --accent-hover: var(--green-800);
  --accent-soft: rgba(50, 138, 110, .12);
  --green: var(--positive);
  --green-soft: rgba(35, 131, 99, .11);
  --red: var(--negative);
  --red-soft: rgba(198, 91, 82, .1);
  --blue: #567b8c;
  --font-sans: var(--font);
}

body.dashboard-app { min-height: 100vh; background: var(--canvas); font-size: 13px; }
.dashboard-app button { font-family: var(--font); }
.app-sidebar { overflow-y: auto; scrollbar-width: thin; }
.app-sidebar .desktop-nav { gap: 3px; }
.app-sidebar .desktop-nav-item { min-height: 39px; }
.app-sidebar .nav-caption-system { margin-top: 16px; }
.app-sidebar .sidebar-bottom { padding-top: 20px; }
.app-workspace { min-width: 0; }
.app-topbar { position: sticky; top: 0; z-index: 15; }
#conn-status { display: inline-flex; align-items: center; gap: 7px; padding: 6px 10px; border: 1px solid var(--line); border-radius: 9px; color: var(--muted); background: #f7f9f6; font-size: 10px; }
#conn-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--negative); }
#conn-dot.connected { background: var(--positive); box-shadow: 0 0 0 3px rgba(35, 131, 99, .1); }
.topbar-clock { color: var(--muted); font-family: var(--mono); font-size: 10px; font-variant-numeric: tabular-nums; }
.mobile-app-header { display: none; }
.dashboard-main { max-width: 1560px; padding-top: 30px; }
.dashboard-page-heading { margin-bottom: 24px; }
.dashboard-main .content { display: none; min-width: 0; }
.dashboard-main .content.active { display: block; animation: dashboard-content-in .2s ease; }
@keyframes dashboard-content-in { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: none; } }
body.dashboard-app:not([data-active-tab="overview"]) .account-hero { display: none; }
.account-hero { margin-bottom: 18px; }
.account-currency-sign { margin-right: 4px; opacity: .65; }
.balance-value { display: flex; align-items: baseline; }
.acc-currency { margin-left: 8px; color: #9ab4a8; font-family: var(--font); font-size: 10px; letter-spacing: 0; }
.acc-delta { display: inline-flex; padding: 4px 8px; border-radius: 7px; font-family: var(--mono); font-size: 10px; font-weight: 600; }
.acc-delta-pos { color: #b8ecd0; background: rgba(151, 226, 188, .1); }
.acc-delta-neg { color: #f2b9b1; background: rgba(240, 150, 137, .12); }
.acc-delta-zero { color: #a8bdb3; background: rgba(255, 255, 255, .06); }
.equity-area { fill: url(#dashboard-equity-fill); }
.private-value { transition: opacity .15s; }

.badge { display: inline-grid; place-items: center; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 6px; color: #fff; background: var(--negative); font-family: var(--mono); font-size: 8px; }
.badge.hidden { display: none; }
.desktop-nav-item .badge { margin-left: auto; }
.panel-counter { display: grid; place-items: center; min-width: 27px; height: 27px; padding: 0 8px; border-radius: 8px; color: var(--green-700); background: #edf4ef; font-family: var(--mono); font-size: 10px; }
.dashboard-section-panel, .form-panel { margin-bottom: 18px; overflow: hidden; }
.empty-state { padding: 24px 20px; color: var(--text-muted); font-size: 11px; text-align: center; }
.center-action { padding: 15px; text-align: center; }

/* Positions */
.positions-list, .overview-positions-list { padding: 0 20px 10px; }
.pos-card { display: flex; align-items: center; gap: 12px; min-height: 70px; padding: 12px 0; border-top: 1px solid #edf0ec; cursor: pointer; transition: background .15s; }
.pos-card:hover { background: #fafcfa; }
.pos-icon { display: inline-flex; align-items: center; justify-content: center; flex: 0 0 38px; width: 38px; height: 38px; overflow: hidden; border-radius: 12px; color: #fff; font-family: var(--mono); font-size: 10px; font-weight: 600; }
.pos-icon-flag { padding: 0; background: #eef2ee; }
.pos-icon-flag .fi { width: 100%; height: 100%; background-size: cover; background-position: center; line-height: 1; }
.pos-head { display: flex; flex: 1; min-width: 0; flex-direction: column; gap: 6px; }
.pos-symbol { overflow: hidden; color: var(--ink); font-family: var(--mono); font-size: 12px; font-weight: 600; text-overflow: ellipsis; white-space: nowrap; }
.pos-meta-line { display: flex; align-items: center; gap: 8px; font-size: 9px; }
.pos-type { font-family: var(--mono); font-size: 9px; font-weight: 600; }
.type-buy, .pnl-pos { color: var(--positive) !important; }
.type-sell, .pnl-neg { color: var(--negative) !important; }
.pos-stream-tag { padding: 3px 7px; border-radius: 6px; color: #567b8c; background: #eaf1f3; font-size: 8px; }
.pos-pnl-pill { display: flex; min-width: 108px; padding: 8px 11px; border-radius: 10px; flex-direction: column; align-items: flex-end; background: #f1f4f1; }
.pos-pnl-pill.pnl-pos { background: #edf6f0; }
.pos-pnl-pill.pnl-neg { background: #faefed; }
.pnl-amount { font-family: var(--mono); font-size: 11px; font-weight: 600; }

/* Streams */
.streams-count-badge { display: inline-flex; margin-left: 7px; padding: 3px 7px; border-radius: 6px; color: var(--muted); background: #eef2ee; font-family: var(--mono); font-size: 9px; font-weight: 500; vertical-align: middle; }
.streams-table { padding: 0 20px 15px; overflow-x: auto; }
.streams-empty { padding: 25px 0; color: var(--muted); font-size: 11px; }
table { width: 100%; border-collapse: collapse; }
th { height: 36px; padding: 0 12px; border-top: 1px solid #edf0ec; border-bottom: 1px solid #e7ece7; color: #8b9690; background: #fafbf9; font-size: 9px; font-weight: 600; letter-spacing: .35px; text-align: left; text-transform: uppercase; }
td { padding: 12px; border-bottom: 1px solid #edf0ec; color: #59665e; font-size: 11px; font-variant-numeric: tabular-nums; }
tbody tr:last-child td { border-bottom: 0; }
tbody tr:hover td { background: #fbfcfa; }
.streams-grid .st-name { color: var(--ink); font-weight: 600; }
.streams-grid .st-sym { color: var(--green-700); font-family: var(--mono); font-size: 10px; }
.streams-grid .st-actions { width: 1%; text-align: right; white-space: nowrap; }
.st-status-dot { display: inline-block; width: 7px; height: 7px; margin-right: 8px; border-radius: 50%; background: #a9b3ac; }
.st-status-dot.is-on { background: var(--positive); box-shadow: 0 0 0 3px rgba(35, 131, 99, .09); }
.st-status-dot.is-off { background: #a9b3ac; }
.st-state { display: inline-flex; padding: 4px 8px; border-radius: 6px; font-size: 9px; font-weight: 600; }
.st-state.is-on { color: var(--positive); background: var(--green-soft); }
.st-state.is-off { color: var(--muted); background: #eef1ee; }
.btn-icon { display: inline-flex; align-items: center; justify-content: center; width: 31px; height: 31px; padding: 0; border: 0; border-radius: 8px; color: #77857c; background: transparent; cursor: pointer; }
.btn-icon:hover { color: var(--green-800); background: #edf3ee; }
.btn-icon svg { display: block; }
.st-more-wrap { position: relative; display: inline-block; }
.st-menu { position: fixed; z-index: 1000; display: flex; min-width: 165px; padding: 5px; border: 1px solid var(--line); border-radius: 11px; flex-direction: column; background: #fff; box-shadow: 0 14px 35px rgba(16, 45, 38, .15); }
.st-menu.hidden { display: none; }
.st-menu button { display: flex; align-items: center; gap: 9px; width: 100%; padding: 9px 10px; border: 0; border-radius: 7px; color: var(--ink); background: transparent; font-size: 11px; text-align: left; cursor: pointer; }
.st-menu button:hover { background: #f1f5f1; }
.st-menu button.danger { color: var(--negative); }
.stream-row .switch { margin-left: 12px; }

/* Buttons and forms */
.button-primary:disabled, .button-secondary:disabled { opacity: .45; cursor: not-allowed; transform: none; }
.btn-primary { display: inline-flex; align-items: center; justify-content: center; min-height: 38px; padding: 0 15px; border: 0; border-radius: 10px; color: #fff; background: var(--green-900); font-size: 11px; font-weight: 700; cursor: pointer; }
.btn-primary:hover { background: var(--green-800); }
.btn-ghost { display: inline-flex; align-items: center; justify-content: center; min-height: 34px; padding: 0 12px; border: 1px solid var(--line); border-radius: 9px; color: var(--muted); background: #fff; font-size: 11px; cursor: pointer; }
.btn-ghost:hover { color: var(--ink); background: #f3f6f2; }
input, select, textarea { color: var(--ink); }
input[type="checkbox"] { width: 15px; height: 15px; accent-color: var(--green-700); }
.bt-form { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; padding: 5px 22px 20px; }
.bt-form label, .calc-form label, .stream-form-grid label { display: flex; min-width: 0; flex-direction: column; gap: 7px; color: var(--muted); font-size: 10px; font-weight: 600; }
.bt-form label.col-full { grid-column: 1 / -1; }
.bt-form label.col-2 { grid-column: span 2; }
.bt-form input, .bt-form select, .calc-form input, .calc-form select, .stream-form-grid input, .stream-form-grid select, .user-form-field input, .user-form-field select { width: 100%; min-height: 40px; padding: 0 11px; border: 1px solid #dce3dd; border-radius: 9px; outline: none; color: var(--ink); background: #fafbf9; font-family: var(--font); font-size: 11px; transition: border .15s, box-shadow .15s; }
.bt-form input:focus, .bt-form select:focus, .calc-form input:focus, .calc-form select:focus, .stream-form-grid input:focus, .stream-form-grid select:focus, .user-form-field input:focus, .user-form-field select:focus { border-color: var(--green-600); box-shadow: 0 0 0 3px rgba(50, 138, 110, .1); }
.strategy-desc { margin: 0 22px 20px; padding: 15px; border: 1px solid #dce8df; border-radius: 11px; color: var(--muted); background: #f2f7f3; font-size: 11px; line-height: 1.65; }
.strategy-desc:empty { display: none; }
.strat-desc-name { margin-bottom: 6px; color: var(--green-800); font-weight: 700; }
.strat-desc-body b { color: var(--ink); }
.strat-desc-ind { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 10px; }
.strat-ind-tag, .pill { display: inline-flex; padding: 4px 8px; border: 1px solid #dce6df; border-radius: 7px; color: var(--green-700); background: #fff; font-size: 9px; }
.calc-form { display: grid; grid-template-columns: minmax(200px, 1.6fr) 1fr 1fr auto; gap: 14px; align-items: end; padding: 6px 22px 22px; }
.stream-form-wrap { padding: 0 20px 20px; }
.stream-form { padding: 20px; border: 1px solid var(--line); border-radius: 13px; background: #f7f9f6; }
.stream-form-title { margin-bottom: 17px; font-size: 13px; font-weight: 700; }
.stream-form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 13px 15px; }
.stream-form-grid label.col-full { grid-column: 1 / -1; }
.stream-form-grid .sf-bottom { display: flex; align-items: center; grid-column: 1 / -1; gap: 14px; padding-top: 15px; border-top: 1px solid var(--line); }
.sf-enabled-label { display: inline-flex !important; align-items: center; flex-direction: row !important; color: var(--ink) !important; }
.sf-error { flex: 1; color: var(--negative); font-size: 10px; text-align: center; }
.sf-actions { display: flex; gap: 8px; margin-left: auto; }

/* History and results */
.stats-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; margin-bottom: 18px; }
.history-stats-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.stat-box { padding: 19px 20px; border: 1px solid var(--line); border-radius: var(--radius-md); background: #fff; box-shadow: var(--shadow); }
.stat-label { margin-bottom: 8px; color: var(--muted); font-size: 10px; }
.stat-value { color: var(--ink); font-family: var(--mono); font-size: 22px; font-weight: 600; letter-spacing: -.6px; }
.hist-controls { display: flex; align-items: center; gap: 9px; }
.toolbar-select { min-width: 130px; height: 35px; padding: 0 10px; border: 1px solid var(--line); border-radius: 8px; color: var(--ink); background: #fff; font-size: 10px; }
.hist-period-tabs { display: flex; gap: 3px; padding: 3px; border: 1px solid var(--line); border-radius: 9px; background: #f4f7f3; }
.hist-period-btn { min-height: 28px; padding: 0 10px; border: 0; border-radius: 6px; color: var(--muted); background: transparent; font-size: 9px; cursor: pointer; }
.hist-period-btn.active { color: #fff; background: var(--green-800); }
.table-scroll { max-width: 100%; overflow-x: auto; }
.hist-deals { min-width: 540px; }
.hist-strat { max-width: 210px; overflow: hidden; color: var(--muted); text-overflow: ellipsis; white-space: nowrap; }
.bt-pagination { display: flex; align-items: center; justify-content: center; gap: 5px; padding: 15px; }
.bt-pagination button { min-width: 31px; height: 31px; padding: 0 8px; border: 1px solid var(--line); border-radius: 8px; color: var(--muted); background: #fff; font-size: 10px; cursor: pointer; }
.bt-pagination button.active { border-color: var(--green-900); color: #fff; background: var(--green-900); }
.bt-pagination button:disabled { opacity: .35; cursor: default; }
.bt-page-dots { color: var(--muted); }
#bt-result > .stats-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); margin-top: 18px; }
#bt-result > .card, #calc-result > .card { margin-bottom: 18px; padding: 20px; border: 1px solid var(--line); border-radius: var(--radius-md); background: #fff; box-shadow: var(--shadow); }
#bt-result .card-title, #calc-result .card-title { margin-bottom: 15px; font-size: 13px; font-weight: 700; }
#bt-chart-card { display: none !important; }

/* Market chart */
.market-chart-section { margin-bottom: 18px; }
.chart-toolbar { display: flex; align-items: center; gap: 15px; padding: 13px 16px; border: 1px solid var(--line); border-bottom: 0; border-radius: 16px 16px 0 0; flex-wrap: wrap; background: #fff; }
.toolbar-group { display: flex; align-items: center; gap: 6px; }
.tf-buttons { gap: 2px; padding: 3px; border: 1px solid var(--line); border-radius: 9px; background: #f4f7f3; }
.tf-btn { min-width: 37px; height: 27px; padding: 0 8px; border: 0; border-radius: 6px; color: var(--muted); background: transparent; font-size: 9px; cursor: pointer; }
.tf-btn.active { color: #fff; background: var(--green-800); }
.chart-legend { margin-left: auto; gap: 10px; font-family: var(--mono); font-size: 9px; }
.leg-item { display: inline-flex; gap: 4px; }
.leg-label { color: var(--text-dim); }
.leg-val { color: var(--ink); }
.chart-container { position: relative; width: 100%; height: 430px; overflow: hidden; border: 1px solid var(--line); border-radius: 0 0 16px 16px; background: #fff; }
.chart-container.has-sub { border-radius: 0; border-bottom: 0; }
.chart-loading { position: absolute; inset: 0; display: grid; place-items: center; color: var(--muted); font-size: 11px; pointer-events: none; }
.chart-macd-wrap { overflow: hidden; border: 1px solid var(--line); border-radius: 0 0 16px 16px; background: #fff; }
.macd-head { display: flex; align-items: center; gap: 15px; padding: 8px 13px; border-bottom: 1px solid var(--line); }
.macd-title { color: var(--muted); font-size: 9px; font-weight: 700; }
.macd-vals { display: flex; gap: 8px; }
.macd-badge { display: inline-flex; gap: 5px; font-family: var(--mono); font-size: 9px; }
.macd-badge span { color: var(--muted); }
.chart-macd-container { width: 100%; height: 150px; }
.indicator-strip { overflow: hidden; border: 1px solid var(--line); border-radius: 16px; background: #fff; }
.ind-strip-head { display: flex; align-items: center; gap: 10px; padding: 13px 16px; border-bottom: 1px solid var(--line); }
.ind-strip-title { font-size: 11px; font-weight: 700; }
.ind-strip-signal { padding: 4px 8px; border-radius: 6px; font-family: var(--mono); font-size: 9px; }
.ind-strip-signal.buy { color: var(--positive); background: var(--green-soft); }
.ind-strip-signal.sell { color: var(--negative); background: var(--red-soft); }
.ind-strip-signal.none { color: var(--muted); background: #eef2ee; }
.ind-strip-flat { display: none; padding: 4px 8px; border-radius: 6px; color: #9b7038; background: #f8efe2; font-size: 9px; }
.ind-strip-flat.active { display: inline-block; }
.ind-strip-ts { margin-left: auto; color: var(--muted); font-family: var(--mono); font-size: 9px; }
.ind-strip-body { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 1px; background: var(--line); }
.ind-cell { min-height: 105px; padding: 14px; background: #fff; }
.ind-cell-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 12px; }
.ind-cell-label { color: var(--muted); font-size: 9px; }
.ind-cell-value { font-family: var(--mono); font-size: 12px; font-weight: 600; }
.ind-cell-value.muted { color: var(--muted); }
.ind-cell-sub { display: flex; justify-content: space-between; margin-top: 7px; color: var(--muted); font-size: 8px; }
.tag { padding: 3px 6px; border-radius: 5px; }
.tag-bull { color: var(--positive); background: var(--green-soft); }
.tag-bear { color: var(--negative); background: var(--red-soft); }
.tag-neut { color: var(--muted); background: #eef2ee; }
.tag-warn { color: #9b7038; background: #f8efe2; }
.ind-gauge { position: relative; height: 5px; border-radius: 4px; background: #e7ece7; }
.gauge-marker { position: absolute; top: -3px; width: 2px; height: 11px; border-radius: 2px; background: var(--ink); transform: translateX(-50%); }
.gauge-labels { display: flex; justify-content: space-between; margin-top: 5px; color: var(--text-dim); font-family: var(--mono); font-size: 7px; }
.ind-spark { display: block; width: 100%; height: 30px; }
.spark-line { fill: none; stroke-width: 1.5; }
.spark-line.up { stroke: var(--positive); }
.spark-line.down { stroke: var(--negative); }
.spark-line.neut { stroke: var(--blue); }
.ind-price-rel { display: flex; align-items: center; gap: 6px; font-family: var(--mono); font-size: 9px; }
.ind-arrow { width: 0; height: 0; border-right: 4px solid transparent; border-left: 4px solid transparent; }
.ind-arrow.up { border-bottom: 5px solid var(--positive); }
.ind-arrow.down { border-top: 5px solid var(--negative); }
.ind-bool { display: flex; align-items: center; gap: 8px; }
.bool-dot { display: grid; place-items: center; width: 23px; height: 23px; border-radius: 50%; }
.bool-dot.on-bull { color: var(--positive); background: var(--green-soft); }
.bool-dot.on-bear { color: var(--negative); background: var(--red-soft); }
.bool-dot.off { color: var(--muted); background: #eef2ee; }

/* Strategies */
.strat-layout { display: grid; grid-template-columns: 290px minmax(0, 1fr); gap: 18px; align-items: start; }
.strat-sidebar { position: sticky; top: 90px; display: flex; max-height: calc(100vh - 115px); padding: 13px; border: 1px solid var(--line); border-radius: var(--radius-md); flex-direction: column; background: #fff; box-shadow: var(--shadow); }
.strat-sidebar input { width: 100%; height: 40px; margin-bottom: 10px; padding: 0 12px; border: 1px solid var(--line); border-radius: 9px; outline: none; background: #fafbf9; font-size: 11px; }
.strat-list { overflow-y: auto; }
.strat-list-group { padding: 13px 8px 6px; border-top: 1px solid #edf0ec; color: var(--muted); font-size: 8px; font-weight: 700; letter-spacing: .5px; text-transform: uppercase; }
.strat-list-group:first-child { border-top: 0; }
.strat-list-item { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 10px 9px; border-radius: 8px; font-size: 10px; cursor: pointer; }
.strat-list-item:hover { background: #f2f6f2; }
.strat-list-item.active { color: var(--green-800); background: #eaf3ed; font-weight: 700; }
.tf-badge { flex-shrink: 0; padding: 3px 5px; border-radius: 5px; color: var(--muted); background: #eef2ee; font-family: var(--mono); font-size: 8px; }
.strat-detail { min-height: 380px; padding: 25px; border: 1px solid var(--line); border-radius: var(--radius-md); background: #fff; box-shadow: var(--shadow); }
.strat-detail h2 { margin: 0 0 12px; font-size: 21px; letter-spacing: -.5px; }
.strat-meta { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 20px; }
.strat-section-title { margin: 20px 0 8px; color: var(--muted); font-size: 9px; font-weight: 700; letter-spacing: .6px; text-transform: uppercase; }
.strat-doc { padding: 16px; border: 1px solid var(--line); border-radius: 11px; color: #5f6c64; background: #fafbf9; font-size: 11px; line-height: 1.7; white-space: pre-wrap; }
.strat-actions { display: flex; gap: 9px; margin-top: 18px; }

/* Agents */
.autoscroll-toggle { display: inline-flex; align-items: center; gap: 7px; color: var(--muted); font-size: 10px; }
.agent-log-grid { display: flex; padding: 0 20px 20px; flex-direction: column; gap: 8px; }
.agent-log-panel { overflow: hidden; border: 1px solid var(--line); border-radius: 11px; background: #fff; }
.agent-log-header { display: flex; align-items: center; gap: 12px; width: 100%; padding: 12px 14px; border: 0; color: var(--ink); background: #fff; text-align: left; cursor: pointer; }
.agent-log-header:hover { background: #f8faf7; }
.agent-log-avatar { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 10px; background: #eef3ee; font-size: 16px; }
.agent-log-title-row { display: flex; align-items: center; flex: 1; min-width: 0; gap: 10px; }
.agent-log-status-dot { width: 7px; height: 7px; border-radius: 50%; background: #a5afa8; }
.agent-log-status-dot.running { background: var(--blue); }
.agent-log-status-dot.idle { background: var(--positive); }
.agent-log-status-dot.error { background: var(--negative); }
.agent-log-name { font-size: 11px; font-weight: 700; }
.agent-log-role { color: var(--muted); font-size: 9px; }
.agent-log-count { margin-left: auto; padding: 3px 7px; border-radius: 6px; color: var(--muted); background: #eef2ee; font-family: var(--mono); font-size: 8px; }
.agent-log-chevron { width: 13px; transition: transform .18s; }
.agent-log-panel.open .agent-log-chevron { transform: rotate(90deg); }
.agent-log-panel.open .agent-log-header { border-bottom: 1px solid var(--line); }
.agent-log-body { max-height: 300px; overflow-y: auto; padding: 6px 0; font-family: var(--mono); }
.agent-log-empty { padding: 18px; color: var(--muted); font-family: var(--font); font-size: 10px; text-align: center; }
.log-line { padding: 8px 14px; border-bottom: 1px solid #edf0ec; overflow-wrap: anywhere; }
.log-line:last-child { border: 0; }
.log-line-head { display: flex; gap: 9px; margin-bottom: 4px; }
.log-time { color: var(--text-dim); font-size: 9px; }
.log-type { color: var(--green-700); font-size: 9px; }
.log-payload { color: var(--muted); font-size: 9px; }

/* Anomalies */
.anomaly-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 11px; padding: 0 20px 20px; }
.anomaly-card { position: relative; display: flex; align-items: center; gap: 12px; padding: 16px; overflow: hidden; border: 1px solid var(--line); border-radius: 12px; background: #fff; }
.anomaly-card.up { border-color: #bcdccb; background: #f4faf6; }
.anomaly-card.mixed { border-color: #e8d5b7; background: #fcf8f1; }
.anomaly-card.multi, .anomaly-card.down { border-color: #ebc5bf; background: #fcf5f4; }
.anomaly-card.fading { opacity: .55; }
.ac-main { display: flex; flex: 1; min-width: 0; flex-direction: column; gap: 8px; }
.ac-symbol { font-family: var(--mono); font-size: 16px; font-weight: 600; }
.ac-types { display: flex; flex-wrap: wrap; gap: 5px; }
.ac-type-badge, .type-badge { display: inline-flex; padding: 3px 6px; border-radius: 5px; color: var(--muted); background: #eef2ee; font-family: var(--mono); font-size: 8px; }
.type-STOCH_OB, .type-STOCH_OS { color: var(--positive); background: var(--green-soft); }
.type-EMA_FAR_UP, .type-EMA_FAR_DOWN { color: #a47739; background: #f8efe2; }
.anomaly-filters { display: flex; gap: 8px; padding: 0 20px 15px; flex-wrap: wrap; }
.anomaly-table-wrap { padding: 0 20px; }
.anomaly-table td { height: 48px; }
.type-stack { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; }

/* Users and profile */
.users-grid { min-width: 480px; }
.users-col-avatar { width: 65px; }
.users-col-actions { width: 55px; }
.user-row-avatar { position: relative; display: inline-flex; align-items: center; justify-content: center; width: 36px; height: 36px; padding: 0; overflow: visible; border: 0; border-radius: 50%; color: var(--green-800); background: #e5efe7; cursor: pointer; }
.user-row-avatar.is-admin { box-shadow: 0 0 0 2px #d9c28e; }
.user-row-avatar img { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; }
.user-row-initials { font-size: 10px; font-weight: 800; }
.user-row-crown { position: absolute; top: -5px; right: -5px; width: 13px; color: #b48b42; }
.user-row-name { color: var(--ink); font-weight: 600; }
.user-row-actions { text-align: right; }
.user-form { padding: 5px; }
.user-form-title { margin-bottom: 15px; font-size: 13px; font-weight: 700; }
.user-form-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 13px; }
.user-form-field { display: flex; flex-direction: column; gap: 7px; }
.user-form-label { color: var(--muted); font-size: 10px; font-weight: 600; }
.user-form-error { min-height: 16px; margin-top: 8px; color: var(--negative); font-size: 10px; }
.user-form-actions { display: flex; justify-content: flex-end; gap: 8px; margin-top: 12px; }
#user-actions-floating.user-actions-menu { position: fixed; z-index: 2000; min-width: 200px; padding: 6px; border: 1px solid var(--line); border-radius: 11px; background: #fff; box-shadow: 0 14px 35px rgba(16, 45, 38, .16); }
#user-actions-floating[hidden] { display: none; }
.user-actions-item { display: flex; align-items: center; gap: 10px; width: 100%; padding: 9px 10px; border: 0; border-radius: 7px; background: transparent; font-size: 11px; text-align: left; cursor: pointer; }
.user-actions-item:hover { background: #f2f6f2; }
.user-actions-item.is-danger { color: var(--negative); }
.user-actions-item:disabled { opacity: .4; }
.user-actions-icon { display: inline-flex; width: 16px; }
.user-actions-icon svg { width: 16px; }
.user-actions-sep { height: 1px; margin: 4px 0; background: var(--line); }
.sidebar-user-menu { position: relative; width: 100%; }
.sidebar-profile .profile-avatar { position: relative; flex: 0 0 34px; }
.user-avatar-img { position: absolute; inset: 0; width: 100%; height: 100%; border-radius: 50%; object-fit: cover; }
.user-avatar-crown { position: absolute; top: -7px; right: -5px; display: none; width: 14px; height: 14px; color: #d7b566; }
.is-admin .user-avatar-crown { display: block; }
.user-menu-popup { position: absolute; z-index: 100; right: 0; bottom: calc(100% + 9px); left: 0; padding: 6px; border: 1px solid rgba(255, 255, 255, .1); border-radius: 11px; background: var(--green-900); box-shadow: 0 12px 30px rgba(0, 0, 0, .25); }
.user-menu-item { display: flex; align-items: center; gap: 9px; width: 100%; padding: 10px; border: 0; border-radius: 7px; color: #d7e5de; background: transparent; font-size: 10px; text-align: left; cursor: pointer; }
.user-menu-item:hover { background: rgba(255, 255, 255, .07); }
.user-menu-item svg { width: 14px; }
.user-menu-sep { height: 1px; margin: 4px; background: rgba(255, 255, 255, .09); }

/* Modals and portfolio guard */
.si-backdrop { position: fixed; inset: 0; z-index: 300; display: flex; align-items: center; justify-content: center; padding: 20px; background: rgba(12, 32, 25, .4); backdrop-filter: blur(3px); }
.si-panel { width: 100%; max-width: 460px; max-height: 85vh; overflow: auto; border: 1px solid var(--line); border-radius: 18px; background: #fff; box-shadow: 0 25px 70px rgba(16, 45, 38, .22); }
.si-header { display: flex; align-items: center; justify-content: space-between; padding: 17px 20px; border-bottom: 1px solid var(--line); }
.si-header h3 { margin: 0; font-size: 15px; }
.si-body { padding: 8px 20px 18px; }
.si-row { display: grid; grid-template-columns: minmax(0, auto) minmax(0, 1fr); gap: 14px; align-items: center; padding: 11px 0; border-bottom: 1px solid #edf0ec; font-size: 11px; }
.si-row:last-child { border: 0; }
.si-k { color: var(--muted); }
.si-v { min-width: 0; text-align: right; overflow-wrap: anywhere; }
.pf-banner { display: flex; align-items: center; gap: 12px; margin-bottom: 18px; padding: 14px 16px; border: 1px solid; border-radius: 13px; }
.pf-banner[hidden] { display: none; }
.pf-banner-icon { width: 21px; flex: none; }
.pf-banner-body { flex: 1; }
.pf-banner-title { font-size: 12px; font-weight: 700; }
.pf-banner-text { margin-top: 4px; font-size: 10px; }
.pf-banner-cmd { padding: 7px 9px; border-radius: 7px; background: rgba(255, 255, 255, .5); font-size: 10px; }
.pf-banner--stop { border-color: #e7b9b2; color: var(--negative); background: #fbefed; }
.pf-banner--warn { border-color: #e7d4b5; color: #9c7138; background: #fbf5eb; }

/* Mobile navigation */
.app-mobile-nav { display: none; }
.sheet-backdrop { display: none; }

@media (max-width: 1180px) {
  #bt-result > .stats-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .bt-form { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .chart-legend { width: 100%; margin-left: 0; }
}

@media (max-width: 920px) {
  .app-sidebar .desktop-nav-item { min-height: 39px; }
  .app-sidebar .nav-caption-system { height: 1px; margin: 12px 8px; padding: 0; }
  .strat-layout { grid-template-columns: 240px minmax(0, 1fr); }
  .bt-form { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 767.98px) {
  body.dashboard-app { background: #f2f5f0; }
  .app-sidebar, .app-topbar { display: none; }
  .app-workspace { margin-left: 0; }
  .mobile-app-header { position: relative; z-index: 5; display: flex; align-items: center; justify-content: space-between; min-height: calc(66px + env(safe-area-inset-top)); padding: calc(15px + env(safe-area-inset-top)) 20px 14px; color: #fff; background: var(--green-900); }
  .dashboard-main { display: flex; max-width: 540px; padding: 0 0 calc(92px + env(safe-area-inset-bottom)); flex-direction: column; }
  body.dashboard-app .account-hero { display: grid; order: 0; min-height: 0; margin: 0; border-radius: 0 0 27px 27px; box-shadow: none; }
  .account-hero .equity-summary { min-height: 190px; padding: 18px 20px 25px; }
  .account-hero .equity-amount { font-size: clamp(29px, 8.5vw, 37px); }
  .account-hero .equity-visual { display: none; }
  .account-hero .equity-periods { margin-top: 18px; }
  .account-hero .equity-footnotes { padding-top: 17px; }
  .dashboard-page-heading { order: 1; margin: 0; padding: 23px 18px 18px; align-items: center; }
  .dashboard-page-heading h1 { font-size: 23px; }
  .dashboard-page-heading > div > p:last-child { font-size: 10px; line-height: 1.5; }
  .dashboard-page-heading .button-primary { min-width: 40px; width: 40px; padding: 0; font-size: 0; }
  .pf-banner { order: 1; margin: 0 16px 16px; flex-wrap: wrap; }
  .dashboard-main .content { order: 2; padding: 0 16px; }
  body[data-active-tab="overview"] .dashboard-page-heading { padding-bottom: 17px; }
  .metric-grid { grid-template-columns: 1fr 1fr; gap: 10px; margin: 0 0 16px; }
  .metric-card { min-height: 110px; padding: 14px; align-items: flex-start; }
  .metric-card:first-child { grid-column: 1 / -1; min-height: 93px; align-items: center; }
  .metric-card .metric-icon { display: none; }
  .metric-card:first-child .metric-icon { display: grid; }
  .metric-card strong { font-size: 15px; }
  .metric-card small { white-space: normal; line-height: 1.5; }
  .metric-link { position: absolute; right: 11px; bottom: 11px; }
  .dashboard-columns { gap: 15px; }
  .dashboard-primary, .dashboard-secondary { gap: 15px; }
  .panel-heading { padding: 17px 15px 13px; }
  .positions-list, .overview-positions-list { padding: 0 14px 8px; }
  .pos-card { min-height: 74px; }
  .pos-icon { flex-basis: 37px; width: 37px; height: 37px; }
  .pos-pnl-pill { min-width: 94px; padding: 7px 8px; }
  .pnl-amount { font-size: 10px; }
  .stream-list { padding: 0 14px 9px; }
  .stream-row { min-height: 65px; }
  .stream-return { display: none; }
  .activity-list { padding: 0 15px; }
  .activity-item strong { font-size: 10px; }
  .activity-item p { font-size: 9px; }
  .activity-item small { font-size: 8px; }
  .risk-panel { padding: 16px; }
  .risk-panel h3 { font-size: 11px; }
  .risk-panel p { font-size: 9px; }
  .dashboard-section-panel, .form-panel { margin-bottom: 15px; }
  .dashboard-section-panel > .panel-heading .button-primary { width: auto; min-width: 40px; padding: 0 12px; font-size: 10px; }
  .streams-table { padding: 0 10px 12px; }
  .streams-grid { min-width: 420px; }
  .streams-grid th { display: none; }
  .streams-grid td { padding: 10px 7px; }
  .bt-form { grid-template-columns: minmax(0, 1fr); gap: 12px; padding: 5px 15px 17px; }
  .bt-form label.col-full, .bt-form label.col-2 { grid-column: 1 / -1; }
  .bt-form label, .bt-form input, .bt-form select { width: 100%; min-width: 0; }
  .bt-form input, .bt-form select, .calc-form input, .calc-form select, .stream-form-grid input, .stream-form-grid select { min-height: 44px; font-size: 16px; }
  .strategy-desc { margin: 0 15px 17px; }
  .calc-form { grid-template-columns: 1fr 1fr; padding: 5px 15px 17px; }
  .calc-form label:first-child { grid-column: 1 / -1; }
  .calc-form .button-primary { grid-column: 1 / -1; min-height: 44px; }
  .stats-grid, .history-stats-grid, #bt-result > .stats-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .history-stats-grid .stat-box:last-child { grid-column: 1 / -1; }
  .stat-box { padding: 15px; }
  .stat-value { font-size: 17px; }
  .hist-deals-head { align-items: flex-start; flex-direction: column; }
  .hist-controls { width: 100%; flex-wrap: wrap; }
  .hist-period-tabs { flex: 1; }
  .hist-period-btn { flex: 1; }
  .chart-toolbar { gap: 9px; padding: 11px; }
  .chart-toolbar .toolbar-group:first-child { width: 100%; }
  #chart-symbol { width: 100%; min-height: 40px; }
  .chart-legend { display: none; }
  .chart-container { height: 340px; }
  .ind-strip-head { flex-wrap: wrap; }
  .ind-strip-ts { width: 100%; margin-left: 0; }
  .ind-strip-body { grid-template-columns: 1fr; }
  .strat-layout { grid-template-columns: 1fr; }
  .strat-sidebar { position: static; max-height: 310px; }
  .strat-detail { min-height: 250px; padding: 18px; }
  .strat-detail h2 { font-size: 18px; }
  .agent-log-grid { padding: 0 12px 14px; }
  .agent-log-role { display: none; }
  .anomaly-grid { grid-template-columns: 1fr; padding: 0 14px 15px; }
  .anomaly-filters { padding: 0 14px 14px; }
  .anomaly-filters .toolbar-select { flex: 1 1 100%; min-height: 40px; }
  .anomaly-table-wrap { padding: 0 10px; }
  .stream-form { padding: 15px; }
  .stream-form-grid { gap: 11px 10px; }
  .stream-form-grid .sf-bottom { flex-wrap: wrap; }
  .sf-actions { width: 100%; margin-left: 0; }
  .sf-actions > * { flex: 1; }
  .user-form-grid { grid-template-columns: 1fr; }
  .user-form-field input, .user-form-field select { min-height: 44px; font-size: 16px; }
  .app-mobile-nav { display: grid; }
  .app-mobile-nav .mtab { display: flex; align-items: center; justify-content: center; gap: 4px; padding: 4px; border: 0; border-radius: 11px; flex-direction: column; color: #8b9690; background: transparent; font-size: 8px; font-weight: 600; }
  .app-mobile-nav .mtab svg { width: 20px; height: 20px; }
  .app-mobile-nav .mtab.active { color: var(--green-800); }
  .app-mobile-nav .mtab.active::before { content: ""; position: absolute; top: -7px; width: 24px; height: 2px; border-radius: 0 0 3px 3px; background: var(--green-700); }
  .sheet-backdrop { position: fixed; inset: 0; z-index: 200; display: flex; align-items: flex-end; background: rgba(12, 32, 25, .4); backdrop-filter: blur(2px); }
  .sheet-backdrop.hidden { display: none; }
  .sheet { width: 100%; max-width: 540px; max-height: 80vh; margin: 0 auto; padding: 7px 0 calc(16px + env(safe-area-inset-bottom)); overflow-y: auto; border-radius: 22px 22px 0 0; background: #fff; animation: dashboard-sheet-in .2s ease; }
  @keyframes dashboard-sheet-in { from { transform: translateY(100%); } to { transform: none; } }
  .sheet-handle { width: 38px; height: 4px; margin: 5px auto 9px; border-radius: 4px; background: #d9e0da; }
  .sheet-item { display: flex; align-items: center; gap: 12px; width: 100%; min-height: 49px; padding: 0 20px; border: 0; color: var(--ink); background: #fff; font-size: 12px; text-align: left; }
  .sheet-item:active { background: #f2f6f2; }
  .sheet-item svg { width: 18px; color: var(--green-700); }
  .sheet-item .badge { margin-left: auto; }
  .si-backdrop { padding: 12px; }
  .si-panel { max-height: 88vh; border-radius: 16px; }
}

/* Backtest: последовательный сценарий вместо длинной десктопной сетки */
.bt-advanced { grid-column: 1 / -1; overflow: hidden; border: 1px solid var(--line); border-radius: 12px; background: #fafbf9; }
.bt-advanced summary { display: flex; align-items: center; justify-content: space-between; gap: 15px; min-height: 58px; padding: 12px 15px; cursor: pointer; list-style: none; }
.bt-advanced summary::-webkit-details-marker { display: none; }
.bt-advanced summary > span { display: flex; flex-direction: column; gap: 4px; }
.bt-advanced summary strong { font-size: 11px; }
.bt-advanced summary small { color: var(--muted); font-size: 9px; font-weight: 400; }
.bt-advanced summary svg { width: 17px; color: var(--green-700); transition: transform .18s; }
.bt-advanced[open] summary { border-bottom: 1px solid var(--line); }
.bt-advanced[open] summary svg { transform: rotate(45deg); }
.bt-advanced-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; padding: 16px; }
.backtest-run-row { display: flex; align-items: center; justify-content: flex-end; gap: 18px; padding: 0 22px 22px; }
.backtest-run-row > span { color: var(--muted); font-size: 9px; }
#btn-run-bt { min-height: 43px; }
#bt-result { scroll-margin-top: 85px; }
#bt-trades-table { max-width: 100%; overflow-x: auto; }

@media (max-width: 1180px) {
  .bt-advanced-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 920px) {
  .bt-advanced-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 767.98px) {
  .backtest-panel .panel-heading p { max-width: 310px; line-height: 1.55; }
  .bt-advanced { border: 0; border-radius: 0; background: transparent; }
  .bt-advanced summary { min-height: 65px; padding: 13px; border: 1px solid var(--line); border-radius: 11px; background: #f7f9f6; }
  .bt-advanced summary small { max-width: 260px; line-height: 1.45; }
  .bt-advanced-grid { grid-template-columns: minmax(0, 1fr); gap: 12px; padding: 14px 0; }
  .bt-advanced-grid label, .bt-advanced-grid input { width: 100%; min-width: 0; }
  .backtest-run-row { padding: 0 15px 16px; }
  .backtest-run-row > span { display: none; }
  #btn-run-bt { width: 100%; min-height: 48px; font-size: 12px; }
  #bt-result { scroll-margin-top: 16px; }
  #bt-result > .card { padding: 0; overflow: hidden; }
  #bt-result .card-title { padding: 17px 15px 0; }
  #bt-result .stat-value { font-size: clamp(14px, 4.4vw, 17px); overflow-wrap: anywhere; }
  #bt-trades-table .hist-deals { min-width: 0; table-layout: auto; }
  #bt-trades-table .hist-deals th, #bt-trades-table .hist-deals td { padding: 10px 6px; }
  #bt-trades-table .btn-icon { width: 38px; height: 38px; }
  #bt-pagination { flex-wrap: wrap; }
  #bt-pagination button { min-width: 38px; height: 38px; }
  .si-backdrop { align-items: flex-end; padding: 0; }
  .si-panel { display: flex; width: 100%; max-width: 540px; max-height: calc(100vh - 60px); max-height: calc(100dvh - 60px); margin: 0 auto; overflow: hidden; border-radius: 20px 20px 0 0; flex-direction: column; }
  .si-header { flex-shrink: 0; gap: 12px; padding: 15px 16px; }
  .si-header h3 { min-width: 0; overflow-wrap: anywhere; line-height: 1.45; }
  .si-header .btn-icon { flex: 0 0 42px; width: 42px; height: 42px; }
  .si-body { padding: 6px 16px calc(18px + env(safe-area-inset-bottom)); overflow-y: auto; overscroll-behavior: contain; -webkit-overflow-scrolling: touch; }
  .si-row { grid-template-columns: minmax(0, 1fr); gap: 4px; align-items: start; padding: 11px 0; }
  .si-k, .si-v { text-align: left; white-space: normal; overflow-wrap: anywhere; }
  .si-k { font-size: 9px; }
  .si-v { font-size: 12px; line-height: 1.55; }
}

/* Фундаментальный календарь */
.calendar-metric-title { font-family: var(--font) !important; font-size: 13px !important; line-height: 1.45 !important; white-space: normal !important; }
.calendar-metric-time { font-family: var(--font) !important; font-size: 14px !important; white-space: normal !important; }
.calendar-toolbar { display: flex; align-items: center; gap: 10px; padding: 0 20px 15px; flex-wrap: wrap; }
.calendar-event-head, .calendar-event-row { display: grid; grid-template-columns: 160px minmax(220px, 1.6fr) 90px 100px 110px 24px; gap: 12px; align-items: center; }
.calendar-event-head { min-height: 35px; padding: 0 20px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); color: var(--muted); background: #fafbf9; font-size: 8px; text-transform: uppercase; letter-spacing: .4px; }
.calendar-event-row { width: 100%; min-height: 72px; padding: 12px 20px; border: 0; border-bottom: 1px solid #edf0ec; color: var(--ink); background: #fff; text-align: left; cursor: pointer; }
.calendar-event-row:last-child { border-bottom: 0; }
.calendar-event-row:hover { background: #f8faf7; }
.calendar-event-time, .calendar-event-name, .calendar-value { display: flex; min-width: 0; flex-direction: column; gap: 5px; }
.calendar-event-time strong { font-size: 10px; font-weight: 600; }
.calendar-event-time small, .calendar-event-name small, .calendar-value small { color: var(--muted); font-size: 8px; line-height: 1.4; }
.calendar-event-name strong { overflow: hidden; font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }
.calendar-event-name small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.calendar-value strong { font-family: var(--mono); font-size: 10px; }
.calendar-impact { display: inline-flex; align-items: center; justify-content: center; width: fit-content; padding: 4px 7px; border-radius: 6px; color: var(--muted); background: #eef2ee; font-size: 8px; font-weight: 600; }
.impact-high { color: var(--negative); background: var(--red-soft); }
.impact-medium { color: #9b7038; background: #f8efe2; }
.impact-low { color: var(--positive); background: var(--green-soft); }
.calendar-event-row > svg { width: 13px; color: #9aa49d; }
.calendar-readonly-note { margin: 15px 20px 20px; padding: 11px 13px; border-radius: 9px; color: var(--muted); background: #f2f6f2; font-size: 9px; line-height: 1.6; }
.si-body .calendar-readonly-note { margin: 15px 0 0; }
.next-event-panel { overflow: hidden; }
.next-event-panel .metric-icon { width: 34px; height: 34px; flex-basis: 34px; }
.next-event-panel .metric-icon svg { width: 16px; }
.next-event-body { display: flex; padding: 0 20px 18px; flex-direction: column; align-items: flex-start; gap: 8px; }
.next-event-body > strong { font-size: 13px; line-height: 1.45; }
.next-event-body > span { color: var(--green-700); font-size: 10px; font-weight: 600; }
.next-event-body > small { color: var(--muted); font-size: 9px; line-height: 1.6; }
.next-event-body .text-button { margin-top: 3px; }

@media (max-width: 1180px) {
  .calendar-event-head, .calendar-event-row { grid-template-columns: 140px minmax(180px, 1.5fr) 80px 85px 95px 20px; gap: 9px; }
}
@media (max-width: 767.98px) {
  .calendar-toolbar { align-items: stretch; padding: 0 14px 14px; flex-direction: column; }
  .calendar-toolbar .hist-period-tabs { width: 100%; }
  .calendar-toolbar .hist-period-btn { flex: 1; min-height: 34px; }
  .calendar-toolbar .toolbar-select { width: 100%; min-height: 42px; font-size: 16px; }
  .calendar-event-head { display: none; }
  .calendar-event-row { grid-template-columns: minmax(0, 1fr) auto 24px; grid-template-areas: "time impact chevron" "name name chevron" "forecast previous chevron"; gap: 12px 8px; min-height: 142px; padding: 15px 14px; }
  .calendar-event-time { grid-area: time; }
  .calendar-event-name { grid-area: name; }
  .calendar-event-name strong, .calendar-event-name small { white-space: normal; overflow: visible; }
  .calendar-impact { grid-area: impact; }
  .calendar-event-row .calendar-value:nth-of-type(4) { grid-area: forecast; }
  .calendar-event-row .calendar-value:nth-of-type(5) { grid-area: previous; }
  .calendar-event-row > svg { grid-area: chevron; align-self: center; }
  .calendar-value { padding-top: 9px; border-top: 1px solid #edf0ec; }
  .calendar-readonly-note { margin: 14px; }
  .next-event-body { padding-right: 16px; padding-left: 16px; }
}

@media (max-width: 380px) {
  .mobile-app-header { padding-right: 16px; padding-left: 16px; }
  .dashboard-main .content { padding: 0 12px; }
  .dashboard-page-heading { padding-right: 14px; padding-left: 14px; }
  .pos-pnl-pill { min-width: 86px; }
  .pos-symbol { font-size: 11px; }
}
