:root {
  --bg0: #eef2f5;
  --bg1: #e3e9ee;
  --paper: #ffffff;
  --ink: #0b1220;
  --ink2: #243041;
  --mute: #536274;
  --line: #c8d2dc;
  --teal: #0a5f58;
  --teal-bg: #d8efe9;
  --amber: #b85a1a;
  --up: #046a3b;
  --up-bg: #d7f3e4;
  --down: #b12a1d;
  --down-bg: #f9e0dc;
  --wait: #7a5f12;
  --wait-bg: #f3e8c2;
  --buy: #046a3b;
  --buy-bg: #cdf0dd;
  --shadow: 0 1px 0 rgba(11,18,32,.05), 0 14px 36px rgba(11,18,32,.08);
  --radius: 14px;
  --font: "DM Sans", system-ui, sans-serif;
  --num: "JetBrains Mono", ui-monospace, monospace;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  height: 100%;
  color: var(--ink);
  font-family: var(--font);
  font-size: 18px;
  font-weight: 600;
  letter-spacing: -0.01em;
  background:
    radial-gradient(900px 420px at 0% 0%, #d9ebe8 0%, transparent 55%),
    radial-gradient(700px 380px at 100% 0%, #efe6d8 0%, transparent 50%),
    linear-gradient(180deg, var(--bg0), var(--bg1));
  -webkit-font-smoothing: antialiased;
  overflow: hidden;
}

body {
  display: flex;
  flex-direction: column;
}

.num {
  font-family: var(--num);
  font-variant-numeric: tabular-nums;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding: 1.25rem 1.75rem 1rem;
  border-bottom: 1px solid var(--line);
  background: rgba(243, 246, 248, 0.88);
  backdrop-filter: blur(12px);
  position: sticky;
  top: 0;
  z-index: 30;
}

.brand h1 {
  margin: 0;
  font-size: clamp(1.75rem, 3vw, 2.25rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  color: var(--teal);
  line-height: 1;
}

.brand p {
  margin: 0.35rem 0 0;
  color: var(--ink2);
  font-size: 0.92rem;
  font-weight: 600;
}

.top-meta {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

#clock {
  font-family: var(--num);
  font-weight: 600;
  color: var(--ink2);
  font-size: 0.95rem;
}

.pill {
  display: inline-flex;
  align-items: center;
  height: 2rem;
  padding: 0 0.75rem;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  border: 1px solid transparent;
}
.pill.ok { background: var(--up-bg); color: var(--up); }
.pill.warn { background: var(--wait-bg); color: var(--wait); }
.pill.bad { background: var(--down-bg); color: var(--down); }

.btn {
  height: 2.25rem;
  padding: 0 1rem;
  border: none;
  border-radius: 10px;
  background: var(--teal);
  color: #fff;
  font: inherit;
  font-weight: 700;
  font-size: 0.9rem;
  cursor: pointer;
}
.btn:hover { filter: brightness(1.05); }

main {
  max-width: 1680px;
  margin: 0 auto;
  padding: 1rem 1.25rem 2.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
}

.workspace {
  display: grid;
  grid-template-columns: minmax(340px, 0.95fr) minmax(520px, 1.35fr);
  gap: 0.9rem;
  align-items: start;
  min-height: 520px;
}

.col-left {
  position: sticky;
  top: 5.2rem;
  max-height: calc(100vh - 6.2rem);
  overflow: auto;
  padding: 0.9rem 0.85rem;
}

.col-right {
  min-width: 0;
}

.col-title {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 0.7rem;
  padding: 0 0.15rem;
}
.col-title h2 {
  margin: 0;
  font-size: 1.1rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.pred-list {
  display: grid;
  gap: 0.65rem;
}

.pred-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 0.9rem;
}

.toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1rem;
  flex-wrap: wrap;
}

.filters {
  display: flex;
  gap: 0.75rem;
  align-items: end;
  flex-wrap: wrap;
}

.filters label {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}

.filters label > span,
.filters .check span {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--mute);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.filters select {
  height: 2.4rem;
  min-width: 7.5rem;
  padding: 0 0.75rem;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--paper);
  font: inherit;
  font-weight: 600;
  color: var(--ink);
}

.filters .check {
  flex-direction: row;
  align-items: center;
  gap: 0.45rem;
  height: 2.4rem;
  padding: 0 0.85rem;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--paper);
}

.filters .check input {
  width: 1.05rem;
  height: 1.05rem;
  accent-color: var(--teal);
}

.hint {
  margin: 0;
  color: var(--mute);
  font-size: 0.85rem;
  font-weight: 600;
}

.section-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
  margin-bottom: 0.65rem;
}
.section-head h2 {
  margin: 0;
  font-size: 1.35rem;
  font-weight: 800;
  letter-spacing: -0.03em;
}

.pred-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 0.9rem;
}

.pred-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 1.05rem 1.1rem;
  cursor: pointer;
  transition: border-color .15s, transform .15s, box-shadow .15s;
}
.pred-card:hover {
  border-color: #b7c8d2;
  transform: translateY(-1px);
}
.pred-card.active {
  border-color: var(--teal);
  box-shadow: 0 0 0 2px rgba(10,95,88,.16), var(--shadow);
}
.pred-card.is-buy {
  background: linear-gradient(165deg, #e8f8ef 0%, #fff 55%);
  border-color: rgba(4,106,59,.35);
}
.pred-card.is-call {
  border-color: rgba(10,95,88,.22);
}
.pred-card.is-mute {
  opacity: 0.78;
}
.pred-card.is-mute:hover,
.pred-card.is-mute.active {
  opacity: 1;
}

.pred-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 0.75rem;
  margin-bottom: 0.85rem;
}
.pred-top .sym {
  font-size: 1.6rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1;
}
.pred-top .win {
  margin-top: 0.35rem;
  color: var(--ink2);
  font-size: 0.86rem;
  font-weight: 700;
}

.verdict-box {
  min-width: 88px;
  text-align: center;
  padding: 0.45rem 0.55rem;
  border-radius: 12px;
}
.verdict-box.up { background: var(--up-bg); color: var(--up); }
.verdict-box.down { background: var(--down-bg); color: var(--down); }
.verdict-box.wait { background: var(--wait-bg); color: var(--wait); }
.verdict-box .v-lab {
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  opacity: 0.8;
}
.verdict-box .v-val {
  margin-top: 0.1rem;
  font-size: 1.35rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.pred-mid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.55rem;
  margin-bottom: 0.85rem;
}
.pred-mid .lab,
.pred-odds .lab,
.edge-mini .lab {
  display: block;
  font-size: 0.74rem;
  font-weight: 800;
  color: var(--mute);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 0.2rem;
}
.pred-mid .val {
  font-size: 1.08rem;
  font-weight: 700;
}
.pred-mid .sub,
.pred-odds .sub {
  margin-top: 0.15rem;
  font-size: 0.84rem;
  font-weight: 700;
  color: var(--ink2);
}

.pred-odds {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.65rem;
  margin-bottom: 0.85rem;
}
.odds-col {
  padding: 0.65rem 0.7rem;
  border-radius: 10px;
  background: #f4f7f9;
  border: 1px solid var(--line);
}
.odds-col .val {
  font-size: 1.25rem;
  font-weight: 800;
}

.pred-foot {
  display: grid;
  grid-template-columns: 1.2fr auto;
  gap: 0.75rem;
  align-items: end;
}
.edge-mini .nums {
  display: flex;
  align-items: baseline;
  gap: 0.45rem;
}
.edge-mini .edge {
  font-size: 1.25rem;
  font-weight: 800;
}
.edge-mini .p {
  color: var(--mute);
  font-weight: 700;
  font-size: 0.85rem;
}
.exec {
  text-align: right;
}
.exec .badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 112px;
  height: 2.4rem;
  padding: 0 0.8rem;
  border-radius: 10px;
  font-size: 0.92rem;
  font-weight: 800;
}
.exec .badge.buy {
  background: var(--buy);
  color: #fff;
}
.exec .badge.no {
  background: #eef2f5;
  color: var(--mute);
}
.exec .conf {
  margin-top: 0.3rem;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--mute);
}

.verdict-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.65rem;
  margin-bottom: 1rem;
}
.vs-item {
  padding: 0.7rem 0.75rem;
  border-radius: 10px;
  background: #f4f7f9;
  border: 1px solid var(--line);
}
.vs-item.up { background: var(--up-bg); border-color: rgba(4,106,59,.2); }
.vs-item.down { background: var(--down-bg); border-color: rgba(177,42,29,.2); }
.vs-item .lab {
  display: block;
  font-size: 0.74rem;
  font-weight: 800;
  color: var(--mute);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 0.25rem;
}
.vs-item strong {
  font-size: 1.15rem;
  font-weight: 800;
}

.step-key {
  background: rgba(216, 239, 233, 0.55);
  border-radius: 10px;
  padding-left: 0.35rem !important;
  padding-right: 0.35rem !important;
}
.step-key .v {
  font-size: 1.4rem !important;
}

.cards {
  display: grid;
  gap: 0.75rem;
}

.card {
  display: grid;
  grid-template-columns: 140px 1.4fr 1fr 1.1fr 120px;
  gap: 1rem;
  align-items: center;
  padding: 1rem 1.15rem;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  cursor: pointer;
  transition: border-color .15s, transform .15s, box-shadow .15s;
}
.card:hover {
  border-color: #b7c8d2;
  transform: translateY(-1px);
}
.card.active {
  border-color: var(--teal);
  box-shadow: 0 0 0 2px rgba(12,107,98,.15), var(--shadow);
}
.card.is-buy {
  background: linear-gradient(90deg, #eafaf2 0%, #fff 42%);
  border-color: rgba(6,122,69,.35);
}
.card.is-mute {
  opacity: 0.72;
}
.card.is-mute:hover,
.card.is-mute.active {
  opacity: 1;
}

.mkt .sym {
  font-size: 1.55rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1;
  color: var(--ink);
}
.mkt .meta {
  margin-top: 0.4rem;
  display: flex;
  gap: 0.45rem;
  align-items: center;
  color: var(--ink2);
  font-weight: 700;
  font-size: 0.95rem;
}
.mkt .chip {
  display: inline-flex;
  align-items: center;
  height: 1.4rem;
  padding: 0 0.45rem;
  border-radius: 6px;
  background: var(--teal-bg);
  color: var(--teal);
  font-size: 0.75rem;
  font-weight: 700;
}
.mkt .left {
  color: var(--mute);
  font-family: var(--num);
  font-size: 0.8rem;
  font-weight: 600;
}

.prices {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.65rem;
}
.prices .cell .lab {
  display: block;
  font-size: 0.78rem;
  font-weight: 800;
  color: var(--mute);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.25rem;
}
.prices .cell .val {
  font-size: 1.2rem;
  line-height: 1.15;
  font-weight: 700;
  color: var(--ink);
}
.prices .cell .sub {
  margin-top: 0.2rem;
  font-size: 0.88rem;
  font-weight: 700;
}

.signal {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}
.signal .row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 0.5rem;
}
.signal .lab {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--mute);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.signal .val {
  font-size: 1rem;
}
.side-tag {
  display: inline-flex;
  align-items: center;
  height: 1.55rem;
  padding: 0 0.55rem;
  border-radius: 7px;
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.04em;
}
.side-tag.up { background: var(--up-bg); color: var(--up); }
.side-tag.down { background: var(--down-bg); color: var(--down); }
.side-tag.wait { background: var(--wait-bg); color: var(--wait); }

.edge-block .lab {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--mute);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.edge-block .nums {
  margin-top: 0.2rem;
  display: flex;
  align-items: baseline;
  gap: 0.55rem;
}
.edge-block .edge {
  font-size: 1.35rem;
  font-weight: 700;
}
.edge-block .p {
  font-size: 0.95rem;
  color: var(--ink2);
  font-weight: 700;
}
.bar {
  margin-top: 0.45rem;
  height: 8px;
  border-radius: 999px;
  background: #e8eef2;
  overflow: hidden;
  position: relative;
}
.bar > i {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #9ad7c6, var(--teal));
}
.bar.neg > i { background: linear-gradient(90deg, #f0b4ad, var(--down)); }
.bar .mark {
  position: absolute;
  top: -3px;
  bottom: -3px;
  width: 2px;
  background: var(--ink);
  opacity: 0.35;
}

.decision {
  text-align: center;
}
.decision .badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 96px;
  height: 2.5rem;
  padding: 0 0.85rem;
  border-radius: 10px;
  font-size: 0.95rem;
  font-weight: 800;
  letter-spacing: 0.02em;
}
.decision .badge.buy {
  background: var(--buy);
  color: #fff;
  box-shadow: 0 8px 18px rgba(6,122,69,.22);
}
.decision .badge.no {
  background: #eef2f5;
  color: var(--mute);
}
.decision .ask {
  margin-top: 0.35rem;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--mute);
}

.up { color: var(--up); }
.down { color: var(--down); }
.wait { color: var(--wait); }

.detail { margin-top: 0; }
.col-right .detail-empty,
.detail-empty {
  padding: 2.5rem 1rem;
  text-align: center;
  color: var(--mute);
  font-weight: 600;
  border: 1px dashed var(--line);
  border-radius: var(--radius);
  background: rgba(255,255,255,.55);
  min-height: 280px;
  display: grid;
  place-items: center;
}

.detail-stack {
  display: grid;
  gap: 1rem;
}

.panel {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 1.2rem 1.25rem;
}
.panel h2 {
  margin: 0 0 0.95rem;
  font-size: 1.25rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.banner {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: center;
  padding: 0.95rem 1rem;
  border-radius: 12px;
  margin-bottom: 1rem;
  border: 1px solid var(--line);
}
.banner.buy {
  background: var(--buy-bg);
  border-color: rgba(6,122,69,.28);
}
.banner.no { background: #f4f7f9; }
.banner.lean-up {
  background: linear-gradient(90deg, var(--up-bg), #fff);
  border-color: rgba(4,106,59,.28);
}
.banner.lean-down {
  background: linear-gradient(90deg, var(--down-bg), #fff);
  border-color: rgba(177,42,29,.28);
}
.banner .big {
  font-size: 1.55rem;
  font-weight: 800;
  letter-spacing: -0.03em;
}
.banner .why {
  margin-top: 0.25rem;
  color: var(--ink2);
  font-weight: 600;
  font-size: 0.92rem;
}
.banner .right {
  text-align: right;
  color: var(--ink2);
  font-weight: 700;
}
.banner .slug {
  margin-top: 0.2rem;
  font-size: 0.75rem;
  color: var(--mute);
  font-family: var(--num);
  max-width: 220px;
  word-break: break-all;
}

.steps {
  display: grid;
  gap: 0;
}
.step {
  display: grid;
  grid-template-columns: 2rem 1fr;
  gap: 0.65rem;
  padding: 0.7rem 0;
  border-bottom: 1px solid var(--line);
}
.step:last-child { border-bottom: 0; }
.step .n {
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--teal-bg);
  color: var(--teal);
  font-weight: 800;
  font-size: 0.85rem;
}
.step .t {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--mute);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.step .v {
  margin-top: 0.2rem;
  font-size: 1.28rem;
  font-weight: 800;
  color: var(--ink);
}
.step .d {
  margin-top: 0.25rem;
  color: var(--ink2);
  font-size: 0.95rem;
  font-weight: 700;
}
.depth-empty {
  color: var(--mute);
  font-weight: 700;
  padding: 0.6rem 0;
}

.depth-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.75rem;
}
.col-right .depth-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.depth {
  min-width: 0;
  padding: 0.75rem;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #f7fafb;
}
.depth h3 {
  margin: 0 0 0.55rem;
  font-size: 0.88rem;
  font-weight: 800;
  color: var(--ink2);
  letter-spacing: -0.01em;
}
.depth h3 .amt {
  display: block;
  margin-top: 0.15rem;
  font-family: var(--num);
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--mute);
}
.depth table {
  width: 100%;
  border-collapse: collapse;
  font-family: var(--num);
  font-size: 0.95rem;
  font-weight: 700;
}
.depth th {
  text-align: left;
  color: var(--mute);
  font-family: var(--font);
  font-size: 0.78rem;
  font-weight: 800;
  padding: 0.3rem 0.25rem 0.45rem;
  border-bottom: 1px solid var(--line);
}
.depth td {
  padding: 0.42rem 0.25rem;
  border-bottom: 1px solid #e4ebf0;
  color: var(--ink);
}
.depth .bid { color: var(--up); }
.depth .ask { color: var(--down); }
.depth-note {
  margin-top: 0.95rem;
  color: var(--ink2);
  font-size: 0.95rem;
  font-weight: 700;
  line-height: 1.5;
}

.steps-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 1.25rem;
}

.pred-list .pred-card {
  padding: 0.85rem 0.9rem;
}
.pred-list .pred-mid {
  grid-template-columns: repeat(3, 1fr);
  gap: 0.4rem;
  margin-bottom: 0.65rem;
}
.pred-list .pred-mid .val {
  font-size: 0.98rem;
}
.pred-list .pred-odds {
  margin-bottom: 0.65rem;
}
.pred-list .odds-col {
  padding: 0.5rem 0.55rem;
}
.pred-list .odds-col .val {
  font-size: 1.1rem;
}
.pred-list .pred-top .sym {
  font-size: 1.35rem;
}
.pred-list .verdict-box .v-val {
  font-size: 1.15rem;
}

@media (max-width: 1100px) {
  .workspace {
    grid-template-columns: 1fr;
  }
  .col-left {
    position: static;
    max-height: none;
  }
  .depth-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .verdict-strip { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 980px) {
  .card {
    grid-template-columns: 1fr 1fr;
    gap: 0.85rem;
  }
  .mkt, .decision { grid-column: span 1; }
  .prices, .signal, .edge-block { grid-column: 1 / -1; }
  .top { flex-direction: column; align-items: flex-start; }
  .steps-grid { grid-template-columns: 1fr; }
  .pred-foot { grid-template-columns: 1fr; }
  .exec { text-align: left; }
}

@media (max-width: 640px) {
  .card { grid-template-columns: 1fr; }
  .prices { grid-template-columns: 1fr; }
  .depth-grid { grid-template-columns: 1fr; }
  .pred-mid { grid-template-columns: 1fr; }
  .verdict-strip { grid-template-columns: 1fr; }
  .paper-cols { grid-template-columns: 1fr; }
}

.paper-panel {
  margin-top: 0;
  order: 3;
}
.paper-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 0.75rem;
}
.paper-head h2 { margin: 0; }
.paper-summary {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  font-weight: 700;
  color: var(--ink2);
}
.paper-summary .pnl-pos { color: var(--up); }
.paper-summary .pnl-neg { color: var(--down); }
.paper-cols {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}
.paper-cols h3 {
  margin: 0 0 0.5rem;
  font-size: 0.9rem;
  font-weight: 800;
  color: var(--mute);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.paper-list { display: grid; gap: 0.45rem; }
.paper-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 0.4rem;
  padding: 0.65rem 0.75rem;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #f7fafb;
}
.paper-row .title { font-weight: 800; font-size: 0.98rem; }
.paper-row .meta {
  margin-top: 0.2rem;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--ink2);
}
.paper-row .amt {
  text-align: right;
  font-family: var(--num);
  font-weight: 800;
  font-size: 1.05rem;
}
.pred-card .fill-tag {
  display: inline-block;
  margin-top: 0.35rem;
  padding: 0.15rem 0.45rem;
  border-radius: 6px;
  background: #dff3ff;
  color: #0b5f8a;
  font-size: 0.75rem;
  font-weight: 800;
}
.empty-mini {
  color: var(--mute);
  font-weight: 700;
  padding: 0.5rem 0;
}
/* ===== dense one-screen layout ===== */
.top { padding: 0.4rem 0.75rem; gap: 0.5rem; flex: 0 0 auto; }
.brand h1 { font-size: 1.1rem; }
.brand p { margin-top: 0.1rem; font-size: 0.7rem; }
#clock { font-size: 0.78rem; }
.pill { height: 1.45rem; padding: 0 0.45rem; font-size: 0.65rem; }
.btn { height: 1.55rem; padding: 0 0.6rem; font-size: 0.72rem; border-radius: 6px; }

main {
  max-width: none !important;
  width: 100%;
  margin: 0;
  padding: 0.4rem 0.6rem 0.4rem;
  gap: 0.4rem;
  flex: 1 1 auto;
  min-height: 0;
  overflow: hidden;
}

.toolbar { margin: 0; gap: 0.4rem; flex: 0 0 auto; }
.filters { gap: 0.4rem; }
.filters label > span, .filters .check span { font-size: 0.62rem; }
.filters select, .filters .check { height: 1.55rem; min-width: 5.5rem; font-size: 0.72rem; border-radius: 6px; padding: 0 0.45rem; }
.hint { font-size: 0.68rem; }

.workspace {
  grid-template-columns: minmax(260px, 0.72fr) minmax(460px, 1.45fr) !important;
  gap: 0.4rem !important;
  align-items: stretch !important;
  min-height: 0 !important;
  flex: 1 1 auto;
  overflow: hidden;
}

.col-left {
  position: static !important;
  top: auto !important;
  max-height: none !important;
  height: 100%;
  overflow: auto;
  padding: 0.4rem !important;
  border-radius: 10px;
}
.col-right { height: 100%; overflow: auto; min-height: 0; }
.col-title { margin-bottom: 0.3rem; }
.col-title h2 { font-size: 0.8rem; }

.mkt-row {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  padding: 0.4rem 0.5rem;
  cursor: pointer;
  transition: border-color .12s, background .12s;
}
.mkt-row:hover { border-color: #b7c8d2; }
.mkt-row.active { border-color: var(--teal); background: #f2faf8; box-shadow: 0 0 0 1px rgba(10,95,88,.2); }
.mkt-row.is-buy { background: #eef9f2; border-color: rgba(4,106,59,.3); }
.mkt-row.is-mute { opacity: 0.8; }
.mkt-row.is-mute.active, .mkt-row.is-mute:hover { opacity: 1; }

.mr-head { display: flex; align-items: center; gap: 0.35rem; }
.mr-sym {
  display: inline-flex;
  align-items: baseline;
  gap: 0.35rem;
  font-size: 0.95rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}
.pm-link {
  font-family: "DM Sans", sans-serif;
  font-size: 0.68rem;
  font-weight: 700;
  color: var(--teal);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  white-space: nowrap;
}
.pm-link:hover {
  color: #074842;
  border-bottom-color: currentColor;
}
.banner .pm-link { font-size: 0.72rem; }
.mr-verdict {
  margin-left: auto;
  padding: 0.1rem 0.35rem;
  border-radius: 5px;
  font-size: 0.72rem;
  font-weight: 800;
}
.mr-verdict.up { background: var(--up-bg); color: var(--up); }
.mr-verdict.down { background: var(--down-bg); color: var(--down); }
.mr-verdict.wait { background: var(--wait-bg); color: var(--wait); }
.mr-act {
  font-size: 0.68rem;
  font-weight: 800;
  color: var(--mute);
  padding: 0.1rem 0.3rem;
  border-radius: 5px;
  background: #eef2f5;
}
.mr-act.on { background: var(--buy); color: #fff; }
.mr-time { margin-top: 0.15rem; color: var(--mute); font-size: 0.68rem; font-weight: 700; }
.mr-prices, .mr-odds {
  margin-top: 0.2rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 0.55rem;
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--ink2);
}
.mr-prices i { font-style: normal; font-weight: 800; }

.panel { padding: 0.55rem 0.65rem !important; border-radius: 10px; box-shadow: none; }
.panel h2 { margin: 0 0 0.4rem !important; font-size: 0.82rem !important; }
.detail-stack { gap: 0.4rem !important; }
.detail-empty { min-height: 140px !important; padding: 1rem !important; font-size: 0.8rem; }

.banner { padding: 0.45rem 0.55rem !important; margin-bottom: 0.4rem !important; border-radius: 8px; }
.banner .big { font-size: 1rem !important; }
.banner .why { font-size: 0.72rem !important; margin-top: 0.1rem !important; }
.banner .right { font-size: 0.7rem !important; }
.banner .slug { display: none; }

.verdict-strip { gap: 0.3rem !important; margin-bottom: 0.4rem !important; }
.vs-item { padding: 0.35rem 0.4rem !important; border-radius: 7px; }
.vs-item .lab { font-size: 0.62rem !important; margin-bottom: 0.1rem !important; }
.vs-item strong { font-size: 0.85rem !important; }

.steps-grid { gap: 0 0.6rem !important; }
.step { padding: 0.28rem 0 !important; gap: 0.35rem !important; grid-template-columns: 1.3rem 1fr !important; }
.step .n { width: 1.3rem; height: 1.3rem; font-size: 0.65rem; }
.step .t { font-size: 0.62rem !important; }
.step .v { font-size: 0.85rem !important; margin-top: 0.05rem !important; }
.step .d { font-size: 0.68rem !important; margin-top: 0.05rem !important; }
.step-key .v { font-size: 0.95rem !important; }

.depth { padding: 0.4rem !important; border-radius: 8px; }
.depth h3 { font-size: 0.7rem !important; margin-bottom: 0.25rem !important; }
.depth h3 .amt { font-size: 0.65rem !important; }
.depth table { font-size: 0.72rem !important; }
.depth th { font-size: 0.62rem !important; padding: 0.15rem 0.15rem 0.25rem !important; }
.depth td { padding: 0.18rem 0.15rem !important; }
.depth-empty { font-size: 0.7rem; padding: 0.3rem 0; }
.col-right .depth-grid { gap: 0.35rem; }

.paper-panel {
  margin: 0 !important;
  flex: 0 0 auto;
  max-height: 22vh;
  overflow: auto;
  padding: 0.45rem 0.6rem !important;
}
.paper-head { margin-bottom: 0.3rem; }
.paper-head h2 { font-size: 0.8rem !important; margin: 0 !important; }
.paper-summary { gap: 0.5rem; font-size: 0.72rem; }
.paper-cols { gap: 0.45rem; }
.paper-cols h3 { font-size: 0.68rem; margin-bottom: 0.25rem; }
.paper-list { gap: 0.25rem; }
.paper-row { padding: 0.35rem 0.45rem; border-radius: 7px; }
.paper-row .title { font-size: 0.78rem; }
.paper-row .meta { font-size: 0.66rem; }
.paper-row .amt { font-size: 0.82rem; }
.empty-mini { font-size: 0.7rem; padding: 0.25rem 0; }

@media (max-width: 1100px) {
  html, body { overflow: auto; height: auto; }
  body { display: block; }
  main { overflow: visible; height: auto; }
  .workspace { flex: none; height: auto; overflow: visible; }
  .col-left, .col-right { height: auto; max-height: none; }
  .paper-panel { max-height: none; }
}
.paper-head-right { display: flex; align-items: center; gap: 0.6rem; flex-wrap: wrap; justify-content: flex-end; }
.btn-link {
  display: inline-flex; align-items: center; height: 1.55rem; padding: 0 0.55rem;
  border-radius: 6px; background: var(--teal); color: #fff; text-decoration: none;
  font-size: 0.72rem; font-weight: 800;
}
.tag-hit { color: var(--up); font-weight: 800; }
.tag-miss { color: var(--down); font-weight: 800; }
.result-badge {
  display: inline-block; min-width: 2.4rem; text-align: center;
  padding: 0.08rem 0.35rem; border-radius: 5px; font-size: 0.72rem; font-weight: 800;
  margin-right: 0.25rem;
}
.result-badge.hit { background: var(--up); color: #fff; }
.result-badge.miss { background: var(--down); color: #fff; }
.paper-row.hit { background: #e8f7ee; border-color: rgba(4,106,59,.28); }
.paper-row.miss { background: #fdecea; border-color: rgba(177,42,29,.28); }

/* Binance-style depth bars */
.depth-book { width: 100%; }
.depth-head {
  display: grid;
  grid-template-columns: 1.1fr 1fr 1fr;
  gap: 0.25rem;
  padding: 0.15rem 0.25rem 0.3rem;
  color: var(--mute);
  font-size: 0.65rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  border-bottom: 1px solid var(--line);
}
.depth-body { display: grid; }
.depth-row {
  position: relative;
  display: block;
  overflow: hidden;
  border-bottom: 1px solid rgba(200, 210, 220, 0.35);
}
.depth-bar {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  z-index: 0;
  pointer-events: none;
  transition: width 0.15s ease;
}
.depth-row.bid .depth-bar { background: rgba(4, 106, 59, 0.18); }
.depth-row.ask .depth-bar { background: rgba(177, 42, 29, 0.18); }
.depth-cells {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.1fr 1fr 1fr;
  gap: 0.25rem;
  padding: 0.22rem 0.25rem;
  font-weight: 700;
}
.depth-row.bid .px { color: var(--up); }
.depth-row.ask .px { color: var(--down); }
.depth-cells .sz,
.depth-cells .nt { color: var(--ink2); text-align: right; }
.depth-cells .px { text-align: left; }
