.mode-tags {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 6px;
  overflow: visible;
  padding-right: 0;
}
.mode-tags .tag {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1px;
  width: 100%;
  min-height: 44px;
  padding: 4px 2px;
  line-height: 1.15;
}
.mode-tags .tag b { font-size: 14px; font-weight: 800; }
.mode-tags .tag span { margin-top: 4px; font-size: 10px; font-weight: 600; letter-spacing: 0.01em; opacity: 0.82; }
html[data-m-axi="1"] .mode-tags .tag.on { color: #fff; }
html[data-m-axi="1"] .mode-tags .tag.on span { opacity: 1; }
html[data-m-axi="1"] .mode-tags .tag.on[data-mode="active"] { background: #dc2626; border-color: #dc2626; }
html[data-m-axi="1"] .mode-tags .tag.on[data-mode="balance"] { background: #f59e0b; border-color: #f59e0b; color: #1a1408; }
html[data-m-axi="1"] .mode-tags .tag.on[data-mode="steady"] { background: #2563eb; border-color: #2563eb; }
.sig-bar {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin: 0 0 10px;
}
.sig-meter {
  flex: 0 0 auto;
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 32px;
  margin: 0;
  padding: 0 8px;
  border: 1px solid var(--line);
  background: var(--brass-soft);
  color: var(--ink);
  font-size: 12px;
  font-weight: 700;
  line-height: 1.2;
  white-space: nowrap;
}
.sig-meter[data-tone="active"] { border-color: #dc2626; }
.sig-meter[data-tone="balance"] { border-color: #f59e0b; }
.sig-meter[data-tone="steady"] { border-color: #2563eb; }
.sig-meter-kicker { font-size: 12px; font-weight: 800; letter-spacing: 0.06em; color: var(--brass); }
.sig-meter[data-tone="active"] .sig-meter-kicker { color: #fca5a5; }
.sig-meter[data-tone="balance"] .sig-meter-kicker { color: #fbbf24; }
.sig-meter[data-tone="steady"] .sig-meter-kicker { color: #93c5fd; }
.sig-meter b { font-family: var(--mono); font-size: 13px; font-weight: 800; color: var(--ink); }
.sig-bar .ai-sort { flex: 1 1 168px; margin: 0; align-content: flex-start; justify-content: flex-start; }
.sig-filter {
  flex: none;
  align-self: flex-start;
  min-height: 32px;
  margin-left: auto;
  padding: 0 8px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--ink);
  font: inherit;
  font-size: 12px;
  font-weight: 700;
}
.sig-filter svg { width: 14px; height: 14px; stroke: currentColor; fill: none; stroke-width: 1.8; }
.sig-filter b { font-family: var(--mono); font-size: 13px; font-weight: 800; }
.sig-filter[aria-pressed="true"] { background: var(--ink); color: var(--navy); border-color: var(--ink); }
.sig-filter-sec { display: flex; flex-direction: column; gap: 8px; }
.sig-filter-sec b { color: rgba(255, 255, 255, 0.55); font-size: 12px; font-weight: 700; }
.sig-filter-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.sig-filter-chips button {
  min-height: 36px;
  padding: 0 12px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 0;
  background: transparent;
  color: rgba(255, 255, 255, 0.78);
  font: inherit;
  font-size: 13px;
  font-weight: 700;
}
.sig-filter-chips button[aria-pressed="true"] { background: #f4feff; color: #111; border-color: #f4feff; }
.sig-filter-chips button[data-sig-dir="long"][aria-pressed="true"] { background: var(--up); color: #052e16; border-color: var(--up); }
.sig-filter-chips button[data-sig-dir="short"][aria-pressed="true"] { background: #dc2626; color: #fff; border-color: #dc2626; }
.sig-filter-chips button[data-sig-kind="pend"][aria-pressed="true"] { background: #fbbf24; color: #111; border-color: #fbbf24; }
.ai-sort {
  display: flex;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 6px;
  margin: 8px 0 10px;
}
.ai-sort button {
  min-height: 32px;
  padding: 0 8px;
  border: 1px solid var(--line);
  border-radius: 0;
  background: transparent;
  color: var(--ink);
  font: inherit;
  font-size: 12px;
  font-weight: 700;
}
.ai-sort button[aria-pressed="true"] { background: var(--ink); color: var(--navy); border-color: var(--ink); }
.ai-sort button[data-side="long"][aria-pressed="true"] { background: var(--up); color: #052e16; border-color: var(--up); }
.ai-sort button[data-side="short"][aria-pressed="true"] { background: #dc2626; color: #fff; border-color: #dc2626; }
.ai-sort button[data-sort][aria-pressed="true"]::after,
.ai-sort button[data-hist][aria-pressed="true"]::after,
.ai-sort button[data-book-sort][aria-pressed="true"]::after {
  content: "";
  display: inline-block;
  width: 0;
  height: 0;
  margin-left: 5px;
  vertical-align: 1px;
  border-right: 4px solid transparent;
  border-left: 4px solid transparent;
  border-top: 5px solid currentColor;
}
.ai-sort button[data-sort][data-dir="asc"]::after,
.ai-sort button[data-hist][data-dir="asc"]::after,
.ai-sort button[data-book-sort][data-dir="asc"]::after { border-top: 0; border-bottom: 5px solid currentColor; vertical-align: 2px; }
.book-tools { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin: 0 0 10px; }
.book-tools .book-sort,
.book-tools .book-view { margin: 0; flex-wrap: nowrap; }
.book-sort { justify-content: flex-start; }
.book-view { justify-content: flex-end; }
.book-view button { width: 32px; min-width: 32px; padding: 0; display: grid; place-items: center; }
.book-view svg { width: 16px; height: 16px; stroke: currentColor; fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.book-view button[data-sum-toggle] svg,
.book-view button[data-hist-sum] svg { width: 19px; height: 19px; }
.book-view button[data-hist-filter] svg { width: 16px; height: 16px; }
.book-view button[data-hist-filter][aria-pressed="true"] {
  background: var(--ink);
  color: var(--navy);
  border-color: var(--ink);
}
.hist-filter-dlg .dlg-body { padding-top: 8px; }
.hist-range-list { display: flex; flex-direction: column; gap: 8px; }
.hist-range-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  width: 100%;
  min-height: 48px;
  padding: 0 14px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.04);
  color: #fff;
  font: inherit;
  font-size: 15px;
  font-weight: 700;
  text-align: left;
}
.hist-range-item em {
  flex: none;
  width: 18px;
  color: var(--brass, #c4a35a);
  font-style: normal;
  font-size: 16px;
  font-weight: 800;
}
.hist-range-item.on {
  border-color: var(--brass, #c4a35a);
  background: rgba(196, 163, 90, 0.16);
  box-shadow: inset 0 0 0 1px rgba(196, 163, 90, 0.35);
}
.hist-filter-actions { gap: 10px; }
.hist-filter-actions .dlg-cancel,
.hist-filter-actions .btn { flex: 1; min-height: 48px; }
.hist-custom {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 12px;
  padding: 12px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.04);
}
.hist-date { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.hist-date span { color: rgba(255, 255, 255, 0.55); font-size: 12px; font-weight: 700; }
.hist-date input {
  width: 100%;
  min-height: 42px;
  padding: 0 10px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 10px;
  background: rgba(0, 0, 0, 0.28);
  color: #fff;
  font: inherit;
  font-size: 14px;
  font-weight: 700;
  color-scheme: dark;
}
html[data-m-style="radar-terminal"] .pos-tags .tag.on {
  background: #0c3b28;
  border-color: #1a6b45;
  color: #d8ffe9;
}
.book-sltp-hd .sl-meta,
.book-stops .sl-meta {
  display: block;
  margin-top: 2px;
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 700;
  line-height: 1.35;
}
.book-sltp-hd .sl-meta i,
.book-stops .sl-meta i { display: block; font-style: normal; white-space: nowrap; }
.book-sltp-hd .sl-meta { margin-top: 4px; }
.book-sltp-hd .sl-meta.down,
.book-stops .sl-meta.down { color: var(--down); }
.book-sltp-hd .sl-meta.up,
.book-stops .sl-meta.up { color: var(--up); }
.book-mid { display: flex; flex-direction: column; align-items: center; gap: 4px; }
.book-mid .pnl-box {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  min-width: calc(52px * 1.1);
  min-height: 22px;
  margin: 0;
  padding: 4px 6px;
  border: 1px solid var(--line);
  background: var(--plate-2);
  font-style: normal;
  font-weight: 800;
  line-height: 1.3;
  white-space: nowrap;
}
.book-rr .rr-box {
  border: 0;
  background: transparent;
  min-width: 0;
  min-height: 0;
  padding: 0;
  color: inherit;
  font: inherit;
}
.book-sltp-hd .book-mid .px-box {
  align-items: center;
  text-align: center;
}
.book-mid .pnl-box { font-size: 11px; color: var(--ink); }
.book-sltp.win .pnl-box {
  color: var(--up);
  border-color: color-mix(in srgb, var(--up) 55%, transparent);
  background: rgba(34, 197, 94, 0.12);
}
.book-sltp.lose .pnl-box {
  color: var(--down);
  border-color: color-mix(in srgb, var(--down) 55%, transparent);
  background: rgba(239, 68, 68, 0.12);
}
.ai-empty { margin: 8px 0 0; color: var(--mist); font-size: 13px; }
.ai-card {
  margin: 0 0 12px;
  padding: 14px;
  background: var(--plate);
  border: 1px solid var(--line);
  color: var(--ink);
}
.ai-card.long {
  background: linear-gradient(135deg, rgba(123, 255, 61, 0.16), rgba(0, 212, 255, 0.08));
  border-color: rgba(123, 255, 61, 0.42);
}
.ai-card.short {
  background: linear-gradient(135deg, rgba(255, 107, 107, 0.2), rgba(255, 71, 87, 0.06));
  border-color: rgba(255, 107, 107, 0.46);
}
html[data-m-axi="1"] .ai-card.long .btn-primary {
  background: linear-gradient(90deg, #7bff3d, #4ade80);
  color: #111;
  border-color: transparent;
}
html[data-m-axi="1"] .ai-card.short .btn-primary {
  background: linear-gradient(90deg, #ff6b6b, #ff4757);
  color: #fff;
  border-color: transparent;
}
.ai-card .btn.is-dead,
html[data-m-axi="1"] .ai-card .btn.is-dead {
  background: #3a4150;
  color: #cbd5e1;
  border: 1px solid rgba(255, 255, 255, 0.12);
  cursor: not-allowed;
  opacity: 1;
}
.ai-card .btn.is-ordered,
html[data-m-axi="1"] .ai-card .btn.is-ordered {
  background: rgba(255, 255, 255, 0.08);
  color: var(--ink);
  border: 1px solid rgba(255, 255, 255, 0.22);
  cursor: default;
  opacity: 1;
}
.ai-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 8px; min-width: 0; }
.ai-id { min-width: 0; flex: 1 1 auto; }
.ai-id-row { display: flex; align-items: center; gap: 8px; min-width: 0; }
.ai-sym {
  flex: 0 0 auto;
  min-width: 78px;
  height: 40px;
  padding: 0 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--sym, #d8ff3d);
  color: #111;
  font-family: var(--mono);
  font-weight: 800;
  font-size: 16px;
  letter-spacing: -0.04em;
  clip-path: polygon(0 0, 100% 0, 100% 72%, 86% 100%, 0 100%);
}
.ai-meta { min-width: 0; flex: 1 1 auto; }
.ai-rr {
  display: inline-flex;
  align-items: center;
  height: 40px;
  margin: 0;
  padding: 0 10px;
  border: 1px solid var(--sym, #d8ff3d);
  background: var(--sym, #d8ff3d);
  color: #111;
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1;
}
.ai-flags { display: flex; align-items: center; gap: 6px; flex: 0 0 auto; height: 40px; }
.ai-order {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 40px;
  padding: 0 8px;
  border: 1px dashed var(--down);
  background: rgba(239, 68, 68, 0.08);
  color: var(--down);
  font-size: 12px;
  font-weight: 800;
  line-height: 1;
  white-space: nowrap;
}
.ai-order.long {
  border-color: var(--up);
  background: rgba(34, 197, 94, 0.08);
  color: var(--up);
}
.ai-order.short {
  border-color: var(--down);
  background: rgba(239, 68, 68, 0.08);
  color: var(--down);
}
.ai-time { display: flex; align-items: center; gap: 4px; margin-top: 4px; color: var(--mist); font-size: 12px; }
.ai-time svg { width: 12px; height: 12px; stroke: currentColor; fill: none; stroke-width: 1.8; }
.ai-dir {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  height: 40px;
  padding: 0 8px;
  border: 1px solid var(--line);
  font-size: 11px;
  font-weight: 800;
}
.ai-dir.long { color: var(--up); background: rgba(34, 197, 94, 0.12); border-color: var(--up); }
.ai-dir.short { color: var(--down); background: rgba(239, 68, 68, 0.12); border-color: var(--down); }
.ai-dir svg { width: 14px; height: 14px; stroke: currentColor; fill: none; stroke-width: 1.8; }
.ai-kicker {
  display: inline-flex;
  align-items: center;
  height: 22px;
  margin: 10px 0 0;
  padding: 0 8px;
  border: 1px solid rgba(0, 212, 255, 0.72);
  color: #7ee7ff;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.12em;
}
.ai-card h3 {
  margin: 12px 0 6px;
  font-size: 17px;
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.35;
}
.ai-face {
  margin-left: 6px;
  font-size: 15px;
  line-height: 1;
}
.ai-desc { margin: 0 0 12px; color: var(--mist); font-size: 13px; line-height: 1.55; }
.ai-cover {
  margin: 0 0 12px;
  overflow: hidden;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: #07140f;
}
.ai-cover svg { display: block; width: 100%; height: auto; aspect-ratio: 640 / 246.4; }
.ai-cover .now { animation: ai-now 1.8s ease-in-out infinite; }
@keyframes ai-now { 50% { opacity: 0.35; } }
@media (prefers-reduced-motion: reduce) { .ai-cover .now { animation: none; } }
.ai-prices.ai-pips b { font-size: 15px; }
.ai-prices { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; margin-bottom: 6px; }
.ai-prices + .ai-conf { margin-top: 10px; }
.ai-prices div { min-width: 0; padding: 8px 4px; background: var(--plate-2); text-align: center; }
.ai-prices span {
  display: block;
  color: var(--mist);
  font-size: 11px;
}
.ai-prices .lab { font-weight: 700; color: var(--ink); }
.ai-prices svg { width: 12px; height: 12px; stroke: currentColor; fill: none; stroke-width: 1.8; }
.ai-prices b {
  display: block;
  margin-top: 4px;
  overflow: hidden;
  font-family: var(--mono);
  font-size: 13px;
  letter-spacing: -0.03em;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.ai-prices.ai-pips b.ai-now-stack {
  overflow: visible;
  font-size: 11px;
  line-height: 1.2;
  text-overflow: clip;
  white-space: normal;
}
.ai-prices.ai-pips b.ai-now-stack i {
  display: block;
  font-style: normal;
}
.ai-prices b.up, .sheet .up { color: var(--up); }
.ai-prices b.down, .sheet .down { color: var(--down); }
.ai-prices b.pick { color: #fbbf24; }
.ai-prices em.ai-sub {
  display: block;
  margin-top: 2px;
  color: var(--mist);
  font-style: normal;
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: -0.02em;
}
.ai-conf { display: flex; align-items: center; gap: 8px; min-width: 0; margin-bottom: 12px; color: var(--mist); font-size: 11px; }
.ai-cells {
  flex: 1 1 auto;
  min-width: 72px;
  display: grid;
  grid-template-columns: repeat(10, 1fr);
  gap: 3px;
  height: 16px;
}
.ai-cells i { display: block; height: 100%; background: #2a2426; position: relative; overflow: hidden; }
.ai-cells i::after {
  content: "";
  position: absolute;
  inset: 0;
  transform: scaleX(var(--lit, 0));
  transform-origin: left center;
  background: linear-gradient(90deg, #4ade80, #a3e635);
}
.ai-cells i:nth-child(2)::after { background: linear-gradient(90deg, #a3e635, #d9f99d); }
.ai-cells i:nth-child(3)::after { background: linear-gradient(90deg, #d9f99d, #fde047); }
.ai-cells i:nth-child(4)::after { background: linear-gradient(90deg, #fde047, #facc15); }
.ai-cells i:nth-child(5)::after { background: linear-gradient(90deg, #facc15, #f59e0b); }
.ai-cells i:nth-child(6)::after { background: linear-gradient(90deg, #f59e0b, #f97316); }
.ai-cells i:nth-child(7)::after { background: linear-gradient(90deg, #f97316, #ef4444); }
.ai-cells i:nth-child(8)::after { background: linear-gradient(90deg, #ef4444, #e11d48); }
.ai-cells i:nth-child(9)::after { background: linear-gradient(90deg, #e11d48, #fb7185); }
.ai-cells i:nth-child(10)::after { background: linear-gradient(90deg, #fb7185, #fecdd3); }
.ai-conf b { font-family: var(--mono); font-size: 12px; }
.ai-conf b.long { color: var(--up); }
.ai-conf b.short { color: var(--down); }
.ai-ttl {
  flex: none;
  margin-left: auto;
  color: var(--ink);
  font-size: 12px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.ai-conf:has(.ai-ttl.play) { flex-wrap: wrap; }
.ai-ttl.play {
  flex: 1 0 100%;
  margin-left: 0;
  white-space: normal;
  line-height: 1.45;
}
.ai-card .btn { width: 100%; }
.hang-bar { margin: 0 0 12px; }
.hang-bar .btn { width: 100%; }
.hang-bar p { margin: 8px 0 0; color: var(--mist); font-size: 12px; line-height: 1.5; }
.batch-rr { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 6px; }
.batch-rr button {
  min-height: 44px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.05);
  color: rgba(255, 255, 255, 0.72);
  font-family: var(--mono);
  font-weight: 800;
}
.batch-rr button.on { background: #fff; border-color: #fff; color: #111; }
.batch-note { margin: 0; color: rgba(255, 255, 255, 0.55); font-size: 12px; line-height: 1.45; }
.batch-list { max-height: 220px; margin: 0; padding: 0; overflow: auto; list-style: none; display: flex; flex-direction: column; gap: 8px; }
.batch-list li { padding: 8px 10px; background: rgba(255, 255, 255, 0.05); color: rgba(255, 255, 255, 0.82); font-size: 12px; line-height: 1.45; }
.batch-list b { font-family: var(--mono); }
.batch-list span { display: block; color: rgba(255, 255, 255, 0.55); }
.dlg-run .dlg-actions { grid-template-columns: 1fr; }
.run-stage {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  padding: 6px 0 2px;
  animation: runPop .42s cubic-bezier(.16, .84, .28, 1);
}
@keyframes runPop {
  from { opacity: 0; transform: translateY(16px) scale(.94); }
  to { opacity: 1; transform: none; }
}
.run-ring { position: relative; width: 156px; height: 156px; }
.run-ring::before {
  content: "";
  position: absolute;
  inset: -8px;
  border-radius: 50%;
  background: conic-gradient(from 20deg, transparent 0 55%, rgba(200, 255, 61, .15) 68%, #eaff8a 78%, transparent 88%);
  filter: blur(7px);
  animation: runSpin 1.35s linear infinite;
}
.run-stage.end .run-ring::before { animation: none; opacity: .45; }
.run-stage.warn .run-ring::before { background: conic-gradient(from 20deg, transparent 0 55%, rgba(255, 176, 32, .2) 72%, #ffb020 82%, transparent 92%); }
.run-ring svg { position: relative; width: 100%; height: 100%; transform: rotate(-90deg); }
.run-ring .track { fill: none; stroke: rgba(255, 255, 255, .1); stroke-width: 8; }
.run-ring .meter {
  fill: none;
  stroke: url(#runGlow);
  stroke-width: 8;
  stroke-linecap: round;
  filter: drop-shadow(0 0 7px rgba(200, 255, 61, .85));
  transition: stroke-dashoffset .45s cubic-bezier(.16, .84, .28, 1);
}
.run-stage.warn .meter { stroke: #ffb020; filter: drop-shadow(0 0 7px rgba(255, 176, 32, .75)); }
.run-num {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
}
.run-num b { font-family: var(--mono); font-size: 42px; font-weight: 800; line-height: .9; letter-spacing: -.05em; }
.run-num span { color: rgba(255, 255, 255, .5); font-family: var(--mono); font-size: 13px; }
.run-now { margin: 0; min-height: 22px; text-align: center; font-size: 15px; font-weight: 750; }
.run-segs { display: flex; width: 100%; gap: 3px; height: 9px; }
.run-segs i { flex: 1; border-radius: 99px; background: rgba(255, 255, 255, .1); transform-origin: center; }
.run-segs i.ok { background: #d6ff4a; box-shadow: 0 0 10px rgba(214, 255, 74, .85); }
.run-segs i.bad { background: #ff5d6c; box-shadow: 0 0 10px rgba(255, 93, 108, .75); }
.run-segs i.now { background: #fff; animation: runBlink .72s ease-in-out infinite; }
@keyframes runBlink { 50% { opacity: .35; transform: scaleY(1.7); } }
@keyframes runSpin { to { transform: rotate(360deg); } }
.run-meta { margin: 0; color: rgba(255, 255, 255, .5); font-family: var(--mono); font-size: 12px; }
.sheet-mask {
  position: absolute;
  z-index: 40;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  overflow: auto;
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(8px);
}
.sheet-mask.cap-mask { z-index: 80; }
.dlg {
  width: 100%;
  border-radius: 24px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: #121214;
  color: #fff;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.45);
}
.dlg-head, .dlg-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 16px;
}
.dlg-head { border-bottom: 1px solid rgba(255, 255, 255, 0.08); }
.dlg-actions .btn { flex: 1; }
.close-ask { padding-bottom: 4px; }
.close-ask .dlg-head { padding: 22px 18px 16px; }
.close-ask .dlg-title h2 { font-size: 22px; }
.close-ask .dlg-title p { margin-top: 6px; font-size: 14px; }
.close-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  padding: 18px 16px 8px;
}
.close-stats div {
  min-width: 0;
  padding: 16px 4px 14px;
  background: rgba(255, 255, 255, 0.06);
  text-align: center;
}
.close-stats span { display: block; color: rgba(255, 255, 255, 0.5); font-size: 12px; }
.close-stats b {
  display: block;
  margin-top: 8px;
  font-family: var(--mono);
  font-size: 28px;
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1.1;
}
.close-stats div:last-child b { font-size: 20px; letter-spacing: -0.05em; }
.close-stats b.up { color: #4ade80; }
.close-stats b.down { color: #f87171; }
.close-ask .dlg-actions { padding: 16px; }
.close-ask .dlg-actions .btn { min-height: 48px; font-size: 16px; }
.dlg-title { display: flex; align-items: center; gap: 10px; min-width: 0; }
.dlg-title h2 { margin: 0; font-size: 18px; font-weight: 800; letter-spacing: -0.03em; }
.dlg-title p { margin: 2px 0 0; color: rgba(255, 255, 255, 0.5); font-size: 12px; }
.dlg-mark {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  flex: none;
}
.dlg-mark.long { background: rgba(74, 222, 128, 0.2); color: #4ade80; }
.dlg-mark.short { background: rgba(248, 113, 113, 0.2); color: #f87171; }
.dlg-mark svg { width: 20px; height: 20px; stroke: currentColor; fill: none; stroke-width: 1.8; }
.dlg-x {
  width: 32px;
  height: 32px;
  border: 0;
  border-radius: 12px;
  background: transparent;
  color: rgba(255, 255, 255, 0.6);
  font-size: 22px;
  line-height: 1;
}
.dlg-body { display: flex; flex-direction: column; gap: 12px; padding: 16px; }
.miss-copy { margin: 0; color: rgba(255, 255, 255, 0.72); font-size: 14px; line-height: 1.6; }
.dlg-prices { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; padding: 12px; border-radius: 16px; background: rgba(255, 255, 255, 0.05); }
.dlg-prices div { text-align: center; }
.dlg-prices span { display: block; margin-bottom: 4px; color: rgba(255, 255, 255, 0.4); font-size: 11px; }
.dlg-prices b { font-family: var(--mono); font-size: 14px; }
.dlg-prices .down { color: #f87171; }
.dlg-prices .up { color: #4ade80; }
.size-tags { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.size-tags button, .size-grid button, .lot-step button {
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.05);
  color: #fff;
  font-weight: 800;
}
.size-tags button {
  min-height: 44px;
  border-radius: 10px;
  color: rgba(255, 255, 255, 0.72);
}
.size-tags button.on { background: #fff; border-color: #fff; color: #111; }
.size-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.size-grid button {
  min-height: 44px;
  border-radius: 10px;
  font-family: var(--mono);
}
.size-grid button.on { border-color: #d8ff3d; color: #d8ff3d; }
.lot-step { display: grid; grid-template-columns: 44px 1fr 44px; gap: 8px; align-items: center; }
.lot-step button { height: 44px; border-radius: 12px; font-size: 22px; line-height: 1; }
.lot-step b { display: flex; align-items: baseline; justify-content: center; gap: 4px; font-family: var(--mono); font-size: 22px; font-weight: 800; }
.lot-step span { color: rgba(255, 255, 255, 0.4); font-size: 13px; font-weight: 600; }
.size-note { margin: 0; color: rgba(255, 255, 255, 0.78); font-size: 14px; line-height: 1.5; }
.size-note b { color: #fff; font-family: var(--mono); }
.risk-math { display: flex; flex-direction: column; gap: 8px; }
.risk-math div {
  padding: 10px 12px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.05);
}
.risk-math span {
  display: block;
  margin-bottom: 4px;
  color: rgba(255, 255, 255, 0.78);
  font-size: 13px;
  line-height: 1.4;
}
.risk-math p {
  margin: 0;
  color: #fff;
  font-family: var(--mono);
  font-size: 16px;
  font-weight: 700;
  line-height: 1.45;
  overflow-wrap: anywhere;
}
.risk-math strong { color: #d8ff3d; font-weight: 800; }
.size-out { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; padding: 12px; border-radius: 16px; background: rgba(255, 255, 255, 0.05); }
.size-out div { min-width: 0; text-align: center; }
.size-out span { display: block; color: rgba(255, 255, 255, 0.45); font-size: 11px; }
.size-out b { display: block; margin-top: 4px; overflow: hidden; font-family: var(--mono); font-size: 15px; font-weight: 800; text-overflow: ellipsis; white-space: nowrap; }
.size-out .down { color: #f87171; }
.size-out .up { color: #4ade80; }
.size-tags button:disabled, .size-grid button:disabled, .lot-step button:disabled, .dlg-ok:disabled { opacity: 0.45; }
.dlg-calc-lab { margin-bottom: 6px; color: rgba(255, 255, 255, 0.6); font-size: 13px; }
.dlg-calc p { margin: 0 0 4px; color: rgba(255, 255, 255, 0.72); font-size: 13px; line-height: 1.45; }
.dlg-calc b { color: #fff; font-family: var(--mono); }
.dlg-lot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 48px;
  margin-top: 8px;
  padding: 0 14px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.05);
  user-select: none;
}
.dlg-lot b { font-family: var(--mono); font-size: 22px; font-weight: 800; }
.dlg-lot span { color: rgba(255, 255, 255, 0.4); font-size: 13px; }
.dlg-risk { padding: 12px; border-radius: 16px; border: 1px solid rgba(234, 179, 8, 0.28); background: linear-gradient(90deg, rgba(234, 179, 8, 0.12), rgba(249, 115, 22, 0.1)); }
.dlg-risk b { display: block; margin-bottom: 4px; font-size: 13px; }
.dlg-risk p { margin: 0; color: rgba(255, 255, 255, 0.55); font-size: 12px; }
.dlg-risk .up, .dlg-risk .down { font-size: 20px; font-weight: 800; font-variant-numeric: tabular-nums; }
.dlg-risk .up { color: #4ade80; }
.dlg-risk .down { color: #f87171; }
.dlg-conf { display: flex; align-items: center; gap: 8px; color: rgba(255, 255, 255, 0.6); font-size: 13px; }
.dlg-conf i { flex: 1; height: 8px; border-radius: 99px; background: rgba(255, 255, 255, 0.1); overflow: hidden; }
.dlg-conf em { display: block; height: 100%; border-radius: 99px; background: linear-gradient(90deg, #d8ff3d, #00d4ff); }
.dlg-wait { margin: 0; color: rgba(255, 255, 255, 0.62); font-size: 13px; line-height: 1.45; }
.dlg-error {
  margin: 0;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid rgba(248, 113, 113, 0.5);
  background: rgba(127, 29, 29, 0.55);
  color: #fecaca;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.45;
}
.dlg-done { border-color: rgba(123, 255, 61, 0.5); }
.ok-pop { position: relative; padding: 32px 24px 36px; text-align: center; }
.ok-x { position: absolute; top: 6px; right: 6px; width: 42px; height: 42px; font-size: 29px; }
.ok-badge {
  width: 80px;
  height: 80px;
  margin: 0 auto 24px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  background: rgba(34, 197, 94, 0.2);
  color: #4ade80;
  animation: ok-zoom 0.3s ease;
}
.ok-badge svg { width: 40px; height: 40px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.ok-pop h2 { margin: 0 0 8px; font-size: 20px; font-weight: 800; letter-spacing: -0.03em; }
.ok-pnl {
  margin: 0 0 6px;
  font-family: var(--mono);
  font-size: 28px;
  font-weight: 750;
  letter-spacing: -0.04em;
}
.ok-pnl.up { color: var(--up, #4ade80); }
.ok-pnl.down { color: var(--down, #f07178); }
.ok-line { margin: 0 0 16px; color: rgba(255, 255, 255, 0.6); font-size: 14px; }
.ok-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.05);
  color: rgba(255, 255, 255, 0.6);
  font-size: 12px;
}
.ok-pill i {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: #4ade80;
  animation: ok-pulse 1.2s ease infinite;
}
.ok-note { margin: 12px 0 0; color: rgba(255, 255, 255, 0.45); font-size: 12px; line-height: 1.45; }
@keyframes ok-zoom {
  from { transform: scale(0.5); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}
@keyframes ok-pulse {
  50% { opacity: 0.35; }
}
.dlg-conf b { color: #d8ff3d; font-family: var(--mono); }
.dlg-actions { border-top: 1px solid rgba(255, 255, 255, 0.08); }
.dlg-cancel, .dlg-ok {
  flex: 1;
  min-height: 44px;
  border-radius: 12px;
  font-size: 15px;
  font-weight: 800;
}
.dlg-cancel { border: 1px solid rgba(255, 255, 255, 0.12); background: transparent; color: #fff; }
.dlg-ok { border: 0; color: #111; }
.live-on {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  flex: none;
  height: 22px;
  padding: 0 8px 0 7px;
  border-radius: 999px;
  background: rgba(34, 197, 94, 0.16);
  color: #4ade80;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.06em;
  line-height: 1;
}
.live-on i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #22c55e;
  box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.28);
}
.dlg-ok.long { background: linear-gradient(90deg, #7bff3d, #4ade80); }
.dlg-ok.short { background: linear-gradient(90deg, #ff6b6b, #ff4757); color: #fff; }
.sheet {
  width: 100%;
  padding: 16px 16px calc(16px + var(--safe-b));
  background: var(--plate);
  border-top: 2px solid var(--brand);
}
.sheet h2 { margin: 0 0 4px; font-size: 18px; letter-spacing: -0.03em; }
.sheet .lead { margin-bottom: 12px; }
.sheet-row { display: flex; justify-content: space-between; gap: 12px; min-height: 28px; font-size: 13px; }
.sheet-row span { color: var(--mist); }
.sheet-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin: 10px 0; }
.sheet-grid div { padding: 8px; background: var(--plate-2); }
.sheet-grid span { display: block; color: var(--mist); font-size: 11px; }
.sheet-grid b { font-family: var(--mono); }
.acc-item { min-width: 0; }
.acc-item .meta em { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.toast {
  position: absolute;
  z-index: 50;
  left: 16px;
  right: 16px;
  bottom: calc(var(--tab-h) + 12px);
  transform: none;
  max-width: none;
}
.pos-tags {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 6px;
  overflow: visible;
  padding-right: 0;
}
.pos-tags .tag {
  display: flex;
  align-items: center;
  width: 100%;
  justify-content: center;
  overflow: visible;
  padding: 0 4px;
  font-size: 12px;
  white-space: nowrap;
}
.risk-sub {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
  margin-bottom: 12px;
  padding-right: 0;
}
.risk-sub .tag { display: flex; align-items: center; width: 100%; justify-content: center; }
.book-sum-big.risk-limit {
  display: block;
  position: relative;
  min-height: 0;
  margin-bottom: 10px;
  text-align: center;
}
.risk-mark {
  position: absolute;
  top: 10px;
  left: 10px;
  z-index: 1;
  display: grid;
  place-items: center;
  box-sizing: border-box;
  width: 52px;
  height: 52px;
  border: 1px solid var(--line);
  background: var(--plate-2);
  color: var(--ink);
  font-style: normal;
  font-size: 26px;
  font-weight: 800;
  line-height: 1;
  overflow: hidden;
  white-space: nowrap;
}
.risk-limit > div { width: 100%; }
.risk-cells {
  display: grid;
  grid-template-columns: repeat(10, minmax(0, 1fr));
  gap: 4px;
  margin-top: 14px;
}
.risk-cells i {
  display: block;
  aspect-ratio: 1;
  background: var(--down);
  position: relative;
  overflow: hidden;
}
.risk-cells i::after {
  content: "";
  position: absolute;
  inset: 0;
  background: #2a2426;
  transform: scaleX(var(--lit, 0));
  transform-origin: left center;
}
.risk-limit-boxes { margin-top: 10px; text-align: initial; }
.book-sltp-hd.risk-limit-boxes {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 6px;
}
.book-sltp-hd.risk-limit-boxes .px-box {
  gap: 2px;
  width: 100%;
  min-width: 0;
  box-sizing: border-box;
  align-items: flex-start;
  padding: 8px 6px;
}
.book-sltp-hd.risk-limit-boxes .is-tp { text-align: left; }
.book-sltp-hd.risk-limit-boxes .is-tp .px-box { align-items: flex-start; }
.book-sltp-hd.risk-limit-boxes .is-close .px-box { border-color: var(--line); }
.book-sltp-hd.risk-limit-boxes .is-used .px-box { border-color: color-mix(in srgb, var(--down) 55%, var(--line)); }
.book-sltp-hd.risk-limit-boxes .px-box span { font-size: 13px; line-height: 1.2; white-space: normal; }
.book-sltp-hd.risk-limit-boxes .px-box b { font-size: 15px; overflow-wrap: anywhere; }
.risk-limit-net { display: block; margin-top: 16px; }
.risk-limit b.risk-limit-pnl { margin-top: 4px; font-size: 28px; }
.risk-limit-split {
  display: flex;
  justify-content: center;
  gap: 16px;
  margin: 8px 0 0;
}
.risk-limit-split i {
  color: var(--mist);
  font-style: normal;
  font-family: var(--mono);
  font-size: 12px;
}
.risk-limit-split i.up, .risk-limit b.up { color: var(--up); }
.risk-limit-split i.down, .risk-limit b.down { color: var(--down); }
.risk-hd { align-items: center; }
.risk-hd .mini-sym { display: flex; flex-direction: column; min-width: 0; flex: 1; }
.risk-hd .book-sym { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.risk-hd .book-lots { color: var(--mist); font-size: 11px; }
.risk-amt { margin-left: auto; text-align: right; }
.risk-amt span { display: block; color: var(--mist); font-size: 11px; }
.risk-amt strong { font-family: var(--mono); font-size: 22px; font-weight: 800; letter-spacing: -0.04em; line-height: 1; }
.pos-tags .tag-count { right: -2px; transform: scale(1.1); }
.book-sum { display: flex; flex-direction: column; gap: 8px; padding: 10px; }
.book-sum-row { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
.book-sum-row div { min-width: 0; padding: 8px 4px; background: var(--plate-2); text-align: center; }
.book-sum-row span { display: block; color: var(--mist); font-size: 11px; }
.book-sum-row b { display: block; margin-top: 4px; font-family: var(--mono); font-size: 13px; letter-spacing: -0.03em; }
.book-sum-big {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 92px;
  padding: 14px 12px;
  text-align: center;
}
.book-sum-big span { display: block; color: var(--mist); font-size: 12px; letter-spacing: 0.08em; }
.book-sum-big b {
  display: block;
  margin-top: 6px;
  font-family: var(--mono);
  font-size: 42px;
  font-weight: 800;
  letter-spacing: -0.05em;
  line-height: 1;
}
.book-hint { margin: 0 0 10px; color: var(--mist); font-size: 12px; line-height: 1.45; }
.book-card { margin-bottom: 10px; }
.bind-error { margin: 0 0 8px; color: #fecaca; font-size: 13px; font-weight: 700; }
.hist-card .book-hd strong { margin-left: auto; font-family: var(--mono); }
.bind-error { margin: 0 0 8px; color: #fecaca; font-size: 13px; font-weight: 700; }
.bind-step { margin: 4px 0 12px; color: var(--ink); font-size: 15px; font-weight: 800; }
.bind-meter {
  height: 8px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--ink) 14%, transparent);
  overflow: hidden;
}
.bind-meter i {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: var(--up);
  transition: width .28s linear;
}
.bind-pct {
  display: block;
  margin: 8px 0 0;
  font-family: var(--mono);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.04em;
}
.bind-steps {
  display: flex;
  gap: 8px;
  margin: 16px 0 0;
  padding: 0;
  list-style: none;
}
.bind-steps li {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  color: var(--mist);
  font-size: 12px;
  font-weight: 700;
}
.bind-steps li i {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: 2px solid color-mix(in srgb, var(--ink) 28%, transparent);
  background: transparent;
}
.bind-steps li.on { color: var(--ink); }
.bind-steps li.on i,
.bind-steps li.done i {
  border-color: var(--up);
  background: var(--up);
}
.bind-steps li.on i { box-shadow: 0 0 0 4px rgba(61, 220, 151, 0.22); }
.bind-done {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 28px 18px 22px;
}
.bind-seal {
  width: 76px;
  height: 76px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: var(--up);
  background: rgba(61, 220, 151, 0.16);
  box-shadow: 0 0 0 8px rgba(61, 220, 151, 0.08);
  animation: bindPop .5s cubic-bezier(.2, 1.4, .4, 1);
}
.bind-seal svg { width: 36px; height: 36px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.bind-done h2 { margin: 16px 0 6px; font-size: 20px; }
.bind-login {
  margin: 0;
  font-family: var(--mono);
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.03em;
}
.bind-done .lead { margin: 6px 0 0; }
.bind-done .bind-ack {
  width: auto;
  min-width: 132px;
  margin-top: 18px;
  padding: 0 28px;
}
.bind-dlg {
  display: flex;
  flex-direction: column;
  width: min(100%, 420px);
  max-height: min(720px, calc(100dvh - 48px));
  overflow: hidden;
}
.bind-dlg .dlg-body { overflow: auto; }
.bind-dlg .bind-run,
.bind-dlg .bind-done { padding: 28px 18px 22px; }
.bind-dlg .dlg-actions .btn,
.bind-dlg .dlg-actions .dlg-cancel { min-height: 48px; }
@keyframes bindPop {
  0% { transform: scale(.55); opacity: 0; }
  100% { transform: scale(1); opacity: 1; }
}
.hist-card .book-hd strong.wait { color: var(--mist); font-weight: 700; }
.hist-card .book-hd .book-side,
.hist-card .book-hd .book-id { transform: translateY(-8px); }
.hist-card .book-hd strong.book-pnl { transform: translateY(4px); }
.book-hd { display: flex; align-items: flex-start; gap: 8px; min-width: 0; }
.book-hd strong { margin-left: auto; font-family: var(--mono); font-size: 16px; }
.book-hd.book-hd-main {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: start;
  column-gap: 8px;
}
.book-rr-slot { display: flex; justify-content: center; align-self: start; min-width: 0; }
.book-rr { display: flex; justify-content: center; align-self: start; justify-self: center; }
.book-hd-end { display: flex; align-items: flex-start; justify-content: flex-end; gap: 8px; min-width: 0; }
.book-open-id { display: flex; align-items: flex-start; gap: 8px; min-width: 0; }
.book-hd-main strong.book-pnl {
  margin-left: 0;
  justify-self: end;
  text-align: right;
  font-size: 28px;
  font-weight: 700;
  line-height: 1;
  transform: none;
}
.book-hd-main .book-x { transform: none; }
.book-hd-main .hedge-pnl { font-size: 28px; font-weight: 700; line-height: 1; }
.book-x {
  justify-self: end;
  width: 32px;
  height: 32px;
  padding: 0;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--ink);
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
  transform: translate(4px, -6px);
}
.book-side {
  flex: none;
  min-width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  font-size: 13px;
  font-weight: 800;
}
.book-side.long { color: var(--up); background: rgba(34, 197, 94, 0.16); }
.book-side.short { color: var(--down); background: rgba(239, 68, 68, 0.16); }
.book-id { min-width: 0; display: flex; flex-direction: column; }
.book-id b, .book-sym { font-size: 16px; letter-spacing: -0.03em; }
.book-id span, .book-meta { color: var(--mist); font-size: 11px; }
.book-expire { margin: 6px 0 0; color: var(--mist); font-size: 12px; }
.book-rr {
  margin: 0;
  padding: 4px 8px;
  border: 1px solid var(--line);
  background: var(--plate-2);
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 800;
  line-height: 1.3;
  white-space: nowrap;
}
.book-hd strong { margin-left: 0; }
.book-hd strong.book-pnl { margin-left: auto; }
.book-hd.book-hd-main strong.book-pnl { margin-left: 0; }
.book-lots { margin-left: auto; color: var(--ink); font-family: var(--mono); font-size: 13px; font-weight: 800; }
.book-mini { margin-bottom: 6px; padding: 8px 10px; }
.book-mini > button.book-hd {
  width: 100%;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  text-align: inherit;
  cursor: pointer;
}
.mini-more {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin-top: 8px;
  padding-top: 8px;
  border-top: 1px solid var(--line);
}
.mini-more span { display: block; color: var(--mist); font-size: 10px; }
.mini-more b { display: block; margin-top: 3px; font-size: 11px; font-weight: 700; overflow-wrap: anywhere; }
.book-mini .book-hd { align-items: center; }
.book-mini .book-sym { font-size: 13px; }
.book-mini .mini-sym { display: flex; flex-direction: column; align-items: flex-start; min-width: 0; }
.book-mini .mini-sym .book-sym { height: 16px; line-height: 16px; }
.book-mini .mini-sym .book-lots { margin-left: 0; margin-top: 0; color: var(--ink); font-size: 10px; height: 14px; line-height: 14px; }
.book-mini.long > .book-hd,
.book-mini.short > .book-hd {
  display: grid;
  grid-template-columns: 28px 78px minmax(0, 1fr) auto;
  align-items: center;
  column-gap: 8px;
  width: 100%;
}
.book-mini.long .mini-sym,
.book-mini.short .mini-sym,
.book-mini.long .book-hold,
.book-mini.short .book-hold {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  gap: 6px;
  align-self: center;
  min-width: 0;
  margin-top: 0;
  overflow: hidden;
}
.book-mini.long .book-hold,
.book-mini.short .book-hold { justify-self: start; }
.book-mini .book-ticket,
.book-mini .book-swap { font-size: 10px; white-space: nowrap; }
.book-mini .book-ticket { height: 16px; line-height: 16px; }
.book-mini .book-swap { height: 14px; line-height: 14px; }
.book-mini.long .book-hd strong.book-pnl,
.book-mini.short .book-hd strong.book-pnl {
  margin-left: 0;
  justify-self: end;
  text-align: right;
  font-variant-numeric: tabular-nums;
}
.book-mini .book-ticket { color: var(--mist); font-size: 10px; }
.book-mini .book-swap { font-family: var(--mono); font-size: 10px; font-weight: 700; color: var(--mist); }
.book-mini .book-swap.up { color: var(--up); }
.book-mini .book-swap.down { color: var(--down); }
.book-mini .book-pend { display: inline-flex; align-items: baseline; gap: 6px; min-width: 0; }
.book-mini .book-pend i { color: var(--mist); font-style: normal; font-size: 10px; font-weight: 700; }
.book-mini .book-pend b { color: var(--ink); font-size: 11px; font-weight: 800; }
.book-mini .book-lots { margin-left: auto; }
.book-mini .book-hd strong.book-pnl { margin-left: 10px; font-size: 14px; }
.book-meta { margin: 8px 0 0; }
.hist-times {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}
.hist-times .hist-in,
.hist-times .hist-out { font-size: 9px; }
.hist-times .hist-in { flex: 1; min-width: 0; }
.hist-times .hist-out { flex: 1; min-width: 0; text-align: right; }
.hist-rr-box {
  flex: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 22px;
  padding: 0 8px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--plate-2);
  color: var(--ink);
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1;
  white-space: nowrap;
}
.book-px, .book-pips, .book-stops, .book-money, .book-gap-ends {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 6px;
  margin-top: 10px;
}
.book-stops, .book-money, .book-gap-ends { grid-template-columns: 1fr 1fr; }
.book-px div, .book-pips div, .book-stops div, .book-money div, .book-gap-ends div {
  min-width: 0;
  padding: 8px 4px;
  background: var(--plate-2);
  text-align: center;
}
.book-card.long .book-px div,
.book-card.long .book-pips div {
  border: 1px dashed color-mix(in srgb, var(--up) 50%, transparent);
  background: rgba(34, 197, 94, 0.08);
}
.book-card.short .book-px div,
.book-card.short .book-pips div {
  border: 1px dashed color-mix(in srgb, var(--down) 50%, transparent);
  background: rgba(239, 68, 68, 0.08);
}
.book-px b.held { font-size: 12px; letter-spacing: -0.04em; }
.book-px b.book-cmt { font-size: 11px; letter-spacing: 0; word-break: break-all; }
.book-px span, .book-pips span, .book-stops span, .book-money span, .book-gap-ends span, .book-sltp-hd span {
  display: block;
  color: var(--mist);
  font-size: 11px;
}
.book-px b, .book-pips b, .book-stops b, .book-money b, .book-gap-ends b, .book-sltp-hd b {
  display: block;
  margin-top: 3px;
  font-family: var(--mono);
  font-size: 13px;
}
.book-px small, .book-pips small, .book-gap-top small { margin-left: 2px; color: var(--mist); font-size: 11px; font-weight: 600; }
.book-sltp { margin-top: 10px; }
.book-sltp-hd { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); gap: 6px; align-items: start; }
.book-sltp-hd .px-box {
  display: inline-flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
  min-width: calc(72px * 1.1);
  padding: 6px 8px;
  border: 1px solid var(--line);
  background: var(--plate-2);
}
.book-sltp-hd .is-sl .px-box { border-color: color-mix(in srgb, var(--down) 55%, var(--line)); }
.book-sltp-hd .is-tp .px-box { align-items: flex-end; border-color: color-mix(in srgb, var(--up) 55%, var(--line)); }
.book-sltp-hd .px-box b { margin-top: 0; }
.book-sltp-hd .is-sl { text-align: left; }
.book-sltp-hd .is-tp { text-align: right; }
.book-rail { display: flex; align-items: center; gap: 6px; margin-top: 8px; }
.book-rail .rail-tag { flex: none; font-family: var(--mono); font-size: 10px; font-weight: 800; letter-spacing: 0.04em; }
.book-rail .rail-tag.is-sl { color: var(--down); }
.book-rail .rail-tag.is-tp { color: var(--up); }
.book-rail .book-track { flex: 1; margin-top: 0; }
.book-track {
  position: relative;
  height: 10px;
  margin-top: 8px;
  background: var(--plate-2);
  overflow: hidden;
}
.book-track i, .book-track b { position: absolute; top: 0; bottom: 0; }
.book-track .sl { left: 0; background: rgba(239, 68, 68, 0.28); }
.book-track .tp { background: rgba(34, 197, 94, 0.22); }
.book-track .fill { background: var(--up); }
.book-sltp.lose .fill { background: var(--down); }
.book-track b { width: 2px; background: #fff; }
.book-track .arrow {
  position: absolute;
  top: 1px;
  z-index: 2;
  width: 0;
  height: 0;
}
.book-track .arrow.right {
  border-top: 4px solid transparent;
  border-bottom: 4px solid transparent;
  border-left: 7px solid #fff;
}
.book-track .arrow.left {
  border-top: 4px solid transparent;
  border-bottom: 4px solid transparent;
  border-right: 7px solid #fff;
  transform: translateX(-100%);
}
.book-axis { display: flex; justify-content: space-between; gap: 8px; margin-top: 4px; font-family: var(--mono); font-size: 12px; font-weight: 700; }
.book-axis span { white-space: nowrap; }
.book-stops em { display: block; margin-top: 2px; color: var(--mist); font-style: normal; font-size: 11px; }
.book-stops .is-sl b { color: var(--down); }
.book-stops .is-tp b { color: var(--up); }
.book-gap { margin-top: 10px; }
.book-gap-top { display: flex; align-items: baseline; justify-content: space-between; color: var(--mist); font-size: 12px; }
.book-gap-top b { color: var(--ink); font-family: var(--mono); font-size: 20px; }
.book-track.thin { height: 6px; }
.book-track.thin .fill { left: 0; width: 100%; background: var(--brand); }
.book-card > .btn, .book-all { width: 100%; margin-top: 10px; }
.book-sum-row b.up, .book-sum-big b.up, .book-hd strong.up, .book-money b.up, .book-px b.up, .book-pips .up, .book-sltp-hd b.up, .book-axis .up { color: var(--up); }
.book-sum-row b.down, .book-sum-big b.down, .book-hd strong.down, .book-money b.down, .book-px b.down, .book-pips .down, .book-sltp-hd b.down, .book-axis .down { color: var(--down); }

.acc-rail { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.dash-bind { width: 100%; margin-top: 2px; }
.acc-actions { display: flex; flex-direction: column; gap: 8px; }
.acc-actions .btn { width: 100%; }
.notice-row b { color: var(--ink); font-weight: 700; }
.acc-rail-btn span { font-size: 11px; line-height: 1.15; text-align: center; }
.role-scroll { display: flex; flex-direction: column; gap: 10px; }
.role-poster { position: relative; height: 196px; overflow: hidden; border-radius: 16px; background: var(--plate); }
.role-poster img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 16%; }
.role-poster-veil { position: absolute; inset: 0; background: linear-gradient(180deg, transparent 30%, rgba(0, 0, 0, 0.82) 100%); }
.role-poster-copy { position: absolute; left: 12px; right: 12px; bottom: 12px; }
.role-poster-copy b { display: block; font-size: 18px; line-height: 1.25; }
.role-poster-copy small { display: block; margin-top: 2px; color: #f5f0f0; font-size: 13px; }
.run-log { display: flex; flex-direction: column; gap: 8px; }
.run-log time { color: var(--mist); font-size: 12px; }
.run-log b { display: block; margin-top: 4px; }
.run-log b.ok { color: var(--up); }
.run-log b.bad { color: var(--down); }
.run-log p { margin: 6px 0 0; font-size: 14px; line-height: 1.45; white-space: pre-line; }
.run-log .log-card {
  display: block;
  width: 100%;
  margin: 0;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--plate);
  color: inherit;
  font: inherit;
  text-align: left;
  cursor: pointer;
  appearance: none;
}
.run-log .log-card:active { opacity: 0.82; }
.log-name { color: var(--ink); font-weight: 700; overflow-wrap: anywhere; }
.log-names { margin: 4px 0 0; color: var(--ink); font-size: 13px; font-weight: 700; line-height: 1.45; }
.log-dlg { max-height: calc(100% - 24px); display: flex; flex-direction: column; }
.log-dlg .dlg-head { flex: none; }
.log-dlg .dlg-body { overflow: auto; }
.log-sum { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.log-sum span, .log-sub, .log-more, .log-when, .log-sec, .log-note { color: var(--mist); }
.log-sub { font-size: 13px; }
.log-more { display: block; margin-top: 8px; font-size: 12px; font-weight: 700; }
.log-pnl { color: #ff3b30; font-weight: 800; font-variant-numeric: tabular-nums; }
.log-sum .log-pnl { font-family: var(--mono); font-size: 22px; }
.log-total { display: flex; flex-direction: column; gap: 4px; margin: 8px 0 14px; padding: 12px; border-radius: 12px; background: rgba(255, 59, 48, 0.08); }
.log-total .log-pnl { font-family: var(--mono); font-size: 28px; }
.log-total em { color: var(--mist); font-style: normal; font-size: 13px; }
.log-sec { margin: 0 0 8px; font-size: 12px; font-weight: 700; }
.log-legs { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.log-leg { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 12px; border-radius: 12px; background: rgba(255, 255, 255, 0.04); }
.log-leg div { min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.log-leg b { font-size: 15px; }
.log-leg span { color: var(--mist); font-size: 12px; }
.log-leg .log-pnl { font-family: var(--mono); font-size: 16px; }
.log-note { margin: 12px 0 0; font-size: 13px; line-height: 1.5; }
.log-when { margin: 0; font-size: 12px; }
.acct-gate {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
  margin-bottom: 12px;
}
.acct-gate button {
  min-height: 44px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: var(--plate);
  color: var(--mist);
  font-weight: 700;
}
.acct-gate button.on { background: var(--brass); color: #1a1408; border-color: var(--brass); }
.acct-auth .login-panel {
  padding: 22px 16px 18px;
  border-radius: 16px;
  background: var(--plate);
  box-shadow: none;
}
.acct-auth .login-input,
.acct-auth .field .login-input input { background: var(--plate-2); }
.acct-auth .login-input:focus-within,
.acct-auth .field .login-input:focus-within input { background: var(--plate-2); }
.acct-auth .field .login-input input:-webkit-autofill { box-shadow: 0 0 0 1000px var(--plate-2) inset; }
.acct-auth .login h1 { font-size: 26px; }
.fund-card .acc-h { color: var(--ink); font-size: 14px; }
.fund-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 18px; margin: 2px 0 4px; }
.fund-grid span { display: block; color: var(--mist); font-size: 12px; }
.fund-grid b { display: block; margin-top: 2px; font-family: var(--mono); font-size: 22px; font-weight: 650; letter-spacing: -0.04em; }
.fund-card .acc-item { margin-top: 8px; padding-top: 12px; }
.who-card .sig-ava { border-radius: 50%; }
.who-card .lead { margin-top: 8px; line-height: 1.55; }
.who-card .meta em { display: inline-flex; align-items: center; gap: 4px; }
.who-card .meta svg { width: 13px; height: 13px; stroke: currentColor; fill: none; stroke-width: 1.7; }
.swap-row {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  min-height: 64px;
  margin-top: 8px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--plate-2);
  color: var(--ink);
  text-align: left;
}
.swap-row.on { border-color: var(--brass); }
.swap-row .sig-ttl { min-width: 0; flex: 1; }
.swap-row b, .swap-row small { display: block; }
.swap-row small { color: var(--mist); font-size: 12px; }
.swap-row em { flex: none; color: var(--brass); font-style: normal; font-size: 12px; font-weight: 700; }
.role-entry {
  position: relative;
  display: block;
  width: 100%;
  height: 168px;
  margin: 0 0 12px;
  padding: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--plate);
  text-align: left;
  cursor: pointer;
}
.role-entry img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 18%;
}
.role-entry-veil {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, transparent 42%, rgba(0, 0, 0, 0.72) 100%),
    linear-gradient(90deg, rgba(0, 0, 0, 0.72) 0%, rgba(0, 0, 0, 0.28) 70%, rgba(0, 0, 0, 0.2) 100%);
}
.role-entry-copy {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  height: 100%;
  padding: 16px;
  transform: translateY(-4px);
}
.role-entry-copy b { font-size: 22px; line-height: 1.25; }
.role-entry-line {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 4px;
}
.role-entry-line small {
  min-width: 0;
  overflow: hidden;
  color: var(--ink);
  font-size: 13px;
  line-height: 1.4;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.role-entry-line i {
  flex: none;
  color: var(--brass);
  font-style: normal;
  font-size: 13px;
  font-weight: 750;
  line-height: 1.4;
  letter-spacing: 0.04em;
  white-space: nowrap;
}
.role-entry:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }
.role-mask {
  position: absolute;
  z-index: 45;
  inset: 0;
  display: flex;
  align-items: flex-end;
  padding: 12px;
  background: rgba(0, 0, 0, 0.72);
}
.role-panel {
  width: 100%;
  max-height: 100%;
  overflow: auto;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: var(--plate);
  color: var(--ink);
}
.role-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.role-head i { display: block; color: var(--brass); font-style: normal; font-size: 12px; font-weight: 750; }
.role-head h2 { margin: 2px 0 0; font-size: 20px; }
.role-x {
  width: 44px;
  height: 44px;
  flex: none;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 12px;
  background: var(--plate-2);
  color: var(--ink);
  font-size: 22px;
  line-height: 1;
}
.role-portrait {
  display: block;
  width: 100%;
  height: 240px;
  margin-top: 10px;
  object-fit: cover;
  object-position: center 14%;
  border-radius: 16px;
  background: var(--navy);
}
.role-face { margin: 10px 0 0; color: var(--mist); font-size: 13px; }
.role-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 10px; }
.role-stats div { padding: 10px; border-radius: 12px; background: rgba(0, 0, 0, 0.28); }
.role-stats span { display: block; color: var(--mist); font-size: 12px; }
.role-stats b { font-variant-numeric: tabular-nums; }
.role-pager { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: 12px; }
.role-pager > button {
  min-width: 72px;
  min-height: 44px;
  padding: 0 12px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 12px;
  background: var(--plate-2);
  color: var(--ink);
}
.role-dots { display: flex; gap: 8px; }
.role-dot {
  width: 36px;
  height: 36px;
  padding: 0;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: transparent;
}
.role-dot.on { background: var(--brass); border-color: var(--brass); }
.role-ok {
  width: 100%;
  min-height: 48px;
  margin-top: 12px;
  border: 0;
  border-radius: 12px;
  background: var(--brass);
  color: #1a1408;
  font-weight: 800;
}
.role-x:focus-visible, .role-pager > button:focus-visible, .role-dot:focus-visible, .role-ok:focus-visible, .role-panel:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 2px;
}
html[data-m-axi="1"] .mast-logo,
html[data-m-axi="1"] .mast-logo img,
html[data-m-style="crimson-pulse"] .mast-logo,
html[data-m-style="crimson-pulse"] .mast-logo img,
html[data-m-axi="1"] .mast-mark,
html[data-m-style="crimson-pulse"] .mast-mark {
  width: 42px;
  height: 42px;
  min-width: 42px;
  max-width: 42px;
}
html[data-m-axi="1"] .mast-name,
html[data-m-style="crimson-pulse"] .mast-name {
  font-size: 19px;
  background-image: linear-gradient(90deg, #67e8f9 0%, #38bdf8 22%, #6366f1 48%, #22d3ee 74%, #34d399 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
}
html[data-m-axi="1"] .mast-name.is-aurora,
html[data-m-style="crimson-pulse"] .mast-name.is-aurora { background-image: linear-gradient(90deg, #4ade80 0%, #2dd4bf 34%, #38bdf8 68%, #818cf8 100%); }
html[data-m-axi="1"] .mast-name.is-dusk,
html[data-m-style="crimson-pulse"] .mast-name.is-dusk { background-image: linear-gradient(90deg, #fb7185 0%, #e879f9 36%, #818cf8 70%, #38bdf8 100%); }
html[data-m-axi="1"] .mast-name.is-ember,
html[data-m-style="crimson-pulse"] .mast-name.is-ember { background-image: linear-gradient(90deg, #fde68a 0%, #fb923c 38%, #ef4444 72%, #f43f5e 100%); }
html[data-m-axi="1"] .mast-name.is-rose,
html[data-m-style="crimson-pulse"] .mast-name.is-rose { background-image: linear-gradient(90deg, #fda4af 0%, #f472b6 34%, #c084fc 68%, #818cf8 100%); }
html[data-m-axi="1"] .mast-name.is-ocean,
html[data-m-style="crimson-pulse"] .mast-name.is-ocean { background-image: linear-gradient(90deg, #22d3ee 0%, #0ea5e9 36%, #2563eb 70%, #7c3aed 100%); }
html[data-m-axi="1"] .mast-name.is-citrus,
html[data-m-style="crimson-pulse"] .mast-name.is-citrus { background-image: linear-gradient(90deg, #bef264 0%, #facc15 36%, #fb923c 70%, #f97316 100%); }
html[data-m-axi="1"] .mast-name.is-ice,
html[data-m-style="crimson-pulse"] .mast-name.is-ice { background-image: linear-gradient(90deg, #e0f2fe 0%, #7dd3fc 34%, #60a5fa 68%, #a5b4fc 100%); }
html[data-m-axi="1"] .mast-name.is-neon,
html[data-m-style="crimson-pulse"] .mast-name.is-neon { background-image: linear-gradient(90deg, #f472b6 0%, #22d3ee 40%, #a3e635 74%, #4ade80 100%); }
html[data-m-axi="1"] .mast-slogan,
html[data-m-style="crimson-pulse"] .mast-slogan {
  font-size: 15px;
  color: #8d939c;
  border-left-color: rgba(141, 147, 156, 0.45);
  font-weight: 500;
}
html[data-m-style="scarlet-bronze"] .mast-slogan,
html[data-m-style="crimson-gold"] .mast-slogan,
html[data-m-style="garnet-amber"] .mast-slogan,
html[data-m-style="arctic-clean"] .mast-slogan,
html[data-m-style="tech-blue"] .mast-slogan,
html[data-m-style="system-clear"] .mast-slogan {
  color: #5c6570;
  border-left-color: rgba(92, 101, 112, 0.45);
}
html[data-m-style="scarlet-bronze"] #app,
html[data-m-style="crimson-gold"] #app,
html[data-m-style="garnet-amber"] #app,
html[data-m-style="arctic-clean"] #app,
html[data-m-style="tech-blue"] #app,
html[data-m-style="system-clear"] #app {
  background: var(--navy);
}
@media (max-height: 700px) {
  .role-entry { height: 140px; }
  .role-portrait { height: 180px; }
}
@media (prefers-reduced-motion: reduce) {
  .role-entry, .role-panel, .role-ok, .role-pager > button { transition: none; }
}
.swap-row:disabled { opacity: 1; }
.bound-accounts .btn-ghost { display: flex; width: 100%; margin-top: 8px; }
.eq-chart { position: relative; }
.eq-amt {
  position: absolute;
  z-index: 1;
  color: var(--ink);
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 700;
  line-height: 1;
  white-space: nowrap;
  pointer-events: none;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.72);
}
.eq-amt.eq-head { transform: translate(2px, -16px); }
.eq-amt.eq-tail { transform: translate(-100%, -16px); }
.eq-amt.eq-head.is-below { transform: translate(2px, 8px); }
.eq-amt.eq-tail.is-below { transform: translate(-100%, 8px); }
.who-card .acc-who { align-items: center; }
.who-card .sig-ttl { flex: 1; min-width: 0; }
.who-card .name, .who-card .meta { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.who-swap { flex: none; min-height: 36px; margin-left: auto; padding: 0 10px; font-size: 12px; }
.login-remember { display: flex; align-items: center; gap: 8px; margin: 12px 0; color: var(--mist); font-size: 13px; }
.login-remember input { width: 16px; height: 16px; accent-color: var(--brass); }
.member-row { display: flex; align-items: center; gap: 8px; }
.member-row .swap-row { flex: 1; margin-top: 8px; }
.member-forget { flex: none; margin-top: 8px; padding: 8px 4px; border: 0; background: transparent; color: var(--mist); font-size: 12px; }
.member-login-title { margin-top: 16px; }
.member-sheet-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.member-sheet-head .acc-h { margin: 0; }
.member-x {
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 12px;
  background: transparent;
  color: var(--mist);
  font-size: 26px;
  line-height: 1;
}
.set-page { display: flex; flex-direction: column; gap: 12px; }
.set-sec { padding: 12px; border: 1px solid var(--line); background: var(--plate); }
.set-kicker { margin: 0 0 8px; font-size: 12px; letter-spacing: 0.14em; color: var(--mist); }
.set-subkicker { margin: 10px 0 6px; font-size: 11px; letter-spacing: 0.08em; color: var(--mist); }
.set-subkicker:first-of-type { margin-top: 0; }
.set-langs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
.set-langs button, .set-skin {
  min-height: 44px;
  border: 2px solid var(--line);
  background: transparent;
  color: var(--ink);
  font-weight: 800;
  font-size: 13px;
}
.set-langs button[aria-pressed="true"], .set-skin[aria-pressed="true"] {
  background: var(--brand);
  border-color: var(--brand);
  color: var(--cta-ink, #04140c);
}
.set-modes { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.set-mode {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 92px;
  padding: 12px 8px;
  border: 2px solid var(--line);
  background: transparent;
  color: var(--ink);
  font: inherit;
  font-weight: 800;
  font-size: 13px;
}
.set-mode-icon {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: var(--plate-2);
}
.set-mode-icon svg { width: 22px; height: 22px; stroke: currentColor; fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.set-mode[data-set-mode="night"] .set-mode-icon svg { fill: currentColor; stroke: none; }
.set-mode[aria-pressed="true"] {
  background: var(--brand);
  border-color: var(--brand);
  color: var(--cta-ink, #04140c);
}
.set-mode[aria-pressed="true"] .set-mode-icon {
  border-color: transparent;
  background: rgba(255, 255, 255, 0.18);
}
#app:has(> .mast) .stage {
  padding-top: 12px;
}
#app:has(> .mast):has(.ribbon-tags) .stage {
  padding-top: 6px;
}
.ribbon-tags.mode-tags {
  display: flex;
  gap: 6px;
  overflow-x: auto;
  margin: 0 -16px 0;
  padding: 4px 16px 6px;
  scrollbar-width: none;
}
.sig-rule {
  display: flex;
  align-items: center;
  height: 8px;
  margin: 0 0 8px;
}
.sig-rule::before,
.sig-rule::after {
  content: "";
  flex: 0 0 auto;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #c5ced6;
}
.sig-rule i {
  flex: 1 1 auto;
  height: 0;
  margin: 0 -1px;
  border-top: 1px dashed #c5ced6;
}
.ribbon-tags.mode-tags + .lane-tags {
  margin-top: 4px;
}
.lane-tags.mode-tags {
  display: flex;
  gap: 8px;
  margin-bottom: 10px;
  padding-top: 10px;
}
.ribbon-tags.mode-tags::-webkit-scrollbar { display: none; }
html[data-m-axi="1"] .ribbon-tags.mode-tags .tag,
html[data-m-style] .ribbon-tags.mode-tags .tag,
.ribbon-tags.mode-tags .tag,
html[data-m-axi="1"] .lane-tags.mode-tags .tag,
html[data-m-style] .lane-tags.mode-tags .tag,
.lane-tags.mode-tags .tag {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  width: auto;
  margin: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  color: var(--mist);
}
html[data-m-axi="1"] .ribbon-tags.mode-tags .tag,
.ribbon-tags.mode-tags .tag {
  flex-direction: row;
  min-height: 34px;
  padding: 7px 10px;
}
.ribbon-tags.mode-tags .tag::before,
.ribbon-tags.mode-tags .tag::after {
  content: "";
  position: absolute;
  z-index: 0;
  pointer-events: none;
}
.ribbon-tags.mode-tags .tag::before {
  inset: 0;
  background: #8b98a5;
  clip-path: polygon(8px 0, 100% 0, 100% calc(100% - 8px), calc(100% - 8px) 100%, 0 100%, 0 8px);
}
.ribbon-tags.mode-tags .tag::after {
  inset: 1.5px;
  background: #10281f;
  clip-path: polygon(6.5px 0, 100% 0, 100% calc(100% - 6.5px), calc(100% - 6.5px) 100%, 0 100%, 0 6.5px);
}
.lane-tags.mode-tags .tag {
  min-height: 0;
  padding: 6px 15px;
}
.lane-tags.mode-tags .tag::before,
.lane-tags.mode-tags .tag::after {
  content: "";
  position: absolute;
  z-index: 0;
  pointer-events: none;
}
.lane-tags.mode-tags .tag::before {
  inset: 0;
  background: #8b98a5;
  clip-path: polygon(6px 0, 100% 0, 100% calc(100% - 6px), calc(100% - 6px) 100%, 0 100%, 0 6px);
}
.lane-tags.mode-tags .tag::after {
  inset: 1.5px;
  background: #10281f;
  clip-path: polygon(4.5px 0, 100% 0, 100% calc(100% - 4.5px), calc(100% - 4.5px) 100%, 0 100%, 0 4.5px);
}
.ribbon-tags.mode-tags .tag b,
.lane-tags.mode-tags .tag b,
.lane-tags.mode-tags .tag span {
  position: relative;
  z-index: 1;
}
.ribbon-tags.mode-tags .tag b {
  font-size: 14px;
  font-weight: 650;
  line-height: 1.2;
  white-space: nowrap;
}
html[data-m-axi="1"] .ribbon-tags.mode-tags .tag.on,
html[data-m-style] .ribbon-tags.mode-tags .tag.on,
.ribbon-tags.mode-tags .tag.on,
html[data-m-axi="1"] .lane-tags.mode-tags .tag.on,
html[data-m-axi="1"] .lane-tags.mode-tags .tag.on[data-mode="active"],
html[data-m-axi="1"] .lane-tags.mode-tags .tag.on[data-mode="balance"],
html[data-m-axi="1"] .lane-tags.mode-tags .tag.on[data-mode="steady"] {
  border: 0;
  border-radius: 0;
  box-shadow: none;
  background: #3dff9a;
  color: #f4f7fb;
}
html[data-m-axi="1"] .ribbon-tags.mode-tags .tag.on,
html[data-m-style] .ribbon-tags.mode-tags .tag.on,
.ribbon-tags.mode-tags .tag.on {
  clip-path: none;
  background: transparent;
}
.ribbon-tags.mode-tags .tag.on::before {
  inset: 0;
  background: #3dff9a;
  clip-path: polygon(8px 0, 100% 0, 100% calc(100% - 8px), calc(100% - 8px) 100%, 0 100%, 0 8px);
}
html[data-m-axi="1"] .lane-tags.mode-tags .tag.on[data-mode],
.lane-tags.mode-tags .tag.on {
  clip-path: none;
  background: transparent;
}
.lane-tags.mode-tags .tag.on::before {
  content: "";
  position: absolute;
  z-index: 0;
  pointer-events: none;
  inset: 0;
  background: #3dff9a;
  clip-path: polygon(6px 0, 100% 0, 100% calc(100% - 6px), calc(100% - 6px) 100%, 0 100%, 0 6px);
}
.lane-tags.mode-tags .tag.on::after {
  content: "";
  position: absolute;
  z-index: 0;
  pointer-events: none;
  inset: 1.5px;
  background: #10281f;
  clip-path: polygon(4.5px 0, 100% 0, 100% calc(100% - 4.5px), calc(100% - 4.5px) 100%, 0 100%, 0 4.5px);
}
.lane-tags.mode-tags .lane-n {
  position: absolute;
  top: -7px;
  right: -4px;
  z-index: 2;
  display: grid;
  place-items: center;
  box-sizing: border-box;
  width: 18px;
  height: 18px;
  padding: 0;
  border-radius: 50%;
  background: #f4f7fb;
  color: #10281f;
  font-style: normal;
  font-size: 9px;
  font-weight: 800;
  line-height: 1;
  font-family: var(--mono);
  pointer-events: none;
}
html[data-m-axi="1"] .ribbon-tags.mode-tags .tag.on b,
html[data-m-style] .ribbon-tags.mode-tags .tag.on b,
.ribbon-tags.mode-tags .tag.on b,
.lane-tags.mode-tags .tag.on b,
html[data-m-axi="1"] .lane-tags.mode-tags .tag.on span {
  color: #f4f7fb;
  box-shadow: none;
  opacity: 1;
}
.ribbon-tags.mode-tags .tag:focus-visible,
.lane-tags.mode-tags .tag:focus-visible {
  outline: 2px solid #3dff9a;
  outline-offset: 2px;
}
.set-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 10px; }
.set-row b { font-size: 15px; }
.set-rocker {
  display: grid;
  grid-template-columns: 1fr 1fr;
  width: 132px;
  height: 52px;
  padding: 0;
  border: 2px solid var(--line);
  background: #101418;
  color: #8b938c;
  font-weight: 900;
  font-size: 18px;
}
.set-rocker span { display: grid; place-items: center; }
.set-rocker[aria-pressed="true"] span:first-child { background: var(--brand); color: var(--cta-ink, #04140c); }
.set-rocker[aria-pressed="false"] span:last-child { background: var(--down); color: #1a0508; }
.set-skins { display: flex; flex-direction: column; gap: 6px; max-height: 280px; overflow: auto; }
.set-skin { display: flex; align-items: center; gap: 8px; width: 100%; padding: 8px 10px; text-align: left; }
.set-swatch { width: 18px; height: 18px; flex: none; border: 1px solid rgba(255,255,255,.35); }
.book-kind { display: block; margin-top: 2px; color: var(--mist); font-family: var(--mono); font-size: 11px; letter-spacing: 0; }
.hedge-card { border-top: 3px solid #7dd3c7; }
.hedge-card.basket { border-top-color: var(--down); }
.hedge-head { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); align-items: start; column-gap: 8px; }
.hedge-card .book-x { transform: none; }
.hedge-tag { display: inline-flex; align-items: center; min-height: 26px; padding: 0 8px; border: 1px solid var(--line); font-size: 12px; }
.hedge-comment { margin: 6px 0 0; color: var(--mist); font-family: var(--mono); font-size: 12px; word-break: break-all; }
.hedge-money { text-align: right; }
.hedge-pnl { font-family: var(--mono); font-size: 28px; font-weight: 700; line-height: 1; }
.hedge-sub { margin: 4px 0 0; color: var(--mist); font-family: var(--mono); font-size: 12px; }
.hedge-legs { display: grid; gap: 8px; margin-top: 12px; }
.hedge-legs.two { grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); align-items: stretch; }
.hedge-legs.three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.hedge-leg { min-width: 0; padding: 8px; border: 1px solid var(--line); }
.hedge-leg strong { display: block; margin-top: 6px; font-size: 14px; letter-spacing: 0.02em; }
.hedge-leg span, .hedge-leg b { display: block; font-family: var(--mono); font-size: 12px; }
.hedge-leg b { margin-top: 4px; font-size: 14px; }
.hedge-leg b.up { color: var(--up); }
.hedge-leg b.down { color: var(--down); }
.hedge-side { display: inline-flex; align-items: center; min-height: 22px; padding: 0 6px; font-size: 12px; font-style: normal; }
.hedge-side.buy { background: var(--up); color: #052e16; }
.hedge-side.sell { background: var(--down); color: #fff; }
.hedge-vs { display: flex; align-items: center; justify-content: center; color: var(--mist); font-size: 12px; letter-spacing: 0.14em; }
.hedge-pillars { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; height: 64px; margin-top: 8px; align-items: end; }
.hedge-pillars i { display: block; min-height: 4px; }
.hedge-miss { margin: 8px 0 0; color: var(--mist); font-size: 12px; }
.hedge-bar { margin-top: 12px; }
.hedge-scale { display: flex; justify-content: space-between; gap: 8px; color: var(--mist); font-family: var(--mono); font-size: 12px; }
.hedge-track { position: relative; height: 10px; margin: 8px 0; }
.hedge-zero, .hedge-mark { position: absolute; top: -4px; width: 2px; height: 18px; }
.hedge-zero { background: var(--mist); }
.hedge-mark { width: 12px; height: 18px; margin-left: -6px; background: var(--ink); }
.hedge-pnl.up, .hedge-card .book-pnl.up { color: var(--up); }
.hedge-pnl.down, .hedge-card .book-pnl.down { color: var(--down); }
