/* Ghost St. dashboard — dark trading UI, brand-consistent */

:root {
  --bg: #14161a;
  --panel: #1b1e24;
  --panel-2: #22262e;
  --border: #2c313a;
  --ink: #e8e6de;
  --muted: #8d919b;
  --faint: #5c616b;
  --green: #4d8b5f;
  --green-bright: #63b47c;
  --green-wash: rgba(77, 139, 95, 0.15);
  --red: #c46a5a;
  --amber: #c9973f;
  --serif: "Source Serif 4", Georgia, serif;
  --sans: "Inter", -apple-system, sans-serif;
  --mono: "SF Mono", ui-monospace, monospace;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
  font-family: var(--sans);
  background: var(--bg);
  color: var(--ink);
  font-size: 14px;
  height: 100vh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

/* ---------- top bar ---------- */

.topbar {
  display: flex; align-items: center; gap: 16px;
  padding: 12px 20px;
  background: var(--panel);
  border-bottom: 1px solid var(--border);
}
.logo { font-family: var(--serif); font-size: 20px; font-weight: 600; color: var(--ink); text-decoration: none; }
.logo .mark { color: var(--green-bright); }
.top-controls { display: flex; gap: 10px; align-items: center; flex: 1; }
.top-controls select {
  background: var(--panel-2); color: var(--ink); border: 1px solid var(--border);
  border-radius: 8px; padding: 8px 12px; font-family: var(--sans); font-size: 13.5px;
  max-width: 260px;
}
.badge {
  font-size: 12px; font-weight: 650; letter-spacing: 0.08em; text-transform: uppercase;
  padding: 6px 14px; border-radius: 100px; background: var(--panel-2); color: var(--muted);
  border: 1px solid var(--border);
}
.badge.active { color: var(--green-bright); border-color: var(--green); background: var(--green-wash); }
.badge.passed { color: #eecd7a; border-color: #8a7434; background: rgba(238, 205, 122, 0.12); }
.badge.failed { color: var(--red); border-color: var(--red); background: rgba(196, 106, 90, 0.12); }

button {
  font-family: var(--sans); font-size: 13.5px; font-weight: 600; cursor: pointer;
  border: none; border-radius: 8px; padding: 8px 16px; transition: all 0.12s;
}
.btn-green { background: var(--green); color: #fff; }
.btn-green:hover { background: var(--green-bright); }
.btn-dim { background: var(--panel-2); color: var(--muted); border: 1px solid var(--border); }
.btn-dim:hover { color: var(--ink); }

/* ---------- layout ---------- */

.layout {
  display: grid; grid-template-columns: 1fr 330px; gap: 12px;
  padding: 12px 16px; flex: 1; min-height: 0;
}
.panel {
  background: var(--panel); border: 1px solid var(--border); border-radius: 12px;
  padding: 14px 16px;
}
.panel-title {
  font-size: 11.5px; font-weight: 650; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--muted); margin-bottom: 12px;
}
.side { display: flex; flex-direction: column; gap: 12px; min-height: 0; overflow-y: auto; }
.side .grow { flex: 1; min-height: 120px; display: flex; flex-direction: column; }

/* ---------- chart panel ---------- */

.chart-panel { display: flex; flex-direction: column; min-height: 0; }
.panel-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; }
.panel-head.sub { margin-top: 12px; border-top: 1px solid var(--border); padding-top: 12px; }
.panel-head.sub span:last-child { font-family: var(--mono); font-size: 14px; color: var(--green-bright); }
.sym-tabs { display: flex; gap: 6px; }
.sym-tabs button {
  background: var(--panel-2); color: var(--muted); border: 1px solid var(--border);
  padding: 6px 16px; border-radius: 8px; font-weight: 650;
}
.sym-tabs button.on { background: var(--green-wash); color: var(--green-bright); border-color: var(--green); }
.last-price { font-family: var(--mono); font-size: 18px; font-weight: 600; }
.chart { flex: 1; min-height: 220px; }
.chart.small { flex: 0 0 130px; min-height: 130px; }

/* ---------- chart toolbar / studies ---------- */

.chart-toolbar {
  display: flex; align-items: center; gap: 6px;
  padding: 6px 0 8px; border-bottom: 1px solid var(--border); margin-bottom: 6px;
  flex-wrap: wrap;
}
.tb-btn {
  background: var(--panel-2); color: var(--muted); border: 1px solid var(--border);
  padding: 5px 10px; font-size: 12px; border-radius: 7px; font-weight: 600;
}
.tb-btn:hover { color: var(--ink); }
.tb-btn.on { background: var(--green-wash); color: var(--green-bright); border-color: var(--green); }
.tb-select {
  background: var(--panel-2); color: var(--muted); border: 1px solid var(--border);
  border-radius: 7px; padding: 5px 8px; font-size: 12px; font-family: var(--sans);
}
.tb-sep { width: 1px; height: 18px; background: var(--border); margin: 0 4px; }
.tb-spacer { flex: 1; }
.tool-group { display: flex; gap: 4px; }

.active-studies { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 4px; min-height: 0; }
.study-chip {
  display: inline-flex; align-items: center; gap: 6px;
  background: var(--panel-2); border: 1px solid var(--border); border-radius: 100px;
  padding: 3px 6px 3px 12px; font-size: 11.5px; color: var(--muted); cursor: pointer;
}
.study-chip:hover { color: var(--ink); }
.study-chip button {
  background: none; color: var(--faint); padding: 0 6px; font-size: 13px; border-radius: 100px;
}
.study-chip button:hover { color: var(--red); }

.draw-overlay {
  position: absolute; inset: 0; z-index: 5; pointer-events: none;
  width: 100%; height: 100%;
}

/* ---------- studies modal ---------- */

.modal {
  position: fixed; inset: 0; z-index: 60; background: rgba(10, 12, 15, 0.7);
  display: flex; align-items: center; justify-content: center; padding: 24px;
}
.modal-box {
  background: var(--panel); border: 1px solid var(--border); border-radius: 14px;
  width: min(860px, 100%); max-height: 86vh; overflow-y: auto; padding: 20px 22px;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.6);
}
.modal-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 16px; }
.modal-head strong { font-family: var(--serif); font-size: 19px; }
.modal-sub {
  font-size: 11px; font-weight: 650; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--faint); margin-bottom: 8px;
}
.modal-cols { display: grid; grid-template-columns: 1fr 1.2fr; gap: 18px; }

.lib-list { display: flex; flex-direction: column; gap: 6px; }
.lib-item {
  display: flex; flex-direction: column; align-items: flex-start; gap: 2px;
  background: var(--panel-2); border: 1px solid var(--border); border-radius: 9px;
  padding: 9px 12px; text-align: left; color: var(--ink); font-weight: 550; font-size: 13px;
}
.lib-item:hover { border-color: var(--green); }
.lib-item span { font-size: 11px; color: var(--faint); font-weight: 450; }

.active-list { display: flex; flex-direction: column; gap: 8px; }
.active-item { background: var(--panel-2); border: 1px solid var(--border); border-radius: 9px; padding: 10px 12px; }
.ai-head { display: flex; justify-content: space-between; align-items: center; font-size: 13px; }
.ai-remove { background: none; color: var(--faint); font-size: 12px; padding: 2px 6px; }
.ai-remove:hover { color: var(--red); }
.ai-params { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 8px; }
.ai-params label { font-size: 11.5px; color: var(--muted); display: flex; flex-direction: column; gap: 4px; }
.ai-params input {
  background: var(--panel); border: 1px solid var(--border); border-radius: 6px;
  color: var(--ink); font-family: var(--mono); font-size: 12.5px; padding: 5px 8px; width: 90px;
}
.ai-params input[type="color"] { padding: 2px; height: 30px; width: 60px; }
.ai-params em { color: var(--faint); font-size: 11.5px; }
.empty-note { color: var(--faint); font-size: 12.5px; padding: 8px 0; }

.custom-study { margin-top: 18px; border-top: 1px solid var(--border); padding-top: 14px; }
.custom-study summary { cursor: pointer; color: var(--muted); font-weight: 600; font-size: 13px; margin-bottom: 10px; }
.custom-study input {
  width: 100%; background: var(--panel-2); border: 1px solid var(--border); border-radius: 8px;
  color: var(--ink); font-size: 13px; padding: 8px 12px; margin-bottom: 8px;
}
.custom-study textarea {
  width: 100%; background: #101216; border: 1px solid var(--border); border-radius: 8px;
  color: #cdd3c8; font-family: var(--mono); font-size: 12px; line-height: 1.6;
  padding: 12px; resize: vertical; margin-bottom: 8px;
}
.custom-row { display: flex; align-items: center; gap: 14px; }
.custom-err { color: var(--red); font-family: var(--mono); font-size: 12px; }

/* ---------- meters ---------- */

.live-dot {
  display: inline-block; width: 7px; height: 7px; border-radius: 50%;
  background: var(--green-bright); margin-left: 6px;
  animation: pulse 1.6s ease-in-out infinite;
}
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.25; } }

.meter { margin-bottom: 12px; }
.m-label { display: flex; justify-content: space-between; font-size: 12.5px; color: var(--muted); margin-bottom: 6px; }
.m-label span:last-child { font-family: var(--mono); color: var(--ink); }
.m-bar { height: 7px; background: var(--panel-2); border-radius: 100px; overflow: hidden; }
.m-fill { height: 100%; border-radius: 100px; width: 0%; transition: width 0.25s ease; }
.m-fill.good { background: var(--green-bright); }
.m-fill.warn { background: var(--amber); }
.m-fill.danger { background: var(--red); }
.m-days { font-size: 12px; color: var(--faint); margin-top: 4px; }

/* ---------- ticket ---------- */

.ticket-sym { font-family: var(--mono); font-size: 15px; font-weight: 600; margin-bottom: 10px; }
.ticket input {
  width: 100%; background: var(--panel-2); border: 1px solid var(--border); border-radius: 8px;
  color: var(--ink); font-family: var(--mono); font-size: 15px; padding: 9px 12px; margin-bottom: 10px;
}
.ticket-btns { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-bottom: 8px; }
.btn-buy { background: var(--green); color: #fff; padding: 10px; }
.btn-buy:hover { background: var(--green-bright); }
.btn-sell { background: var(--red); color: #fff; padding: 10px; }
.btn-sell:hover { filter: brightness(1.15); }
.wide { width: 100%; }
.ticket-msg { font-size: 12.5px; margin-top: 8px; min-height: 18px; color: var(--muted); font-family: var(--mono); }
.ticket-msg.ok { color: var(--green-bright); }
.ticket-msg.err { color: var(--red); }

/* ---------- order book ---------- */

.book-sym { font-family: var(--mono); font-size: 10.5px; color: var(--faint); text-transform: none; letter-spacing: 0; margin-left: 6px; }
.book { display: flex; flex-direction: column; font-family: var(--mono); font-size: 11.5px; }
.book-side { display: flex; flex-direction: column; gap: 1px; }
.book-row {
  position: relative; display: flex; justify-content: space-between;
  padding: 1.5px 8px; border-radius: 3px; overflow: hidden;
}
.book-row .book-bar { position: absolute; right: 0; top: 0; bottom: 0; opacity: 0.14; border-radius: 2px; }
.book-row.ask .book-bar { background: var(--red); }
.book-row.bid .book-bar { background: var(--green-bright); }
.book-row.ask .bp { color: var(--red); }
.book-row.bid .bp { color: var(--green-bright); }
.book-row .bs { color: var(--muted); }
.book-row .bp, .book-row .bs { position: relative; }
.book-spread {
  text-align: center; padding: 5px 0; margin: 3px 0; color: var(--faint); font-size: 10.5px;
  border-top: 1px solid var(--border); border-bottom: 1px solid var(--border);
}

/* ---------- time & sales ---------- */

.tape {
  height: 190px; overflow-y: auto; font-family: var(--mono); font-size: 11.5px;
  display: flex; flex-direction: column; gap: 1px;
}
.tape-row {
  display: flex; gap: 10px; padding: 1.5px 8px; border-radius: 3px;
  animation: tape-in 0.25s ease;
}
@keyframes tape-in { from { background: var(--panel-2); } to { background: transparent; } }
.tape-row time { color: var(--faint); }
.tape-row .tp { flex: 1; }
.tape-row.buy .tp { color: var(--green-bright); }
.tape-row.sell .tp { color: var(--red); }
.tape-row .ts { color: var(--muted); }
.tape-row.big { background: var(--panel-2); }
.tape-row.big .ts { color: var(--ink); font-weight: 600; }

/* ---------- tables / activity ---------- */

.mini-table { width: 100%; border-collapse: collapse; font-size: 12.5px; }
.mini-table th { text-align: left; color: var(--faint); font-weight: 550; padding: 4px 6px; border-bottom: 1px solid var(--border); }
.mini-table td { padding: 6px; font-family: var(--mono); border-bottom: 1px solid var(--panel-2); }
.mini-table td.pos { color: var(--green-bright); }
.mini-table td.neg { color: var(--red); }

.activity { flex: 1; overflow-y: auto; font-family: var(--mono); font-size: 12px; line-height: 1.9; color: var(--muted); }
.activity .fill { color: var(--ink); }
.activity .viol { color: var(--red); }
.activity .state { color: var(--green-bright); }
.activity time { color: var(--faint); margin-right: 8px; }

/* ---------- journal ---------- */

.journal-layout {
  display: grid; grid-template-columns: 1fr 1fr; gap: 12px;
  padding: 12px 16px; flex: 1; min-height: 0; overflow-y: auto;
  align-content: start;
}
.journal-layout .span2 { grid-column: span 2; }
.journal-layout > .panel { min-width: 0; }
.journal-layout .grow { min-height: 200px; }

.vitals { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.vital { background: var(--panel-2); border: 1px solid var(--border); border-radius: 9px; padding: 10px 12px; }
.v-num { font-family: var(--mono); font-size: 17px; font-weight: 600; }
.v-num.pos { color: var(--green-bright); }
.v-num.neg { color: var(--red); }
.v-lbl { font-size: 11px; color: var(--faint); margin-top: 2px; }

.tilt-num { font-family: var(--mono); font-size: 22px; font-weight: 650; }
.tilt-track { height: 10px; background: var(--panel-2); border-radius: 100px; overflow: hidden; margin: 12px 0 6px; }
.tilt-fill { height: 100%; border-radius: 100px; width: 0%; transition: width 0.4s ease; }
.tilt-fill.good { background: var(--green-bright); }
.tilt-fill.warn { background: var(--amber); }
.tilt-fill.danger { background: var(--red); }
.tilt-scale { display: flex; justify-content: space-between; font-size: 10.5px; color: var(--faint); text-transform: uppercase; letter-spacing: 0.06em; }
.tilt-note { margin-top: 10px; font-size: 13px; color: var(--muted); line-height: 1.55; }

.coach { display: flex; flex-direction: column; gap: 8px; }
.coach-line {
  background: var(--panel-2); border-left: 3px solid var(--border); border-radius: 6px;
  padding: 10px 14px; font-size: 13px; line-height: 1.6; color: var(--muted);
}
.coach-line.warn { border-left-color: var(--amber); color: var(--ink); }
.coach-line.good { border-left-color: var(--green-bright); }

.pnl-canvas { width: 100%; display: block; }
.t-dim { color: var(--faint); font-size: 10.5px; margin-left: 4px; }
.flag {
  background: rgba(201, 151, 63, 0.15); color: var(--amber);
  font-size: 10px; font-weight: 650; letter-spacing: 0.05em; text-transform: uppercase;
  padding: 2px 8px; border-radius: 100px;
}

.day-row td {
  background: var(--panel-2); color: var(--muted); font-family: var(--sans);
  font-size: 11px; font-weight: 650; letter-spacing: 0.06em; text-transform: uppercase;
  padding: 6px 8px;
}
.th-note { min-width: 180px; }
.note-cell { padding: 2px 4px !important; }
.note-input {
  width: 100%; background: transparent; border: 1px solid transparent; border-radius: 6px;
  color: var(--ink); font-family: var(--sans); font-size: 12px; padding: 5px 8px;
}
.note-input::placeholder { color: var(--faint); }
.note-input:hover { border-color: var(--border); }
.note-input:focus { outline: none; border-color: var(--green); background: var(--panel-2); }

/* ---------- fail banner / footer ---------- */

.fail-banner {
  position: fixed; left: 50%; bottom: 54px; transform: translateX(-50%);
  display: flex; align-items: center; gap: 20px;
  background: #2a1d1a; border: 1px solid var(--red); border-radius: 12px;
  padding: 14px 20px; z-index: 40; box-shadow: 0 12px 40px rgba(0,0,0,0.5);
}
.fail-banner strong { color: var(--red); display: block; font-size: 14px; }
.fail-banner span { font-size: 12.5px; color: var(--muted); font-family: var(--mono); }
.hidden { display: none !important; }

.disclosure-strip {
  padding: 8px 20px; font-size: 11px; color: var(--faint);
  border-top: 1px solid var(--border); background: var(--panel); text-align: center;
}

/* ---------- admin ---------- */

.admin-login { flex: 1; display: flex; align-items: center; justify-content: center; }
.admin-card { width: 340px; }
.admin-card input {
  width: 100%; background: var(--panel-2); border: 1px solid var(--border); border-radius: 8px;
  color: var(--ink); font-family: var(--sans); font-size: 14px; padding: 10px 12px; margin-bottom: 10px;
}
.admin-card input:focus { outline: none; border-color: var(--green); }

/* ---------- chart trading ---------- */

.tb-btn.trade { border-color: var(--green); color: var(--green-bright); }
.tb-btn.trade.on { background: var(--green); color: #fff; }

.trade-pop {
  position: absolute; z-index: 30; width: 168px;
  background: var(--panel); border: 1px solid var(--border); border-radius: 10px;
  padding: 8px; box-shadow: 0 14px 44px rgba(0,0,0,0.55);
  display: flex; flex-direction: column; gap: 5px;
}
.tp-head {
  font-family: var(--mono); font-size: 11.5px; color: var(--muted);
  padding: 2px 4px 6px; border-bottom: 1px solid var(--border); margin-bottom: 3px;
}
.tp-head strong { color: var(--ink); }
.tp-btn {
  border: 1px solid var(--border); border-radius: 7px; padding: 7px 10px;
  font-size: 12.5px; font-weight: 550; text-align: left; background: var(--panel-2); color: var(--ink);
  cursor: pointer;
}
.tp-btn.buy { border-color: var(--green); color: var(--green-bright); }
.tp-btn.buy:hover { background: var(--green); color: #fff; }
.tp-btn.sell { border-color: var(--red); color: var(--red); }
.tp-btn.sell:hover { background: var(--red); color: #fff; }
.tp-btn.dim { color: var(--faint); font-size: 11.5px; padding: 5px 10px; }
.tp-btn.dim:hover { color: var(--ink); }

/* ---------- ticket extras / working orders ---------- */

.ticket-row { display: grid; grid-template-columns: 1fr 96px; gap: 8px; }
.ticket-row select {
  background: var(--panel-2); border: 1px solid var(--border); border-radius: 8px;
  color: var(--ink); font-family: var(--sans); font-size: 13px; padding: 0 8px; margin-bottom: 10px;
}
.ticket-value { font-family: var(--mono); font-size: 11.5px; color: var(--faint); margin: -4px 0 10px 2px; }
.ord-x {
  background: transparent; border: 1px solid var(--border); border-radius: 6px;
  color: var(--faint); font-size: 11px; width: 22px; height: 22px; cursor: pointer; line-height: 1;
}
.ord-x:hover { border-color: var(--red); color: var(--red); }

/* ---------- accounts hub ---------- */

.acct-layout { max-width: 1060px; margin: 0 auto; padding: 20px; display: flex; flex-direction: column; gap: 16px; }

.acct-hero { display: flex; justify-content: space-between; align-items: flex-start; gap: 32px; flex-wrap: wrap; }
.acct-total { font-family: var(--serif, 'Source Serif 4'); font-size: 44px; font-weight: 600; letter-spacing: -0.01em; margin: 8px 0 2px; }
.acct-sub { font-size: 12.5px; color: var(--faint); }

.acct-mix { flex: 1; min-width: 300px; max-width: 460px; display: flex; flex-direction: column; gap: 7px; padding-top: 6px; }
.mix-row { display: grid; grid-template-columns: 150px 1fr 90px; gap: 10px; align-items: center; font-size: 12px; }
.mix-name { color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mix-bar { height: 8px; background: var(--panel-2); border-radius: 99px; overflow: hidden; }
.mix-bar div { height: 100%; background: var(--green); border-radius: 99px; }
.mix-val { font-family: var(--mono); color: var(--ink); text-align: right; }

.acct-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 12px; }
.acct-card {
  background: var(--panel-2); border: 1px solid var(--border); border-radius: 12px; padding: 14px 16px;
  display: flex; flex-direction: column; gap: 6px;
}
.acct-card.error { border-color: var(--red); }
.acct-head { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.acct-head strong { font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.acct-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--green-bright); flex: none; }
.acct-dot.error { background: var(--red); }
.acct-eq { font-family: var(--mono); font-size: 22px; font-weight: 600; }
.acct-err { font-size: 11.5px; color: var(--red); font-family: var(--mono); }
.acct-pos { display: flex; flex-direction: column; gap: 3px; margin-top: 4px; border-top: 1px solid var(--border); padding-top: 8px; }
.acct-pos div { display: grid; grid-template-columns: 1fr auto auto; gap: 10px; font-family: var(--mono); font-size: 11.5px; color: var(--muted); }
.acct-more { color: var(--faint) !important; }
.unlink {
  margin-top: 8px; align-self: flex-start; background: transparent; border: 1px solid var(--border);
  color: var(--faint); border-radius: 6px; padding: 4px 10px; font-size: 11.5px; cursor: pointer;
}
.unlink:hover { border-color: var(--red); color: var(--red); }

.provider-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 12px; }
.provider-grid.soon { margin-top: 12px; }
.provider-card {
  text-align: left; background: var(--panel-2); border: 1px solid var(--border); border-radius: 12px;
  padding: 14px 16px; cursor: pointer; display: flex; flex-direction: column; gap: 5px; color: var(--ink);
  font-family: var(--sans);
}
.provider-card:hover { border-color: var(--green); }
.provider-card strong { font-size: 13.5px; }
.provider-card span { font-size: 12px; color: var(--muted); line-height: 1.45; }
.provider-card em { font-style: normal; font-size: 12px; color: var(--green-bright); font-weight: 600; margin-top: 2px; }
.provider-card.linked { border-color: var(--green); }
.provider-card.off { cursor: default; opacity: 0.55; }
.provider-card.off:hover { border-color: var(--border); }

.acct-note { margin-top: 14px; font-size: 12px; color: var(--faint); line-height: 1.6; }
.acct-note code { font-family: var(--mono); }

.modal-box.narrow { width: min(420px, 92vw); }
.link-field { display: block; font-size: 12.5px; font-weight: 600; color: var(--muted); margin-bottom: 12px; }
.link-field input, .link-field textarea {
  width: 100%; margin-top: 5px; background: var(--panel-2); border: 1px solid var(--border); border-radius: 8px;
  color: var(--ink); font-family: var(--mono); font-size: 12.5px; padding: 9px 11px;
}
.link-field input:focus, .link-field textarea:focus { outline: none; border-color: var(--green); }

.pv-avatar {
  width: 26px; height: 26px; border-radius: 8px; flex: none;
  display: inline-flex; align-items: center; justify-content: center;
  color: #fff; font-size: 13px; font-weight: 700; font-family: var(--sans);
}
.pv-row { display: flex; align-items: center; gap: 9px; }
.pv-kind {
  margin-left: auto; font-size: 10px; font-weight: 650; letter-spacing: 0.05em; text-transform: uppercase;
  color: var(--faint); border: 1px solid var(--border); border-radius: 99px; padding: 2px 8px;
}
.acct-head .pv-avatar { width: 22px; height: 22px; font-size: 11px; border-radius: 6px; }

.sym-sep { width: 1px; height: 16px; background: var(--border); margin: 0 6px; align-self: center; }
.sym-tabs { flex-wrap: wrap; }
.sym-tabs .add-tab { color: var(--green-bright); font-weight: 700; }

/* ---------- watchlist ---------- */

.wl-head { display: flex; align-items: center; gap: 8px; }
.wl-head select { margin-left: auto; max-width: 110px; }
.wl { display: flex; flex-direction: column; max-height: 208px; overflow-y: auto; }
.wl-row {
  display: grid; grid-template-columns: 1fr auto 64px 18px; gap: 8px; align-items: center;
  padding: 5px 6px; border-radius: 7px; cursor: pointer; font-size: 12.5px;
}
.wl-row:hover { background: var(--panel-2); }
.wl-row.on { background: var(--green-wash); }
.wl-sym { font-weight: 650; }
.wl-last { font-family: var(--mono); color: var(--muted); }
.wl-chg { font-family: var(--mono); font-size: 11.5px; text-align: right; }
.wl-chg.pos { color: var(--green-bright); }
.wl-chg.neg { color: var(--red); }
.wl-x {
  background: none; border: none; color: transparent; font-size: 13px; cursor: pointer; line-height: 1; padding: 0;
}
.wl-row:hover .wl-x { color: var(--faint); }
.wl-x:hover { color: var(--red) !important; }

/* ---------- P&L stat chips ---------- */

.stat-row { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 8px; }
.stat { display: flex; flex-direction: column; gap: 3px; background: var(--panel-2); border-radius: 9px; padding: 9px 11px; }
.stat span { font-size: 10px; font-weight: 650; letter-spacing: 0.06em; text-transform: uppercase; color: var(--faint); }
.stat strong { font-family: var(--mono); font-size: 15px; font-weight: 600; }
.stat strong.pos { color: var(--green-bright); }
.stat strong.neg { color: var(--red); }

/* ---------- symbol search ---------- */

.sym-search {
  width: 100%; background: var(--panel-2); border: 1px solid var(--border); border-radius: 9px;
  color: var(--ink); font-family: var(--sans); font-size: 14px; padding: 11px 13px;
}
.sym-search:focus { outline: none; border-color: var(--green); }
.sym-quick { display: flex; flex-wrap: wrap; gap: 6px; }
.quick-chip {
  background: var(--panel-2); border: 1px solid var(--border); border-radius: 99px;
  color: var(--ink); font-size: 12px; font-weight: 600; padding: 5px 12px; cursor: pointer;
}
.quick-chip:hover { border-color: var(--green); color: var(--green-bright); }
.sym-results { display: flex; flex-direction: column; gap: 6px; max-height: 300px; overflow-y: auto; }
.sym-result {
  display: grid; grid-template-columns: 1fr auto auto; gap: 12px; align-items: center;
  background: var(--panel-2); border: 1px solid var(--border); border-radius: 9px; padding: 8px 12px;
}
.sym-result strong { font-size: 13px; display: block; }
.sym-result div span { font-size: 11.5px; color: var(--muted); display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 210px; }
.sym-result em { font-style: normal; font-size: 10.5px; color: var(--faint); }
.sym-result .btn-green { padding: 5px 12px; font-size: 12px; }

.tb-label { font-size: 10px; font-weight: 650; letter-spacing: 0.07em; text-transform: uppercase; color: var(--faint); align-self: center; }

.overlay-chip {
  background: var(--panel-2); border: 1px solid var(--border); border-radius: 99px;
  color: var(--muted); font-size: 11px; font-weight: 600; padding: 4px 11px; cursor: pointer;
  font-family: var(--mono); white-space: nowrap;
}
.overlay-chip.on { border-color: #c9973f; color: #c9973f; }
.overlay-chip.hidden { display: none; }

.trade-live {
  background: var(--green-wash); border: 1px solid var(--green); border-radius: 99px;
  color: var(--green-bright); font-size: 11px; font-weight: 650; padding: 4px 12px; cursor: pointer;
  white-space: nowrap;
}
.trade-live:hover { background: var(--green); color: #fff; }
.trade-live.hidden { display: none; }

.ref-note { margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--border); font-size: 11.5px; color: var(--faint); }
.ref-note a { color: var(--green-bright); font-weight: 600; text-decoration: none; }

/* ---------- Prediction markets page ---------- */
.mkt-page { max-width: 880px; margin: 0 auto; padding: 28px 20px 80px; }
.mkt-hero h1 { font-family: "Source Serif 4", serif; font-size: 34px; font-weight: 550; margin: 8px 0 6px; }
.mkt-hero p { color: var(--muted); font-size: 14.5px; max-width: 560px; margin: 0 0 22px; line-height: 1.55; }
.mkt-controls { display: flex; gap: 14px; align-items: center; flex-wrap: wrap; margin-bottom: 16px; }
.mkt-cats { display: flex; gap: 6px; flex-wrap: wrap; }
.mkt-cat {
  background: var(--panel); border: 1px solid var(--border); border-radius: 99px;
  color: var(--muted); font-size: 12.5px; font-weight: 600; padding: 7px 15px; cursor: pointer;
}
.mkt-cat.on { background: var(--green-wash); border-color: var(--green); color: var(--green-bright); }
.mkt-search {
  flex: 1; min-width: 220px; background: var(--panel); border: 1px solid var(--border);
  border-radius: 10px; color: var(--ink); font-size: 13.5px; padding: 9px 14px; outline: none;
}
.mkt-search:focus { border-color: var(--green); }
.mkt-rows { display: flex; flex-direction: column; gap: 10px; }
.mkt-row {
  display: flex; align-items: center; justify-content: space-between; gap: 18px;
  background: var(--panel); border: 1px solid var(--border); border-radius: 12px;
  padding: 16px 18px; cursor: pointer; transition: border-color 0.12s;
}
.mkt-row:hover { border-color: var(--green); }
.mkt-row-main { min-width: 0; }
.mkt-q { font-size: 15.5px; font-weight: 600; line-height: 1.35; margin-bottom: 6px; }
.mkt-sub { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; font-size: 12px; color: var(--faint); }
.mkt-outcome { color: var(--muted); font-weight: 600; }
.mkt-cat-tag {
  border: 1px solid var(--border); border-radius: 99px; padding: 1px 9px;
  font-size: 10.5px; font-weight: 650; text-transform: uppercase; letter-spacing: 0.04em;
}
.mkt-row-side { display: flex; align-items: center; gap: 16px; flex-shrink: 0; }
.mkt-yes { text-align: right; min-width: 76px; }
.mkt-yes-price { font-family: var(--mono); font-size: 21px; font-weight: 650; color: var(--green-bright); }
.mkt-yes-label { font-size: 10px; font-weight: 650; color: var(--faint); letter-spacing: 0.08em; margin: 1px 0 5px; }
.mkt-prob-bar { height: 4px; border-radius: 3px; background: var(--panel-2); overflow: hidden; }
.mkt-prob-bar i { display: block; height: 100%; background: var(--green); border-radius: 3px; }
.mkt-chart-btn { padding: 8px 15px; border-radius: 9px; font-size: 12.5px; }
.mkt-empty { color: var(--faint); text-align: center; padding: 48px 0; font-size: 13.5px; }

/* ---------- Event context bar (terminal) ---------- */
.evt-bar {
  display: flex; align-items: center; gap: 18px; flex-wrap: wrap;
  background: var(--panel-2); border: 1px solid var(--border); border-radius: 10px;
  padding: 10px 14px; margin-bottom: 8px;
}
.evt-bar.hidden { display: none; }
.evt-q { font-size: 13.5px; font-weight: 650; line-height: 1.35; flex: 1; min-width: 200px; }
.evt-q .evt-outcome { color: var(--green-bright); }
.evt-facts { display: flex; gap: 16px; align-items: center; flex-wrap: wrap; }
.evt-fact { text-align: right; }
.evt-fact span { display: block; font-size: 9.5px; font-weight: 650; color: var(--faint); text-transform: uppercase; letter-spacing: 0.07em; }
.evt-fact strong { font-family: var(--mono); font-size: 13px; font-weight: 600; }
.evt-fact strong.yes { color: var(--green-bright); }
.evt-fact strong.no { color: var(--red); }

/* ---------- Strike ladder panel ---------- */
.ladder { display: flex; flex-direction: column; gap: 3px; max-height: 300px; overflow-y: auto; }
.ladder-row {
  display: grid; grid-template-columns: 1fr 44px; gap: 10px; align-items: center;
  position: relative; padding: 7px 9px; border-radius: 7px; cursor: pointer;
  border: 1px solid transparent; overflow: hidden;
}
.ladder-row:hover { border-color: var(--border); }
.ladder-row.on { border-color: var(--green); background: var(--green-wash); }
.ladder-row .fill {
  position: absolute; inset: 0; background: var(--green-wash); pointer-events: none;
  transform-origin: left; opacity: 0.6;
}
.ladder-label { font-size: 12px; font-weight: 600; color: var(--muted); position: relative; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ladder-row.on .ladder-label { color: var(--ink); }
.ladder-price { font-family: var(--mono); font-size: 12.5px; font-weight: 650; color: var(--green-bright); text-align: right; position: relative; }
.ladder-note { font-size: 11px; color: var(--faint); margin-top: 8px; }
