:root {
  color-scheme: dark;
  --base: #0d1014;
  --panel: #14191f;
  --panel2: #171d24;
  --line: #2b323c;
  --sub: #a0aab6;
  --muted: #8693a2;
  --ink: #eef1f4;
  --lime: #cdf977;
  --up: #69d4a9;
  --down: #f2878c;
  --mono: "IBM Plex Mono","DejaVu Sans Mono",Consolas,monospace;
  font-family: Inter,"Segoe UI",Arial,sans-serif;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
  background: var(--base);
}
* {
  box-sizing: border-box;
  scrollbar-width: thin;
  scrollbar-color: #3b4650 transparent;
}
body {
  margin: 0;
}
button,select,input,textarea {
  font: inherit;
  color: inherit;
}
button,select,input,textarea,.file-btn {
  border: 1px solid var(--line);
  border-radius: 4px;
  background: #1c222a;
}
button,.file-btn {
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 7px 11px;
  line-height: 1.25;
}
button:hover,.file-btn:hover {
  background: #29313a;
  color: #fff;
}
button:disabled {
  opacity: .42;
  cursor: default;
}
button:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible,summary:focus-visible {
  outline: 2px solid var(--lime);
  outline-offset: -2px;
}
button svg,.file-btn svg {
  flex: none;
}
input,select,textarea {
  min-width: 0;
  padding: 8px 10px;
  background: #10151b;
}
select {
  appearance: none;
  padding-right: 26px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='none' stroke='%23a7b2be' viewBox='0 0 16 16'%3E%3Cpath d='m4 6 4 4 4-4'/%3E%3C/svg%3E");
  background-position: right 8px center;
  background-repeat: no-repeat;
}
input[type=checkbox] {
  accent-color: var(--lime);
  width: 15px;
  height: 15px;
  flex: none;
}
input[type=range] {
  accent-color: var(--lime);
}
input:disabled {
  opacity: .53;
}
button svg {
  width: 16px;
  height: 16px;
}
h1,h2,h3,p {
  margin: 0;
}
p {
  line-height: 1.5;
}
b,strong {
  font-weight: 640;
}
small {
  font-size: .75rem;
}
.pos {
  color: var(--up)!important;
}
.neg,.error {
  color: var(--down)!important;
}
.soft,.empty {
  color: var(--sub);
  font-size: .82rem;
  line-height: 1.5;
}
.empty {
  padding: 18px;
}
.soft {
  margin: 10px 0;
}
.error {
  font-size: .85rem;
  margin: 6px 0;
}
.icon-btn {
  width: 29px;
  height: 29px;
  border: 0;
  background: transparent;
  color: var(--sub);
  padding: 5px;
}
.icon-btn.on,.selected {
  color: var(--lime);
  background: #2c3526;
}
.primary {
  background: var(--lime);
  border-color: var(--lime);
  color: #172012;
  font-weight: 650;
}
.primary:hover {
  background: #dcffa4;
  color: #121910;
}
.full {
  width: 100%;
  margin-top: 12px;
  padding: 10px;
}
.scroll,.table-wrap {
  overflow: auto;
  min-height: 0;
  min-width: 0;
}
.app {
  display: grid;
  grid-template: 56px minmax(0,1fr) 27px / 55px minmax(0,1fr);
  height: 100dvh;
  min-height: 460px;
}
.global {
  grid-column: 1/-1;
  background: #111519;
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  gap: clamp(18px,5vw,90px);
  padding: 0 18px;
}
.brand {
  border: 0;
  background: none;
  padding: 0;
  gap: 8px;
}
.brand:hover {
  background: none;
}
.brand img {
  height: 31px;
  width: 31px;
  object-fit: contain;
}
.brand b {
  font-size: 1.31rem;
  letter-spacing: -.065em;
  font-weight: 800;
}
.brand i {
  height: 16px;
  border-left: 1px solid #47503f;
  margin: 0 1px;
}
.brand span {
  font: 600 .755rem var(--mono);
  letter-spacing: .11em;
  color: var(--lime);
}
.global-search {
  background: #181d23;
  border-color: #2b333d;
  padding: 6px 8px 6px 12px;
  color: var(--muted);
  width: min(345px,30vw);
  justify-content: flex-start;
  font-size: .8rem;
}
.global-search kbd {
  margin-left: auto;
  font: 10px var(--mono);
  border: 1px solid #3a424c;
  border-radius: 3px;
  padding: 3px 4px;
}
.global-right {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 16px;
}
.mode,.paper-label,.ticker-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border-radius: 3px;
  font-size: .72rem;
  white-space: nowrap;
}
.mode,.paper-label {
  background: #302c1d;
  color: #e5c982;
  border: 1px solid #4b432d;
}
.mode {
  padding: 4px 8px;
}
.mode>span {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #d6b76f;
}
.paper-label {
  font-size: .65rem;
  padding: 2px 5px;
}
.ticker-tag {
  color: #bbd4a1;
  background: #283022;
  padding: 2px 5px;
  font: 10px var(--mono);
}
.acct {
  background: transparent;
  border: 0;
  font-size: .82rem;
  padding: 6px;
}
.rail {
  grid-column: 1;
  grid-row: 2;
  background: #111519;
  border-right: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 12px 0 8px;
}
.rail>button {
  width: 38px;
  height: 39px;
  border: 0;
  background: none;
  color: #8996a4;
  position: relative;
  border-radius: 5px;
}
.rail>button svg {
  width: 19px;
  height: 19px;
}
.rail>button:hover {
  background: #20262e;
  color: var(--ink);
}
.rail>button.active {
  background: #293522;
  color: var(--lime);
}
.rail>button.active:before {
  content: "";
  position: absolute;
  left: -8px;
  height: 20px;
  width: 2px;
  background: var(--lime);
}
.rail>button span {
  display: none;
}
.rail .bottom {
  margin-top: auto;
}
.app main {
  grid-column: 2;
  grid-row: 2;
  min-width: 0;
  min-height: 0;
  display: flex;
  flex-direction: column;
}
.ticker-strip {
  display: flex;
  overflow: hidden;
  min-height: 34px;
  height: 34px;
  flex: none;
  border-bottom: 1px solid var(--line);
  background: #101419;
}
.ticker-strip button {
  flex: 1 0 auto;
  gap: 9px;
  font: 11px var(--mono);
  border: 0;
  border-right: 1px solid var(--line);
  border-radius: 0;
  padding: 0 13px;
  background: none;
}
.ticker-strip button:hover {
  background: #20262b;
}
.ticker-strip em {
  font-style: normal;
}
.spark {
  width: 44px;
  height: 17px;
  vertical-align: middle;
}
.workspace-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 0 15px;
  height: 61px;
  flex: none;
}
.title-line,.workspace-tools,.button-row,.seg,.symbol-cell,.chart-symbol,.chart-actions,.clock-controls,.section-title,.file-btn,.event-source {
  display: flex;
  align-items: center;
}
.title-line {
  gap: 9px;
}
.page-icon {
  display: grid;
  place-content: center;
  color: var(--lime);
}
h1 {
  font-size: 1.35rem;
  letter-spacing: -.035em;
  line-height: 1.2;
}
.workspace-tools,.button-row,.seg {
  gap: 6px;
}
.workspace-tools button,.return {
  font-size: .79rem;
  background: #1a2026;
  padding: 7px 10px;
}
.workspace-tools svg {
  width: 14px;
  height: 14px;
}
.workspace-tools button svg:last-child:not(:first-child) {
  width: 12px;
}
.board {
  flex: 1;
  display: flex;
  align-items: stretch;
  min-width: 0;
  min-height: 0;
  padding: 0 10px 9px;
  position: relative;
}
.column {
  flex-basis: 0;
  min-width: 0;
  min-height: 0;
  display: grid;
}
.sash {
  touch-action: none;
  position: relative;
  z-index: 2;
}
.sash:after {
  content: "";
  position: absolute;
  background: transparent;
}
.sash:hover:after {
  background: #647f44;
}
.sash.vertical {
  width: 5px;
  cursor: col-resize;
}
.sash.horizontal {
  height: 5px;
  cursor: row-resize;
}
.sash.vertical:after {
  inset: 0 1px;
}
.sash.horizontal:after {
  inset: 1px 0;
}
.panel {
  position: relative;
  min-height: 0;
  min-width: 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 5px;
  background: var(--panel);
  font-size: .81rem;
}
.panel-head {
  height: 40px;
  min-height: 40px;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 11px;
  border-bottom: 1px solid var(--line);
  background: #181e25;
}
.panel-head>svg:first-child {
  height: 15px;
  width: 15px;
  color: var(--sub);
}
.panel-head h2 {
  font-size: .88rem;
  font-weight: 650;
  letter-spacing: -.015em;
}
.head-actions {
  margin-left: auto;
  display: flex;
  align-items: center;
}
.panel-head .handle {
  opacity: 0;
  width: 9px;
}
.drag-zone {
  z-index: 2;
  position: absolute;
  top: 10px;
  right: 2px;
  width: 13px;
  height: 20px;
  display: grid;
  place-content: center;
  cursor: grab;
  color: #64717f;
}
.panel-chart>.drag-zone,.panel-dock>.drag-zone {
  top: 8px;
}
.drag-zone:hover {
  color: var(--lime);
}
.watch-listbar {
  display: flex;
  align-items: center;
  gap: 6px;
  height: 35px;
  min-height: 35px;
  padding: 0 9px;
  border-bottom: 1px solid #242b33;
}
.watch-listbar>button:first-child {
  padding: 2px 0;
  border: 0;
  background: none;
  color: #c0c9d3;
  font-size: .75rem;
}
.watch-listbar>span,.ledger-tabs small {
  font: 10px var(--mono);
  background: #292f37;
  color: var(--sub);
  border-radius: 3px;
  padding: 2px 4px;
}
.watch-listbar .icon-btn {
  margin-left: auto;
}
.watch {
  flex: 1;
}
.panel table,.large-table {
  width: 100%;
  border-collapse: collapse;
  white-space: nowrap;
}
.panel th,.panel td,.large-table th,.large-table td {
  padding: 6px 9px;
  text-align: right;
}
.panel th,.large-table th,.depth-head {
  color: var(--muted);
  font-size: .71rem;
  font-weight: 500;
  border-bottom: 1px solid var(--line);
}
.panel th:first-child,.panel td:first-child,.large-table th:first-child,.large-table td:first-child {
  text-align: left;
}
.panel td,.large-table td {
  border-bottom: 1px solid #242b33;
  font: .75rem var(--mono);
}
.panel table th {
  position: sticky;
  top: 0;
  background: var(--panel);
  z-index: 1;
}
.watch td {
  height: 40px;
  padding: 3px 8px;
}
.watch tr.chosen {
  background: #202a24;
  box-shadow: inset 2px 0 var(--lime);
}
.watch tr:hover {
  background: #20262c;
}
.watch td:not(:first-child) {
  cursor: pointer;
}
.symbol-cell {
  border: 0;
  background: transparent;
  text-align: left;
  justify-content: flex-start;
  gap: 7px;
  padding: 0;
  color: var(--ink);
  font: .755rem var(--mono);
}
.symbol-cell:hover {
  background: transparent;
  color: var(--lime);
}
.symbol-cell span b,.symbol-cell span small,.chart-symbol span b,.chart-symbol span small {
  display: block;
}
.symbol-cell small {
  font: 10px Inter,Arial,sans-serif;
  color: var(--muted);
  max-width: 110px;
  overflow: hidden;
  text-overflow: ellipsis;
}
.issuer {
  width: 34px;
  height: 34px;
  border-radius: 8px;
  display: inline-grid;
  place-content: center;
  color: var(--issuer);
  background: color-mix(in srgb,var(--issuer) 15%,#11171a);
  border: 1px solid color-mix(in srgb,var(--issuer) 34%,#11171a);
  font: 700 18px Arial,sans-serif;
  flex: none;
}
.issuer.small {
  width: 23px;
  height: 23px;
  font-size: 12px;
  border-radius: 6px;
}
.panel-link {
  border: 0;
  border-top: 1px solid var(--line);
  border-radius: 0;
  background: #161c22;
  font-size: .74rem;
  justify-content: space-between;
  color: #b5c0cb;
  padding: 8px 11px;
}
.feed button {
  display: block;
  text-align: left;
  width: 100%;
  border: 0;
  border-bottom: 1px solid var(--line);
  border-radius: 0;
  background: none;
  padding: 11px 12px;
}
.feed button:hover {
  background: #1e252d;
}
.feed button>div {
  display: flex;
  align-items: center;
  gap: 7px;
  margin-bottom: 6px;
}
.feed time,.feed b {
  font: 10px var(--mono);
}
.feed time {
  color: var(--muted);
}
.feed b {
  color: #bdc9d5;
  background: #282f37;
  padding: 2px 4px;
  border-radius: 2px;
}
.feed small {
  font-size: .64rem;
  color: var(--muted);
}
.feed strong {
  font-size: .8rem;
  line-height: 1.35;
  font-weight: 530;
}
.chart-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 13px 20px 0 14px;
  gap: 8px;
}
.chart-symbol {
  gap: 8px;
}
.chart-symbol b {
  font: 650 1rem var(--mono);
  letter-spacing: .02em;
}
.chart-symbol small {
  color: var(--sub);
  font-size: .7rem;
  margin-top: 2px;
}
.chart-actions {
  gap: 3px;
}
.quote-line {
  display: flex;
  align-items: baseline;
  gap: 7px;
  padding: 5px 14px 8px;
  white-space: nowrap;
}
.quote-line strong {
  font: 550 clamp(1.7rem,2.4vw,2.65rem) var(--mono);
  letter-spacing: -.08em;
  line-height: 1.15;
}
.quote-line>span {
  font-size: 1.08rem;
  color: var(--muted);
}
.quote-line b {
  font: .78rem var(--mono);
}
.quote-line small {
  color: var(--muted);
  font-size: .7rem;
}
.chart-toolbar {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-block: 1px solid var(--line);
  min-height: 35px;
}
.tf {
  display: flex;
  align-items: center;
  gap: 2px;
}
.tf button,.indicator {
  background: none;
  border: 0;
  padding: 4px 7px;
  color: var(--sub);
  font-size: .74rem;
}
.tf button.active,.minor-tabs .active {
  color: var(--lime);
  background: #293323;
  border-radius: 3px;
}
.chart-toolbar i {
  height: 16px;
  border-left: 1px solid var(--line);
}
.chart-toolbar .icon-btn {
  height: 23px;
  width: 23px;
}
.chart-area {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
  background: #11161c;
}
.chart-slot {
  position: relative;
  min-height: 0;
  min-width: 0;
  flex: 1;
  display: flex;
  flex-direction: column;
}
.chart-slot .eb-chart {
  min-height: 0;
}
.chart-slot.second {
  border-top: 1px solid #4b5b49;
}
.pin-row {
  position: absolute;
  z-index: 1;
  right: 67px;
  top: 1px;
  display: flex;
  align-items: center;
  background: #14191f;
  font-size: .65rem;
}
.pin-row select {
  padding: 2px 20px 2px 4px;
}
.pin-row .icon-btn {
  height: 20px;
}
.chart-foot,.ledger-foot {
  display: flex;
  align-items: center;
  gap: 6px;
  justify-content: space-between;
  background: #14191f;
  border-top: 1px solid var(--line);
  padding: 5px 10px;
  color: var(--muted);
  font: .62rem var(--mono);
}
.chart-foot span {
  display: flex;
  align-items: center;
  gap: 6px;
}
.source-dot {
  width: 5px;
  height: 5px;
  background: var(--muted);
  border-radius: 50%;
}
.panel-chart.expanded {
  position: fixed;
  inset: 60px 12px 32px 60px;
  z-index: 5;
  box-shadow: 0 0 0 100vmax #090c10d0;
}
.ledger-tabs,.minor-tabs {
  display: flex;
  align-items: center;
  gap: 2px;
  border-bottom: 1px solid var(--line);
  padding: 0 8px;
}
.ledger-tabs {
  height: 40px;
  min-height: 40px;
  padding-right: 15px;
  background: #181e25;
  overflow: auto;
}
.ledger-tabs button,.minor-tabs button {
  position: relative;
  background: none;
  border: 0;
  border-radius: 0;
  color: var(--sub);
  white-space: nowrap;
  font-size: .75rem;
  padding: 0 8px;
  height: 100%;
}
.ledger-tabs .active {
  color: var(--lime);
}
.ledger-tabs .active:after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 7px;
  right: 7px;
  height: 2px;
  background: var(--lime);
}
.ledger-tabs small {
  font-size: 9px;
}
.ledger {
  flex: 1;
}
.ledger td {
  height: 35px;
}
.ledger-foot {
  justify-content: flex-start;
  font-family: inherit;
  font-size: .68rem;
}
.ledger-foot span {
  margin-left: auto;
}
.text-action {
  padding: 2px 4px;
  font: 11px Arial,sans-serif;
}
.minor-tabs {
  min-height: 32px;
  gap: 3px;
  align-items: center;
  padding: 4px 10px;
}
.minor-tabs button {
  padding: 2px 7px;
  font-size: .71rem;
}
.depth-select {
  margin-left: auto;
  padding: 1px 20px 1px 6px;
  font: .65rem var(--mono);
  border: 0;
}
.book-body {
  flex: 1;
  padding: 0 8px 4px;
}
.depth-head,.depth-row,.spread {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.depth-head {
  padding: 5px 5px;
}
.depth-row {
  width: 100%;
  border: 0;
  border-radius: 0;
  position: relative;
  padding: 2px 6px;
  height: 21px;
  background: none;
  font: .75rem var(--mono);
  overflow: hidden;
}
.depth-row span,.depth-row b {
  z-index: 1;
  font-weight: 500;
}
.depth-row i {
  position: absolute;
  right: 0;
  top: 1px;
  bottom: 1px;
  max-width: 100%;
}
.ask span {
  color: var(--down);
}
.bid span {
  color: var(--up);
}
.ask i {
  background: #56303880;
}
.bid i {
  background: #254c4080;
}
.spread {
  border-block: 1px solid var(--line);
  margin: 3px 0;
  padding: 4px 6px;
}
.spread b {
  font: .92rem var(--mono);
}
.spread span {
  color: var(--sub);
  font-size: .68rem;
}
.ticket-pane {
  padding: 10px 12px;
  flex: 1;
}
.side-toggle {
  display: flex;
  background: #101419;
  border: 1px solid var(--line);
  padding: 3px;
  border-radius: 4px;
  gap: 4px;
}
.side-toggle button {
  flex: 1;
  padding: 5px;
  background: none;
  color: var(--sub);
  border: 0;
  font-size: .78rem;
  font-weight: 600;
}
.side-toggle .buy.active {
  background: #213e33;
  color: var(--up);
}
.side-toggle .sell.active {
  background: #492c33;
  color: var(--down);
}
.ticket-kind {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 9px 0;
}
.ticket-kind select {
  font-size: .76rem;
  padding: 3px 21px 3px 5px;
}
.ticket-kind span {
  font-size: .65rem;
  color: var(--muted);
}
.field-pair {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-bottom: 6px;
}
.field-pair label,.form-label,.settings-grid label {
  display: flex;
  flex-direction: column;
  gap: 5px;
  color: var(--sub);
  font-size: .75rem;
}
.field-pair input {
  width: 100%;
  padding: 7px 8px;
  font: .8rem var(--mono);
  color: var(--ink);
}
.pair {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  padding: 7px 0;
  font-size: .8rem;
}
.pair>span {
  color: var(--sub);
}
.pair strong {
  text-align: right;
  font: .82rem var(--mono);
}
.submit {
  width: 100%;
  margin-top: 4px;
  font-size: .85rem;
  font-weight: 650;
  padding: 8px;
}
.submit.buy {
  color: #a1e9c5;
  background: #234634;
  border-color: #396747;
}
.submit.sell {
  color: #ffb2b5;
  background: #4a2a32;
  border-color: #78434d;
}
.submit:hover {
  filter: brightness(1.14);
}
footer {
  grid-column: 1/-1;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 0 13px;
  background: #111519;
  border-top: 1px solid var(--line);
  font-size: .67rem;
  color: var(--muted);
}
footer>span:first-child {
  display: flex;
  align-items: center;
  gap: 6px;
}
footer>span i {
  height: 6px;
  width: 6px;
  background: currentColor;
  border-radius: 50%;
}
.footer-source {
  border-left: 1px solid var(--line);
  padding-left: 12px;
}
.clock-controls {
  gap: 8px;
  margin-left: auto;
}
.clock-controls b {
  font: .67rem var(--mono);
  color: #bfc8d1;
}
.clock-controls svg {
  width: 12px;
  height: 12px;
}
.clock-controls button {
  width: 21px;
  height: 20px;
  padding: 2px;
  background: none;
  border: none;
  color: var(--sub);
}
.mobile-tabs {
  display: none;
}
.loading {
  display: grid;
  place-content: center;
  gap: 10px;
  flex: 1;
  text-align: center;
  color: var(--sub);
}
.warning,.replay-bar {
  padding: 6px 13px;
  background: #302c20;
  color: #f4dc9a;
  font-size: .78rem;
  display: flex;
  align-items: center;
  gap: 10px;
}
.warning button,.replay-bar button {
  padding: 3px 7px;
}
.replay-bar {
  background: #1c2624;
  color: var(--ink);
  margin: 0 10px 6px;
  border: 1px solid var(--line);
  border-radius: 4px;
}
.replay-bar b {
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--lime);
}
.replay-bar input {
  width: 140px;
}
.replay-bar select {
  padding: 3px 22px 3px 7px;
}
.toast {
  position: fixed;
  bottom: 39px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border: 1px solid #596c4a;
  background: #232c22;
  border-radius: 5px;
  color: #e2efdc;
  box-shadow: 0 6px 24px #0008;
  font-size: .82rem;
  z-index: 30;
}
.toast button {
  border: 0;
  padding: 0;
  background: none;
}
.scrim {
  position: fixed;
  z-index: 20;
  inset: 0;
  display: grid;
  place-items: center;
  background: #030609b8;
  padding: 16px;
}
.modal {
  width: min(450px,100%);
  max-height: 85dvh;
  overflow: auto;
  border: 1px solid #46515b;
  background: #181e25;
  border-radius: 7px;
  padding: 17px 18px;
  box-shadow: 0 20px 80px #0008;
}
.modal-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 11px;
}
.modal h2 {
  font-size: 1.05rem;
  letter-spacing: -.02em;
}
.modal h3 {
  font-size: 1.03rem;
  margin: 13px 0;
}
.modal .form-label {
  margin: 10px 0;
}
.modal>p,.modal details {
  font-size: .86rem;
}
.modal .pair {
  border-bottom: 1px solid var(--line);
}
.check {
  display: flex!important;
  flex-direction: row!important;
  align-items: center;
  gap: 9px!important;
  font-size: .82rem;
  color: var(--ink)!important;
}
.config-row,.results button,.calendar-item {
  display: flex;
  align-items: center;
  gap: 8px;
  justify-content: space-between;
}
.config-row {
  padding: 6px 0;
  border-bottom: 1px solid var(--line);
  font-size: .8rem;
}
.config-row button {
  font-size: .75rem;
  padding: 4px 7px;
}
.results {
  max-height: 52vh;
  overflow: auto;
}
.results button {
  width: 100%;
  justify-content: flex-start;
  border: 0;
  border-bottom: 1px solid var(--line);
  background: none;
  border-radius: 0;
  padding: 10px 4px;
  font-size: .83rem;
}
.results button:hover {
  background: #222b32;
}
.results button span:not(.issuer) {
  color: var(--sub);
}
.results button svg:last-child,.results button small {
  margin-left: auto;
  color: var(--lime);
}
.indicator-option {
  padding: 9px 0;
  border-bottom: 1px solid var(--line);
}
.event-source {
  gap: 7px;
  color: var(--sub);
}
.event-source svg {
  width: 15px;
}
.document {
  border-left: 2px solid var(--lime);
  background: #1d252a;
  padding: 10px;
  margin-top: 13px;
}
.document summary {
  cursor: pointer;
  color: var(--lime);
}
.document p {
  margin-top: 9px;
}
.page {
  margin: 0 10px 9px;
  min-height: 0;
  overflow: auto;
  flex: 1;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 5px;
  padding: clamp(15px,2vw,30px);
  font-size: .88rem;
}
.section-title {
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 18px;
}
.section-title h2 {
  font-size: 1.35rem;
  letter-spacing: -.03em;
}
.section-title p {
  color: var(--sub);
  margin-top: 5px;
  font-size: .8rem;
}
.section-title>svg {
  color: var(--lime);
}
.section-title button,.filter-bar button,.filter-bar select,.filter-bar input,.settings-grid button {
  font-size: .8rem;
}
.filter-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 7px;
  margin-bottom: 14px;
}
.filter-bar>input[type=number] {
  width: 102px;
}
.input-icon {
  display: flex;
  align-items: center;
  gap: 7px;
  background: #10151b;
  border: 1px solid var(--line);
  border-radius: 4px;
  padding-left: 9px;
}
.input-icon svg {
  width: 16px;
  height: 16px;
  color: var(--sub);
}
.input-icon input {
  border: 0;
  flex: 1;
  background: none;
}
.seg button.active {
  background: #283325;
  color: var(--lime);
  border-color: #48583c;
}
.table-wrap {
  border: 1px solid var(--line);
  border-radius: 4px;
}
.large-table th {
  font-family: inherit;
  background: #1a2027;
}
.large-table th button {
  border: 0;
  padding: 0;
  background: none;
  color: inherit;
  font: inherit;
}
.large-table th,.large-table td {
  padding: 9px 12px;
}
.large-table td button:not(.symbol-cell):not(.icon-btn) {
  padding: 4px 8px;
  font: 12px Arial,sans-serif;
}
.large-table tr:hover {
  background: #1a2128;
}
.heatmap {
  display: flex;
  flex-flow: row wrap;
  gap: 3px;
}
.heatmap button {
  flex-basis: 12%;
  min-height: 76px;
  display: flex;
  flex-direction: column;
  border: 0;
  border-radius: 2px;
  font: .75rem var(--mono);
}
.heatmap b {
  font-size: 1rem;
}
.metrics {
  display: flex;
  gap: 0;
  flex-wrap: wrap;
  margin: 10px 0 22px;
  border-block: 1px solid var(--line);
}
.metrics>div {
  padding: 14px 20px 14px 0;
  min-width: 140px;
  flex: 1;
}
.metrics span,.metrics b {
  display: block;
}
.metrics span {
  color: var(--sub);
  font-size: .75rem;
  margin-bottom: 5px;
}
.metrics b {
  font: 1.15rem var(--mono);
}
.settings-grid {
  display: grid;
  grid-template-columns: repeat(2,minmax(0,1fr));
  gap: 22px 35px;
}
.settings-grid section {
  border-top: 1px solid var(--line);
  padding-top: 12px;
}
.settings-grid h3 {
  font-size: 1rem;
  margin-bottom: 12px;
}
.settings-grid section>label {
  margin: 9px 0;
  max-width: 360px;
}
.settings-grid section>p {
  color: var(--sub);
  font-size: .82rem;
  margin: 9px 0;
}
.settings-grid section>button {
  margin: 8px 0;
}
.settings-grid .pair {
  border-bottom: 1px solid #252c33;
}
.risk-line {
  position: relative;
  padding-bottom: 4px;
}
.risk-line i {
  position: absolute;
  height: 2px;
  background: var(--lime);
  left: 0;
  bottom: 0;
}
.file-btn {
  position: relative;
  font-size: .8rem;
  overflow: hidden;
}
.file-btn input {
  position: absolute;
  inset: 0;
  width: 100%;
  opacity: 0;
  cursor: pointer;
}
.calendar-item {
  width: 100%;
  background: transparent;
  border: 0;
  border-top: 1px solid var(--line);
  border-radius: 0;
  text-align: left;
  padding: 13px 4px;
  justify-content: flex-start;
}
.calendar-item time {
  font: .85rem var(--mono);
  color: var(--lime);
  margin-right: 18px;
}
.calendar-item span {
  font-size: .72rem;
  color: var(--sub);
}
.calendar-item b {
  display: block;
  font-size: .95rem;
  margin-top: 4px;
  color: var(--ink);
}
.calendar-item>svg {
  margin-left: auto;
  color: var(--sub);
}
.dense .watch td,.dense .ledger td {
  height: 28px;
}
.dense .feed button {
  padding-block: 7px;
}
.dense .depth-row {
  height: 17px;
}
@media(min-width:1700px) {
  .watch td {
    height: 48px;
  }
  .depth-row {
    height: 25px;
  }
  .panel {
    font-size: .9rem;
  }
  .panel-head h2 {
    font-size: .97rem;
  }
  .panel td {
    font-size: .85rem;
  }
  .feed button {
    padding: 15px;
  }
  .ticket-pane {
    padding: 14px 18px;
  }
  .ticket-kind {
    margin: 14px 0;
  }
  .field-pair input {
    padding: 10px;
  }
  .chart-top {
    padding-top: 16px;
  }
  .ticker-strip button {
    font-size: 12px;
  }
  .board {
    padding-inline: 14px;
  }
  .workspace-title {
    height: 68px;
  }
}
@media(max-height:780px) and (min-width:901px) {
  .app {
    grid-template-rows: 47px minmax(0,1fr) 24px;
  }
  .workspace-title {
    height: 46px;
  }
  .ticker-strip {
    height: 29px;
    min-height: 29px;
  }
  .panel-head,.ledger-tabs {
    height: 32px;
    min-height: 32px;
  }
  .watch td {
    height: 32px;
  }
  .watch-listbar {
    height: 29px;
    min-height: 29px;
  }
  .feed button {
    padding: 8px 11px;
  }
  .chart-top {
    padding-top: 8px;
  }
  .chart-toolbar {
    min-height: 30px;
    padding-block: 1px;
  }
  .quote-line strong {
    font-size: 1.8rem;
  }
  .chart-foot {
    padding: 3px 8px;
  }
  .minor-tabs {
    min-height: 27px;
  }
  .depth-row {
    height: 16px;
    font-size: .7rem;
  }
  .depth-head {
    padding-block: 3px;
  }
  .spread {
    padding-block: 2px;
    margin: 1px 0;
  }
  .ticket-pane {
    padding: 6px 9px;
  }
  .ticket-kind {
    margin: 5px 0;
  }
  .field-pair input {
    padding: 5px 6px;
  }
  .side-toggle button {
    padding: 3px;
  }
  .ticket-pane .pair {
    padding: 4px 0;
  }
  .submit {
    padding: 6px;
  }
  .drag-zone {
    top: 6px;
  }
  .rail {
    gap: 4px;
  }
}
@media(max-width:1230px) and (min-width:901px) {
  .watch td,.watch th,.ledger th,.ledger td {
    padding-inline: 5px;
  }
  .issuer.small {
    width: 19px;
    height: 19px;
  }
  .watch .symbol-cell {
    gap: 4px;
  }
  .ledger-tabs {
    gap: 0;
  }
  .ledger-tabs button {
    padding-inline: 5px;
  }
  .global {
    gap: 30px;
  }
  .panel-head {
    padding-inline: 8px;
  }
  .ticker-strip button {
    font-size: 10px;
    gap: 5px;
  }
  .ticker-strip .spark {
    width: 31px;
  }
  .workspace-title {
    padding-inline: 10px;
  }
  .watch td {
    font-size: .68rem;
  }
}
@media(max-width:900px) {
  .app {
    grid-template: 49px minmax(0,1fr) 26px / 44px minmax(0,1fr);
  }
  .global {
    gap: 12px;
    padding-inline: 9px;
  }
  .global-search {
    margin-left: auto;
    width: 32px;
    padding: 7px;
  }
  .global-search span,.global-search kbd {
    display: none;
  }
  .global-right {
    margin-left: 0;
    gap: 7px;
  }
  .rail {
    gap: 4px;
  }
  .rail>button {
    width: 33px;
  }
  .ticker-strip {
    min-height: 28px;
    height: 28px;
  }
  .ticker-strip button {
    padding-inline: 8px;
    font-size: 10px;
  }
  .ticker-strip .spark {
    display: none;
  }
  .workspace-title {
    height: 51px;
    padding: 0 9px;
  }
  .workspace-title h1 {
    font-size: 1.15rem;
  }
  .workspace-tools button {
    font-size: .7rem;
    padding: 6px;
  }
  .workspace-tools button:first-child>svg:first-child {
    display: none;
  }
  .board {
    display: block;
    padding: 0 7px 6px;
  }
  .column {
    display: contents;
  }
  .sash,.panel:not(.mobile-show) {
    display: none;
  }
  .panel.mobile-show {
    height: 100%;
    display: flex;
  }
  .mobile-tabs {
    display: flex;
    overflow: auto;
    gap: 4px;
    padding: 0 7px 7px;
    min-height: 35px;
  }
  .mobile-tabs button {
    font-size: .73rem;
    border: 1px solid var(--line);
    white-space: nowrap;
    background: var(--panel);
    padding: 4px 8px;
  }
  .mobile-tabs .active {
    color: var(--lime);
    border-color: #495a3c;
  }
  .drag-zone {
    display: none;
  }
  .panel-head .handle {
    display: none;
  }
  .ticket-pane {
    padding: 14px;
  }
  .ticket-pane .pair {
    padding: 12px 0;
  }
  .depth-row {
    height: 24px;
  }
  .watch td {
    height: 44px;
  }
  .footer-source {
    display: none;
  }
  .settings-grid {
    grid-template-columns: minmax(0,1fr);
  }
  .page {
    margin-inline: 7px;
  }
  .chart-area.dual .pin-row span {
    display: none;
  }
  .modal .results {
    max-height: 48vh;
  }
  .panel-chart.expanded {
    inset: 52px 7px 32px 48px;
  }
  .clock-controls {
    gap: 6px;
  }
  .replay-bar {
    flex-wrap: wrap;
  }
  .clock-controls span {
    font-size: .65rem;
  }
}
@media(max-width:590px) {
  .app {
    grid-template: 46px minmax(0,1fr) 45px 24px / minmax(0,1fr);
    min-height: 420px;
  }
  .global {
    grid-row: 1;
  }
  .brand {
    gap: 4px;
  }
  .brand b {
    font-size: 1.03rem;
  }
  .brand img {
    width: 23px;
    height: 23px;
  }
  .brand span {
    font-size: .55rem;
  }
  .brand i {
    height: 12px;
  }
  .mode {
    font-size: .62rem;
    padding: 3px 5px;
  }
  .mode>span {
    width: 4px;
    height: 4px;
  }
  .acct {
    font-size: 0;
    gap: 2px;
    padding: 4px;
  }
  .acct>svg:last-child {
    display: none;
  }
  .rail {
    grid-column: 1;
    grid-row: 3;
    flex-direction: row;
    justify-content: space-between;
    overflow: auto;
    gap: 0;
    padding: 2px 3px;
    border: 0;
    border-top: 1px solid var(--line);
  }
  .rail>button {
    flex: 1;
    height: 38px;
    min-width: 38px;
    flex-direction: column;
    gap: 3px;
    padding: 2px;
  }
  .rail>button span {
    display: block;
    font-size: 7px;
    white-space: nowrap;
  }
  .rail>button svg {
    width: 16px;
    height: 16px;
  }
  .rail .bottom {
    margin: 0;
  }
  .rail>.icon-btn {
    display: none;
  }
  .rail>button.active:before {
    display: none;
  }
  .app main {
    grid-column: 1;
    grid-row: 2;
  }
  .ticker-strip button {
    font-size: 9px;
  }
  .workspace-title {
    height: 44px;
  }
  .workspace-title h1 {
    font-size: 1.04rem;
  }
  .title-line {
    gap: 5px;
  }
  .page-icon svg {
    width: 14px;
  }
  .workspace-tools {
    gap: 3px;
  }
  .workspace-tools button {
    font-size: 10px;
    gap: 3px;
    padding: 5px;
  }
  .workspace-tools svg {
    width: 12px;
  }
  .workspace-tools button:last-child {
    font-size: 0;
    gap: 0;
    padding: 6px;
  }
  .mobile-tabs {
    min-height: 33px;
  }
  .mobile-tabs button {
    font-size: 11px;
    padding: 4px 7px;
  }
  .app footer {
    grid-row: 4;
    font-size: 10px;
    padding-inline: 7px;
  }
  .clock-controls {
    gap: 4px;
  }
  .clock-controls>svg {
    display: none;
  }
  .clock-controls b {
    font-size: 10px;
  }
  .panel-chart.expanded {
    inset: 47px 5px 71px;
  }
  .quote-line small {
    display: none;
  }
  .chart-toolbar {
    gap: 2px;
    padding-inline: 6px;
  }
  .tf button {
    padding-inline: 5px;
  }
  .chart-toolbar .indicator {
    padding-inline: 4px;
  }
  .quote-line strong {
    font-size: 1.8rem;
  }
  .chart-top {
    padding-top: 9px;
  }
  .page {
    padding: 12px;
  }
  .section-title {
    align-items: flex-start;
    flex-wrap: wrap;
  }
  .section-title h2 {
    font-size: 1.08rem;
  }
  .filter-bar>* {
    max-width: 100%;
  }
  .metrics>div {
    min-width: 120px;
    padding: 8px;
  }
  .metrics b {
    font-size: .9rem;
  }
  .toast {
    bottom: 76px;
    min-width: 70%;
  }
  .ledger-tabs {
    padding: 0 3px;
  }
  .ledger-tabs button {
    font-size: .7rem;
    padding-inline: 5px;
  }
  .modal {
    padding: 14px;
  }
  .replay-bar {
    margin-bottom: 4px;
    gap: 5px;
    font-size: 11px;
  }
  .replay-bar input {
    width: 90px;
  }
  .replay-bar button,.replay-bar select {
    font-size: 11px;
  }
  .replay-bar span {
    display: none;
  }
  .heatmap button {
    flex-basis: 24%;
  }
  .pin-row {
    right: 4px;
  }
}
@media(prefers-reduced-motion:reduce) {
  * {
    scroll-behavior: auto!important;
    animation: none!important;
    transition: none!important;
  }
}
.reaction {
  width: 100%;
  border-collapse: collapse;
  font-size: .76rem;
}
.reaction th,.reaction td {
  text-align: right;
  padding: 4px;
  border-bottom: 1px solid var(--line);
}
.reaction th {
  font-weight: 500;
  color: var(--sub);
}
.reaction th:first-child,.reaction td:first-child {
  text-align: left;
}
.reaction td {
  font-family: var(--mono);
}
.ticket-free {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  padding: 3px 0 8px;
  color: var(--sub);
  font-size: .7rem;
}
.ticket-free b {
  font: inherit;
  font-family: var(--mono);
}
.ledger-foot b {
  font: inherit;
  font-family: var(--mono);
}

.chart-area.triple { display: grid; grid-template: minmax(0,1.2fr) minmax(0,1fr) / repeat(2,minmax(0,1fr)); }
.triple .chart-slot:first-child { grid-column: span 2; }
.triple .linked { border-top: 1px solid var(--line); border-right: 1px solid var(--line); }
.series-label { position: absolute; z-index: 1; top: 1px; right: 8px; padding: 2px 5px; background: var(--panel); font: 10px var(--mono); color: var(--sub); }
.triple .pin-row { right: 2px; }
.triple .pin-row span { display:none; }

.rail .mobile-more { display:none; }
@media(max-width:590px) {
  .rail > button:nth-child(3), .rail > button:nth-child(4), .rail > button:nth-child(7), .rail > button:nth-child(8) { display:none; }
  .rail .mobile-more { display:flex; }
  .rail > button span { font-size:10px; }
  .rail > button svg { width:17px; height:17px; }
}
