/*!*************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************!*\
  !*** css ../../node_modules/.pnpm/next@15.5.26_@opentelemetry+api@1.9.1_@types+node@26.6.3_react-dom@19.3.0_react@19.3.0__react@19.3.0/node_modules/next/dist/build/webpack/loaders/css-loader/src/index.js??ruleSet[1].rules[14].oneOf[10].use[2]!../../node_modules/.pnpm/next@15.5.26_@opentelemetry+api@1.9.1_@types+node@26.6.3_react-dom@19.3.0_react@19.3.0__react@19.3.0/node_modules/next/dist/build/webpack/loaders/postcss-loader/src/index.js??ruleSet[1].rules[14].oneOf[10].use[3]!./src/app/globals.css ***!
  \*************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************/
:root {
  color-scheme: dark;
  --bg: #0b0e11;
  --panel: #12171d;
  --panel-2: #181e26;
  --line: #26303a;
  --text: #e7edf3;
  --muted: #8b98a5;
  --buy: #3dd68c;
  --sell: #ff5c7a;
  --warn: #f5a524;
  --info: #7aa2f7;
  --font: 'IBM Plex Sans', 'Segoe UI', sans-serif;
  --mono: 'IBM Plex Mono', ui-monospace, monospace;
}

* {
  box-sizing: border-box;
}
html,
body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
}
a {
  color: inherit;
  text-decoration: none;
}
button,
input,
select,
textarea {
  font: inherit;
  color: inherit;
}
button {
  cursor: pointer;
}

.shell {
  display: grid;
  grid-template-columns: 220px 1fr;
  min-height: 100vh;
}
.shell.is-nav-collapsed {
  grid-template-columns: 56px 1fr;
}
.nav {
  display: flex;
  flex-direction: column;
  height: 100vh;
  position: -webkit-sticky;
  position: sticky;
  top: 0;
  overflow: hidden;
  border-right: 1px solid var(--line);
  padding: 16px 12px;
  background: #0e1318;
}
.nav-links {
  display: flex;
  flex-direction: column;
  min-height: 0;
  overflow: auto;
}
.nav-foot {
  margin-top: auto;
  flex: none;
}
.nav-clock {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin: 12px 0 0;
  padding: 8px 10px 0;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 12px;
  line-height: 1.35;
}
.nav-clock-text {
  display: flex;
  flex-direction: column;
  min-width: 0;
}
.nav-foot .locale-switch {
  margin-top: 10px;
}
.nav-foot .btn {
  margin-top: 8px;
}
.nav-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 12px;
}
.nav-brand {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  flex-wrap: wrap;
}
.nav-network {
  font-family: var(--mono);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.nav h1 {
  font-size: 14px;
  letter-spacing: 0.14em;
  margin: 0;
}
.nav-toggle {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  padding: 0;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: var(--muted);
}
.nav-toggle:hover {
  background: var(--panel-2);
  color: var(--text);
}
.nav-glyph {
  display: block;
  flex: none;
}
.nav a {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  border-radius: 6px;
  color: var(--muted);
  font-size: 13px;
}
.nav .btn {
  margin-top: 16px;
  width: 100%;
}
.nav-logout {
  display: flex;
  align-items: center;
  gap: 8px;
}
.shell.is-nav-collapsed .nav {
  padding: 10px 6px;
}
.shell.is-nav-collapsed .nav-head {
  flex-direction: column;
  gap: 8px;
}
.shell.is-nav-collapsed .nav-brand {
  flex-direction: column;
  gap: 4px;
}
.shell.is-nav-collapsed .nav-network {
  padding: 1px 5px;
  font-size: 10px;
}
.shell.is-nav-collapsed .nav h1 {
  font-size: 12px;
  letter-spacing: 0;
}
.shell.is-nav-collapsed .nav a,
.shell.is-nav-collapsed .nav-logout {
  justify-content: center;
  padding: 8px 0;
}
.shell.is-nav-collapsed .nav-label,
.shell.is-nav-collapsed .nav-clock-text {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
}
.shell.is-nav-collapsed .nav-clock {
  justify-content: center;
  padding: 8px 0 0;
}
.shell.is-nav-collapsed .locale-switch {
  grid-template-columns: 1fr;
}
.locale-switch {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-gap: 6px;
  gap: 6px;
  margin-top: 16px;
}
.locale-switch button {
  border: 1px solid var(--line);
  background: transparent;
  color: var(--muted);
  border-radius: 6px;
  padding: 6px 0;
  font: inherit;
  font-size: 12px;
  letter-spacing: 0.06em;
  cursor: pointer;
}
.locale-switch button.is-on {
  background: var(--panel-2);
  color: var(--text);
}
.nav a.active,
.nav a:hover {
  background: var(--panel-2);
  color: var(--text);
}
.main {
  padding: 18px 20px 32px;
}
.live-market {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: baseline;
  margin: 0 0 12px;
}
.top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
}
.top h2 {
  margin: 0;
  font-size: 18px;
}
.grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  grid-gap: 10px;
  gap: 10px;
}
.card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px;
}
.card .label {
  color: var(--muted);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.card .value {
  margin-top: 6px;
  font-family: var(--mono);
  font-size: 18px;
}
table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}
th,
td {
  text-align: left;
  padding: 8px;
  border-bottom: 1px solid var(--line);
}
th {
  color: var(--muted);
  font-weight: 500;
  font-size: 11px;
  text-transform: uppercase;
}
.badge {
  border-radius: 999px;
  padding: 2px 8px;
  font-size: 11px;
  border: 1px solid var(--line);
}
.badge.ok {
  color: var(--buy);
}
.badge.warn {
  color: var(--warn);
}
.badge.bad {
  color: var(--sell);
}
.badge.info {
  color: var(--info);
}
.badge.muted {
  color: var(--muted);
}
.asset-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 8px;
}
.asset-tile {
  display: inline-flex;
  align-items: center;
  min-width: 96px;
  padding: 8px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel-2);
}
button.asset-tile {
  text-align: left;
}
button.asset-tile[aria-pressed='false'] {
  opacity: 0.45;
}
button.asset-tile.is-on {
  opacity: 1;
}
button.asset-tile:disabled {
  cursor: wait;
}
.asset-mark {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--mono);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.04em;
}
.asset-mark-swatch {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  flex: none;
}
.asset-panel {
  margin-top: 12px;
  padding: 12px;
  border: 1px solid var(--line);
  border-left-width: 4px;
  border-radius: 8px;
  background: var(--panel);
  scroll-margin-top: 72px;
}
.asset-panel-head {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.row-actions {
  display: flex;
  gap: 6px;
}
.library-tools input,
.library-tools select {
  background: var(--panel-2);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 6px 8px;
}
.btn {
  background: var(--panel-2);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 6px 10px;
}
.btn.primary {
  background: #1d4ed8;
  border-color: #1d4ed8;
}
.builder {
  display: grid;
  grid-template-columns: 200px 1fr 280px;
  grid-template-rows: 1fr 220px;
  height: calc(100vh - 120px);
  grid-gap: 8px;
  gap: 8px;
}
.builder .flow {
  grid-column: 2;
  grid-row: 1;
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
}
.builder .json {
  grid-column: 1 / -1;
  grid-row: 2;
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
}
.builder > aside {
  overflow: auto;
}
.palette {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.palette .btn {
  text-align: left;
  font-size: 11px;
}
.btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}
.field {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin: 8px 0;
  font-size: 12px;
  color: var(--muted);
}
.field input,
.field select,
.field textarea,
.node-data {
  background: var(--panel-2);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 6px 8px;
}
.field textarea {
  width: 100%;
  resize: vertical;
  font: inherit;
  color: var(--text);
}
.wf-hint {
  display: block;
  font-size: 11px;
  line-height: 1.35;
  color: var(--muted);
}
.wf-row {
  display: grid;
  grid-template-columns: 1fr 1fr auto;
  grid-gap: 4px;
  gap: 4px;
}
.node-data {
  width: 100%;
  min-height: 140px;
  font-family: var(--mono);
  font-size: 11px;
}
.mono {
  font-family: var(--mono);
  font-size: 12px;
}
.positions-note {
  margin: 0 0 8px;
  color: var(--muted);
  font-size: 12px;
}
.positions-meta {
  display: flex;
  gap: 16px;
  margin-bottom: 10px;
  color: var(--muted);
  font-size: 12px;
}
.positions-scroll {
  overflow: auto;
  max-height: calc(100vh - 180px);
  padding: 0;
}
.positions-table {
  min-width: 2400px;
}
.positions-table th {
  position: -webkit-sticky;
  position: sticky;
  top: 0;
  z-index: 1;
  background: var(--panel);
  vertical-align: bottom;
}
.positions-table th button {
  display: block;
  width: 100%;
  margin-bottom: 6px;
  padding: 0;
  background: none;
  border: 0;
  color: inherit;
  font: inherit;
  letter-spacing: inherit;
  text-align: left;
  text-transform: inherit;
}
.positions-table th input {
  width: 100%;
  min-width: 88px;
  background: var(--panel-2);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 4px 6px;
  font-size: 12px;
  text-transform: none;
  letter-spacing: 0;
}
.positions-table td.call {
  color: #2a9d8f;
}
.positions-table td.put {
  color: #9b8afb;
}
.pos {
  color: var(--buy);
}
.neg {
  color: var(--sell);
}
@media (max-width: 1100px) {
  .shell {
    grid-template-columns: 1fr;
  }
  .shell.is-nav-collapsed {
    grid-template-columns: 56px 1fr;
  }
  .nav {
    flex-direction: row;
    align-items: center;
    height: auto;
    position: static;
    gap: 8px;
    overflow: auto;
  }
  .nav-links {
    flex-direction: row;
    overflow: visible;
    flex: 1 1;
  }
  .nav-foot {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 0;
  }
  .nav-foot .locale-switch,
  .nav-foot .btn,
  .nav-clock {
    margin-top: 0;
  }
  .nav-clock {
    align-items: center;
    padding: 0 8px;
  }
  .shell.is-nav-collapsed .nav {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    height: 100vh;
    position: -webkit-sticky;
    position: sticky;
    top: 0;
    overflow: hidden;
  }
  .shell.is-nav-collapsed .nav-links {
    flex-direction: column;
    overflow: auto;
  }
  .shell.is-nav-collapsed .nav-foot {
    display: block;
    margin-top: auto;
  }
  .grid {
    grid-template-columns: 1fr 1fr;
  }
  .builder {
    grid-template-columns: 1fr;
    height: auto;
  }
}

.main:has(.tl) {
  padding: 0;
}
.tl {
  display: flex;
  flex-direction: column;
  min-height: calc(100vh - 56px);
  background: var(--bg);
  color: var(--text);
}
.tl-sr {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.tl-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 12px;
  padding: 8px 10px;
  border-bottom: 1px solid var(--line);
  background: #0e1318;
}
.tl-quote {
  display: flex;
  align-items: baseline;
  gap: 8px;
  min-width: 0;
}
.tl-demo {
  font-size: 9px;
  letter-spacing: 0.12em;
  color: var(--warn);
  border: 1px solid rgba(245, 165, 36, 0.45);
  border-radius: 2px;
  padding: 2px 4px;
}
.tl-symbol {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.04em;
}
.tl-price {
  font-family: var(--mono);
  font-size: 16px;
}
.tl-note {
  color: var(--muted);
  font-size: 11px;
}
.tl-spacer {
  flex: 1 1 12px;
}
.tl-tf,
.tl-zoom,
.tl-seg {
  display: flex;
  flex-wrap: wrap;
  gap: 2px;
}
.tl-tf button,
.tl-zoom button,
.tl-seg button,
.tl-panel-btn {
  background: transparent;
  border: 1px solid transparent;
  border-radius: 3px;
  color: var(--muted);
  padding: 4px 7px;
  font-size: 12px;
}
.tl-tf button.is-on,
.tl-seg button.is-on,
.tl-zoom button:hover,
.tl-tf button:hover,
.tl-seg button:hover,
.tl-panel-btn:hover {
  color: var(--text);
  background: var(--panel-2);
  border-color: var(--line);
}
.tl-tf button:disabled,
.tl-tf button:disabled:hover {
  color: var(--muted);
  background: transparent;
  border-color: transparent;
  opacity: 0.4;
}
.tl-price-status {
  margin: 0;
  padding: 6px 10px 0;
  color: var(--muted);
  font-size: 12px;
}
.tl-legend {
  display: flex;
  gap: 10px;
  color: var(--muted);
  font-size: 11px;
}
.tl-legend span,
.tl-donut-legend div {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}
.swatch {
  width: 8px;
  height: 8px;
  border-radius: 1px;
  display: inline-block;
}
.swatch.call {
  background: #2a9d8f;
}
.swatch.put {
  background: #9b8afb;
}
.swatch.win {
  background: var(--buy);
}
.swatch.loss {
  background: var(--sell);
}
.tl-count {
  color: var(--muted);
  font-size: 11px;
  font-family: var(--mono);
}
.tl-panel-btn,
.tl-drawer-close,
.tl-backdrop {
  display: none;
}
.tl-body {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 332px;
  min-height: 0;
  flex: 1 1;
}
.tl-main {
  display: flex;
  flex-direction: column;
  min-width: 0;
  min-height: 0;
  overflow: hidden;
}
.tl-chart {
  position: relative;
  flex: 1 1;
  min-height: 360px;
}
.tl-overlay {
  position: absolute;
  left: 0;
  top: 0;
  /* Above lightweight-charts panes, which paint canvases at z-index 2. */
  z-index: 3;
  overflow: hidden;
  pointer-events: none;
}
.tl-today {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 0;
  border-left: 1px dashed rgba(245, 165, 36, 0.9);
  z-index: 100002;
  pointer-events: none;
}
.tl-today-tag {
  position: absolute;
  top: 6px;
  left: 4px;
  font-size: 9px;
  letter-spacing: 0.08em;
  color: #f5a524;
  background: rgba(11, 14, 17, 0.88);
  border: 1px solid rgba(245, 165, 36, 0.45);
  border-radius: 2px;
  padding: 1px 4px;
}
.tl-block {
  position: absolute;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: nowrap;
  gap: 6px;
  padding: 0 6px;
  overflow: hidden;
  border: 1px solid transparent;
  border-radius: 2px;
  font-family: var(--mono);
  font-size: 11px;
  line-height: 1;
  white-space: nowrap;
  color: var(--text);
  pointer-events: auto;
  -webkit-user-select: none;
     -moz-user-select: none;
          user-select: none;
  text-align: left;
}
.tl-block.call {
  --type: #2a9d8f;
  background: rgba(12, 64, 60, 0.9);
  border-color: rgba(42, 157, 143, 0.95);
  color: #e7fff8;
}
.tl-block.put {
  --type: #9b8afb;
  background: rgba(46, 34, 88, 0.9);
  border-color: rgba(155, 138, 251, 0.95);
  color: #f4f0ff;
}
.tl-block.win {
  box-shadow:
    inset 2px 0 0 var(--type),
    inset 0 -2px 0 #3dd68c;
}
.tl-block.loss {
  box-shadow:
    inset 2px 0 0 var(--type),
    inset 0 -2px 0 #ff5c7a;
}
.tl-block.flat {
  box-shadow:
    inset 2px 0 0 var(--type),
    inset 0 -2px 0 rgba(139, 152, 165, 0.7);
}
.tl-block {
  box-shadow: inset 2px 0 0 var(--type);
}
.tl-block-name {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  min-width: 0;
}
.tl-block-name,
.tl-block .pct {
  text-shadow:
    0 0 2px #0b0e11,
    0 0 2px #0b0e11;
}
.tl-block .pct {
  flex-shrink: 0;
  white-space: nowrap;
}
.tl-block.is-dim {
  opacity: 0.3;
}
.tl-block.is-hot {
  opacity: 1;
  z-index: 5;
}
.tl-block.is-on {
  opacity: 1;
  z-index: 6;
  border-color: var(--type);
}
.tl-block.call.is-on {
  box-shadow:
    inset 2px 0 0 var(--type),
    0 0 0 1px rgba(42, 157, 143, 0.95),
    0 0 10px rgba(42, 157, 143, 0.28);
}
.tl-block.put.is-on {
  box-shadow:
    inset 2px 0 0 var(--type),
    0 0 0 1px rgba(155, 138, 251, 0.95),
    0 0 10px rgba(155, 138, 251, 0.28);
}
.tl-strike {
  position: absolute;
  pointer-events: auto;
}
.tl-strike.is-open {
  z-index: 100000;
}
.tl-strike.is-dim {
  opacity: 0.3;
}
.tl-strike-line {
  position: absolute;
  z-index: 0;
  pointer-events: none;
  border-radius: 1px;
}
.tl-strike-line.call {
  background: #2a9d8f;
}
.tl-strike-line.put {
  background: #9b8afb;
}
.tl-strike-line .cap {
  position: absolute;
  top: 0;
  right: 0;
  width: 8px;
  height: 100%;
  pointer-events: none;
}
.tl-strike-line .cap.win {
  background: #3dd68c;
}
.tl-strike-line .cap.loss {
  background: #ff5c7a;
}
.tl-strike-line .cap.flat {
  background: rgba(139, 152, 165, 0.85);
}
.tl-strike-badge {
  position: absolute;
  z-index: 99950;
  pointer-events: none;
  transform: translateY(-50%);
  font-family: var(--mono);
  font-size: 10px;
  line-height: 1;
  white-space: nowrap;
  color: var(--text);
}
.tl-strike.is-open .tl-strike-line,
.tl-strike.is-open .tl-strike-badge {
  opacity: 0;
}
.tl-block.is-rail {
  padding: 0;
  border: 0;
  border-radius: 1px;
  min-height: 0;
  gap: 0;
}
.tl-block.is-rail.win {
  box-shadow:
    inset 0 0 0 1px rgba(231, 237, 243, 0.45),
    inset -6px 0 0 #3dd68c;
}
.tl-block.is-rail.loss {
  box-shadow:
    inset 0 0 0 1px rgba(231, 237, 243, 0.45),
    inset -6px 0 0 #ff5c7a;
}
.tl-block.is-rail.flat {
  box-shadow:
    inset 0 0 0 1px rgba(231, 237, 243, 0.45),
    inset -6px 0 0 rgba(139, 152, 165, 0.85);
}
.tl-chart-empty {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: var(--muted);
  font-size: 12px;
  pointer-events: none;
}
.tl-tip {
  position: fixed;
  z-index: 40;
  width: 210px;
  padding: 8px 10px;
  background: #12171d;
  border: 1px solid var(--line);
  border-radius: 4px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
  pointer-events: none;
}
.tl-tip-title {
  font-size: 12px;
  font-weight: 600;
  margin-bottom: 6px;
}
.tl-tip dl {
  margin: 0;
  display: grid;
  grid-gap: 3px;
  gap: 3px;
}
.tl-tip dl div,
.tl-kv div {
  display: grid;
  grid-template-columns: 72px 1fr;
  grid-gap: 6px;
  gap: 6px;
}
.tl-tip dt,
.tl-kv dt {
  color: var(--muted);
  font-size: 11px;
}
.tl-tip dd,
.tl-kv dd {
  margin: 0;
  font-family: var(--mono);
  font-size: 11px;
  text-align: right;
}
.tl-widgets {
  display: grid;
  grid-template-columns: 200px minmax(0, 1fr) minmax(300px, 360px);
  grid-gap: 8px;
  gap: 8px;
  padding: 8px;
  border-top: 1px solid var(--line);
  background: #0e1318;
}
.tl-widget {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 8px 10px;
  min-height: 132px;
}
.tl-kicker {
  margin: 0 0 8px;
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 500;
}
.tl-donut-row {
  display: flex;
  align-items: center;
  gap: 10px;
}
.tl-donut-legend {
  display: grid;
  grid-gap: 6px;
  gap: 6px;
  font-size: 12px;
}
.tl-donut-legend b {
  font-family: var(--mono);
  font-weight: 500;
}
.tl-bars,
.tl-exp {
  display: grid;
  grid-gap: 4px;
  gap: 4px;
}
.tl-exp-widget {
  display: flex;
  flex-direction: column;
  max-height: 280px;
  min-height: 0;
}
.tl-exp-widget .tl-exp {
  overflow: auto;
  min-height: 0;
  align-content: start;
}
.tl-exp-date {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  align-items: baseline;
  grid-gap: 10px;
  gap: 10px;
  padding: 3px 0;
  font-size: 12px;
  white-space: nowrap;
}
.tl-exp-vol {
  display: inline-flex;
  align-items: baseline;
  gap: 6px;
  font-family: var(--mono);
}
.tl-exp-vol i {
  font-style: normal;
  color: var(--muted);
  font-family: var(--font);
  font-size: 10px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.tl-exp-vol b {
  font-weight: 500;
}
.tl-bar-row,
.tl-exp-row {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) 52px;
  grid-gap: 6px;
  gap: 6px;
  align-items: center;
  font-size: 11px;
  font-family: var(--mono);
}
.tl-exp-row {
  grid-template-columns: 108px minmax(0, 1fr) 20px;
  font-family: var(--font);
}
.tl-exp-row b {
  font-family: var(--mono);
  font-weight: 500;
  text-align: right;
}
.tl-bar-track {
  display: block;
  height: 6px;
  background: #1a222b;
  border-radius: 1px;
  overflow: hidden;
}
.tl-bar-track i {
  display: block;
  height: 100%;
}
.tl-bar-track i.pos,
.tl-exp-row i {
  background: rgba(61, 214, 140, 0.75);
}
.tl-bar-track i.neg {
  background: rgba(255, 92, 122, 0.75);
}
.tl-side {
  display: flex;
  flex-direction: column;
  min-height: 0;
  background: #0e1318;
  border-left: 1px solid var(--line);
  position: relative;
  z-index: 3;
}
.tl-side-top {
  flex: 0 0 auto;
  overflow: visible;
}
.tl-side-list {
  flex: 1 1;
  min-height: 160px;
  overflow: auto;
  border-top: 1px solid var(--line);
  padding: 8px 10px 12px;
}
.tl-block-section {
  padding: 10px 12px;
  border-bottom: 1px solid var(--line);
}
.tl-k {
  color: var(--muted);
  font-size: 10px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.tl-pnl-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 8px;
  margin-bottom: 10px;
}
.tl-pnl {
  font-family: var(--mono);
  font-size: 20px;
  line-height: 1.1;
}
.tl-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-gap: 8px 12px;
  gap: 8px 12px;
}
.tl-stat-n {
  font-family: var(--mono);
  font-size: 16px;
  margin-top: 2px;
}
.tl-spark {
  display: block;
}
.tl-selected-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 8px;
}
.tl-selected-head .tl-kicker {
  margin: 0;
}
.tl-x {
  width: 22px;
  height: 22px;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--muted);
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
}
.tl-x:hover {
  color: var(--text);
}
.tl-sel-title {
  font-size: 14px;
  font-weight: 600;
}
.tl-sel-symbol {
  color: var(--muted);
  font-size: 11px;
  margin: 2px 0 8px;
}
.tl-kv {
  margin: 0;
  display: grid;
  grid-gap: 4px;
  gap: 4px;
}
.tl-kv div {
  grid-template-columns: 88px 1fr;
}
.tl-pnl-sub {
  display: block;
}
.tl-selected.is-call {
  box-shadow: inset 2px 0 0 #2a9d8f;
}
.tl-selected.is-put {
  box-shadow: inset 2px 0 0 #9b8afb;
}
.tl-actions {
  display: flex;
  gap: 6px;
  margin-top: 10px;
}
.tl-empty {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
}
.tl-side .field {
  margin: 8px 0 0;
}
.tl-side .field select {
  width: 100%;
}
.tl-table {
  font-size: 11px;
}
.tl-table th {
  position: -webkit-sticky;
  position: sticky;
  top: 0;
  background: #0e1318;
}
.tl-table th,
.tl-table td {
  padding: 5px 4px;
}
.tl-table tbody tr {
  cursor: pointer;
}
.tl-table tbody tr.is-on {
  background: rgba(122, 162, 247, 0.08);
}
.tl-table tbody tr:hover {
  background: var(--panel-2);
}
.tl-table td.call {
  color: #2a9d8f;
}
.tl-table td.put {
  color: #9b8afb;
}
.tl-table td:last-child,
.tl-bar-row span:last-child {
  text-align: right;
}
@media (min-width: 1101px) {
  .main:has(.tl) {
    height: 100vh;
    overflow: hidden;
    display: flex;
    flex-direction: column;
  }
  .tl {
    height: 100%;
    min-height: 0;
  }
}
@media (max-width: 1100px) {
  .tl-body {
    display: flex;
    flex-direction: column;
  }
  .tl-chart {
    height: 68vh;
    flex: none;
  }
  .tl-side {
    border-left: 0;
    border-top: 1px solid var(--line);
  }
  .tl-side-top {
    max-height: none;
  }
  .tl-side-list {
    max-height: 360px;
    flex: none;
  }
  .tl-widgets {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 720px) {
  .tl-chart {
    height: 72vh;
  }
  .tl-legend {
    display: none;
  }
  .tl-panel-btn {
    display: inline-flex;
  }
  .tl-side {
    position: fixed;
    z-index: 30;
    top: 0;
    right: 0;
    bottom: 0;
    width: min(360px, 100%);
    transform: translateX(100%);
    border-left: 1px solid var(--line);
    border-top: 0;
    background: #0e1318;
  }
  .tl-side.is-open {
    transform: none;
  }
  .tl-side {
    overflow: auto;
  }
  .tl-side-top {
    max-height: none;
  }
  .tl-side-list {
    flex: none;
    max-height: none;
    overflow: visible;
  }
  .tl-drawer-close {
    display: block;
    margin: 8px 12px 12px;
  }
  .tl-backdrop {
    display: block;
    position: fixed;
    inset: 0;
    z-index: 25;
    background: rgba(0, 0, 0, 0.45);
    border: 0;
  }
}

/* --- Guided strategy builder --------------------------------------------- */
.tabs {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}
.setup-steps {
  list-style: none;
  margin: 0;
  padding: 0;
}
.setup-steps > li {
  margin-bottom: 10px;
}
.setup-steps > li.current > .card {
  border-color: #1d4ed8;
}
.setup-steps > li.done > .card {
  border-color: var(--line);
}
.tabs .btn[aria-selected='true'] {
  background: #1d4ed8;
  border-color: #1d4ed8;
}
.guided {
  display: grid;
  grid-template-columns: 1fr 300px;
  grid-gap: 12px;
  gap: 12px;
  align-items: start;
}
.issues-card {
  position: -webkit-sticky;
  position: sticky;
  top: 12px;
}
.recipe {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.rc-section {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px;
  background: var(--panel-2);
}
.rc-templates {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.rc-unsupported {
  margin-top: 12px;
}
.rc-section h3 {
  margin: 0 0 10px;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted);
}
.rc-preview {
  border: 1px solid #1d4ed8;
  border-radius: 8px;
  padding: 12px;
  background: rgba(29, 78, 216, 0.08);
}
.rc-preview p {
  margin: 2px 0;
}
.rc-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  grid-gap: 8px;
  gap: 8px;
}
.rc-inline {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  margin: 6px 0;
}
.rc-num {
  width: 72px;
}
.rc-cron {
  margin-top: 8px;
}
.rc-preset {
  max-width: 280px;
}
.rc-cron-fields {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  grid-gap: 8px;
  gap: 8px;
}
.rc-cron-fields .field {
  margin: 0;
}
.rc-cron-fields input {
  width: 100%;
  min-width: 0;
  font-family: var(--mono);
}
.rc-cron-fields input.is-bad {
  border-color: var(--sell);
}
.rc-legend,
.rc-next {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 12px;
}
.rc-sub {
  margin-top: 12px;
  padding-top: 10px;
  border-top: 1px dashed var(--line);
}
.rc-sub .label,
.cond .label {
  color: var(--muted);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 4px;
}
.rc-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 8px;
}
.chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 8px;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 11px;
  color: var(--muted);
  cursor: pointer;
}
.chip.is-on {
  color: var(--text);
  border-color: #1d4ed8;
  background: rgba(29, 78, 216, 0.12);
}
.rc-check,
.rc-radio {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  margin: 6px 10px 6px 0;
}
.rc-branches {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.rc-branch {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px;
  background: var(--panel);
}
.rc-branch-head {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
}
.rc-branch-head strong {
  font-size: 12px;
}
.cond {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px;
  background: var(--panel);
}
.cond-head {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
}
.cond-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  margin: 6px 0;
  padding-bottom: 6px;
  border-bottom: 1px dashed var(--line);
}
.cond-field {
  max-width: 220px;
}
.cond-word {
  color: var(--muted);
  font-size: 12px;
}
.cond-hint {
  flex-basis: 100%;
  margin: 0;
  color: var(--muted);
  font-size: 11px;
}
.qty {
  display: inline-flex;
  align-items: stretch;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--panel-2);
  overflow: hidden;
}
.qty input {
  width: 7.5rem;
  border: 0;
  background: transparent;
  border-radius: 0;
}
.qty-unit {
  display: inline-flex;
  align-items: center;
  padding: 0 8px;
  border-left: 1px solid var(--line);
  color: var(--muted);
  font-size: 11px;
}
.cond-formula {
  min-width: 240px;
  flex: 1 1;
  font-family: var(--mono);
}
.cond-add {
  display: flex;
  gap: 6px;
  margin-top: 8px;
}
.cond-del {
  padding: 4px 8px;
  color: var(--muted);
}
.cond-complex {
  color: var(--muted);
}
.recipe input,
.recipe select,
.cond input,
.cond select {
  background: var(--panel-2);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 6px 8px;
  font-size: 12px;
  min-width: 0;
}
.cond .qty input {
  border: 0;
  background: transparent;
  border-radius: 0;
}
.recipe input {
  min-width: 90px;
}
.recipe .rc-cron-fields input {
  min-width: 0;
}
@media (max-width: 1100px) {
  .guided {
    grid-template-columns: 1fr;
  }
  .issues-card {
    position: static;
  }
  .rc-grid {
    grid-template-columns: 1fr;
  }
  .rc-cron-fields {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.main:has(.wf) {
  display: flex;
  flex-direction: column;
  height: 100vh;
  overflow: hidden;
  box-sizing: border-box;
}
.wf {
  display: flex;
  flex-direction: column;
  gap: 6px;
  flex: 1 1;
  min-height: 0;
  min-width: 0;
}
.wf > p.mono {
  margin: 0;
  font-size: 12px;
}
.wf-bar {
  display: flex;
  gap: 6px;
  align-items: center;
  flex-wrap: wrap;
}
.wf-bar .btn {
  padding: 2px 7px;
  font-size: 11px;
  border-radius: 4px;
}
.wf-bar .btn.wf-icon {
  padding: 2px 6px;
  font-size: 14px;
  line-height: 1;
}
.wf-bar input,
.wf-bar select {
  background: var(--panel-2);
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 2px 6px;
  font-size: 12px;
}
.wf-open {
  position: relative;
  display: flex;
  align-items: stretch;
  min-width: 180px;
  max-width: 280px;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: var(--panel-2);
}
.wf-bar .wf-open input {
  border: 0;
  background: transparent;
  min-width: 0;
  flex: 1 1;
  padding: 2px 6px;
}
.wf-open-toggle {
  border: 0;
  border-left: 1px solid var(--line);
  background: transparent;
  color: var(--muted);
  padding: 0 7px;
  font-size: 10px;
  line-height: 1;
}
.wf-open-list {
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  z-index: 18;
  min-width: max(100%, 240px);
  max-height: 240px;
  overflow: auto;
  margin: 0;
  padding: 4px;
  list-style: none;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 6px;
}
.wf-open-list button {
  display: block;
  width: 100%;
  text-align: left;
  border: 0;
  background: transparent;
  padding: 4px 6px;
  font-size: 12px;
  border-radius: 4px;
}
.wf-open-list button:hover,
.wf-open-list button.is-on {
  background: var(--panel-2);
}
.wf-switch {
  display: inline-flex;
  border: 1px solid var(--line);
  border-radius: 4px;
  overflow: hidden;
}
.wf-switch button {
  border: 0;
  background: transparent;
  color: var(--muted);
  padding: 2px 8px;
  font-size: 11px;
}
.wf-switch button.is-on {
  background: #1d4ed8;
  color: #fff;
}
.wf-body {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  grid-template-rows: minmax(0, 1fr);
  grid-gap: 8px;
  gap: 8px;
  flex: 1 1;
  min-height: 0;
}
.wf-body.has-run {
  grid-template-columns: 232px minmax(0, 1fr) auto;
}
.wf-palette {
  width: 240px;
  min-height: 0;
  max-height: 100%;
  overflow: auto;
}
.wf-palette.is-collapsed {
  width: 44px;
  padding: 6px 4px;
  overflow: visible;
}
.wf-palette-toggle {
  margin-bottom: 6px;
}
.wf-palette.is-collapsed .wf-palette-toggle {
  margin: 0 auto 6px;
}
.wf-rail {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}
.wf-rail-item {
  position: relative;
}
.wf-cat-btn {
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  padding: 0;
  border: 0;
  border-radius: 6px;
  background: transparent;
}
.wf-cat-btn:hover,
.wf-cat-btn[aria-pressed='true'] {
  background: var(--panel-2);
}
.wf-flyout {
  position: absolute;
  top: 0;
  right: calc(100% + 6px);
  z-index: 8;
  width: 220px;
  max-height: min(420px, 70vh);
  overflow: auto;
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 8px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
}
.suite-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  grid-gap: 12px;
  gap: 12px;
  align-items: start;
}
.suite-layout.has-log {
  grid-template-columns: minmax(0, 1fr) 300px;
}
.wf-run {
  width: 232px;
  min-height: 0;
  max-height: 100%;
  overflow: auto;
  padding: 4px;
  display: flex;
  flex-direction: column;
}
.wf-run.suite-log {
  position: -webkit-sticky;
  position: sticky;
  top: 8px;
  width: auto;
  max-height: calc(100vh - 16px);
}
.wf-run-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 22px;
  padding: 0 4px;
  color: var(--muted);
  font-size: 11px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.wf-run-titleline {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}
.wf-run-head .wf-run-meta,
.wf-run-row.has-passes .wf-run-meta {
  color: var(--info);
  text-transform: none;
  letter-spacing: 0;
}
.wf-run-children {
  margin-left: 8px;
  padding-left: 6px;
  border-left: 1px solid var(--line);
}
.wf-run-empty {
  margin: 0;
  height: 22px;
  padding: 0 6px;
  overflow: hidden;
  color: var(--muted);
  font-size: 11px;
  line-height: 22px;
  white-space: nowrap;
  text-overflow: ellipsis;
}
.wf-run-row {
  display: grid;
  grid-template-columns: 8px minmax(0, 1fr) auto;
  grid-gap: 6px;
  gap: 6px;
  align-items: center;
  width: 100%;
  height: 22px;
  padding: 0 6px;
  border: 0;
  border-radius: 4px;
  background: transparent;
  font-size: 11px;
  line-height: 22px;
  text-align: left;
}
.wf-run-row:hover,
.wf-run-row.is-selected {
  background: var(--panel-2);
}
.wf-run-mark {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--muted);
}
.wf-run-title {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.wf-run-meta {
  color: var(--muted);
  font-family: var(--mono);
  font-size: 10px;
}
.wf-run-row.is-loop .wf-run-meta {
  color: var(--info);
}
.wf-run-row.status-succeeded .wf-run-mark {
  background: var(--buy);
}
.wf-run-row.status-running {
  color: var(--info);
}
.wf-run-row.status-running .wf-run-mark {
  background: var(--info);
}
.wf-run-row.status-failed {
  background: color-mix(in srgb, var(--sell) 18%, transparent);
  color: var(--sell);
}
.wf-run-row.status-failed .wf-run-mark {
  background: var(--sell);
}
.wf-run-row.status-failed .wf-run-meta {
  color: var(--sell);
}
.wf-run-row.status-skipped {
  color: var(--muted);
}
.wf-pop-anchor {
  position: relative;
}
.wf-pop {
  position: absolute;
  top: calc(100% + 4px);
  right: 0;
  z-index: 16;
  width: min(360px, 70vw);
  max-height: 240px;
  overflow: auto;
  padding: 8px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
}
.wf-pop p {
  margin: 0 0 6px;
  font-size: 12px;
}
.wf-modal {
  position: fixed;
  inset: 0;
  z-index: 30;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 48px 16px;
  background: rgba(0, 0, 0, 0.62);
}
.wf-modal-window {
  width: min(560px, 100%);
  max-height: calc(100vh - 96px);
  overflow: auto;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px;
}
.wf-modal-window.is-wide {
  width: min(760px, 100%);
}
.wf-modal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 10px;
}
.wf-body .flow {
  height: 100%;
  min-height: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
  background: #1c1c1c;
}
.wf-body .flow .react-flow {
  background: #1c1c1c;
  --xy-selection-background-color: rgba(61, 214, 140, 0.16);
  --xy-selection-border: 1px solid #3dd68c;
}
.react-flow__node-workflow,
.react-flow__node-workflow.selected,
.react-flow__node-workflow:focus,
.react-flow__node-workflow:focus-visible {
  background: transparent;
  border: 0;
  padding: 0;
  border-radius: 0;
  box-shadow: none;
  outline: none;
}
.wf-node {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  background: #2a2a2a;
  border: 2px solid var(--wf-border, var(--wf-accent, #8b98a5));
  border-radius: 8px;
  color: var(--text);
}
.wf-node.cat-trigger {
  border-radius: 36px 8px 8px 36px;
}
.cat-trigger,
.cat-logic {
  --wf-accent: #3dd68c;
}
.cat-data {
  --wf-accent: #7aa2f7;
}
.cat-flow {
  --wf-accent: #c084fc;
}
.cat-state,
.cat-option,
.cat-risk {
  --wf-accent: #f5a524;
}
.cat-rfq {
  --wf-accent: #ff5c7a;
}
.cat-trading {
  --wf-accent: #ff6d5a;
}
.wf-glyph {
  width: 28px;
  height: 28px;
  color: var(--wf-accent, #8b98a5);
}
.wf-caption {
  position: absolute;
  top: calc(100% + 6px);
  left: 50%;
  width: 168px;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  pointer-events: none;
  text-align: center;
}
.wf-caption strong {
  font-size: 12px;
  font-weight: 600;
  line-height: 1.25;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.wf-caption span {
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 11px;
  color: var(--muted);
}
.wf-port-name {
  position: absolute;
  font-size: 9px;
  line-height: 1;
  color: var(--muted);
  pointer-events: none;
  white-space: nowrap;
}
.wf-port-name.in {
  left: -6px;
  transform: translate(-100%, -50%);
}
.wf-port-name.out {
  right: -6px;
  transform: translate(100%, -50%);
}
.wf-node .react-flow__handle.wf-port {
  width: 10px;
  height: 10px;
  min-width: 10px;
  min-height: 10px;
  background: var(--wf-accent, #8b98a5);
  border: 2px solid #141414;
  border-radius: 50%;
}
.wf-plus {
  position: absolute;
  right: -24px;
  width: 16px;
  height: 16px;
  transform: translateY(-50%);
  border: 1px solid #6a6a6a;
  border-radius: 50%;
  background: #2a2a2a;
  color: #e8e8e8;
  font-size: 13px;
  line-height: 14px;
  text-align: center;
  pointer-events: none;
}
.wf-mark {
  position: absolute;
  right: 4px;
  bottom: 4px;
  width: 16px;
  height: 16px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #1c1c1c;
}
.wf-mark svg {
  width: 14px;
  height: 14px;
}
.wf-mark.ok {
  color: #3dd68c;
}
.wf-mark.fail {
  color: #ff5c7a;
}
.wf-mark.warn {
  color: #f5a524;
  background: transparent;
}
.wf-mark.run {
  background: #7aa2f7;
  box-shadow: 0 0 0 2px #1c1c1c;
}
.wf-strike {
  position: absolute;
  left: 10px;
  right: 10px;
  top: 50%;
  height: 2px;
  background: #9aa7b2;
  transform: rotate(-18deg);
  pointer-events: none;
}
.wf-edge-label {
  position: absolute;
  pointer-events: all;
  font-size: 11px;
  line-height: 1;
  color: #c8c8c8;
}
.wf-edge-label > span {
  background: #1c1c1c;
  padding: 1px 4px;
  border-radius: 4px;
}
.wf-edge-delete {
  width: 26px;
  height: 26px;
  display: grid;
  place-items: center;
  padding: 0;
  border: 0;
  border-radius: 6px;
  background: #2a2a2a;
  color: #d5d5d5;
}
.wf-edge-delete:hover {
  background: #3a3a3a;
  color: #fff;
}
.wf-edge-delete svg {
  width: 14px;
  height: 14px;
}
.wf-log {
  white-space: pre-wrap;
  max-height: 240px;
  overflow: auto;
}
.wf-node.status-succeeded {
  --wf-border: #3dd68c;
}
.wf-node.status-running {
  --wf-border: #7aa2f7;
}
.wf-node.has-problems {
  --wf-border: #f5a524;
}
.wf-node.status-failed {
  --wf-border: #ff5c7a;
}
.wf-node.status-skipped {
  opacity: 0.65;
}
.wf-node.is-selected {
  box-shadow: 0 0 0 6px
    color-mix(in srgb, var(--wf-border, var(--wf-accent, #8b98a5)) 35%, transparent);
}
.wf-node.is-disabled {
  opacity: 0.55;
}
.wf-node.is-edit-point {
  --wf-border: #f5c542;
  outline: 3px solid #f5c542;
  outline-offset: 4px;
  background: #3a3420;
}
.wf-edit-badge {
  position: absolute;
  bottom: calc(100% + 10px);
  left: 50%;
  transform: translateX(-50%);
  padding: 2px 8px;
  border-radius: 999px;
  background: #f5c542;
  color: #1a1404;
  font-size: 11px;
  font-weight: 700;
  line-height: 1.3;
  white-space: nowrap;
  pointer-events: none;
}
.wf-frame {
  width: 100%;
  height: 100%;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(120, 140, 180, 0.06);
  pointer-events: none;
}
.wf-frame header {
  position: absolute;
  top: 8px;
  left: 12px;
  right: 12px;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.wf-frame strong {
  font-size: 13px;
  line-height: 1.3;
}
.wf-frame p {
  margin: 0;
  max-width: 520px;
  font-size: 12px;
  line-height: 1.35;
  color: var(--muted);
}
.wf-stages {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 12px;
}
.wf-stage {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 8px 10px;
  border-left: 3px solid var(--line);
  border-radius: 8px;
  background: rgba(120, 140, 180, 0.06);
}
.wf-stage strong {
  font-size: 13px;
}
.wf-stage p {
  margin: 0;
  font-size: 12px;
  line-height: 1.4;
  color: var(--muted);
}
.wf-tools {
  flex-wrap: wrap;
  align-items: center;
  font-size: 12px;
}
.warn {
  color: var(--warn);
}
.bt-panel {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 8px;
}
.bt-actions,
.bt-timeline,
.bt-metrics {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.bt-equity {
  width: 100%;
  height: 56px;
  color: var(--buy);
}
.bt-nodes {
  margin: 0;
  padding-left: 16px;
}
.bt-panel .muted {
  color: var(--muted);
}
.wf-menu {
  position: fixed;
  z-index: 20;
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 6px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 6px;
}
.palette button[draggable] {
  cursor: -webkit-grab;
  cursor: grab;
}
.main:has(.market-page) {
  display: flex;
  flex-direction: column;
  height: 100vh;
  overflow: hidden;
  box-sizing: border-box;
}
.market-page {
  flex: 1 1;
  min-height: 0;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.market-assets {
  flex-wrap: wrap;
}
.market-pane {
  flex: 1 1;
  min-height: 0;
  min-width: 0;
  display: flex;
  flex-direction: column;
}
.market-price-chart {
  flex: 1 1;
  min-height: 0;
  min-width: 0;
  overflow: hidden;
}
.market-pane p {
  margin: 4px 0 0;
}
.dvol-layout {
  flex: 1 1;
  min-height: 0;
  min-width: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(168px, 220px);
  grid-gap: 12px;
  gap: 12px;
  align-items: stretch;
}
.dvol-chart-wrap {
  min-width: 0;
  min-height: 0;
  display: flex;
  flex-direction: column;
}
.dvol-gauges {
  min-height: 0;
  overflow: auto;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.iv-gauge {
  margin: 0;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 8px 10px 6px;
}
.iv-gauge figcaption {
  color: var(--muted);
  font-size: 12px;
  text-align: right;
}
.iv-gauge svg {
  display: block;
  width: 100%;
  height: 92px;
}
.iv-gauge-track {
  fill: none;
  stroke-width: 14;
  stroke-linecap: round;
}
.iv-gauge-needle {
  stroke: #e7edf3;
  stroke-width: 2;
}
.iv-gauge-hub {
  fill: #e7edf3;
}
.iv-gauge-value {
  fill: var(--text);
  font-size: 28px;
  font-family: var(--mono);
}
.iv-gauge p {
  margin: 0;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.35;
}
.vol-reading .vol-reading-value {
  margin: 8px 0 4px;
  color: var(--text);
  text-align: right;
  font-family: var(--mono);
  font-size: 28px;
  line-height: 1;
}
.vol-compare {
  margin-top: 16px;
}
.vol-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 8px 0;
  font-family: var(--mono);
  font-size: 13px;
}
.vol-legend-rv {
  color: #2ec4b6;
}
.vol-compare-chart {
  height: 360px;
}
.vol-compare-table {
  width: 100%;
  margin-top: 12px;
  border-collapse: collapse;
  font-size: 13px;
}
.vol-compare-table th,
.vol-compare-table td {
  padding: 6px 8px;
  text-align: right;
  border-bottom: 1px solid var(--line);
}
.vol-compare-table th:first-child,
.vol-compare-table td:first-child {
  text-align: left;
}
.vol-compare-table th {
  color: var(--muted);
  font-weight: 500;
}
.ndv {
  position: fixed;
  inset: 0;
  z-index: 40;
  display: flex;
  padding: 28px 16px;
  background: rgba(0, 0, 0, 0.62);
}
.ndv-window {
  display: flex;
  flex: 1 1;
  flex-direction: column;
  min-width: 0;
  min-height: 0;
  border: 1px solid #3a3a3a;
  border-radius: 8px;
  background: #1f1f1f;
  color: #ececec;
}
.ndv-head {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  border-bottom: 1px solid #333;
}
.ndv-close {
  margin-left: auto;
}
.ndv-grid {
  display: grid;
  flex: 1 1;
  min-height: 0;
  grid-template-columns: minmax(200px, 1fr) minmax(340px, 520px) minmax(200px, 1fr);
}
.ndv-side,
.ndv-main {
  min-height: 0;
  overflow: auto;
  padding: 16px;
}
.ndv-side {
  background: #2a2a2a;
}
.ndv-main {
  background: #222;
  border-right: 1px solid #333;
  border-left: 1px solid #333;
}
.ndv-col-title {
  margin-bottom: 12px;
  color: #9a9a9a;
  font-size: 12px;
  letter-spacing: 0.06em;
}
.ndv-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  margin-top: 28%;
  color: #bdbdbd;
  text-align: center;
}
.ndv-empty p {
  margin: 0;
  color: #8e8e8e;
  font-size: 13px;
}
.ndv-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
  border-bottom: 1px solid #333;
}
.ndv-tabs {
  display: flex;
  gap: 4px;
}
.ndv-tabs button {
  border: 0;
  border-bottom: 2px solid transparent;
  background: transparent;
  padding: 8px 10px;
  color: #c8c8c8;
}
.ndv-tabs button[aria-selected='true'] {
  border-bottom-color: #ff6d5a;
  color: #ff6d5a;
}
.ndv-execute {
  border: 0;
  border-radius: 6px;
  background: #ff6d5a;
  padding: 7px 12px;
  color: #1a1a1a;
  font-weight: 650;
}
.ndv-execute:disabled {
  opacity: 0.7;
}
.ndv-form {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.if-block {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.set-field {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 140px minmax(0, 1.4fr) auto;
  grid-gap: 6px;
  gap: 6px;
  align-items: center;
}
.set-field input,
.set-field select {
  width: 100%;
  min-width: 0;
  background: var(--panel-2);
  border: 1px solid var(--line);
  color: inherit;
}
.if-condition {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(120px, 0.9fr) minmax(0, 1fr) auto;
  grid-gap: 6px;
  gap: 6px;
  align-items: center;
}
.if-condition input,
.if-condition select {
  width: 100%;
  min-width: 0;
  background: var(--panel-2);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 6px 8px;
  color: inherit;
}
.if-outputs {
  margin: 0;
  padding: 0;
  list-style: none;
}
.if-outputs li {
  font-size: 12px;
  color: var(--muted);
}
.ndv-import {
  display: flex;
  justify-content: flex-end;
}
.ndv-label {
  display: inline-flex;
  gap: 6px;
  align-items: center;
}
.ndv-warn {
  display: inline-flex;
  width: 16px;
  height: 16px;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: #ff6d5a;
  color: #1a1a1a;
  font-size: 12px;
  font-weight: 700;
}
.ndv-switch {
  display: flex;
  gap: 8px;
  align-items: center;
}
.ndv-options {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 8px;
}
.ndv-add {
  position: relative;
}
.ndv-menu {
  position: absolute;
  z-index: 2;
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-top: 4px;
  padding: 6px;
  border: 1px solid #444;
  border-radius: 6px;
  background: #2b2b2b;
}
.ndv-option-row {
  display: flex;
  gap: 8px;
  align-items: center;
  justify-content: space-between;
}
.ndv-note {
  margin: 8px 0 0;
  padding: 10px 12px;
  border-radius: 6px;
  background: #3a3422;
  color: #f0d48a;
  font-size: 13px;
}
.ndv-note-block {
  margin: 0 0 12px;
  white-space: pre-wrap;
}
.ndv-curl textarea,
.ndv-json-input {
  width: 100%;
  min-height: 88px;
  margin-bottom: 8px;
}
.ndv-json {
  white-space: pre-wrap;
  word-break: break-word;
}
.ndv-switcher {
  display: inline-flex;
  margin-bottom: 10px;
  border: 1px solid #444;
  border-radius: 6px;
  overflow: hidden;
}
.ndv-switcher button {
  border: 0;
  background: transparent;
  padding: 4px 10px;
  color: #c8c8c8;
  font-size: 12px;
}
.ndv-switcher button[aria-selected='true'] {
  background: #3a3a3a;
  color: #fff;
}
.ndv-drag-hint {
  margin: 0 0 8px;
  color: #8e8e8e;
  font-size: 12px;
}
.ndv-schema {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 12px;
}
.ndv-schema-row {
  display: flex;
  align-items: center;
  gap: 6px;
  min-height: 22px;
}
.ndv-schema-toggle {
  width: 16px;
  border: 0;
  background: transparent;
  padding: 0;
  color: #9a9a9a;
  font: inherit;
}
.ndv-schema-type {
  width: 18px;
  color: #8e8e8e;
  text-align: center;
}
.ndv-schema-key {
  color: #ececec;
}
.ndv-schema-key[draggable='true'] {
  cursor: -webkit-grab;
  cursor: grab;
}
.ndv-schema-key[draggable='true']:hover {
  background: #3a3328;
  color: #ffb089;
}
.ndv-schema-preview {
  overflow: hidden;
  color: #8e8e8e;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.mapping-over {
  outline: 1px solid #ff6d5a;
  outline-offset: 1px;
}
.ndv-toast {
  position: absolute;
  right: 28px;
  bottom: 24px;
  width: min(360px, calc(100% - 48px));
  padding: 12px 14px;
  border: 1px solid #6e2a32;
  border-radius: 8px;
  background: #2a181b;
}
.ndv-toast ul {
  margin: 8px 0;
  padding-left: 18px;
}
.ndv-window {
  position: relative;
}
@media (max-width: 1100px) {
  .ndv {
    padding: 0;
  }
  .ndv-grid {
    grid-template-columns: 1fr;
  }
  .ndv-main {
    border: 0;
  }
}
.muted {
  color: var(--muted);
}
.audit-heading {
  margin: 0 0 8px;
  font-size: 14px;
}
details.card > summary.audit-heading {
  cursor: pointer;
  margin: 0;
}
.audit-confirm {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  margin: 8px 0;
}
.audit-confirm p {
  flex: 1 1 220px;
  margin: 0;
}
.audit-layout {
  display: grid;
  grid-template-columns: minmax(240px, 320px) minmax(0, 1fr);
  grid-gap: 16px;
  gap: 16px;
  align-items: start;
}
.audit-trace-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
}
.audit-fit {
  margin: 0 0 8px;
  font-size: 12px;
}
.audit-run {
  display: grid;
  grid-gap: 2px;
  gap: 2px;
  width: 100%;
  text-align: left;
  background: transparent;
  border: 1px solid var(--line);
  border-left-width: 4px;
  border-radius: 8px;
  padding: 8px 10px;
  margin: 0 0 8px;
}
.audit-run.is-succeeded {
  border-left-color: var(--buy);
}
.audit-run.is-failed {
  border-left-color: var(--sell);
}
.audit-run.is-blocked,
.audit-run.is-paused {
  border-left-color: var(--warn);
}
.audit-run.is-running,
.audit-run.is-pending {
  border-left-color: var(--info);
}
.audit-run.is-on {
  background: var(--panel-2);
}
.audit-steps {
  list-style: none;
  margin: 0;
  padding: 0;
}
.audit-step {
  border: 1px solid var(--line);
  border-left-width: 4px;
  border-radius: 8px;
  padding: 10px 12px;
  margin: 0 0 8px;
  background: var(--panel);
  content-visibility: auto;
  contain-intrinsic-size: auto 96px;
}
.audit-step.is-succeeded {
  border-left-color: var(--buy);
}
.audit-step.is-failed {
  border-left-color: var(--sell);
}
.audit-step.is-blocked {
  border-left-color: var(--warn);
}
.audit-step.is-running {
  border-left-color: var(--info);
}
.audit-step.is-skipped {
  border-left-color: var(--muted);
}
.audit-step-head {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: baseline;
}
.audit-index {
  min-width: 2ch;
  color: var(--muted);
  font-family: var(--mono);
}
.audit-reason {
  margin: 6px 0 0;
}
.audit-step.is-failed .audit-reason {
  color: var(--sell);
}
.audit-step.is-blocked .audit-reason,
.audit-step.is-skipped .audit-reason {
  color: var(--warn);
}
.audit-meta,
.audit-io,
.audit-pager {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}
.audit-meta {
  margin-top: 6px;
  color: var(--muted);
  font-size: 12px;
}
.audit-io,
.audit-pager {
  margin-top: 8px;
}
.audit-payload {
  max-height: min(240px, 32vh);
  overflow: auto;
  margin: 8px 0 0;
  padding: 8px;
  background: var(--bg);
  border-radius: 6px;
  font-size: 12px;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.audit-payload.is-full {
  max-height: min(420px, 45vh);
}
.scenario-kpis {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  grid-gap: 10px;
  gap: 10px;
  margin-bottom: 12px;
}
.scenario-kpis .card .value {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  font-size: 15px;
}
.scenario-flow-preview {
  height: 360px;
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
  background: #1c1c1c;
}
.scenario-flow-preview .react-flow {
  background: #1c1c1c;
}
@keyframes scenario-pulse {
  0%,
  100% {
    opacity: 0.45;
  }
  50% {
    opacity: 0.85;
  }
}
.scenario-skeleton {
  height: 16px;
  border-radius: 4px;
  background: var(--panel-2);
  animation: scenario-pulse 1.4s ease-in-out infinite;
}
.strategy-board {
  margin-top: 16px;
}
.strategy-board-head p,
.strategy-board-empty,
.strategy-board-loose {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 13px;
}
.strategy-board-list {
  list-style: none;
  margin: 12px 0 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.strategy-row {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--bg);
  padding: 10px 12px;
}
.strategy-row-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}
.strategy-row-title {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  min-width: 0;
}
.strategy-row-title strong {
  font-size: 14px;
}
.strategy-meta {
  color: var(--muted);
  font-size: 12px;
}
.strategy-scenarios {
  list-style: none;
  margin: 8px 0 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.strategy-scenario {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) auto minmax(0, 1fr) minmax(0, 1.5fr);
  grid-gap: 8px 12px;
  gap: 8px 12px;
  align-items: center;
  padding: 6px 8px;
  border-radius: 6px;
  background: var(--panel);
  font-size: 12px;
}
.strategy-scenario.is-off {
  opacity: 0.55;
}
.strategy-scenario-name {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.strategy-passes {
  margin-left: 8px;
}
.suite-launches {
  margin-bottom: 12px;
}
.card .top {
  margin-bottom: 8px;
}
.card .top h3 {
  margin: 0;
}
.suite-issue {
  margin: 0 0 4px;
}
.strategy-board-loose a {
  color: var(--info);
}
@media (max-width: 800px) {
  .strategy-row-head {
    align-items: flex-start;
    flex-direction: column;
  }
  .strategy-scenario {
    grid-template-columns: 1fr 1fr;
  }
}
.main:has(.option-terminal) {
  display: flex;
  flex-direction: column;
  height: 100vh;
  overflow: hidden;
  box-sizing: border-box;
}
.option-terminal {
  flex: 1 1;
  min-height: 0;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.ob-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}
.ob-bar h2 {
  margin: 0;
  font-size: 18px;
  flex: none;
}
.ob-asset {
  display: flex;
  align-items: center;
  gap: 6px;
  flex: none;
  color: var(--muted);
  font-size: 12px;
}
.ob-asset select {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 6px 8px;
  font-family: var(--mono);
}
.ob-expiries {
  display: flex;
  gap: 4px;
  overflow: auto;
  min-width: 0;
  flex: 1 1;
}
.ob-expiries button {
  flex: none;
  border: 0;
  border-bottom: 2px solid transparent;
  background: transparent;
  color: var(--muted);
  border-radius: 0;
  padding: 6px 8px;
  font-size: 13px;
}
.ob-expiries button.is-on {
  color: var(--text);
  border-bottom-color: var(--text);
}
.ob-note,
.ob-selected {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
}
.ob-selected {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  color: var(--text);
}
.ob-scroll {
  flex: 1 1;
  min-height: 0;
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
}
.ob-table {
  width: max-content;
  min-width: 100%;
  border-collapse: collapse;
  font-family: var(--mono);
  font-size: 12px;
  font-feature-settings: "tnum";
  font-variant-numeric: tabular-nums;
}
.ob-table th,
.ob-table td {
  padding: 4px 8px;
  text-align: right;
  white-space: nowrap;
  border-bottom: 1px solid var(--line);
}
.ob-table thead th {
  position: -webkit-sticky;
  position: sticky;
  top: 0;
  z-index: 2;
  background: #10151b;
  color: var(--muted);
  font-family: var(--font);
  font-size: 11px;
  font-weight: 500;
}
.ob-table thead tr:first-child th {
  top: 0;
  text-align: center;
  color: var(--text);
  font-size: 13px;
}
.ob-table thead tr:nth-child(2) th {
  top: 28px;
}
.ob-strike {
  text-align: center !important;
  color: var(--text);
  background: var(--panel-2);
  min-width: 88px;
}
.ob-table thead .ob-strike {
  background: #161c23;
}
.ob-bid {
  color: var(--sell);
}
.ob-ask {
  color: var(--buy);
}
.ob-size {
  color: var(--muted);
}
.ob-table td.is-itm {
  background: color-mix(in srgb, var(--text) 4%, transparent);
}
.ob-table td.is-selected {
  background: color-mix(in srgb, var(--info) 16%, transparent);
}
.ob-price {
  border: 0;
  background: transparent;
  padding: 0;
  font: inherit;
  color: inherit;
}
.ob-price:hover {
  text-decoration: underline;
}
.ob-spot td {
  padding: 0;
  border-bottom: 1px dashed var(--line);
  text-align: center !important;
}
.ob-spot span {
  display: inline-block;
  margin: 2px 0;
  padding: 2px 8px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--panel-2);
  color: var(--text);
}
@media (max-width: 900px) {
  .audit-layout {
    grid-template-columns: 1fr;
  }
  .main:has(.option-terminal),
  .main:has(.market-page) {
    height: auto;
    overflow: auto;
  }
  .ob-scroll {
    overflow: auto;
  }
  .dvol-layout {
    grid-template-columns: 1fr;
  }
  .market-price-chart {
    height: 420px;
    flex: none;
  }
}

.buffer-values,
.buffer-nest,
.buffer-block {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.buffer-nest {
  margin-left: 8px;
  padding-left: 10px;
  border-left: 1px solid var(--line);
}
.buffer-heading {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: baseline;
}
.buffer-heading strong {
  font-size: 13px;
  font-weight: 600;
}
.buffer-path,
.buffer-meta {
  color: var(--muted);
  font-size: 11px;
}
.buffer-meta {
  margin: 0 0 8px;
}
.buffer-fields {
  margin: 0;
}
.buffer-fields > div {
  display: grid;
  grid-template-columns: minmax(140px, 240px) 1fr;
  grid-gap: 8px;
  gap: 8px;
  padding: 6px 8px;
  border-bottom: 1px solid var(--line);
}
.buffer-fields dt {
  color: var(--muted);
  font-size: 12px;
}
.buffer-fields dd {
  margin: 0;
}
.buffer-table-wrap {
  overflow-x: auto;
}
.buffer-changed {
  background: color-mix(in srgb, var(--warn) 22%, transparent);
}
.buffer-fold {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.buffer-fold > summary {
  cursor: pointer;
  list-style: none;
}
.buffer-fold > summary::-webkit-details-marker {
  display: none;
}
.buffer-fold > summary::marker {
  content: '';
}
.buffer-fold > summary::before {
  content: '▸';
  color: var(--muted);
  font-size: 11px;
}
.buffer-fold[open] > summary::before {
  content: '▾';
}
.buffer-count {
  color: var(--muted);
  font-size: 11px;
}

