/* ============================================================
   PAGE-SPECIFIC STYLES
   ============================================================ */

/* ---------- Dashboard performance chart ---------- */
.perf-card-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.perf-value-row { display: flex; align-items: baseline; gap: 10px; margin-bottom: 14px; }
.perf-value { font-size: 30px; font-weight: 700; font-family: var(--font-mono); letter-spacing: -.5px; }
.perf-badge {
  font-size: 11px; font-weight: 700; color: var(--green);
  background: var(--green-dim); border: 1px solid rgba(30,201,139,.3);
  padding: 3px 9px; border-radius: 999px;
  display: inline-flex; align-items: center; gap: 4px;
}
.chart-wrap { position: relative; height: 230px; }
.chart-wrap svg { width: 100%; height: 100%; overflow: visible; }
.chart-tooltip-dot { filter: drop-shadow(0 0 6px rgba(61,127,255,.8)); }

/* ---------- Open positions list ---------- */
.position-row {
  display: flex; align-items: center; gap: 14px;
  background: var(--bg-card-alt);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-md);
  padding: 12px 14px;
  margin-bottom: 8px;
}
.position-row:last-child { margin-bottom: 0; }
.pos-symbol-icon {
  width: 34px; height: 34px; border-radius: 9px; flex: 0 0 auto;
  display: flex; align-items: center; justify-content: center;
  font-size: 13px; font-weight: 700; color: #fff;
}
.pos-main { flex: 1; min-width: 0; }
.pos-symbol-row { display: flex; align-items: center; gap: 8px; }
.pos-symbol { font-weight: 700; font-size: 13.5px; }
.pos-sub { font-size: 11.5px; color: var(--text-tertiary); margin-top: 2px; }
.pos-pnl { text-align: right; flex: 0 0 auto; }
.pos-pnl-value { font-family: var(--font-mono); font-weight: 700; font-size: 14px; }
.pos-pnl-pct { font-size: 11px; color: var(--text-tertiary); }

/* ---------- Top performers list ---------- */
.performer-row { display: flex; align-items: center; gap: 10px; padding: 9px 0; border-bottom: 1px solid var(--border-soft); }
.performer-row:last-child { border-bottom: none; }
.performer-rank { width: 20px; font-size: 11px; font-weight: 700; color: var(--text-tertiary); text-align: center; }
.performer-icon { width: 28px; height: 28px; border-radius: 8px; display: flex; align-items: center; justify-content: center; font-size: 10.5px; font-weight: 700; color: #fff; flex: 0 0 auto; }
.performer-name { font-size: 12.5px; font-weight: 600; flex: 1; }
.performer-value { font-family: var(--font-mono); font-size: 12.5px; font-weight: 700; }

/* ---------- Mini bar chart (long vs short / day performance) ---------- */
.mini-bars { display: flex; align-items: flex-end; gap: 6px; height: 90px; padding-top: 10px; }
.mini-bar-col { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 6px; height: 100%; justify-content: flex-end; }
.mini-bar { width: 100%; border-radius: 3px 3px 0 0; min-height: 3px; }
.mini-bar-label { font-size: 9.5px; color: var(--text-tertiary); }

.lvs-row { display: flex; align-items: center; gap: 14px; margin-bottom: 14px; }
.lvs-stat { flex: 1; }
.lvs-stat-label { font-size: 11px; color: var(--text-tertiary); margin-bottom: 3px; }
.lvs-stat-value { font-family: var(--font-mono); font-weight: 700; font-size: 16px; }
.lvs-bar-track { height: 8px; border-radius: 4px; background: var(--bg-elevated); display: flex; overflow: hidden; }
.lvs-bar-fill.long { background: var(--blue); }
.lvs-bar-fill.short { background: var(--amber); }

/* ---------- Journal ---------- */
.propfirm-page { display:grid; gap:16px; max-width:1500px; margin:0 auto; color:var(--text-primary); }
.propfirm-hero { display:flex; align-items:center; justify-content:space-between; gap:20px; padding:24px 26px; border:1px solid rgba(61,127,255,.25); border-radius:16px; background:radial-gradient(ellipse at 78% 0%,rgba(61,127,255,.18),transparent 42%),linear-gradient(135deg,var(--bg-card),var(--bg-card-alt)); }
.propfirm-hero h2 { margin:7px 0 5px; font-size:26px; letter-spacing:-.5px; }
.propfirm-hero p,.propfirm-section-head p { max-width:800px; margin:0; color:var(--text-secondary); font-size:12px; line-height:1.6; }
.propfirm-eyebrow { color:var(--blue-bright); font-size:10px; font-weight:800; letter-spacing:1.2px; }
.propfirm-hero-mark { display:grid; place-items:center; gap:6px; flex:0 0 auto; color:var(--text-secondary); font-size:10px; }
.propfirm-hero-mark b { display:grid; place-items:center; width:48px; height:48px; border:1px solid rgba(61,127,255,.35); border-radius:14px; background:var(--blue-dim); color:var(--blue-bright); font-size:17px; }
.propfirm-notice,.propfirm-disclaimer { padding:13px 15px; border:1px solid var(--border-soft); border-radius:11px; background:var(--bg-card-alt); color:var(--text-secondary); font-size:11px; line-height:1.65; }
.propfirm-notice b,.propfirm-disclaimer b { color:var(--text-primary); }
.propfirm-disclaimer p { margin:5px 0 0; }
.propfirm-card,.propfirm-active-card,.propfirm-result-card { min-width:0; padding:19px; border:1px solid var(--border-soft); border-radius:14px; background:var(--bg-card); }
.propfirm-section-head,.propfirm-active-head { display:flex; align-items:flex-start; justify-content:space-between; gap:16px; margin-bottom:15px; }
.propfirm-section-head h3,.propfirm-active-head h3,.propfirm-result-card h3 { margin:4px 0 5px; font-size:17px; }
.propfirm-section-head h3 small { color:var(--text-tertiary); font-size:12px; font-weight:500; }
.propfirm-badge { padding:6px 9px; border:1px solid rgba(49,196,141,.25); border-radius:999px; background:rgba(49,196,141,.08); color:#44d39f; font-size:9px; font-weight:800; letter-spacing:.7px; white-space:nowrap; }
.propfirm-create-grid { display:grid; grid-template-columns:minmax(200px,1fr) minmax(180px,.75fr) auto; align-items:end; gap:12px; }
.propfirm-create-grid label { display:grid; gap:7px; color:var(--text-secondary); font-size:11px; font-weight:600; }
.propfirm-create-grid select { box-sizing:border-box; width:100%; min-height:42px; padding:9px 11px; border:1px solid var(--border); border-radius:8px; background:var(--bg-elevated); color:var(--text-primary); font:inherit; }
.propfirm-primary,.propfirm-secondary { min-height:40px; padding:0 15px; border-radius:8px; font:inherit; font-size:11px; font-weight:750; cursor:pointer; transition:filter .15s,transform .15s; }
.propfirm-primary { border:1px solid var(--blue); background:linear-gradient(135deg,#4388ff,#2865e7); color:#fff; box-shadow:0 5px 18px rgba(61,127,255,.18); }
.propfirm-primary:hover:not(:disabled),.propfirm-secondary:hover { filter:brightness(1.1); transform:translateY(-1px); }
.propfirm-primary:disabled { opacity:.45; cursor:not-allowed; }
.propfirm-primary span { margin-left:8px; }
.propfirm-secondary { border:1px solid var(--border); background:var(--bg-elevated); color:var(--text-primary); }
.propfirm-rule-preview { margin-top:12px; color:var(--text-tertiary); font-size:10px; line-height:1.5; }
.propfirm-active-card { border-color:rgba(61,127,255,.32); background:radial-gradient(ellipse at 100% 0%,rgba(61,127,255,.1),transparent 34%),var(--bg-card); }
.propfirm-active-head { align-items:center; }
.propfirm-status-pill,.propfirm-history-status { display:inline-flex; align-items:center; gap:6px; margin-top:5px; color:var(--text-secondary); font-size:10px; }
.propfirm-status-pill i { width:7px; height:7px; border-radius:50%; background:#31c48d; box-shadow:0 0 8px rgba(49,196,141,.55); }
.propfirm-status-pill[data-status="phase-ready"] i { background:#4388ff; }
.propfirm-stats-grid { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:10px; }
.propfirm-stats-grid article { display:flex; flex-direction:column; gap:5px; min-width:0; padding:13px; border:1px solid var(--border-soft); border-radius:10px; background:var(--bg-card-alt); }
.propfirm-stats-grid article>span { color:var(--text-secondary); font-size:10px; }
.propfirm-stats-grid article>b { overflow:hidden; color:var(--text-primary); font-family:var(--font-mono); font-size:16px; text-overflow:ellipsis; white-space:nowrap; }
.propfirm-stats-grid article>b.positive { color:#31c48d; }.propfirm-stats-grid article>b.negative { color:#f25c6b; }
.propfirm-stats-grid article>small { overflow:hidden; color:var(--text-tertiary); font-size:9px; text-overflow:ellipsis; white-space:nowrap; }
.propfirm-progress-grid { display:grid; grid-template-columns:1fr 1fr; gap:13px; margin-top:14px; }
.propfirm-progress-grid article { padding:13px; border:1px solid var(--border-soft); border-radius:10px; background:var(--bg-card-alt); }
.propfirm-progress-label { display:flex; justify-content:space-between; gap:10px; margin-bottom:9px; font-size:10px; }
.propfirm-progress-label span { color:var(--text-secondary); }.propfirm-progress-label b { color:var(--text-primary); font-family:var(--font-mono); font-size:10px; text-align:right; }
.propfirm-progress-track { height:7px; overflow:hidden; border-radius:6px; background:var(--bg-elevated); }
.propfirm-progress-track i { display:block; height:100%; min-width:0; border-radius:inherit; background:linear-gradient(90deg,#4388ff,#31c48d); transition:width .25s; }
.loss-progress .propfirm-progress-track i { background:linear-gradient(90deg,#f6a93b,#f25c6b); }
.propfirm-objectives { display:grid; gap:8px; margin-top:16px; }
.propfirm-objectives>span { margin-bottom:2px; color:var(--text-tertiary); font-size:9px; font-weight:800; letter-spacing:1px; }
.propfirm-objectives>div { display:flex; align-items:center; gap:9px; color:var(--text-secondary); font-size:11px; }
.propfirm-objectives i { display:grid; place-items:center; width:19px; height:19px; border:1px solid var(--border); border-radius:50%; color:var(--text-tertiary); font-size:9px; font-style:normal; }
.propfirm-objectives i.done { border-color:rgba(49,196,141,.4); background:rgba(49,196,141,.12); color:#31c48d; }
.propfirm-objectives small { color:var(--text-tertiary); }
.propfirm-phase-success { display:flex; align-items:center; justify-content:space-between; gap:12px; margin-top:15px; padding:13px; border:1px solid rgba(49,196,141,.25); border-radius:10px; background:rgba(49,196,141,.06); }
.propfirm-phase-success>div { display:grid; gap:4px; }.propfirm-phase-success b { font-size:12px; }.propfirm-phase-success span { color:var(--text-secondary); font-size:10px; }
.propfirm-active-foot { margin-top:13px; padding-top:10px; border-top:1px solid var(--border-soft); color:var(--text-tertiary); font-size:9px; }
.propfirm-model-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:12px; }
.propfirm-model-card { padding:14px; border:1px solid var(--border-soft); border-radius:10px; background:var(--bg-card-alt); }
.propfirm-model-card.selected { border-color:rgba(61,127,255,.55); box-shadow:0 0 0 1px rgba(61,127,255,.12) inset; }
.propfirm-model-card>div:first-child { display:flex; align-items:center; justify-content:space-between; gap:8px; margin-bottom:13px; }.propfirm-model-card>div:first-child b { font-size:12px; }.propfirm-model-card>div:first-child span { color:var(--text-tertiary); font-size:9px; }
.propfirm-model-metrics { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:9px; }
.propfirm-model-metrics span { display:flex; justify-content:space-between; gap:6px; color:var(--text-secondary); font-size:9px; }.propfirm-model-metrics b { color:var(--text-primary); font-family:var(--font-mono); font-size:9px; white-space:nowrap; }
.propfirm-rule-footnote { margin:13px 0 0; color:var(--text-tertiary); font-size:10px; line-height:1.6; }
.propfirm-history-list { display:grid; gap:7px; }
.propfirm-history-row { display:flex; align-items:center; gap:11px; width:100%; padding:10px; border:1px solid var(--border-soft); border-radius:9px; background:var(--bg-card-alt); color:var(--text-primary); text-align:left; cursor:pointer; }
.propfirm-history-row:hover,.propfirm-history-row.selected { border-color:rgba(61,127,255,.45); }
.propfirm-history-icon { display:grid; place-items:center; width:30px; height:30px; flex:0 0 auto; border-radius:8px; background:rgba(61,127,255,.12); color:var(--blue-bright); font-size:12px; font-weight:800; }.propfirm-history-icon.pro { background:rgba(168,121,255,.12); color:#b99aff; }
.propfirm-history-name { display:grid; flex:1; gap:3px; min-width:0; }.propfirm-history-name b { overflow:hidden; font-size:10px; text-overflow:ellipsis; white-space:nowrap; }.propfirm-history-name small { color:var(--text-tertiary); font-size:9px; }
.propfirm-history-status { margin:0; white-space:nowrap; }.propfirm-history-status[data-status="passed"] { color:#31c48d; }.propfirm-history-status[data-status="failed"],.propfirm-history-status[data-status="expired"] { color:#f25c6b; }
.propfirm-empty { display:grid; justify-items:center; gap:7px; padding:25px; color:var(--text-secondary); text-align:center; }.propfirm-empty>span { color:var(--blue-bright); font-size:24px; }.propfirm-empty b { color:var(--text-primary); font-size:12px; }.propfirm-empty p { margin:0; font-size:10px; }
.propfirm-result-card { display:flex; align-items:center; justify-content:space-between; gap:15px; border-color:rgba(242,92,107,.35); }.propfirm-result-card[data-status="passed"] { border-color:rgba(49,196,141,.35); }.propfirm-result-card h3 { margin-top:6px; }.propfirm-result-card p { color:var(--text-secondary); font-size:11px; }.propfirm-result-card>div>b { font-family:var(--font-mono); font-size:11px; }
.tv-prop-firm-badge { border-color:rgba(49,196,141,.42)!important; background:rgba(49,196,141,.09)!important; color:#43d4a1!important; white-space:nowrap; }
.tv-prop-firm-badge[hidden] { display:none!important; }
.light-mode .propfirm-hero { background:radial-gradient(ellipse at 78% 0%,rgba(61,127,255,.1),transparent 42%),linear-gradient(135deg,var(--bg-card),var(--bg-card-alt)); }
.light-mode .propfirm-notice,.light-mode .propfirm-disclaimer,.light-mode .propfirm-model-card,.light-mode .propfirm-history-row,.light-mode .propfirm-stats-grid article,.light-mode .propfirm-progress-grid article { background:var(--bg-card-alt); }
@media(max-width:900px) { .propfirm-stats-grid { grid-template-columns:repeat(2,minmax(0,1fr)); } }
@media(max-width:650px) { .propfirm-hero,.propfirm-section-head,.propfirm-active-head,.propfirm-result-card { align-items:flex-start; flex-direction:column; }.propfirm-hero-mark { display:none; }.propfirm-create-grid,.propfirm-progress-grid,.propfirm-model-grid { grid-template-columns:1fr; }.propfirm-create-grid .propfirm-primary { width:100%; }.propfirm-history-row { gap:7px; }.propfirm-history-status { max-width:100px; overflow:hidden; text-overflow:ellipsis; }.propfirm-phase-success { align-items:flex-start; flex-direction:column; } }

/* ---------- Journal ---------- */
.trade-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}
.trade-toolbar-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}
.trade-toolbar-actions a {
  text-decoration: none;
}

/* Shared Trade History controls, including record/import/review forms. */
.trades-page { color-scheme: dark; }
.trades-page .trade-toolbar { flex-wrap: wrap; margin-bottom: 20px; }
.trades-page .trade-toolbar-actions { flex-wrap: wrap; }
.trade-stats { display:flex; gap:24px; flex-wrap:wrap; margin-bottom:20px; color:var(--text-secondary); font-size:12px; }
.trade-stats b { margin-left:8px; color:var(--text-primary); font-family:var(--font-mono); }
.trade-filters { display:grid; grid-template-columns:minmax(220px,2fr) repeat(3,minmax(110px,1fr)); gap:14px; padding:16px; margin-bottom:18px; background:var(--bg-card); border:1px solid var(--border-soft); border-radius:12px; }
.trades-page label { display:flex; flex-direction:column; gap:8px; color:var(--text-secondary); font-size:12px; font-weight:500; }
.trades-page input:not([type="checkbox"]), .trades-page select, .trades-page textarea {
  box-sizing:border-box; width:100%; min-height:38px; padding:9px 12px;
  background:var(--bg-elevated, #151b25); color:var(--text-primary, #e1e6ee);
  border:1px solid var(--border-soft, #293345); border-radius:7px; font:inherit;
}
.trades-page select option { background:var(--bg-card, #111722); color:var(--text-primary, #e1e6ee); }
.trades-page input::placeholder { color:var(--text-tertiary); }
.trades-page input:focus, .trades-page select:focus, .trades-page textarea:focus { outline:2px solid var(--blue); outline-offset:1px; }
.trades-page input[type="file"]::file-selector-button { border:0; border-radius:5px; padding:7px 10px; margin-right:10px; background:var(--blue); color:white; cursor:pointer; }
.trades-page .bt-tabs-body { overflow-x:auto; }
.trade-draft-notice { padding:12px 16px; border:1px solid var(--border-soft); border-radius:8px; color:var(--amber); background:var(--bg-card); font-size:12px; }
.light-mode .trades-page { color-scheme:light; }
@media(max-width:760px) { .trade-filters { grid-template-columns:repeat(2,minmax(0,1fr)); } .trade-search-field { grid-column:1/-1; } }
@media(max-width:420px) { .trade-filters { grid-template-columns:1fr; } }

/* ---------- Journal ---------- */
.journal-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(360px, 420px); gap: 18px; align-items: start; }
.journal-entry {
  background: var(--bg-card);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-lg);
  padding: 16px;
  margin-bottom: 12px;
}
.journal-entry-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; }
.journal-entry-title { font-weight: 700; font-size: 14px; }
.journal-entry-date { font-size: 11px; color: var(--text-tertiary); }
.journal-entry-note { font-size: 13px; color: var(--text-secondary); line-height: 1.55; white-space: pre-wrap; }
.journal-tags { display: flex; gap: 6px; margin-top: 10px; flex-wrap: wrap; }
.journal-tag { font-size: 10.5px; font-weight: 600; padding: 3px 9px; border-radius: 999px; background: var(--bg-elevated); color: var(--text-secondary); border: 1px solid var(--border); }
.mood-emoji { font-size: 15px; }
.journal-delete { color: var(--text-tertiary); background: transparent; border: none; padding: 4px; border-radius: 5px; }
.journal-delete:hover { color: var(--red); background: var(--red-dim); }

.journal-compose-card {
  position: sticky;
  top: 12px;
  overflow: hidden;
  border-color: rgba(83, 101, 138, .62);
  background:
    linear-gradient(145deg, rgba(28, 35, 52, .62), rgba(10, 13, 21, .96) 42%),
    var(--bg-card);
  box-shadow: 0 18px 50px rgba(0,0,0,.28), 0 0 0 1px rgba(255,255,255,.025) inset;
}
.journal-compose-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 2px;
  background: linear-gradient(90deg, #4f8cff, #22c55e, #f59e0b);
  opacity: .9;
}
.journal-compose-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 4px;
}
.journal-compose-badge {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 0 9px;
  border: 1px solid rgba(84, 132, 255, .28);
  border-radius: 999px;
  background: rgba(37, 99, 235, .12);
  color: #9fc0ff;
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .04em;
}
.journal-form label { display: block; font-size: 11.5px; font-weight: 700; color: #aeb9cf; margin: 12px 0 6px; }
.journal-form label:first-child { margin-top: 0; }
.journal-form input[type="text"],
.journal-form input[type="number"],
.journal-form textarea,
.journal-form select {
  width: 100%;
  min-height: 38px;
  background: linear-gradient(180deg, rgba(23, 29, 43, .98), rgba(17, 22, 34, .98));
  border: 1px solid rgba(77, 91, 123, .62);
  border-radius: 8px;
  padding: 9px 11px;
  color: var(--text-primary);
  font-size: 13px;
  font-family: var(--font-sans);
  outline: none;
  resize: vertical;
  box-shadow: 0 1px 0 rgba(255,255,255,.035) inset;
  transition: border-color .15s ease, box-shadow .15s ease, background .15s ease, transform .15s ease;
}
.journal-form textarea { min-height: 100px; line-height: 1.5; }
.journal-form input:hover,
.journal-form textarea:hover,
.journal-form select:hover {
  border-color: rgba(112, 130, 164, .86);
}
.journal-form input:focus,
.journal-form textarea:focus,
.journal-form select:focus {
  border-color: rgba(84, 132, 255, .95);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, .18), 0 1px 0 rgba(255,255,255,.04) inset;
}
.journal-form input[type="number"] {
  appearance: textfield;
  font-family: var(--font-mono);
}
.journal-form input[type="number"]::-webkit-outer-spin-button,
.journal-form input[type="number"]::-webkit-inner-spin-button {
  appearance: none;
  margin: 0;
}
.mood-picker {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 6px;
}
.mood-opt {
  min-width: 0;
  min-height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 0 8px;
  border-radius: 9px;
  background: rgba(16, 21, 33, .82);
  border: 1px solid rgba(77, 91, 123, .5);
  color: #8f9bb2;
  font-size: 12px;
  font-weight: 750;
  letter-spacing: 0;
  white-space: nowrap;
  cursor: pointer;
  transition: transform .15s ease, color .15s ease, border-color .15s ease, background .15s ease, box-shadow .15s ease;
}
.mood-opt:hover {
  transform: translateY(-1px);
  color: var(--text-primary);
  border-color: rgba(84, 132, 255, .56);
  background: rgba(30, 39, 60, .92);
}
.mood-opt.selected {
  color: #f8fbff;
  border-color: rgba(84, 132, 255, .94);
  background: linear-gradient(180deg, rgba(59, 130, 246, .32), rgba(29, 78, 216, .18));
  box-shadow: 0 0 0 1px rgba(84, 132, 255, .18) inset, 0 10px 22px rgba(37, 99, 235, .18);
}
.mood-opt:focus-visible {
  outline: 2px solid rgba(84, 132, 255, .9);
  outline-offset: 2px;
}

/* ---------- Backtesting / chart screen ---------- */
.bt-engine-stack {
  display: grid;
  gap: 16px;
  margin: -22px -24px -16px;
}

/* ---------- TradingView online widget page ---------- */
.tradingview-page {
  height: calc(100vh - 64px);
  margin: -22px -24px -16px;
  display: flex;
  flex-direction: column;
  min-height: 0;
  background:
    linear-gradient(180deg, rgba(16, 18, 23, 0.96), rgba(9, 10, 14, 0.98)),
    #0b0d10;
  animation: tradingview-page-in 180ms ease-out both;
}
.tradingview-page-head {
  min-height: 54px;
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 0 14px 0 16px;
  border-bottom: 1px solid #202329;
  background:
    linear-gradient(180deg, rgba(23, 26, 34, 0.92), rgba(13, 15, 20, 0.96)),
    #101114;
  box-shadow: inset 0 -1px 0 rgba(255, 255, 255, 0.02);
}
.tradingview-page-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  flex: 0 0 auto;
}
.tradingview-page-head h2 {
  margin: 0;
  font-size: 15px;
  font-weight: 800;
  letter-spacing: 0;
}
.tradingview-page-head p {
  margin: 2px 0 0;
  color: #8f95a3;
  font-size: 11.5px;
}
.tradingview-date-jump {
  height: 32px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 0 9px;
  border: 1px solid #2a2e39;
  border-radius: 6px;
  background:
    linear-gradient(180deg, rgba(31, 35, 46, 0.86), rgba(18, 21, 29, 0.92)),
    #15181f;
  color: #8f95a3;
  font-size: 11px;
  font-weight: 700;
  transition: border-color 140ms ease, box-shadow 140ms ease, transform 140ms ease;
}
.tradingview-date-jump:focus-within,
.tradingview-date-jump:hover {
  border-color: rgba(61, 127, 255, 0.55);
  box-shadow: 0 0 0 3px rgba(61, 127, 255, 0.12);
  transform: translateY(-1px);
}
.tradingview-date-jump input {
  width: 132px;
  border: 0;
  outline: none;
  background: transparent;
  color: #d1d4dc;
  font-family: var(--font-mono);
  font-size: 11px;
}
.tradingview-date-jump input::-webkit-calendar-picker-indicator {
  filter: invert(1) opacity(0.72);
  cursor: pointer;
}
.tradingview-action-btn {
  height: 32px;
  min-width: 32px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin: 0;
  padding: 0 9px;
  border-radius: 6px;
  border: 1px solid #2a2e39;
  background:
    linear-gradient(180deg, rgba(31, 35, 46, 0.9), rgba(17, 20, 28, 0.98)),
    #15181f;
  color: #c6cad3;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0;
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.16);
  transition: background 140ms ease, border-color 140ms ease, color 140ms ease, transform 140ms ease, box-shadow 140ms ease;
}
.tradingview-action-btn svg {
  width: 14px;
  height: 14px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex: 0 0 auto;
}
.tradingview-action-btn:hover {
  border-color: rgba(61, 127, 255, 0.55);
  background:
    linear-gradient(180deg, rgba(42, 48, 64, 0.95), rgba(23, 27, 37, 1)),
    #1a1f2b;
  color: #ffffff;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.28), 0 0 0 3px rgba(61, 127, 255, 0.1);
  transform: translateY(-1px);
}
.tradingview-action-btn:active {
  transform: translateY(0);
  box-shadow: 0 5px 14px rgba(0, 0, 0, 0.2);
}
.tradingview-action-btn:focus-visible {
  outline: none;
  border-color: #5b93ff;
  box-shadow: 0 0 0 3px rgba(61, 127, 255, 0.22);
}
.tradingview-action-btn.primary {
  border-color: rgba(61, 127, 255, 0.72);
  background:
    linear-gradient(180deg, rgba(72, 135, 255, 0.98), rgba(45, 102, 224, 0.98)),
    #3d7fff;
  color: #ffffff;
}
.tradingview-online-pill {
  height: 26px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 0 10px;
  border: 1px solid rgba(30, 201, 139, 0.35);
  border-radius: 999px;
  background:
    linear-gradient(180deg, rgba(30, 201, 139, 0.16), rgba(30, 201, 139, 0.08)),
    rgba(30, 201, 139, 0.1);
  color: #1ec98b;
  font-size: 11px;
  font-weight: 700;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.02);
}
.tradingview-online-pill::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
  box-shadow: 0 0 10px currentColor;
  animation: tradingview-live-pulse 1.8s ease-in-out infinite;
}
.tradingview-page-note {
  min-height: 28px;
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  padding: 0 16px;
  border-bottom: 1px solid #202329;
  background: #0c0e13;
  color: #8f95a3;
  font-size: 11px;
  animation: tradingview-note-in 220ms ease-out both;
}
.tradingview-widget-shell {
  position: relative;
  flex: 1 1 auto;
  min-height: 0;
  overflow: hidden;
  background: #0f1117;
  border-top: 1px solid rgba(255, 255, 255, 0.02);
}
.tradingview-widget-frame {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 1;
  animation: tradingview-frame-in 260ms ease-out both;
}
.tradingview-widget-frame iframe {
  display: block;
}
.tradingview-state {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 24px;
  text-align: center;
  background:
    radial-gradient(circle at center, rgba(61, 127, 255, 0.08), transparent 40%),
    #0f1117;
  color: #d1d4dc;
  animation: tradingview-state-in 180ms ease-out both;
}
.tradingview-state[hidden],
.tradingview-widget-frame[hidden] {
  display: none;
}
.tradingview-state strong {
  font-size: 14px;
  font-weight: 700;
}
.tradingview-state span {
  max-width: 360px;
  color: #8f95a3;
  font-size: 12px;
  line-height: 1.45;
}
.tradingview-spinner {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 3px solid rgba(61, 127, 255, 0.18);
  border-top-color: #3d7fff;
  animation: tradingview-spin 0.85s linear infinite;
}
@keyframes tradingview-page-in {
  from { opacity: 0; transform: translateY(5px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes tradingview-frame-in {
  from { opacity: 0; transform: scale(0.998); }
  to { opacity: 1; transform: scale(1); }
}
@keyframes tradingview-note-in {
  from { opacity: 0; transform: translateY(-3px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes tradingview-state-in {
  from { opacity: 0; }
  to { opacity: 1; }
}
@keyframes tradingview-live-pulse {
  0%, 100% { opacity: 0.55; transform: scale(0.9); }
  50% { opacity: 1; transform: scale(1.12); }
}
@keyframes tradingview-spin {
  to { transform: rotate(360deg); }
}

@media (max-width: 900px) {
  .tradingview-page-head {
    align-items: flex-start;
    flex-direction: column;
    padding: 10px 12px;
  }
  .tradingview-page-actions {
    width: 100%;
    justify-content: flex-start;
    flex-wrap: wrap;
  }
  .tradingview-page-note {
    min-height: 34px;
    padding: 6px 12px;
  }
}

.tv-shell {
  min-width: 0;
  max-width: 100%;
  height: calc(100vh - 94px);
  display: flex;
  flex-direction: column;
  background: #0b0d10;
}
.tv-external-chart-panel {
  min-height: 640px;
  margin: 0 0 24px;
  border: 1px solid #202329;
  background: #0b0d10;
  display: flex;
  flex-direction: column;
}
.tv-external-chart-head {
  min-height: 46px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 0 14px;
  border-bottom: 1px solid #202329;
  background: #101114;
  color: #d1d4dc;
}
.tv-external-chart-head b {
  display: block;
  font-size: 13px;
}
.tv-external-chart-head span {
  color: #8f95a3;
  font-size: 11px;
}
.tv-external-chart-tags {
  display: flex;
  align-items: center;
  gap: 6px;
}
.tv-external-chart-tags span {
  height: 24px;
  display: inline-flex;
  align-items: center;
  padding: 0 8px;
  border: 1px solid #2a2e39;
  border-radius: 6px;
  background: #15181f;
  color: #d1d4dc;
  font-family: var(--font-mono);
  font-size: 11px;
}
.tv-external-chart-frame {
  min-height: 590px;
  flex: 1 1 auto;
  background: #0f1117;
}
.tv-external-chart-frame .tradingview-widget-container {
  height: 100%;
  width: 100%;
}
.tv-topbar {
  min-height: 46px;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 10px;
  border-bottom: 1px solid #202329;
  background: #101114;
  color: #d1d4dc;
  flex: 0 0 auto;
}
.tv-chart-commandbar {
  gap: 5px;
  overflow-x: auto;
  overflow-y: hidden;
  scrollbar-width: none;
}
.tv-chart-commandbar::-webkit-scrollbar { display: none; }
.tv-command-group,
.tv-command-market,
.tv-command-actions {
  display: inline-flex;
  align-items: center;
  flex: 0 0 auto;
}
.tv-symbol-command {
  height: 32px;
  border: 1px solid #252830;
  border-radius: 6px;
  background: #121419;
  padding-left: 7px;
}
.tv-search-glyph { color: #9ba1ad; font-size: 16px; }
.tv-symbol-select {
  height: 30px;
  background: transparent;
  color: #f1f3f6;
  border: 0;
  padding: 0 5px;
  font-weight: 700;
  outline: none;
}
.tv-command-select {
  height: 32px;
  flex: 0 0 auto;
  border: 1px solid transparent;
  border-radius: 6px;
  background: transparent;
  color: #d1d4dc;
  padding: 0 24px 0 8px;
  font-size: 12px;
  font-weight: 600;
  outline: none;
}
.tv-command-select:hover,
.tv-command-select:focus {
  border-color: #2a2e39;
  background: #191c22;
}
.tv-command-select option { background: #181a20; color: #d1d4dc; }
.tv-chart-type-select { max-width: 108px; }
.tv-indicator-select { max-width: 126px; }
.tv-command-market {
  min-width: 0;
  gap: 6px;
  margin-left: auto;
  padding: 0 7px;
}
.tv-command-actions { gap: 3px; }
.tv-order-command { color: #f6c453; font-weight: 700; }
.tv-order-command:hover { color: #ffd878; }
.tv-chart-commandbar .tv-icon-action svg { width: 17px; height: 17px; }
.tv-chart-commandbar .tv-icon-action,
.tv-chart-commandbar .tv-action { flex: 0 0 auto; }
.tv-chart-commandbar #chartSettingsBtn { font-size: 16px; }
@media (max-width: 1320px) {
  .tv-command-market { display: none; }
  .tv-chart-commandbar .tv-action { padding-inline: 7px; }
}
@media (max-width: 1040px) {
  .tv-chart-type-select,
  .tv-chart-commandbar #layoutBtn { display: none; }
}
.tv-price { font-family: var(--font-mono); font-weight: 700; }
.tv-change { font-size: 12px; font-family: var(--font-mono); }
.tv-divider { width: 1px; height: 22px; background: #2a2e39; margin: 0 3px; }
.tv-tool-btn, .tv-action {
  height: 28px;
  border: 1px solid transparent;
  background: transparent;
  color: #d1d4dc;
  border-radius: 5px;
  padding: 0 9px;
  font-size: 12px;
}
.tv-tool-btn { width: 30px; padding: 0; font-weight: 700; }
.tv-tool-btn:hover, .tv-action:hover, .tv-tool-btn.active, .tv-action.active { background: #1c2030; border-color: #2a2e39; color: #fff; }
.tv-source { margin-left: auto; font-size: 11px; color: #00b894; }
.tv-source.warn { color: var(--amber); }
.tv-session-menu-wrap {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.tv-session-current {
  min-width: 96px;
  color: #d1d4dc;
}
.tv-session-menu {
  position: absolute;
  top: 34px;
  left: 0;
  z-index: 40;
  width: 224px;
  display: grid;
  gap: 7px;
  padding: 10px;
  border: 1px solid #2a2e39;
  border-radius: 8px;
  background: rgba(16,17,20,.98);
  box-shadow: 0 18px 38px rgba(0,0,0,.42);
}
.tv-session-menu b {
  font-size: 10px;
  text-transform: uppercase;
  color: #8f95a3;
}
.tv-session-check {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: #d1d4dc;
}
.tv-session-check input { accent-color: #3d7fff; }
.tv-session-menu-sep { height: 1px; background: #2a2e39; margin: 2px 0; }
.tv-session-menu-link {
  height: 28px;
  border: 1px solid #2a2e39;
  background: #151820;
  color: #d1d4dc;
  border-radius: 6px;
  font-size: 12px;
}
.tv-workspace {
  min-width: 0;
  flex: 1;
  min-height: 0;
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr) 5px 300px;
}
.tv-left-rail {
  background: #101114;
  border-right: 1px solid #202329;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 7px;
  padding: 9px 5px;
}
.tv-rail-btn {
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid transparent;
  background: transparent;
  color: #d1d4dc;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 700;
  position: relative;
}
.tv-rail-btn svg {
  display: block;
  width: 20px;
  height: 20px;
  color: #d1d4dc;
}
.tv-rail-btn svg + .tv-rail-fav-btn,
.tv-rail-btn svg + .tv-cursor-caret {
  margin-left: 0;
}
.tv-rail-btn:hover svg,
.tv-rail-btn.active svg {
  color: #fff;
}
.tv-rail-btn:disabled {
  opacity: .38;
  pointer-events: none;
}
.tv-rail-group-popover {
  position: relative;
}
.tv-tool-flyout {
  position: absolute;
  left: 42px;
  top: 0;
  z-index: 30;
  width: 220px;
  display: grid;
  gap: 4px;
  padding: 9px;
  border: 1px solid #2a2e39;
  border-radius: 8px;
  background: linear-gradient(160deg, rgba(18,20,24,.98), rgba(10,12,15,.96));
  box-shadow: 0 18px 38px rgba(0,0,0,.42);
}
.tv-tool-flyout b {
  color: #8f95a3;
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: .04em;
  padding: 2px 4px 5px;
}
.tv-tool-flyout button {
  height: 34px;
  display: grid;
  grid-template-columns: 24px 1fr auto;
  align-items: center;
  gap: 8px;
  border: 1px solid transparent;
  border-radius: 6px;
  background: transparent;
  color: #d1d4dc;
  padding: 0 7px;
  text-align: left;
}
.tv-tool-flyout button:hover,
.tv-tool-flyout button.active {
  border-color: #3d7fff;
  background: rgba(61,127,255,.16);
}
.tv-tool-flyout svg {
  width: 18px;
  height: 18px;
}
.tv-tool-flyout kbd {
  color: #7f8796;
  font-family: var(--font-mono);
  font-size: 10px;
}
.tv-rail-btn:hover, .tv-rail-btn.active { background: #2a2e39; color: #fff; }
.tv-cursor-picker {
  position: relative;
}
.tv-cursor-picker-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 2px;
}
.tv-cursor-caret {
  font-size: 8px;
  color: #8f95a3;
  transform: translateY(1px);
}
.tv-cursor-menu {
  position: absolute;
  left: 38px;
  top: 0;
  z-index: 20;
  width: 250px;
  padding: 6px;
  border: 1px solid #2a2e39;
  border-radius: 8px;
  background: #1e1e1f;
  box-shadow: 0 18px 38px rgba(0, 0, 0, .42);
  display: none;
}
.tv-cursor-menu.open {
  display: block;
}
.tv-cursor-option,
.tv-cursor-toggle {
  width: 100%;
  min-height: 40px;
  display: flex;
  align-items: center;
  gap: 12px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: #d1d4dc;
  padding: 0 10px;
  font-size: 13px;
  text-align: left;
}
.tv-cursor-option:hover,
.tv-cursor-option.active {
  background: #f0f0f0;
  color: #111;
}
.tv-cursor-icon {
  width: 20px;
  color: inherit;
  font-size: 18px;
  text-align: center;
}
.tv-cursor-menu-sep {
  height: 1px;
  margin: 7px 0;
  background: #3a3a3c;
}
.tv-cursor-toggle {
  justify-content: space-between;
  min-height: 34px;
}
.tv-cursor-toggle i {
  width: 38px;
  height: 20px;
  border-radius: 999px;
  background: #f2f2f2;
  position: relative;
}
.tv-cursor-toggle i::after {
  content: "";
  position: absolute;
  top: 3px;
  right: 3px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: #303136;
  transition: transform .16s ease;
}
.tv-cursor-toggle:not(.active) i::after {
  transform: translateX(-18px);
}
.tv-chart-area {
  min-width: 0;
  min-height: 0;
  display: flex;
  flex-direction: column;
}
.tv-chart-head {
  min-width: 0;
  overflow: hidden;
  min-height: 36px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 6px 12px;
  color: #d1d4dc;
  background: #0b0d10;
  border-bottom: 1px solid #15181f;
}
.tv-chart-head b { font-weight: 700; }
.tv-chart-head span { color: #8f95a3; margin-left: 7px; font-size: 12px; }
.tv-ohlc {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  font-size: 12px;
  color: #8f95a3;
  font-family: var(--font-mono);
}
.tv-ohlc b { margin-left: 2px; color: #d1d4dc; }
.tv-chart-card {
  flex: 1;
  min-height: 420px;
  border: none;
  border-radius: 0;
  position: relative;
  overflow: hidden;
  overscroll-behavior: contain;
  touch-action: none;
}
.tv-bg-canvas,
.tv-canvas {
  width: 100%;
  height: 100%;
  display: block;
  position: absolute;
  inset: 0;
}
.tv-bg-canvas {
  z-index: 0;
  pointer-events: none;
}
.tv-canvas {
  z-index: 1;
  cursor: crosshair;
  touch-action: none;
  user-select: none;
}
.tv-drawing-canvas, .tv-interaction-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}
.tv-drawing-canvas { z-index: 2; }
.tv-interaction-canvas { z-index: 3; }
.tv-canvas.dragging {
  cursor: grabbing;
}
.tv-chart-controls {
  position: absolute;
  top: 12px;
  right: 90px;
  z-index: 4;
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.tv-control-group {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 8px;
  border-radius: 8px;
  background: rgba(11, 13, 16, .86);
  border: 1px solid #2a2e39;
  backdrop-filter: blur(10px);
}
.tv-control-label {
  color: #8f95a3;
  font-size: 11px;
  font-family: var(--font-mono);
}
.tv-control-btn {
  min-width: 28px;
  height: 28px;
  border: 1px solid #2a2e39;
  background: #15181f;
  color: #d1d4dc;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 700;
}
.tv-control-btn:hover,
.tv-control-btn.active {
  background: #1c2030;
  border-color: #3d7fff;
  color: #fff;
}
.tv-control-btn-wide {
  min-width: 62px;
  padding: 0 10px;
}
.tv-datetime-chip {
  position: absolute;
  left: 14px;
  top: 12px;
  z-index: 4;
  padding: 7px 10px;
  border-radius: 8px;
  background: rgba(11, 13, 16, .86);
  border: 1px solid #2a2e39;
  color: #d1d4dc;
  font-size: 11px;
  font-family: var(--font-mono);
  backdrop-filter: blur(10px);
}
.tv-crosshair-tip {
  display: none;
  position: absolute;
  z-index: 4;
  pointer-events: none;
  left: 0;
  top: 0;
  width: 232px;
  min-height: 126px;
  background: rgba(17, 19, 24, .94);
  border: 1px solid #2a2e39;
  color: #d1d4dc;
  border-radius: 6px;
  padding: 7px 9px;
  font-size: 11px;
  line-height: 1.55;
  font-family: var(--font-mono);
  box-shadow: 0 10px 28px rgba(0,0,0,.35);
  will-change: transform;
  contain: layout paint style;
}
.tv-crosshair-tip b {
  color: #fff;
}
body.settings-crosshair-ohlc-off .tv-crosshair-tip { display: none !important; }
.tv-chart-watermark {
  position: absolute;
  left: 14px;
  bottom: 108px;
  color: rgba(255,255,255,.75);
  font-size: 20px;
  font-weight: 800;
  pointer-events: none;
}
body.settings-watermark-off .tv-chart-watermark { display: none !important; }
.tv-drawing-manager {
  position: absolute;
  right: 12px;
  top: 52px;
  z-index: 12;
  pointer-events: auto;
  width: 286px;
  max-height: calc(100% - 88px);
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 10px;
  border: 1px solid #2a2e39;
  border-radius: 8px;
  background: linear-gradient(160deg, rgba(18, 20, 24, .96), rgba(10, 12, 15, .94));
  color: #d1d4dc;
  backdrop-filter: blur(12px);
  box-shadow: 0 14px 34px rgba(0,0,0,.35);
}
.tv-drawing-toolbar {
  position: absolute;
  left: 62px;
  right: 312px;
  top: 10px;
  z-index: 6;
  display: flex;
  align-items: center;
  gap: 6px;
  min-height: 34px;
  padding: 5px 6px;
  border: 1px solid #2a2e39;
  border-radius: 8px;
  background: linear-gradient(160deg, rgba(18, 20, 24, .94), rgba(10, 12, 15, .9));
  backdrop-filter: blur(12px);
  overflow: visible;
}
.tv-drawing-toolbar-title {
  color: #9aa1af;
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: .04em;
  padding: 0 5px;
}
.tv-fullscreen-replay {
  display: none;
}
.tv-shell.fullscreen-mode .tv-fullscreen-replay {
  position: absolute;
  left: 50%;
  bottom: 48px;
  z-index: 7;
  display: flex;
  align-items: center;
  gap: 6px;
  max-width: min(860px, calc(100% - 42px));
  padding: 7px 9px;
  border: 1px solid #2a2e39;
  border-radius: 8px;
  background: rgba(11, 13, 16, .92);
  color: #d1d4dc;
  transform: translateX(-50%);
  box-shadow: 0 14px 34px rgba(0,0,0,.35);
  backdrop-filter: blur(12px);
}
.tv-fullscreen-replay .replay-btn,
.tv-fullscreen-replay select {
  height: 26px;
  border: 1px solid #2a2e39;
  border-radius: 6px;
  background: #15181f;
  color: #d1d4dc;
  font-size: 11px;
  padding: 0 8px;
}
.tv-fullscreen-replay .replay-btn:hover,
.tv-fullscreen-replay .replay-btn.active {
  border-color: #3d7fff;
  background: #1c2030;
  color: #fff;
}
.tv-fullscreen-replay .fs-close-all-btn,
.bt-close-all-btn {
  border-color: rgba(255, 59, 79, .55);
  color: #ff6b78;
}
.tv-fullscreen-replay .fs-close-all-btn:hover,
.bt-close-all-btn:hover {
  border-color: #ff3b4f;
  background: rgba(255, 59, 79, .12);
  color: #fff;
}
.tv-fullscreen-replay-state,
.tv-fullscreen-replay-meta {
  white-space: nowrap;
  color: #8f95a3;
  font-size: 11px;
  font-family: var(--font-mono);
}
.tv-fullscreen-session-nav { display:none; }
.tv-shell.fullscreen-mode .tv-fullscreen-session-nav {
  position:absolute; top:12px; left:12px; z-index:8;
  display:grid; grid-template-columns:repeat(2,max-content); gap:6px 8px;
  padding:8px; border:1px solid #252c38; border-radius:8px;
  background:rgba(16,19,25,.92); box-shadow:0 8px 24px rgba(0,0,0,.28);
  backdrop-filter:blur(10px);
}
.tv-fullscreen-session-nav .replay-btn {
  min-width:116px; height:36px; border:1px solid #2a303b;
  border-radius:7px; background:#151a23; color:#d1d4dc;
  font-weight:650; cursor:pointer;
}
.tv-fullscreen-session-nav .replay-btn.active,
.tv-fullscreen-session-nav .replay-btn:hover { border-color:#3d7fff; color:#fff; background:#18243a; }
.tv-fullscreen-session-nav [data-fullscreen-session-nav="next"] { grid-column:1; }
.tv-shell.fullscreen-mode .tv-chart-controls { left:290px; right:90px; }
.tv-drawing-toolbar-favorites,
.tv-drawing-tool-categories,
.tv-drawing-tool-category > div {
  display: flex;
  align-items: center;
  gap: 5px;
}
.tv-drawing-tool-categories {
  overflow-x: auto;
  min-width: 0;
  scrollbar-width: thin;
}
.tv-drawing-tool-category {
  display: flex;
  align-items: center;
  gap: 5px;
  padding-left: 5px;
  border-left: 1px solid #2a2e39;
  white-space: nowrap;
}
.tv-drawing-tool-category b {
  color: #7f8796;
  font-size: 10px;
  text-transform: uppercase;
}
.tv-drawing-tool-btn {
  position: relative;
  height: 28px;
  min-width: 34px;
  border: 1px solid #2a2e39;
  border-radius: 6px;
  background: rgba(21, 24, 31, .78);
  color: #d1d4dc;
  font-size: 11px;
  padding: 0 7px;
}
.tv-drawing-toolbar.expanded .tv-drawing-tool-btn { min-width: 72px; }
.tv-drawing-tool-btn:hover,
.tv-drawing-tool-btn.active {
  border-color: #3d7fff;
  background: #1c2030;
  color: #fff;
}
.tv-drawing-tool-btn i {
  display: none;
  position: absolute;
  top: -6px;
  right: -4px;
  color: #7f8796;
  font-style: normal;
  font-size: 10px;
}
.tv-drawing-tool-btn:hover i,
.tv-drawing-tool-btn i.on { display: block; color: #f3c969; }
.tv-drawing-tool-search,
.tv-object-tree-tools input,
.tv-object-tree-tools select,
.tv-template-row select {
  height: 28px;
  border: 1px solid #2a2e39;
  border-radius: 6px;
  background: #0b0d10;
  color: #d1d4dc;
  padding: 0 7px;
  font-size: 11px;
}
.tv-drawing-tool-search { width: 112px; }
.tv-drawing-tool-results {
  display: none;
  position: absolute;
  left: 150px;
  top: 37px;
  z-index: 9;
  min-width: 220px;
  padding: 7px;
  border: 1px solid #2a2e39;
  border-radius: 8px;
  background: rgba(11, 13, 16, .96);
  box-shadow: 0 14px 34px rgba(0,0,0,.36);
}
.tv-drawing-tool-results.open {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px;
}
.tv-drawing-manager-head,
.tv-drawing-row,
.tv-drawing-style label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}
.tv-drawing-manager-head b { font-size: 12px; }
.tv-drawing-manager-head {
  min-height: 30px;
  padding-bottom: 6px;
  border-bottom: 1px solid #2a2e39;
}
.tv-drawing-manager-head span,
.tv-drawing-row small,
.tv-drawing-empty {
  color: #8f95a3;
  font-size: 11px;
  font-family: var(--font-mono);
}
.tv-drawing-style {
  display: grid;
  gap: 7px;
}
.tv-drawing-hide-selected {
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 1px solid #2a2e39;
  border-radius: 7px;
  background: #15181f;
  color: #d1d4dc;
  font-size: 12px;
  font-weight: 700;
}
.tv-drawing-panel-hide {
  position: absolute;
  top: 9px;
  right: 9px;
  z-index: 2;
  width: 24px;
  height: 24px;
  padding: 0;
  pointer-events: auto;
  cursor: pointer;
  border: 1px solid #2a2e39;
  border-radius: 6px;
  background: #10131a;
  color: #d1d4dc;
  font-size: 18px;
  line-height: 1;
  font-weight: 700;
}
.tv-drawing-panel-hide:hover {
  background: #1c2030;
  border-color: #ff3b4f;
  color: #fff;
}
.tv-drawing-manager-restore {
  position: absolute;
  right: 12px;
  top: 54px;
  z-index: 30;
  pointer-events: auto;
  cursor: pointer;
  height: 32px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 0 10px;
  border: 1px solid #2a2e39;
  border-radius: 7px;
  background: rgba(16, 18, 23, .92);
  color: #d1d4dc;
  box-shadow: 0 10px 24px rgba(0,0,0,.32);
  font-size: 12px;
  font-weight: 700;
}
.tv-drawing-manager-restore svg {
  width: 16px;
  height: 16px;
}
.tv-drawing-manager-restore:hover {
  background: #1c2030;
  border-color: #3d7fff;
  color: #fff;
}
.tv-drawing-hide-selected svg {
  width: 16px;
  height: 16px;
}
.tv-drawing-hide-selected:hover:not(:disabled) {
  background: #1c2030;
  border-color: #3d7fff;
  color: #fff;
}
.tv-drawing-hide-selected:disabled {
  opacity: .45;
}
.tv-object-tree-tools,
.tv-template-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 6px;
}
.tv-template-row button,
.tv-object-group-head button {
  height: 24px;
  border: 1px solid #2a2e39;
  border-radius: 6px;
  background: #15181f;
  color: #d1d4dc;
  font-size: 10px;
}
.tv-drawing-style label {
  font-size: 11px;
}
.tv-drawing-style input[type="range"] {
  width: 112px;
  accent-color: #3d7fff;
}
.tv-drawing-style input[type="color"] {
  width: 34px;
  height: 22px;
  border: 1px solid #2a2e39;
  border-radius: 5px;
  background: #15181f;
}
.tv-drawing-text-input {
  width: 100%;
  height: 30px;
  border: 1px solid #2a2e39;
  border-radius: 6px;
  background: #0b0d10;
  color: #d1d4dc;
  padding: 0 8px;
  font-size: 12px;
}
.tv-drawing-actions {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 6px;
}
.tv-drawing-actions button {
  height: 26px;
  border: 1px solid #2a2e39;
  border-radius: 6px;
  background: #15181f;
  color: #d1d4dc;
  font-size: 10px;
}
.tv-drawing-actions button:disabled { opacity: .45; }
.tv-delete-all-drawings {
  height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 1px solid rgba(255,59,79,.55);
  border-radius: 7px;
  background: linear-gradient(180deg, #ef3348, #c92034);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
}
.tv-delete-all-drawings svg {
  width: 17px;
  height: 17px;
}
.tv-delete-all-drawings:disabled {
  opacity: .45;
}
.tv-drawing-list {
  overflow-y: auto;
  display: grid;
  gap: 5px;
  padding-right: 2px;
}
.tv-object-symbol-head,
.tv-object-group-head {
  display: flex;
  align-items: center;
  gap: 6px;
  min-height: 26px;
  color: #d1d4dc;
  font-size: 11px;
}
.tv-object-symbol-head span,
.tv-object-group-head span {
  margin-left: auto;
  color: #7f8796;
  font-family: var(--font-mono);
}
.tv-object-group {
  border-top: 1px solid #2a2e39;
  border-bottom: 1px solid rgba(42,46,57,.4);
  border-left: 0;
  border-right: 0;
  border-radius: 0;
  padding: 5px;
  background: transparent;
}
.tv-object-group-children {
  display: grid;
  gap: 5px;
  margin-top: 5px;
  padding-left: 8px;
  border-left: 1px solid #2a2e39;
}
.tv-drawing-row {
  width: 100%;
  min-height: 30px;
  border: 1px solid transparent;
  border-radius: 6px;
  background: transparent;
  color: #d1d4dc;
  padding: 0 8px;
  font-size: 12px;
  text-align: left;
}
.tv-drawing-row:hover,
.tv-drawing-row.active {
  border-color: #3d7fff;
  background: linear-gradient(90deg, rgba(61,127,255,.34), rgba(61,127,255,.14));
}
.tv-shell.fullscreen-mode .tv-drawing-manager {
  top: 54px;
  max-height: calc(100vh - 110px);
}
.tv-range-row {
  height: 34px;
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  gap: 3px;
  padding: 0 11px;
  background: #101114;
  border-top: 1px solid #202329;
}
.tv-range-row button {
  border: none;
  background: transparent;
  color: #d1d4dc;
  height: 24px;
  padding: 0 8px;
  border-radius: 5px;
  font-size: 12px;
}
.tv-range-row button:hover { background: #1c2030; }
.tv-clock { margin-left: auto; color: #d1d4dc; font-family: var(--font-mono); font-size: 12px; }
.tv-right-panel {
  min-height: 0;
  overflow-y: auto;
  background: #101114;
  border-left: 1px solid #202329;
  padding: 10px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.tv-panel {
  border: 1px solid #202329;
  background: #111318;
  border-radius: 8px;
  padding: 12px;
}
.tv-panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 10px;
  color: #d1d4dc;
  font-size: 12px;
}
.tv-panel-head span { color: #8f95a3; font-size: 11px; }
.tv-news-panel {
  display: grid;
  gap: 8px;
}
.tv-news-list {
  display: grid;
  gap: 7px;
}
.tv-news-item {
  padding: 8px;
  border: 1px solid #202329;
  border-radius: 7px;
  background: #0f1117;
}
.tv-news-kicker {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 4px;
  color: #7f8796;
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
}
.tv-news-kicker b {
  color: #5f6878;
  font-family: var(--font-mono);
  font-size: 10px;
}
.tv-news-title {
  color: #d1d4dc;
  font-size: 12px;
  line-height: 1.35;
}
.tv-news-meta {
  margin-top: 4px;
  color: #8f95a3;
  font-size: 10.5px;
}
.tv-watch-group {
  color: #787b86;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .5px;
  margin: 11px 0 4px;
}
.tv-watch-row {
  width: 100%;
  display: grid;
  grid-template-columns: 1fr auto 48px;
  align-items: center;
  gap: 8px;
  border: none;
  background: transparent;
  color: #d1d4dc;
  padding: 7px 6px;
  border-radius: 6px;
  font-size: 12px;
}
.tv-watch-row:hover, .tv-watch-row.active { background: #1c2030; }
.tv-watch-row span { display: flex; align-items: center; gap: 7px; font-weight: 700; }
.tv-watch-row i { width: 10px; height: 10px; border-radius: 50%; display: inline-block; }
.tv-watch-row b { font-family: var(--font-mono); font-size: 11px; }
.tv-watch-row em { font-style: normal; font-family: var(--font-mono); font-size: 11px; text-align: right; }
.replay-speed-presets {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 6px;
  margin: 8px 0;
}
.replay-speed-presets button {
  height: 26px;
  border: 1px solid #2a2e39;
  background: #15181f;
  color: #d1d4dc;
  border-radius: 6px;
  font-size: 11px;
  font-family: var(--font-mono);
}
.replay-speed-presets button:hover,
.replay-speed-presets button.active {
  border-color: #3d7fff;
  background: #1c2030;
  color: #fff;
}
.replay-speed-presets button.locked {
  color: #6b7284;
  background: #121419;
  border-style: dashed;
  cursor: not-allowed;
}
.replay-speed-presets button.locked:hover {
  border-color: #efc75e;
  color: #efc75e;
  background: #121419;
}
.replay-date-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 58px;
  gap: 8px;
  margin: 8px 0;
}
.replay-date-row input {
  min-width: 0;
  height: 32px;
  border: 1px solid #2a2e39;
  background: #0b0d10;
  color: #d1d4dc;
  border-radius: 6px;
  padding: 0 8px;
  font-size: 11px;
  font-family: var(--font-mono);
}
.replay-progress-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 42px;
  align-items: center;
  gap: 8px;
  margin: 8px 0;
}
.replay-progress-row input {
  width: 100%;
  min-width: 0;
  accent-color: #3d7fff;
}
.replay-progress-row span {
  color: #8f95a3;
  font-size: 11px;
  font-family: var(--font-mono);
  text-align: right;
}
.tv-order-card { margin-top: 0; background: #111318; border-color: #202329; }
.tv-detail-title { display: flex; align-items: center; gap: 9px; }
.tv-detail-title b { display: block; color: #fff; }
.tv-detail-title span { color: #8f95a3; font-size: 11px; }
.tv-detail-price { font-size: 26px; font-family: var(--font-mono); font-weight: 800; margin: 12px 0 2px; }
.tv-key-stats {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px;
  margin-top: 14px;
  font-size: 12px;
}
.tv-key-stats span { color: #8f95a3; }
.tv-key-stats b { color: #d1d4dc; font-family: var(--font-mono); font-size: 11px; text-align: right; }

.bt-topstrip {
  display: flex; align-items: center; gap: 14px;
  padding: 10px 16px;
  background: var(--bg-card-alt);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-md);
  margin-bottom: 12px;
  font-size: 12.5px;
}
.bt-symbol-badge { display: flex; align-items: center; gap: 8px; font-weight: 700; }
.bt-symbol-badge .pos-symbol-icon { width: 24px; height: 24px; font-size: 10px; border-radius: 6px; }
.bt-stat { color: var(--text-tertiary); }
.bt-stat b { color: var(--text-primary); font-family: var(--font-mono); }
.bt-tf-row { display: flex; gap: 4px; margin-left: auto; }
.bt-tf-btn {
  font-size: 11.5px; font-weight: 600; padding: 6px 11px; border-radius: 6px;
  background: transparent; border: 1px solid transparent; color: var(--text-secondary);
}
.bt-tf-btn.active { background: var(--blue-dim); color: var(--blue-bright); border-color: rgba(61,127,255,.3); }
.bt-tf-btn:hover:not(.active) { background: var(--bg-hover); }

.bt-layout { display: grid; grid-template-columns: 1fr 300px; gap: 14px; height: calc(100vh - 240px); min-height: 520px; }
.bt-chart-col { display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.bt-side-col { min-width: 0; }
.bt-chart-card {
  flex: 1; background: #000; border: 1px solid var(--border-soft); border-radius: var(--radius-lg);
  overflow: hidden; position: relative; min-height: 360px;
}
.bt-chart-card svg { width: 100%; height: 100%; display: block; }
.bt-chart-card.tv-chart-card {
  background: #0b0d10;
  border: none;
  border-radius: 0;
  min-height: 420px;
}
.bt-price-tag {
  position: absolute; right: 0; font-size: 11px; font-weight: 700; font-family: var(--font-mono);
  padding: 3px 8px; border-radius: 4px 0 0 4px; color: #fff;
}

.bt-bottom-tabs { background: var(--bg-card); border: 1px solid var(--border-soft); border-radius: var(--radius-lg); overflow: hidden; }
.bt-tabs-head { display: flex; border-bottom: 1px solid var(--border-soft); }
.bt-tab-btn { flex: 0 0 auto; padding: 10px 18px; font-size: 12.5px; font-weight: 600; color: var(--text-tertiary); background: transparent; border: none; border-bottom: 2px solid transparent; }
.bt-tab-btn.active { color: var(--text-primary); border-bottom-color: var(--blue); }
.bt-tabs-body { padding: 14px 16px; max-height: 210px; overflow-y: auto; }

.replay-card { background: var(--bg-card); border: 1px solid var(--border-soft); border-radius: var(--radius-lg); padding: 14px; }
.tv-session-panel { display: grid; gap: 10px; }
.tv-session-status {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 8px 9px;
  border: 1px solid #2a2e39;
  border-radius: 7px;
  background: #11141a;
}
.tv-session-status b { font-size: 12px; color: #f1f3f6; }
.tv-session-status span { font-size: 11px; color: #8f95a3; }
.tv-mini-panel-btn {
  height: 24px;
  padding: 0 8px;
  border: 1px solid #2a2e39;
  border-radius: 6px;
  background: #11141a;
  color: #8f95a3;
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
}
.tv-mini-panel-btn:hover {
  border-color: #3d7fff;
  color: #fff;
}
.tv-session-panel-restore {
  width: 100%;
  margin-bottom: 10px;
  border-color: rgba(61, 127, 255, .35);
  color: #8cb3ff;
}
.tv-session-quick {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
}
.tv-session-quick .replay-btn.active,
.tv-session-nav-grid .replay-btn.active {
  border-color: #3d7fff;
  background: rgba(61, 127, 255, .16);
  color: #fff;
}
.tv-session-selected {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  color: #8f95a3;
  font-size: 11px;
}
.tv-session-selected b {
  color: #f1f3f6;
  font-size: 12px;
}
.tv-session-form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}
.tv-session-nav-grid {
  grid-template-columns: 1fr 1fr 1fr;
  margin-bottom: 0;
}
.tv-session-form label,
.tv-session-setting-row label {
  display: grid;
  gap: 5px;
  color: #8f95a3;
  font-size: 10px;
  text-transform: uppercase;
}
.tv-session-form input,
.tv-session-form select,
.tv-session-setting-row input,
.tv-session-setting-row select {
  min-width: 0;
  height: 30px;
  border: 1px solid #2a2e39;
  border-radius: 6px;
  background: #11141a;
  color: #d1d4dc;
  padding: 0 8px;
  font-size: 12px;
}
.tv-session-settings {
  display: grid;
  gap: 8px;
  padding-top: 4px;
}
.tv-session-setting-row {
  display: grid;
  grid-template-columns: 1.15fr .8fr .8fr 1.35fr;
  gap: 6px;
  align-items: end;
}
.tv-session-setting-row label {
  text-transform: none;
  color: #d1d4dc;
}
.tv-session-range-table {
  border-top: 1px solid #2a2e39;
  padding-top: 7px;
  color: #8f95a3;
  font-size: 11px;
}
.tv-session-range-table summary { cursor: pointer; }
.tv-session-range-table table { width: 100%; border-collapse: collapse; margin-top: 6px; }
.tv-session-range-table th,
.tv-session-range-table td { padding: 4px 3px; text-align: right; border-bottom: 1px solid rgba(42,46,57,.65); }
.tv-session-range-table th:first-child,
.tv-session-range-table td:first-child { text-align: left; }
.replay-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-bottom: 12px; }
.replay-btn { padding: 10px 0; border-radius: var(--radius-sm); background: var(--bg-elevated); border: 1px solid var(--border); color: var(--text-primary); font-size: 12.5px; font-weight: 600; display: flex; align-items: center; justify-content: center; gap: 6px; }
.replay-btn:hover { background: var(--bg-hover); }
.replay-btn.playing { background: var(--blue); border-color: var(--blue); }
.speed-row { display: flex; align-items: center; gap: 8px; font-size: 11.5px; color: var(--text-tertiary); }
.speed-row input[type="range"] { flex: 1; accent-color: var(--blue); }

.order-card { background: var(--bg-card); border: 1px solid var(--border-soft); border-radius: var(--radius-lg); padding: 16px; margin-top: 10px; }
.tv-plan-btn { width: 100%; display: flex; flex-direction: column; gap: 3px; margin: 0 0 12px; padding: 9px 11px; border: 1px solid rgba(61,127,255,.45); border-radius: 8px; background: rgba(61,127,255,.12); color: var(--text-primary); text-align: left; font-size: 12px; font-weight: 700; }
.tv-plan-btn span { color: var(--text-secondary); font-family: var(--font-mono); font-size: 10px; font-weight: 500; }
.tv-plan-btn:hover { border-color: var(--blue); background: rgba(61,127,255,.2); }
.order-helper { margin: -5px 0 10px; color: var(--text-secondary); font-size: 10px; line-height: 1.35; }
.order-tabs { display: flex; gap: 4px; background: var(--bg-elevated); border-radius: var(--radius-sm); padding: 3px; margin-bottom: 14px; }
.order-tab-btn { flex: 1; padding: 7px 0; font-size: 12px; font-weight: 600; border-radius: 5px; background: transparent; border: none; color: var(--text-tertiary); }
.order-tab-btn.active { background: var(--blue); color: #fff; }
.field-row { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; }
.field-label { font-size: 12px; color: var(--text-secondary); display: flex; align-items: center; gap: 6px; }
.field-label input[type="checkbox"] { accent-color: var(--blue); }
.stepper { display: flex; align-items: center; gap: 0; background: var(--bg-input); border: 1px solid var(--border); border-radius: var(--radius-sm); overflow: hidden; }
.stepper button { width: 26px; height: 30px; background: transparent; border: none; color: var(--text-secondary); font-size: 14px; }
.stepper button:hover { background: var(--bg-hover); }
.stepper input { width: 60px; text-align: center; background: transparent; border: none; color: var(--text-primary); font-family: var(--font-mono); font-size: 12.5px; outline: none; }
.pip-input { width: 80px; text-align: right; background: var(--bg-input); border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 6px 8px; color: var(--text-primary); font-family: var(--font-mono); font-size: 12.5px; outline: none; }
.pip-input:disabled { opacity: .4; }

.order-info-row { display: flex; justify-content: space-between; font-size: 11.5px; color: var(--text-tertiary); padding: 5px 0; }
.order-info-row b { color: var(--text-primary); font-family: var(--font-mono); font-weight: 600; }

.bt-trade-buttons { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 14px; }
.bt-sell-btn, .bt-buy-btn { padding: 13px 0; border-radius: var(--radius-md); text-align: center; border: none; }
.bt-sell-btn { background: var(--red); color: #fff; }
.bt-sell-btn:hover { background: #d92e3c; }
.bt-buy-btn { background: var(--blue); color: #fff; }
.bt-buy-btn:hover { background: var(--blue-bright); }
.bt-px-label { font-size: 9.5px; opacity: .8; text-transform: uppercase; letter-spacing: .4px; }
.bt-px-value { font-size: 15px; font-weight: 700; font-family: var(--font-mono); }

.bt-close-btn { width: 100%; margin-top: 8px; padding: 10px 0; border-radius: var(--radius-md); background: transparent; border: 1px solid var(--border); color: var(--text-secondary); font-size: 12.5px; font-weight: 600; }
.bt-close-btn:hover { border-color: var(--red); color: var(--red); }

.crosshair-line { stroke: #434651; stroke-width: 1; stroke-dasharray: 3,3; pointer-events: none; }

.journal-checklist {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin-top: 7px;
}
.journal-check {
  position: relative;
  display: flex;
  align-items: center;
  gap: 9px;
  min-height: 44px;
  padding: 9px 10px;
  border: 1px solid rgba(77, 91, 123, .5);
  background: rgba(16, 21, 33, .72);
  border-radius: 8px;
  font-size: 12px;
  font-weight: 650;
  color: #aeb9cf;
  cursor: pointer;
  transition: transform .14s ease, border-color .14s ease, background .14s ease, color .14s ease, box-shadow .14s ease;
}
.journal-check:hover {
  transform: translateY(-1px);
  border-color: rgba(84, 132, 255, .5);
  background: rgba(26, 34, 52, .86);
  color: var(--text-primary);
}
.journal-check:has(input:checked) {
  border-color: rgba(34, 197, 94, .58);
  background: linear-gradient(180deg, rgba(34, 197, 94, .16), rgba(21, 128, 61, .08));
  color: #dcfce7;
  box-shadow: 0 0 0 1px rgba(34, 197, 94, .12) inset;
}
.journal-check input {
  width: 16px;
  height: 16px;
  accent-color: #22c55e;
  flex: 0 0 auto;
}
.journal-check span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.journal-save-btn {
  width: 100%;
  min-height: 43px;
  margin-top: 16px;
  padding: 0 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  border: 1px solid rgba(80, 128, 255, .85);
  border-radius: 9px;
  background: linear-gradient(180deg, #4f83ff, #2463eb);
  box-shadow: 0 14px 28px rgba(37, 99, 235, .24), 0 1px 0 rgba(255,255,255,.18) inset;
  font-weight: 800;
  transition: transform .15s ease, box-shadow .15s ease, filter .15s ease;
}
.journal-save-btn svg {
  width: 16px;
  height: 16px;
}
.journal-save-btn:hover {
  transform: translateY(-1px);
  filter: brightness(1.05);
  box-shadow: 0 18px 34px rgba(37, 99, 235, .34), 0 1px 0 rgba(255,255,255,.2) inset;
}
.journal-save-btn:active {
  transform: translateY(0);
  box-shadow: 0 8px 18px rgba(37, 99, 235, .22), 0 1px 0 rgba(255,255,255,.13) inset;
}
.journal-meta-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 7px;
  margin-top: 10px;
}
.journal-meta-grid span,
.analytics-list > div {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  padding: 8px 0;
  border-bottom: 1px solid var(--border-soft);
  color: var(--text-tertiary);
  font-size: 12px;
}
.journal-meta-grid b,
.analytics-list b {
  color: var(--text-primary);
  font-family: var(--font-mono);
}
.insight-row {
  border: 1px solid var(--border-soft);
  border-left: 3px solid var(--blue);
  background: var(--bg-card-alt);
  border-radius: 8px;
  padding: 9px 10px;
  margin-bottom: 8px;
}
.insight-row.warning { border-left-color: var(--amber); }
.insight-row.danger { border-left-color: var(--red); }
.insight-row.success { border-left-color: var(--green); }
.insight-row b {
  display: block;
  color: var(--text-primary);
  font-size: 12px;
  margin-bottom: 3px;
}
.insight-row span {
  color: var(--text-secondary);
  font-size: 12px;
  line-height: 1.45;
}

@media (max-width: 900px) {
  .bt-layout { grid-template-columns: 1fr; height: auto; }
  .journal-layout { grid-template-columns: 1fr; }
  .tv-shell { height: auto; min-height: calc(100vh - 94px); }
  .tv-workspace { grid-template-columns: minmax(0, 1fr); }
  .tv-resize-handle { display: none; }
  .tv-right-panel { grid-column: 1; border-left: none; border-top: 1px solid #202329; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tv-chart-card { min-height: 520px; }
}

@media (max-width: 760px) {
  .tv-workspace { grid-template-columns: 1fr; }
  .tv-left-rail { display: none; }
  .tv-right-panel { grid-column: 1; grid-template-columns: 1fr; }
  .tv-topbar { flex-wrap: wrap; height: auto; padding: 8px; }
  .tv-chart-controls {
    left: 14px;
    right: 14px;
    top: auto;
    bottom: 12px;
  }
  .tv-datetime-chip {
    right: 14px;
    left: auto;
    max-width: calc(100% - 28px);
  }
}
/* On-demand object editing; the floating drawing collection stays removed. */
.tv-object-settings-backdrop { position:fixed; inset:0; z-index:1200; background:#0008; display:grid; place-items:center; }
.tv-object-settings { width:min(420px,92vw); max-height:80vh; overflow:auto; padding:18px; background:#141820; border:1px solid #343b48; border-radius:10px; color:#d1d4dc; box-shadow:0 20px 60px #0008; }
.tv-object-settings header { display:flex; justify-content:space-between; align-items:center; margin-bottom:16px; }
.tv-object-settings button,.tv-object-settings input,.tv-object-settings select { background:#1c222c; color:#d1d4dc; border:1px solid #343b48; border-radius:4px; padding:5px; }
.tv-object-settings label { display:flex; justify-content:space-between; align-items:center; gap:12px; margin:8px 0; font-size:12px; }
.tv-object-settings .tv-drawing-actions { display:flex; gap:5px; flex-wrap:wrap; margin-top:12px; }
.tv-tool-help {position:fixed;right:12px;top:100px;bottom:16px;width:min(420px,calc(100vw - 24px));z-index:1100;background:#12161e;color:#d1d4dc;border:1px solid #343b48;border-radius:8px;padding:16px;overflow:auto;box-shadow:0 12px 40px #0008;}
.tv-tool-help header {display:flex;justify-content:space-between;align-items:center;margin-bottom:12px;}
.tv-tool-help input {width:100%;box-sizing:border-box;margin-bottom:12px;}
.tv-tool-help button,.tv-tool-help input {background:#1d2430;color:#d1d4dc;border:1px solid #343b48;border-radius:4px;padding:8px;}
.tv-tool-help details {border-bottom:1px solid #29303b;padding:12px 0;font-size:13px;}
.tv-tool-help summary {cursor:pointer;display:flex;justify-content:space-between;gap:10px;align-items:center;font-weight:600;}
.tv-tool-help summary small {font-size:10px;color:#8f9bb0;text-transform:uppercase;}
.tv-tool-help p {line-height:1.5;color:#aeb8c9;}
.tv-tool-help details button {cursor:pointer;color:#fff;background:#2962ff;border-color:#2962ff;}
.tv-tool-help-empty {color:#aeb8c9;text-align:center;padding:20px 0;}
.tv-drawing-opacity-control {display:inline-flex;align-items:center;gap:5px;flex:0 0 auto;color:#aeb8c9;font-size:10px;white-space:nowrap;}
.tv-drawing-opacity-control input {width:64px;accent-color:#3d7fff;}
.tv-drawing-opacity-control output,.tv-opacity-field output {min-width:32px;color:#d1d4dc;font:10px var(--font-mono, monospace);text-align:right;}
.tv-opacity-field {display:inline-flex;align-items:center;gap:7px;}
.tv-opacity-field input {width:min(170px,48vw);accent-color:#3d7fff;}
@media (max-width:760px) {
  .tv-shell.fullscreen-mode .tv-chart-controls { left:12px; right:12px; top:112px; }
  .tv-shell.fullscreen-mode .tv-fullscreen-session-nav { top:8px; left:8px; }
}


/* Prop Firm Session practice dashboard */
.propfirm-page { display:grid; gap:16px; max-width:1500px; margin:0 auto; color:var(--text-primary); }
.propfirm-hero { display:flex; align-items:center; justify-content:space-between; gap:20px; padding:24px 26px; border:1px solid rgba(61,127,255,.25); border-radius:16px; background:radial-gradient(ellipse at 78% 0%,rgba(61,127,255,.18),transparent 42%),linear-gradient(135deg,var(--bg-card),var(--bg-card-alt)); }
.propfirm-hero h2 { margin:7px 0 5px; font-size:26px; letter-spacing:-.5px; }
.propfirm-hero p,.propfirm-section-head p { max-width:800px; margin:0; color:var(--text-secondary); font-size:12px; line-height:1.6; }
.propfirm-eyebrow { color:var(--blue-bright); font-size:10px; font-weight:800; letter-spacing:1.2px; }
.propfirm-hero-mark { display:grid; place-items:center; gap:6px; flex:0 0 auto; color:var(--text-secondary); font-size:10px; }
.propfirm-hero-mark b { display:grid; place-items:center; width:48px; height:48px; border:1px solid rgba(61,127,255,.35); border-radius:14px; background:var(--blue-dim); color:var(--blue-bright); font-size:17px; }
.propfirm-notice,.propfirm-disclaimer { padding:13px 15px; border:1px solid var(--border-soft); border-radius:11px; background:var(--bg-card-alt); color:var(--text-secondary); font-size:11px; line-height:1.65; }
.propfirm-notice b,.propfirm-disclaimer b { color:var(--text-primary); }
.propfirm-disclaimer p { margin:5px 0 0; }
.propfirm-card,.propfirm-active-card,.propfirm-result-card { min-width:0; padding:19px; border:1px solid var(--border-soft); border-radius:14px; background:var(--bg-card); }
.propfirm-section-head,.propfirm-active-head { display:flex; align-items:flex-start; justify-content:space-between; gap:16px; margin-bottom:15px; }
.propfirm-section-head h3,.propfirm-active-head h3,.propfirm-result-card h3 { margin:4px 0 5px; font-size:17px; }
.propfirm-section-head h3 small { color:var(--text-tertiary); font-size:12px; font-weight:500; }
.propfirm-badge { padding:6px 9px; border:1px solid rgba(49,196,141,.25); border-radius:999px; background:rgba(49,196,141,.08); color:#44d39f; font-size:9px; font-weight:800; letter-spacing:.7px; white-space:nowrap; }
.propfirm-create-grid { display:grid; grid-template-columns:minmax(200px,1fr) minmax(180px,.75fr) auto; align-items:end; gap:12px; }
.propfirm-create-grid label { display:grid; gap:7px; color:var(--text-secondary); font-size:11px; font-weight:600; }
.propfirm-create-grid select { box-sizing:border-box; width:100%; min-height:42px; padding:9px 11px; border:1px solid var(--border); border-radius:8px; background:var(--bg-elevated); color:var(--text-primary); font:inherit; }
.propfirm-primary,.propfirm-secondary { min-height:40px; padding:0 15px; border-radius:8px; font:inherit; font-size:11px; font-weight:750; cursor:pointer; transition:filter .15s,transform .15s; }
.propfirm-primary { border:1px solid var(--blue); background:linear-gradient(135deg,#4388ff,#2865e7); color:#fff; box-shadow:0 5px 18px rgba(61,127,255,.18); }
.propfirm-primary:hover:not(:disabled),.propfirm-secondary:hover { filter:brightness(1.1); transform:translateY(-1px); }
.propfirm-primary:disabled { opacity:.45; cursor:not-allowed; }
.propfirm-primary span { margin-left:8px; }
.propfirm-secondary { border:1px solid var(--border); background:var(--bg-elevated); color:var(--text-primary); }
.propfirm-rule-preview { margin-top:12px; color:var(--text-tertiary); font-size:10px; line-height:1.5; }
.propfirm-active-card { border-color:rgba(61,127,255,.32); background:radial-gradient(ellipse at 100% 0%,rgba(61,127,255,.1),transparent 34%),var(--bg-card); }
.propfirm-active-head { align-items:center; }
.propfirm-status-pill,.propfirm-history-status { display:inline-flex; align-items:center; gap:6px; margin-top:5px; color:var(--text-secondary); font-size:10px; }
.propfirm-status-pill i { width:7px; height:7px; border-radius:50%; background:#31c48d; box-shadow:0 0 8px rgba(49,196,141,.55); }
.propfirm-status-pill[data-status="phase-ready"] i { background:#4388ff; }
.propfirm-stats-grid { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:10px; }
.propfirm-stats-grid article { display:flex; flex-direction:column; gap:5px; min-width:0; padding:13px; border:1px solid var(--border-soft); border-radius:10px; background:var(--bg-card-alt); }
.propfirm-stats-grid article>span { color:var(--text-secondary); font-size:10px; }
.propfirm-stats-grid article>b { overflow:hidden; color:var(--text-primary); font-family:var(--font-mono); font-size:16px; text-overflow:ellipsis; white-space:nowrap; }
.propfirm-stats-grid article>b.positive { color:#31c48d; }.propfirm-stats-grid article>b.negative { color:#f25c6b; }
.propfirm-stats-grid article>small { overflow:hidden; color:var(--text-tertiary); font-size:9px; text-overflow:ellipsis; white-space:nowrap; }
.propfirm-progress-grid { display:grid; grid-template-columns:1fr 1fr; gap:13px; margin-top:14px; }
.propfirm-progress-grid article { padding:13px; border:1px solid var(--border-soft); border-radius:10px; background:var(--bg-card-alt); }
.propfirm-progress-label { display:flex; justify-content:space-between; gap:10px; margin-bottom:9px; font-size:10px; }
.propfirm-progress-label span { color:var(--text-secondary); }.propfirm-progress-label b { color:var(--text-primary); font-family:var(--font-mono); font-size:10px; text-align:right; }
.propfirm-progress-track { height:7px; overflow:hidden; border-radius:6px; background:var(--bg-elevated); }
.propfirm-progress-track i { display:block; height:100%; min-width:0; border-radius:inherit; background:linear-gradient(90deg,#4388ff,#31c48d); transition:width .25s; }
.loss-progress .propfirm-progress-track i { background:linear-gradient(90deg,#f6a93b,#f25c6b); }
.propfirm-objectives { display:grid; gap:8px; margin-top:16px; }
.propfirm-objectives>span { margin-bottom:2px; color:var(--text-tertiary); font-size:9px; font-weight:800; letter-spacing:1px; }
.propfirm-objectives>div { display:flex; align-items:center; gap:9px; color:var(--text-secondary); font-size:11px; }
.propfirm-objectives i { display:grid; place-items:center; width:19px; height:19px; border:1px solid var(--border); border-radius:50%; color:var(--text-tertiary); font-size:9px; font-style:normal; }
.propfirm-objectives i.done { border-color:rgba(49,196,141,.4); background:rgba(49,196,141,.12); color:#31c48d; }
.propfirm-objectives small { color:var(--text-tertiary); }
.propfirm-phase-success { display:flex; align-items:center; justify-content:space-between; gap:12px; margin-top:15px; padding:13px; border:1px solid rgba(49,196,141,.25); border-radius:10px; background:rgba(49,196,141,.06); }
.propfirm-phase-success>div { display:grid; gap:4px; }.propfirm-phase-success b { font-size:12px; }.propfirm-phase-success span { color:var(--text-secondary); font-size:10px; }
.propfirm-active-foot { margin-top:13px; padding-top:10px; border-top:1px solid var(--border-soft); color:var(--text-tertiary); font-size:9px; }
.propfirm-model-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:12px; }
.propfirm-model-card { padding:14px; border:1px solid var(--border-soft); border-radius:10px; background:var(--bg-card-alt); }
.propfirm-model-card.selected { border-color:rgba(61,127,255,.55); box-shadow:0 0 0 1px rgba(61,127,255,.12) inset; }
.propfirm-model-card>div:first-child { display:flex; align-items:center; justify-content:space-between; gap:8px; margin-bottom:13px; }.propfirm-model-card>div:first-child b { font-size:12px; }.propfirm-model-card>div:first-child span { color:var(--text-tertiary); font-size:9px; }
.propfirm-model-metrics { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:9px; }
.propfirm-model-metrics span { display:flex; justify-content:space-between; gap:6px; color:var(--text-secondary); font-size:9px; }.propfirm-model-metrics b { color:var(--text-primary); font-family:var(--font-mono); font-size:9px; white-space:nowrap; }
.propfirm-rule-footnote { margin:13px 0 0; color:var(--text-tertiary); font-size:10px; line-height:1.6; }
.propfirm-history-list { display:grid; gap:7px; }
.propfirm-history-row { display:flex; align-items:center; gap:11px; width:100%; padding:10px; border:1px solid var(--border-soft); border-radius:9px; background:var(--bg-card-alt); color:var(--text-primary); text-align:left; cursor:pointer; }
.propfirm-history-row:hover,.propfirm-history-row.selected { border-color:rgba(61,127,255,.45); }
.propfirm-history-icon { display:grid; place-items:center; width:30px; height:30px; flex:0 0 auto; border-radius:8px; background:rgba(61,127,255,.12); color:var(--blue-bright); font-size:12px; font-weight:800; }.propfirm-history-icon.pro { background:rgba(168,121,255,.12); color:#b99aff; }
.propfirm-history-name { display:grid; flex:1; gap:3px; min-width:0; }.propfirm-history-name b { overflow:hidden; font-size:10px; text-overflow:ellipsis; white-space:nowrap; }.propfirm-history-name small { color:var(--text-tertiary); font-size:9px; }
.propfirm-history-status { margin:0; white-space:nowrap; }.propfirm-history-status[data-status="passed"] { color:#31c48d; }.propfirm-history-status[data-status="failed"],.propfirm-history-status[data-status="expired"] { color:#f25c6b; }
.propfirm-empty { display:grid; justify-items:center; gap:7px; padding:25px; color:var(--text-secondary); text-align:center; }.propfirm-empty>span { color:var(--blue-bright); font-size:24px; }.propfirm-empty b { color:var(--text-primary); font-size:12px; }.propfirm-empty p { margin:0; font-size:10px; }
.propfirm-result-card { display:flex; align-items:center; justify-content:space-between; gap:15px; border-color:rgba(242,92,107,.35); }.propfirm-result-card[data-status="passed"] { border-color:rgba(49,196,141,.35); }.propfirm-result-card h3 { margin-top:6px; }.propfirm-result-card p { color:var(--text-secondary); font-size:11px; }.propfirm-result-card>div>b { font-family:var(--font-mono); font-size:11px; }
.tv-prop-firm-badge { border-color:rgba(49,196,141,.42)!important; background:rgba(49,196,141,.09)!important; color:#43d4a1!important; white-space:nowrap; }
.tv-prop-firm-badge[hidden] { display:none!important; }
.light-mode .propfirm-hero { background:radial-gradient(ellipse at 78% 0%,rgba(61,127,255,.1),transparent 42%),linear-gradient(135deg,var(--bg-card),var(--bg-card-alt)); }
.light-mode .propfirm-notice,.light-mode .propfirm-disclaimer,.light-mode .propfirm-model-card,.light-mode .propfirm-history-row,.light-mode .propfirm-stats-grid article,.light-mode .propfirm-progress-grid article { background:var(--bg-card-alt); }
@media(max-width:900px) { .propfirm-stats-grid { grid-template-columns:repeat(2,minmax(0,1fr)); } }
@media(max-width:650px) { .propfirm-hero,.propfirm-section-head,.propfirm-active-head,.propfirm-result-card { align-items:flex-start; flex-direction:column; }.propfirm-hero-mark { display:none; }.propfirm-create-grid,.propfirm-progress-grid,.propfirm-model-grid { grid-template-columns:1fr; }.propfirm-create-grid .propfirm-primary { width:100%; }.propfirm-history-row { gap:7px; }.propfirm-history-status { max-width:100px; overflow:hidden; text-overflow:ellipsis; }.propfirm-phase-success { align-items:flex-start; flex-direction:column; } }



.prop-workspace-header { display:flex; align-items:center; justify-content:space-between; gap:16px; flex-wrap:wrap; margin:0 0 14px; padding:16px 18px; border:1px solid var(--border-soft); border-radius:14px; background:var(--bg-card); }
.prop-workspace-header > div { display:flex; flex-direction:column; gap:5px; }
.prop-workspace-header b { color:var(--text-primary, #e8eef8); font-size:14px; }
.prop-workspace-header nav { display:flex; flex-wrap:wrap; gap:6px; }
.prop-workspace-header button { padding:8px 11px; border:1px solid var(--border-soft); border-radius:8px; color:var(--text-secondary); background:var(--bg-card-alt); cursor:pointer; font:inherit; font-size:12px; }
.prop-workspace-header button:hover, .prop-workspace-header button.active { color:var(--accent, #3d7fff); border-color:var(--accent, #3d7fff); background:rgba(61,127,255,.12); }
.prop-chart-host { min-width:0; width:100%; }
.prop-workspace-body { padding:32px; color:var(--text-secondary); }
@media(max-width:700px) { .prop-workspace-header { padding:12px; gap:12px; } .prop-workspace-header nav { width:100%; } .prop-workspace-header button { flex:1 1 auto; } }

/* Prop-firm account selection and selected-account overview. */
.propfirm-plan-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:18px; margin:8px 0 16px; }
.propfirm-plan-card { display:flex; flex-direction:column; gap:12px; min-width:0; padding:20px; text-align:left; color:var(--text-primary); border:1px solid var(--border-soft); border-radius:18px; background:var(--bg-card-alt); cursor:pointer; transition:border-color .16s,transform .16s,box-shadow .16s; }
.propfirm-plan-card:hover { transform:translateY(-2px); border-color:rgba(61,127,255,.55); }
.propfirm-plan-card.selected { border-color:#3478f6; box-shadow:0 0 0 1px #3478f655,0 10px 28px #0002; }
.propfirm-plan-card.pro { color:#f4f7ff; border-color:#164caa; background:linear-gradient(145deg,#06317e,#0758bd 58%,#052b70); }
.propfirm-plan-card.pro.selected { box-shadow:0 0 0 2px #68a0ff,0 14px 32px #001d4c55; }
.propfirm-plan-kicker { color:var(--text-tertiary); font-size:11px; font-weight:700; letter-spacing:.08em; }
.propfirm-plan-card.pro .propfirm-plan-kicker,.propfirm-plan-card.pro .propfirm-plan-summary { color:#c6d9ff; }
.propfirm-plan-title { max-width:360px; font-size:clamp(20px,2vw,28px); line-height:1.15; }
.propfirm-plan-summary { min-height:18px; color:var(--text-secondary); font-size:12px; }
.propfirm-plan-metrics { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:8px; margin-top:2px; }
.propfirm-plan-metrics span { display:flex; flex-direction:column; gap:7px; min-height:48px; padding:10px; border:1px solid var(--border-soft); border-radius:10px; color:var(--text-tertiary); font-size:10px; }
.propfirm-plan-metrics b { color:var(--text-primary); font-size:16px; font-weight:600; }
.propfirm-plan-card.pro .propfirm-plan-metrics span { border-color:#ffffff32; color:#bdd2fa; background:#001d4c18; }
.propfirm-plan-card.pro .propfirm-plan-metrics b { color:#fff; }
.propfirm-plan-select { display:flex; justify-content:space-between; align-items:center; margin-top:2px; padding:11px 12px; border:1px solid var(--border-soft); border-radius:9px; font-size:12px; font-weight:700; }
.propfirm-plan-card.pro .propfirm-plan-select { color:#06285e; border-color:#fff; background:#fff; }
.propfirm-plan-select i { font-size:18px; font-style:normal; }
.propfirm-count-badge { flex:none; padding:7px 10px; border:1px solid var(--border-soft); border-radius:99px; color:var(--text-secondary); background:var(--bg-card-alt); font-size:11px; }
.propfirm-account-grid { display:grid; grid-template-columns:repeat(auto-fill,minmax(min(100%,250px),1fr)); gap:12px; }
.propfirm-account-card { display:flex; flex-direction:column; gap:10px; min-width:0; padding:14px; border:1px solid var(--border-soft); border-radius:13px; color:var(--text-primary); background:var(--bg-card-alt); text-align:left; cursor:pointer; transition:border-color .15s,transform .15s,box-shadow .15s; }
.propfirm-account-card:hover { transform:translateY(-2px); border-color:rgba(61,127,255,.5); }
.propfirm-account-card.selected { border-color:#3478f6; box-shadow:inset 0 0 0 1px #3478f644; }
.propfirm-account-card-top { display:flex; align-items:center; gap:8px; }
.propfirm-account-card-top .propfirm-history-status { margin-left:auto; }
.propfirm-account-arrow { color:var(--text-tertiary); }
.propfirm-account-name { overflow:hidden; font-size:13px; text-overflow:ellipsis; white-space:nowrap; }
.propfirm-account-meta { color:var(--text-tertiary); font-size:10px; }
.propfirm-account-balance-label,.propfirm-account-balance { display:grid; grid-template-columns:1fr 1fr; gap:8px; }
.propfirm-account-balance-label { color:var(--text-tertiary); font-size:10px; }
.propfirm-account-balance b { font-size:14px; }
.propfirm-account-progress,.propfirm-balance-track,.propfirm-mini-track { overflow:hidden; height:6px; border-radius:99px; background:var(--bg-elevated); }
.propfirm-account-progress i,.propfirm-balance-track i,.propfirm-mini-track i { display:block; height:100%; border-radius:inherit; background:linear-gradient(90deg,#2f7cf6,#38cfa4); }
.propfirm-account-foot { display:flex; justify-content:space-between; color:var(--text-tertiary); font-size:10px; }
.propfirm-overview { display:grid; gap:16px; }
.propfirm-breadcrumb,.propfirm-overview-head,.propfirm-overview-tags,.propfirm-overview-stats,.propfirm-overview-grid,.propfirm-detail-heading,.propfirm-chart-heading,.propfirm-objective-row,.propfirm-open-row { display:flex; align-items:center; }
.propfirm-breadcrumb { gap:9px; color:var(--text-tertiary); font-size:11px; }
.propfirm-breadcrumb strong { color:var(--text-primary); }
.propfirm-status-tag { margin-left:auto; padding:5px 9px; border-radius:99px; color:#48c89a; background:#20b98118; text-transform:capitalize; }
.propfirm-overview-head { justify-content:space-between; gap:16px; padding:10px 0; }
.propfirm-overview-head h2 { margin:4px 0 9px; font-size:24px; }
.propfirm-overview-tags { flex-wrap:wrap; gap:6px; }
.propfirm-overview-tags span { padding:5px 8px; border:1px solid var(--border-soft); border-radius:99px; color:var(--text-secondary); font-size:10px; }
.propfirm-overview-stats { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:10px; }
.propfirm-overview-stats article,.propfirm-detail-card,.propfirm-score-card,.propfirm-equity-chart { min-width:0; padding:15px; border:1px solid var(--border-soft); border-radius:12px; background:var(--bg-card); }
.propfirm-overview-stats article { display:grid; gap:8px; }.propfirm-overview-stats article span,.propfirm-score-card span { color:var(--text-tertiary); font-size:11px; }.propfirm-overview-stats article b,.propfirm-score-card b { color:var(--text-primary); font-size:16px; }
.propfirm-overview-grid { align-items:flex-start; gap:14px; }.propfirm-overview-main { display:grid; flex:1 1 65%; gap:14px; min-width:0; }.propfirm-overview-side { display:grid; flex:1 1 30%; gap:12px; min-width:260px; }
.propfirm-chart-heading,.propfirm-detail-heading { justify-content:space-between; gap:12px; margin-bottom:10px; }.propfirm-chart-heading>div { display:grid; gap:4px; }.propfirm-chart-heading span,.propfirm-detail-caption,.propfirm-chart-heading small { color:var(--text-tertiary); font-size:10px; }.propfirm-chart-heading b { font-size:17px; }
.propfirm-equity-chart svg { display:block; width:100%; height:auto; }.propfirm-equity-chart svg line { stroke:var(--border-soft); }.propfirm-equity-chart svg text { fill:var(--text-tertiary); font:9px var(--font-mono,monospace); }.propfirm-equity-fill { fill:url(#propEquityFill); }.propfirm-equity-line { fill:none; stroke:#3478f6; stroke-width:2.5; vector-effect:non-scaling-stroke; }
.propfirm-detail-heading h3 { margin:4px 0 0; font-size:14px; }.propfirm-detail-heading small { color:var(--text-tertiary); font-size:10px; font-weight:400; }
.propfirm-trade-table-wrap { overflow:auto; }.propfirm-trade-table { width:100%; border-collapse:collapse; font-size:11px; }.propfirm-trade-table th,.propfirm-trade-table td { padding:10px 8px; border-top:1px solid var(--border-soft); text-align:left; white-space:nowrap; }.propfirm-trade-table th { color:var(--text-tertiary); font-weight:500; }.propfirm-detail-caption { white-space:nowrap; }
.propfirm-score-card { display:grid; gap:10px; }.propfirm-score-card>div:first-child { display:flex; justify-content:space-between; align-items:center; gap:8px; }.propfirm-score-card small { color:var(--text-tertiary); font-size:10px; }
.propfirm-objective-row { justify-content:space-between; gap:8px; margin:12px 0 6px; color:var(--text-secondary); font-size:10px; }.propfirm-objective-row b { color:var(--text-primary); text-align:right; }.propfirm-mini-track { height:5px; }
.propfirm-open-row { justify-content:space-between; gap:8px; padding:10px 0; border-top:1px solid var(--border-soft); font-size:11px; }.propfirm-empty-inline { padding:16px 4px; color:var(--text-tertiary); font-size:11px; line-height:1.5; }.propfirm-detail-foot { color:var(--text-tertiary); font-size:10px; }
@media(max-width:900px) { .propfirm-overview-stats { grid-template-columns:repeat(2,minmax(0,1fr)); }.propfirm-overview-grid { flex-direction:column; }.propfirm-overview-main,.propfirm-overview-side { width:100%; flex:auto; min-width:0; } }
@media(max-width:620px) { .propfirm-plan-grid { grid-template-columns:1fr; }.propfirm-plan-card { padding:15px; }.propfirm-overview-head { align-items:flex-start; flex-direction:column; }.propfirm-overview-head .propfirm-primary { width:100%; }.propfirm-overview-stats { gap:7px; }.propfirm-overview-stats article { padding:11px; }.propfirm-overview-stats article b { font-size:13px; }.propfirm-detail-card,.propfirm-equity-chart,.propfirm-score-card { padding:12px; }.propfirm-trade-table { font-size:10px; } }


.propfirm-chart-launch{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:15px 18px;border:1px solid rgba(61,127,255,.35);border-radius:13px;background:linear-gradient(100deg,rgba(61,127,255,.12),var(--bg-card) 68%)}
.propfirm-chart-launch>div{display:grid;gap:5px}.propfirm-chart-launch>div>b{color:var(--text-primary);font-size:14px}.propfirm-chart-launch small{color:var(--text-secondary);font-size:11px}
@media(max-width:620px){.propfirm-chart-launch{align-items:stretch;flex-direction:column}.propfirm-chart-launch .propfirm-primary{width:100%}}
