html,
body {
  max-width: 100%;
  overflow-x: hidden;
}

#nifty-app {
  width: 100%;
  max-width: 100%;
  margin: 0;
  padding: 0.45rem 0.35rem 1rem;
  overflow-x: hidden;
  box-sizing: border-box;
  container-type: inline-size;
}

.nifty-shell {
  display: grid;
  grid-template-columns: minmax(260px, var(--nifty-left, 50%)) 8px minmax(240px, 1fr);
  gap: 0.35rem;
  align-items: start;
  min-width: 0;
  max-width: 100%;
}

#nifty-app.chart-hidden .nifty-shell {
  grid-template-columns: minmax(0, 1fr);
}

#nifty-app.chart-hidden .nifty-chart-panel,
#nifty-app.chart-hidden .nifty-splitter {
  display: none;
}

.nifty-splitter {
  width: 8px;
  min-height: 8rem;
  align-self: stretch;
  cursor: col-resize;
  touch-action: none;
  border-radius: 999px;
  background: var(--border);
  position: relative;
}

.nifty-splitter::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 3px;
  height: 2.4rem;
  transform: translate(-50%, -50%);
  border-radius: 999px;
  background: var(--muted);
}

.nifty-splitter:hover,
.nifty-splitter:focus,
.nifty-splitter.dragging,
body.nifty-split-dragging .nifty-splitter {
  background: var(--accent);
  outline: none;
}

body.nifty-split-dragging {
  cursor: col-resize;
  user-select: none;
}

.nifty-main {
  min-width: 0;
  max-width: 100%;
  container-type: inline-size;
}

.nifty-chart-panel {
  display: flex;
  flex-direction: column;
  position: sticky;
  top: 0.35rem;
  height: calc(100vh - 0.7rem);
  margin-bottom: 0;
  min-width: 0;
  padding: 0.55rem 0.65rem;
}

.nifty-chart-canvas {
  flex: 1 1 auto;
  width: 100%;
  min-height: 280px;
}

.nifty-chart-panel .timeframe-row {
  margin-bottom: 0;
}

.nifty-chart-panel .chart-tz-note {
  margin: 0.35rem 0 0;
}

.app-header {
  flex-wrap: wrap;
}

.nifty-header {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: 0.45rem 0.65rem;
  margin-bottom: 0.45rem;
  min-width: 0;
}

.nifty-header .header-brand {
  flex: 0 0 auto;
}

.nifty-header .header-quote {
  flex: 0 0 auto;
}

.nifty-header .header-actions {
  display: flex;
  flex-wrap: wrap;
  flex: 1 1 0;
  gap: 0.3rem 0.4rem;
  justify-content: flex-end;
  align-items: flex-end;
  min-width: 0;
}

.nifty-header .refresh-label {
  display: flex;
  flex-direction: column;
  gap: 0.12rem;
  font-size: 0.68rem;
  color: var(--muted);
}

.nifty-header select,
.nifty-header input {
  max-width: 100%;
}

.nifty-header #expiry-select {
  max-width: 10.5rem;
}

.nifty-header #underlying-kind {
  max-width: 6.5rem;
}

.nifty-header #underlying-select {
  min-width: 7.5rem;
  max-width: 11rem;
}

.nifty-header #session-date {
  max-width: 9.5rem;
}

.nifty-header #range-select,
.nifty-header #refresh-interval,
.nifty-header #range-custom {
  max-width: 6.5rem;
}

.header-brand h1 {
  font-size: 1.25rem;
}

.header-quote {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  min-width: 0;
}

.header-nifty .muted {
  margin: 0;
  font-size: 0.68rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.header-nifty .spot-price {
  font-size: 1.45rem;
  font-weight: 700;
  line-height: 1.1;
}

.header-nifty #nifty-change {
  font-size: 0.82rem;
  font-weight: 600;
}

.nifty-header .pcr-card {
  min-width: 92px;
  padding: 0.28rem 0.55rem;
}

.nifty-header .header-spot-card {
  min-width: 132px;
}

.nifty-header .pcr-card strong {
  font-size: 1.2rem;
}

.status-pill {
  display: inline-block;
  padding: 0.28rem 0.7rem;
  border-radius: 999px;
  border: 1px solid var(--border);
  font-size: 0.78rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.status-pill.demo,
.status-pill.unavailable,
.status-pill.delayed,
.status-pill.recorded {
  color: var(--warning);
}

.status-pill.live {
  color: var(--positive);
}

.nifty-banner {
  margin: 0 0 0.65rem;
  padding: 0.55rem 0.7rem;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--surface);
  color: var(--muted);
}

.nifty-banner[hidden],
#chain-meta[hidden] {
  display: none !important;
}

.top-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 0.55rem;
  align-items: stretch;
  margin-bottom: 0.55rem;
  min-width: 0;
  max-width: 100%;
}

.overview-stack {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  min-width: 0;
  height: auto;
  overflow: visible;
}

.overview-stack .panel {
  margin-bottom: 0;
  padding: 0.5rem 0.65rem;
}

.overview-stack .panel:last-child {
  flex: 0 0 auto;
  display: flex;
  flex-direction: column;
  min-height: min-content;
}

.overview-stack .panel:last-child .table-wrap {
  flex: 0 0 auto;
  overflow: visible;
  min-height: 7rem;
}

#sr-table {
  width: 100%;
}

#sr-table tbody {
  display: table-row-group;
}

.overview-stack .spot-price {
  font-size: 1.45rem;
}

.overview-stack .pcr-card {
  min-width: 88px;
  padding: 0.35rem 0.5rem;
}

.overview-stack .pcr-card strong {
  font-size: 1.2rem;
}

.overview-stack .overview-head {
  margin-bottom: 0.4rem;
  gap: 0.5rem;
}

.overview-stack .ohlc-row {
  margin: 0 0 0.4rem;
  gap: 0.3rem;
}

.overview-stack .panel-head {
  margin-bottom: 0.4rem;
}

.sr-head {
  flex-wrap: nowrap;
  align-items: center;
}

.sr-head h2 {
  flex: 1 1 auto;
  min-width: 0;
}

.sr-controls {
  margin-left: auto;
  flex: 0 0 auto;
  justify-content: flex-end;
}

.overview-stack .data-table th,
.overview-stack .data-table td {
  padding: 0.22rem 0.32rem;
  font-size: 0.78rem;
}

.overview-stack .formula-note {
  display: none;
}

.chain-panel {
  display: flex;
  flex-direction: column;
  min-width: 0;
  min-height: 0;
  margin-bottom: 0;
  height: 100%;
}

.chain-wrap {
  flex: 1 1 auto;
  min-height: 0;
  overflow: auto;
}

.panel {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1rem;
  margin-bottom: 1rem;
  box-shadow: var(--shadow);
  min-width: 0;
  max-width: 100%;
}

.panel h2 {
  margin: 0;
  font-size: 1rem;
}

.panel-head {
  display: flex;
  justify-content: space-between;
  gap: 0.75rem;
  align-items: center;
  flex-wrap: wrap;
  margin-bottom: 0.75rem;
}

.panel-controls {
  display: flex;
  gap: 0.6rem;
  flex-wrap: wrap;
}

.overview-head {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: flex-start;
  margin-bottom: 0.85rem;
}

.spot-price {
  font-size: 2rem;
  font-weight: 700;
  line-height: 1.1;
}

.pcr-card {
  min-width: 110px;
  padding: 0.65rem 0.8rem;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: var(--surface-2);
  text-align: right;
}

.pcr-card span,
.pcr-card small {
  display: block;
  color: var(--muted);
  font-size: 0.72rem;
}

.pcr-card strong {
  display: block;
  font-size: 1.6rem;
  line-height: 1.2;
}

.pcr-card.bullish strong { color: var(--positive); }
.pcr-card.bearish strong { color: var(--negative); }
.pcr-card small.pos { color: var(--positive); }
.pcr-card small.neg { color: var(--negative); }

.ohlc-row {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 0.5rem;
  margin: 0 0 0.85rem;
}

.ohlc-row dt {
  color: var(--muted);
  font-size: 0.72rem;
}

.ohlc-row dd {
  margin: 0.15rem 0 0;
  font-weight: 600;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.backtest-replay {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin: 0 0 0.65rem;
}

.backtest-replay input[type="range"] {
  width: min(28rem, 100%);
}

.backtest-stats {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 0.5rem;
  margin: 0 0 0.75rem;
}

.backtest-stats dt {
  color: var(--muted);
  font-size: 0.72rem;
}

.backtest-stats dd {
  margin: 0.15rem 0 0;
  font-weight: 600;
}

.backtest-table tbody tr {
  cursor: pointer;
}

.backtest-table tbody tr.bt-active td {
  outline: 2px solid var(--accent, #f4d03f);
  outline-offset: -2px;
}

.backtest-table tbody .bt-hit {
  background: #d5f5e3;
  color: #111;
  font-weight: 700;
}

.backtest-table tbody .bt-miss {
  background: #fadbd8;
  color: #c0392b;
  font-weight: 700;
}

.backtest-table tbody .bt-flat,
.backtest-table tbody .bt-skip {
  color: var(--muted);
}

.backtest-table tbody .bt-bullish {
  color: var(--positive);
  font-weight: 700;
}

.backtest-table tbody .bt-bearish {
  color: var(--negative);
  font-weight: 700;
}

.table-wrap {
  overflow-x: auto;
  max-width: 100%;
}

.history-table {
  width: max-content;
  min-width: 100%;
}

.data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.82rem;
}

.data-table th,
.data-table td {
  padding: 0.38rem 0.45rem;
  border-bottom: 1px solid var(--border);
  text-align: right;
  white-space: nowrap;
}

.data-table th:first-child,
.data-table td:first-child,
.data-table td.strike-cell {
  text-align: center;
}

.data-table thead th {
  background: var(--surface-2);
  color: var(--muted);
  font-weight: 600;
}

.data-table tbody tr.atm {
  background: rgba(245, 197, 66, 0.16);
  box-shadow: inset 3px 0 0 var(--warning);
}

.call-head { color: var(--negative); text-align: center; }
.put-head { color: var(--positive); text-align: center; }
.strike-head { text-align: center; }

#sr-table thead .strike-head {
  padding: 0.25rem;
  background: #d5d8dc;
  color: #111;
}

#sr-table thead .call-chg-head {
  background: #c0392b;
  color: #fff;
}

#sr-table thead .put-chg-head {
  background: #1e8449;
  color: #fff;
}

#sr-table thead .diff-head {
  background: #f1c40f;
  color: #111;
}

#sr-table tbody td {
  color: #111;
}

#sr-table tbody td:first-child {
  background: #d5d8dc;
  color: #111;
  font-weight: 600;
}

#sr-table tbody td.neg {
  background: #fadbd8;
  color: #c0392b;
}

#sr-table tbody td.pos {
  background: #d5f5e3;
  color: #111;
}

#sr-table tbody td.sr-support {
  background: #196f3d;
  color: #fff;
  font-weight: 700;
  text-align: center;
}

#sr-table tbody td.sr-resistance {
  background: #c0392b;
  color: #fff;
  font-weight: 700;
  text-align: center;
}

#sr-table tbody td.sr-neutral {
  background: #f4f6f7;
  color: #5d6d7e;
  text-align: center;
}

#sr-table tfoot th.sr-time {
  background: #f1c40f;
  color: #fff;
}

#sr-table tfoot th.neg {
  background: #fff;
  color: #c0392b;
}

#sr-table tfoot th.pos {
  background: #fff;
  color: #1e8449;
}

#sr-table tfoot th:last-child {
  background: #f9e79f;
}

.pos { color: var(--positive); }
.neg { color: var(--negative); }
.muted { color: var(--muted); margin: 0; }

.bar-cell {
  position: relative;
}

.bar-cell span.value {
  position: relative;
  z-index: 1;
}

.bar-cell .heat {
  position: absolute;
  top: 4px;
  bottom: 4px;
  opacity: 0.28;
  border-radius: 3px;
}

.bar-cell.call .heat {
  right: 0;
  background: var(--negative);
}

.bar-cell.put .heat {
  left: 0;
  background: var(--positive);
}

.sr-support { color: var(--positive); font-weight: 700; }
.sr-resistance { color: var(--negative); font-weight: 700; }
.sr-neutral { color: var(--muted); }

.history-head {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.history-head h2 {
  flex: 0 0 auto;
}

.history-head #hist-diff-toggle {
  flex: 0 0 auto;
  font-size: 0.78rem;
  padding: 0.28rem 0.65rem;
}

.history-signal {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.35rem 0.85rem;
  min-width: 0;
  flex: 1 1 280px;
}

.history-signal .muted {
  margin: 0;
  font-size: 0.75rem;
}

.history-signal .bias-label {
  font-size: 1.15rem;
  line-height: 1.1;
}

.history-signal #bias-reasons {
  margin: 0;
  padding-left: 1rem;
  color: var(--muted);
  font-size: 0.78rem;
}

.history-head #history-note {
  margin: 0 0 0 auto;
  text-align: right;
  white-space: normal;
  font-size: 0.78rem;
}

.history-head #history-note[hidden] {
  display: none !important;
}

.bias-label {
  font-weight: 700;
}

.bias-label.bullish { color: var(--positive); }
.bias-label.bearish { color: var(--negative); }
.bias-label.neutral { color: var(--text); }

.bias-label.bullish { color: var(--positive); }
.bias-label.bearish { color: var(--negative); }

#bias-reasons {
  margin: 0;
  padding-left: 1.1rem;
  color: var(--muted);
}

.formula-note {
  margin-top: 0.65rem;
  font-size: 0.78rem;
}

.history-table th {
  text-align: center;
}

#history-table {
  background: #fff;
  color: #111;
  border-collapse: collapse;
}

#history-table th,
#history-table td {
  border: 1px solid #111;
  text-align: center;
  color: #111;
  font-variant-numeric: tabular-nums;
}

#history-table thead th {
  color: #111;
  font-weight: 700;
}

#history-table .hist-head-time,
#history-table tbody .hist-time {
  background: #f5b041;
  color: #111;
  font-weight: 700;
}

#history-table .hist-head-strike {
  background: #5dade2;
  color: #111;
}

#history-table .hist-head-call {
  background: #f5b7b1;
  color: #922b21;
}

#history-table .hist-head-put {
  background: #abebc6;
  color: #111;
}

#history-table .hist-head-strike-diff {
  background: #f4d03f;
  color: #111;
}

#history-table tbody .hist-call {
  background: #fadbd8;
  color: #c0392b;
}

#history-table tbody .hist-put {
  background: #d5f5e3;
  color: #111;
}

#history-table tbody .hist-strike-diff-pos {
  background: #d5f5e3;
  color: #111;
}

#history-table tbody .hist-strike-diff-neg {
  background: #e74c3c;
  color: #111;
  font-weight: 700;
}

#history-table tbody .hist-strike-diff-zero {
  background: #f8f9f9;
  color: #111;
}

#history-table .hist-head-call-tot {
  background: #e74c3c;
  color: #fff;
}

#history-table .hist-head-put-tot {
  background: #27ae60;
  color: #111;
}

#history-table tbody .hist-call-tot,
#history-table tbody .hist-put-tot {
  background: #1c1c1c;
}

#history-table tbody .hist-call-tot {
  color: #ff6b6b;
  font-weight: 700;
}

#history-table tbody .hist-put-tot {
  color: #f8f9f9;
  font-weight: 600;
}

#history-table .hist-head-diff,
#history-table .hist-head-delta {
  background: #f4d03f;
  color: #111;
}

#history-table tbody .hist-diff,
#history-table tbody .hist-delta-pos {
  background: #d5f5e3;
  color: #111;
}

#history-table tbody .hist-delta-neg {
  background: #e74c3c;
  color: #111;
  font-weight: 700;
}

#history-table tbody .hist-delta-zero {
  background: #f8f9f9;
  color: #111;
}

#history-table .hist-head-signal {
  background: #d5dbdb;
  color: #111;
}

#history-table tbody .hist-signal-bearish {
  background: #e74c3c;
  color: #111;
  font-weight: 700;
}

#history-table tbody .hist-signal-bullish {
  background: #27ae60;
  color: #111;
  font-weight: 700;
}

#history-table tbody .hist-signal-neutral {
  background: #fff;
  color: #5d6d7e;
}

.net-table {
  background: #fff;
  color: #111;
  font-size: 0.78rem;
}

.net-table th,
.net-table td {
  padding: 0.22rem 0.32rem;
  font-size: 0.78rem;
  line-height: 1.25;
}

.net-table thead th {
  background: #f4d03f;
  color: #111;
  font-weight: 600;
  text-align: center;
  border: 1px solid #d4ac0d;
}

.net-table tbody td {
  border: 1px solid #d5d8dc;
  font-variant-numeric: tabular-nums;
}

.net-table tbody td.sp {
  background: #d5d8dc;
  color: #111;
  text-align: center;
  font-weight: 600;
}

.net-table tbody tr.chain-center td.sp {
  background: #f4d03f;
  box-shadow: inset 3px 0 0 #b7950b;
}

.net-table tbody td.net-pos,
.net-table tfoot th.net-pos,
.net-table tfoot td.net-pos {
  background: #abebc6;
  color: #111;
}

.net-table tbody td.net-neg,
.net-table tfoot th.net-neg,
.net-table tfoot td.net-neg {
  background: #f5b7b1;
  color: #c0392b;
  font-weight: 600;
}

.net-table tbody td.net-zero,
.net-table tbody td.net-hl,
.net-table tfoot th.net-zero,
.net-table tfoot td.net-zero {
  background: #fff;
  color: #111;
}

.net-table tbody td:nth-child(2),
.net-table tbody td:nth-child(3) {
  min-width: 4.5rem;
  color: #111;
}

.net-table tfoot th,
.net-table tfoot td {
  border: 1px solid #d5d8dc;
  font-weight: 700;
  text-align: center;
}

.net-table tfoot .chain-time {
  background: #f4d03f;
  color: #111;
  text-align: center;
}

.net-table tfoot th.net-pos,
.net-table tfoot th.net-neg,
.net-table tfoot th.net-zero,
.net-table tfoot td.net-pos,
.net-table tfoot td.net-neg,
.net-table tfoot td.net-zero {
  text-align: right;
}

.net-table tfoot .chain-foot-empty {
  background: #f4d03f;
}

.net-table tbody td.vol {
  background: #e67e22;
  color: #111;
}

.net-table tbody td.vol-max {
  background: #fff;
  color: #111;
  font-weight: 700;
}

/* Split pane (~50/50 with TradingView): keep two columns, compact density. */
@container (max-width: 1180px) {
  .nifty-header {
    flex-wrap: wrap;
  }

  .nifty-header .header-actions {
    flex: 1 1 auto;
    justify-content: flex-end;
  }

  .header-brand h1 {
    font-size: 1.05rem;
  }

  .header-quote {
    flex: 1 1 200px;
  }

  .nifty-header .pcr-card {
    min-width: 0;
    padding: 0.2rem 0.42rem;
  }

  .nifty-header .pcr-card strong {
    font-size: 1rem;
  }

  .nifty-header #expiry-select {
    max-width: 10.5rem;
  }

  .nifty-header .refresh-label,
  .nifty-header .theme-btn,
  .nifty-header select,
  .nifty-header input {
    font-size: 0.75rem;
  }

  .nifty-header select,
  .nifty-header .theme-btn,
  .nifty-header input {
    padding: 0.22rem 0.4rem;
  }

  .top-grid {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 0.4rem;
  }

  .overview-stack,
  .chain-panel {
    height: auto;
    overflow: visible;
  }

  .chain-wrap {
    overflow: auto;
    max-height: none;
  }

  .ohlc-row {
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 0.2rem;
  }

  .ohlc-row dt {
    font-size: 0.62rem;
  }

  .ohlc-row dd {
    font-size: 0.7rem;
  }

  .panel {
    padding: 0.4rem 0.45rem;
    margin-bottom: 0.4rem;
    border-radius: 8px;
  }

  .panel h2 {
    font-size: 0.82rem;
  }

  .panel-head {
    margin-bottom: 0.35rem;
    gap: 0.35rem;
  }

  .data-table,
  .net-table,
  .history-table,
  .overview-stack .data-table th,
  .overview-stack .data-table td,
  .net-table th,
  .net-table td,
  .history-table th,
  .history-table td {
    font-size: 0.64rem;
  }

  .data-table th,
  .data-table td,
  .net-table th,
  .net-table td,
  .history-table th,
  .history-table td {
    padding: 0.12rem 0.16rem;
  }

  .history-head {
    gap: 0.35rem 0.55rem;
  }

  .history-signal {
    flex: 1 1 140px;
  }

  .history-signal .bias-label {
    font-size: 0.95rem;
  }

  .history-head #history-note {
    margin: 0;
    text-align: left;
    white-space: normal;
  }
}

@container (max-width: 640px) {
  .top-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 1180px) {
  .backtest-stats {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .nifty-header {
    flex-wrap: wrap;
  }

  .nifty-header .header-actions {
    flex: 1 1 auto;
    justify-content: flex-end;
  }

  .header-brand h1 {
    font-size: 1.05rem;
  }

  .header-quote {
    flex: 1 1 200px;
  }

  .nifty-header .pcr-card {
    min-width: 0;
    padding: 0.2rem 0.42rem;
  }

  .nifty-header .pcr-card strong {
    font-size: 1rem;
  }

  .nifty-header #expiry-select {
    max-width: 10.5rem;
  }

  .nifty-header .refresh-label,
  .nifty-header .theme-btn,
  .nifty-header select,
  .nifty-header input {
    font-size: 0.75rem;
  }

  .nifty-header select,
  .nifty-header .theme-btn,
  .nifty-header input {
    padding: 0.22rem 0.4rem;
  }

  .top-grid {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 0.4rem;
  }

  .overview-stack,
  .chain-panel {
    height: auto;
    overflow: visible;
  }

  .chain-wrap {
    overflow: auto;
    max-height: none;
  }

  .ohlc-row {
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 0.2rem;
  }

  .ohlc-row dt {
    font-size: 0.62rem;
  }

  .ohlc-row dd {
    font-size: 0.7rem;
  }

  .panel {
    padding: 0.4rem 0.45rem;
    margin-bottom: 0.4rem;
    border-radius: 8px;
  }

  .panel h2 {
    font-size: 0.82rem;
  }

  .panel-head {
    margin-bottom: 0.35rem;
    gap: 0.35rem;
  }

  .data-table,
  .net-table,
  .history-table,
  .overview-stack .data-table th,
  .overview-stack .data-table td,
  .net-table th,
  .net-table td,
  .history-table th,
  .history-table td {
    font-size: 0.64rem;
  }

  .data-table th,
  .data-table td,
  .net-table th,
  .net-table td,
  .history-table th,
  .history-table td {
    padding: 0.12rem 0.16rem;
  }

  .history-head {
    gap: 0.35rem 0.55rem;
  }

  .history-signal {
    flex: 1 1 140px;
  }

  .history-signal .bias-label {
    font-size: 0.95rem;
  }

  .history-head #history-note {
    margin: 0;
    text-align: left;
    white-space: normal;
  }
}

@media (max-width: 640px) {
  .top-grid,
  .nifty-shell,
  #nifty-app.chart-visible .nifty-shell {
    grid-template-columns: 1fr;
  }

  .nifty-splitter {
    display: none;
  }

  .nifty-chart-panel {
    position: static;
    height: 420px;
  }
}
