/* NQTL BUILD 20261115-01 · Notion link column */

:root {
  --bg: #050505;
  --sidebar: #0b0b0b;
  --card: #121212;
  --card-2: #151515;
  --border: #1f1f1f;
  --border-2: #262626;
  --text: #ffffff;
  --text-2: #a1a1aa;
  --text-3: #71717a;
  --accent: #2dd4bf;
  --green: #34d399;
  --red: #fb7185;
  --amber: #fbbf24;
  --blue: #60a5fa;
  --shadow: 0 10px 30px rgba(0,0,0,.28);
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html {
  scroll-behavior: smooth;
  scroll-padding-top: 40px;
}
body {
  font-family: Inter, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.45;
}
a { color: inherit; }
button, input, select, textarea { font: inherit; }
.dashboard-wrapper {
  width: 100%;
  min-height: 100vh;
  display: flex;
  background: var(--bg);
}
.sidebar {
  width: 248px;
  flex: 0 0 248px;
  background: var(--sidebar);
  border-right: 1px solid var(--border);
  padding: 28px 18px;
  position: sticky;
  top: 0;
  height: 100vh;
  display: flex;
  flex-direction: column;
  gap: 18px;
  overflow-y: auto;
  overflow-x: hidden;
  scrollbar-width: thin;
  scrollbar-color: #2f2f2f transparent;
}
.sidebar::-webkit-scrollbar { width: 8px; }
.sidebar::-webkit-scrollbar-track { background: transparent; }
.sidebar::-webkit-scrollbar-thumb { background: #2f2f2f; border-radius: 999px; }
.sidebar::-webkit-scrollbar-thumb:hover { background: #444444; }
.brand-eyebrow {
  font-size: 12px;
  letter-spacing: .32em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 800;
}
.brand-sub {
  font-size: 10px;
  letter-spacing: .26em;
  text-transform: uppercase;
  color: var(--text-3);
  margin-top: 2px;
}

/* Sidebar brand: desktop stays minimal; compact brand cue only on mobile/tablet. */
.sidebar-brandline {
  display: none;
}
.sidebar-card {
  background: linear-gradient(180deg, rgba(45,212,191,.12), rgba(45,212,191,.03));
  border: 1px solid rgba(45,212,191,.18);
  border-radius: 18px;
  padding: 14px;
}
.sidebar-card h3 { font-size: 13px; margin-bottom: 6px; }
.sidebar-card p { font-size: 12px; color: var(--text-2); }
.sidebar .btn-primary {
  justify-content: center;
  width: 100%;
  margin-top: 4px;
}

.platform-icons {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}
.platform-icon {
  width: 17px;
  height: 17px;
  object-fit: contain;
  flex: 0 0 17px;
  border-radius: 4px;
}

.sidebar-nav {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-top: 8px;
}
.sidebar-link {
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border-radius: 14px;
  border: 1px solid transparent;
  color: var(--text-2);
  text-decoration: none;
  font-size: 13px;
  letter-spacing: .03em;
  transition: .2s ease;
}
.sidebar-link:hover { background: #111111; color: var(--text); }
.sidebar-link.active {
  background: #121212;
  border-color: var(--border-2);
  color: var(--text);
}
.sidebar-link.active::before {
  content: '';
  position: absolute;
  left: 8px;
  top: 50%;
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: var(--accent);
  transform: translateY(-50%);
}
.link-icon {
  width: 16px;
  text-align: center;
  opacity: .9;
}
.sidebar-footer {
  margin-top: auto;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.main {
  flex: 1;
  min-width: 0;
  padding: 28px;
}
.header {
  display: flex;
  align-items: flex-start;
  justify-content: flex-start;
  gap: 20px;
  margin-bottom: 22px;
}
.header-left h1 {
  font-size: 42px;
  line-height: 1;
  font-weight: 300;
  letter-spacing: -.04em;
  margin-bottom: 6px;
}
.header-left p { color: var(--text-2); font-size: 13px; }
.header-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
}
.btn, .select, .input {
  border-radius: 14px;
  border: 1px solid var(--border-2);
  background: var(--card);
  color: var(--text);
  padding: 10px 12px;
}
.btn {
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  transition: .2s ease;
  text-decoration: none;
}
.btn:hover { border-color: #363636; transform: translateY(-1px); }
.btn:disabled { opacity: .55; cursor: not-allowed; transform: none; }
.btn-primary {
  background: var(--accent);
  color: #041412;
  border-color: transparent;
  font-weight: 700;
}
.btn-danger { background: rgba(251,113,133,.08); color: #fecdd3; border-color: rgba(251,113,133,.16); }
.btn-toggle { background: rgba(45,212,191,.08); color: #ccfbf1; border-color: rgba(45,212,191,.2); }
.btn-toggle.active { background: var(--accent); color: #041412; }
.btn-model { padding: 8px 12px; font-size: 12px; background: #141414; }
.btn-model.selected { background: var(--accent); color: #041412; border-color: transparent; font-weight: 700; }
.select, .input { font-size: 13px; min-height: 42px; text-align: center; }
.select option { color: #ffffff; background: #1a1a1a; }
.page-section { margin-bottom: 28px; }
.section-shell {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 28px;
  padding: 22px;
  box-shadow: var(--shadow);
}
.section-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 18px;
}
.section-kicker {
  font-size: 11px;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 700;
  margin-bottom: 4px;
}
.section-title-large {
  font-size: 24px;
  font-weight: 300;
  letter-spacing: -.03em;
}
.section-sub { color: var(--text-2); font-size: 13px; }
.section-anchor { scroll-margin-top: 40px; }
.data-management, .chart-card, .score-section, .trades-table {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 24px;
  padding: 18px;
}
.section-title {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .2em;
  color: var(--text-3);
  text-transform: uppercase;
  margin-bottom: 14px;
}
.data-status-compact { padding: 14px 16px; }
.data-status-bar, .data-status-left, .data-status-right, .flex-row, .period-controls, .period-nav, .time-range-row, .field-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.ds-title { font-weight: 800; letter-spacing: .04em; }
.ds-pill, .status-pill {
  font-size: 12px;
  color: var(--text-2);
  background: #101010;
  border: 1px solid var(--border);
  padding: 7px 10px;
  border-radius: 999px;
}
.ds-pill strong { color: var(--text); }
.options-grid-container, .other-filters-grid, .card-grid-2, .score-grid, .analysis-grid-container, .overview-grid {
  display: grid;
  gap: 18px;
}
.options-grid-container { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.other-filters-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.card-grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.field-block { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.field-label, .filter-block-title {
  font-size: 11px;
  letter-spacing: .18em;
  color: var(--text-3);
  text-transform: uppercase;
  font-weight: 700;
}
.filter-block {
  border: 1px solid var(--border);
  background: #101010;
  border-radius: 18px;
  padding: 14px;
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(9, minmax(0, 1fr));
  gap: 10px;
  margin-top: 18px;
}
.stat-card {
  background: linear-gradient(180deg, #141414 0%, #101010 100%);
  border: 1px solid var(--border);
  border-radius: 24px;
  padding: 12px 12px 12px 16px;
  min-height: 90px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
}
.stat-card-text { align-items: flex-start; }
.stat-card-gauge { align-items: center; justify-content: center; padding: 18px 14px 14px; }
.stat-gauge-wrap { position: relative; width: 100%; max-width: 200px; height: 124px; margin: 0 auto; }
.stat-gauge-center { position: absolute; left: 0; right: 0; top: 48px; text-align: center; pointer-events: none; }
.stat-gauge-center strong { display: block; font-size: 38px; line-height: 1; font-weight: 700; letter-spacing: -.03em; }
.stat-gauge-center span { display: block; margin-top: 6px; color: var(--text-3); font-size: 9px; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; }
.stat-gauge-center small { display: block; margin-top: 10px; color: #8ea0aa; font-size: 10px; line-height: 1.35; }
.stat-label { font-size: 11px; color: var(--text-3); text-transform: uppercase; letter-spacing: .16em; margin-top: 2px; }
.stat-value { font-size: 28px; font-weight: 300; line-height: 1.1; margin-bottom: 4px; }
.profit { color: var(--green); }
.loss { color: var(--red); }
.neutral { color: var(--text); }
.tooltip-text {
  visibility: hidden;
  opacity: 0;
  position: absolute;
  left: 50%; bottom: calc(100% + 10px);
  transform: translateX(-50%);
  background: #0b0b0b;
  border: 1px solid var(--border-2);
  color: var(--text);
  border-radius: 12px;
  padding: 10px 12px;
  font-size: 12px;
  width: max-content;
  max-width: 240px;
  transition: .2s ease;
}
.stat-card.has-tooltip { position: relative; }
.stat-card.has-tooltip:hover .tooltip-text { visibility: visible; opacity: 1; }
.overview-grid { grid-template-columns: 1fr 1fr 1.4fr; margin-top: 18px; }
.insight-card {
  background: linear-gradient(180deg, #141414 0%, #111111 100%);
  border: 1px solid var(--border);
  border-radius: 24px;
  padding: 20px;
  min-height: 220px;
}
.insight-card .badge-dot { width: 8px; height: 8px; border-radius: 999px; display: inline-block; margin-right: 8px; }
.insight-eyebrow {
  font-size: 11px;
  letter-spacing: .2em;
  color: var(--text-3);
  text-transform: uppercase;
  font-weight: 700;
  display: flex; align-items: center;
  margin-bottom: 16px;
}
.insight-card h3 { font-size: 24px; font-weight: 300; margin-bottom: 20px; }
.insight-metrics { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.metric-slab {
  border-left: 1px solid var(--border-2);
  padding-left: 14px;
}
.metric-slab .k { font-size: 11px; text-transform: uppercase; letter-spacing: .14em; color: var(--text-3); margin-bottom: 5px; }
.metric-slab .v { font-size: 18px; }
.executions-card { min-height: 220px; }
.executions-table { width: 100%; border-collapse: collapse; }
.executions-table th {
  text-align: left;
  font-size: 11px;
  color: var(--text-3);
  text-transform: uppercase;
  letter-spacing: .18em;
  font-weight: 700;
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
}
.executions-table td {
  padding: 14px 0;
  border-bottom: 1px solid rgba(255,255,255,.04);
  font-size: 13px;
}
.executions-table tr:last-child td { border-bottom: none; }
.exec-pill { width: 4px; height: 22px; border-radius: 999px; display: inline-block; margin-right: 10px; vertical-align: middle; }
.score-grid { grid-template-columns: minmax(320px, .9fr) minmax(320px, 1.1fr); align-items: center; }
.score-main-card, .score-metric-card {
  background: #101010;
  border: 1px solid var(--border);
  border-radius: 24px;
}
.score-main-card { padding: 22px; display: flex; flex-direction: column; align-items: center; justify-content: center; }
.score-triangle-container { width: 100%; max-width: 360px; height: 360px; }
.score-display { text-align: center; margin-top: 8px; }
.score-label { font-size: 12px; text-transform: uppercase; letter-spacing: .18em; color: var(--text-3); }
.score-value { font-size: 40px; font-weight: 300; color: var(--accent); }
.score-metrics-stack { display: flex; flex-direction: column; gap: 14px; }
.score-metric-card { padding: 16px 18px; display: flex; justify-content: space-between; align-items: center; min-height: 90px; }
.score-metric-title { font-size: 12px; text-transform: uppercase; letter-spacing: .14em; color: var(--text-3); }
.score-metric-value { font-size: 26px; font-weight: 300; margin-top: 6px; }
.score-circle-gauge-container { width: 76px; height: 76px; }
.score-bar-wrapper { width: 58%; }
.score-bar-container { width: 100%; height: 12px; border-radius: 999px; background: #1a1a1a; display: flex; overflow: hidden; }
.score-bar-segment.green { background: var(--green); }
.score-bar-segment.red { background: var(--red); }
.score-bar-labels { display: flex; justify-content: space-between; margin-top: 7px; font-size: 12px; }
.analysis-grid-container { grid-template-columns: 1fr 1fr; margin-top: 18px; }
.chart-card { padding: 20px; }
.charts-section { display: grid; gap: 18px; }
.charts-section.cols-2 { grid-template-columns: 1fr 1fr; }
.charts-section.cols-3 { grid-template-columns: 1fr 1fr 1fr; }
.chart-title { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-bottom: 16px; font-size: 12px; text-transform: uppercase; letter-spacing: .18em; color: var(--text-3); font-weight: 700; }
.chart-period-info { color: var(--text-2); font-size: 12px; letter-spacing: normal; text-transform: none; }
.cal-header { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 12px; flex-wrap: wrap; }
.cal-title { font-size: 18px; font-weight: 400; }
.calendar { display: grid; grid-template-columns: repeat(6, minmax(0,1fr)); gap: 8px; }
#calendar { display: flex; flex-direction: column; gap: 8px; }
.day {
  min-height: 86px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: #101010;
  padding: 10px 8px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
}

/* Días con actividad: fondo sólido de color semitransparente fuerte */
.day.positive {
  background: rgba(52,211,153,.22);
  border: 1px solid rgba(52,211,153,.5);
}

.day.negative {
  background: rgba(251,113,133,.22);
  border: 1px solid rgba(251,113,133,.5);
}

.day.breakeven {
  background: rgba(251,191,36,.22);
  border: 1px solid rgba(251,191,36,.5);
}

.day.empty {
  background: #0f0f0f;
  color: #3f3f46;
}

/* Número del día — centrado, blanco */
.day strong {
  font-size: 13px;
  font-weight: 500;
  color: #ffffff;
  align-self: center;
  margin-bottom: 6px;
}

/* Valor PnL — grande, negrita, centrado, coloreado */
.day small:first-of-type {
  margin-top: auto;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: -.02em;
}

/* Número de trades — pequeño y sin negrita */
.day small:last-of-type {
  font-size: 10px;
  font-weight: 400;
  color: rgba(255,255,255,.45);
  margin-top: 3px;
  letter-spacing: 0;
}

.day.positive small { color: #34d399; }
.day.negative small { color: #fb7185; }
.day.breakeven small { color: #fbbf24; }
.day.empty small { color: #3f3f46; }
.weekly-pnl-value { font-size: 18px; font-weight: 700; display: block; margin-top: 10px; }
.weekly-pnl-value.pos { color: var(--green); }
.weekly-pnl-value.neg { color: var(--red); }
.trades-table { overflow: hidden; }
.table-header { padding: 0 0 16px; border-bottom: 1px solid var(--border); margin-bottom: 6px; font-size: 12px; text-transform: uppercase; letter-spacing: .18em; color: var(--text-3); font-weight: 700; }
.table-content { max-height: 560px; overflow: auto; }
.table-column-header, .trade-row {
  display: grid;
  grid-template-columns: 110px 80px 150px 64px 120px 110px 88px 100px 1fr 1fr 74px;
  gap: 12px;
  align-items: center;
  padding: 12px 0;
  font-size: 13px;
}
.table-column-header {
  position: sticky; top: 0; z-index: 3;
  background: var(--card);
  color: var(--text-3);
  text-transform: uppercase;
  letter-spacing: .14em;
  font-size: 11px;
  border-bottom: 1px solid var(--border);
}
.trade-row { border-bottom: 1px solid rgba(255,255,255,.04); }
.trade-row:hover { background: rgba(255,255,255,.02); }
.trade-result-profit { color: var(--green); font-weight: 700; }
.trade-result-loss { color: var(--red); font-weight: 700; }
.trade-result-breakeven { color: var(--amber); font-weight: 700; }
.notification {
  position: fixed;
  right: 18px; top: 18px;
  z-index: 10000;
  background: #0b0b0b;
  border: 1px solid var(--border-2);
  color: var(--text);
  padding: 12px 14px;
  border-radius: 16px;
  box-shadow: var(--shadow);
  transform: translateX(140%);
  transition: transform .25s ease;
}
.notification.show { transform: translateX(0); }
.notification.success { border-color: rgba(52,211,153,.25); }
.notification.error { border-color: rgba(251,113,133,.25); }
.hidden-accessory { display: none !important; }
.small-note { font-size: 12px; color: var(--text-2); }
.overview-subrow { display:flex; justify-content:space-between; gap:12px; flex-wrap:wrap; margin-top:10px; }
.sidebar-meta { display:flex; flex-direction:column; gap:8px; }
.sidebar-pill {
  font-size: 12px; color: var(--text-2);
  border: 1px solid var(--border); border-radius: 999px; padding: 8px 10px; background:#101010;
}
.sidebar-controls {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.sidebar-controls .btn,
.sidebar-controls .select {
  width: 100%;
  justify-content: center;
}
.sidebar-controls .period-controls {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.sidebar-controls .period-nav {
  flex-wrap: wrap;
  gap: 4px;
}
.sidebar-btn-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
}
.sidebar-btn-grid .btn {
  font-size: 11px;
  padding: 8px 6px;
  text-align: center;
  justify-content: center;
}

#periodNav {
  display: flex;
  flex-direction: row;
  align-items: center;
  flex-wrap: wrap;
  gap: 4px;
  width: 100%;
}
#periodNav .btn:first-child,
#periodNav .btn:nth-child(3) {
  flex: 0 0 auto;
  width: 32px;
  padding: 8px 0;
  text-align: center;
  justify-content: center;
}
#periodNav .range-display {
  flex: 1;
  text-align: center;
  font-size: 12px;
  color: var(--text-2);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
#periodNav .btn[onclick="resetPeriod()"] {
  flex: 1 1 100%;
  justify-content: center;
  font-size: 11px;
  padding: 7px 6px;
}
#weekJumpWrap {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 4px;
  flex: 1 1 100%;
  width: 100%;
}
#weekJumpWrap .input {
  flex: 1;
  min-width: 0;
  font-size: 11px;
  padding: 7px 8px;
}
#weekJumpWrap .btn {
  flex: 0 0 auto;
  font-size: 11px;
  padding: 7px 10px;
}

@media (max-width: 1400px) {
  .stats-grid { grid-template-columns: repeat(5, minmax(0, 1fr)); }
  .overview-grid { grid-template-columns: 1fr 1fr; }
  .executions-card { grid-column: 1 / -1; }
}
@media (max-width: 1180px) {
  .dashboard-wrapper { flex-direction: column; }
  .sidebar { width: 100%; height: auto; position: static; border-right: none; border-bottom: 1px solid var(--border); overflow: visible; }
  .main { padding: 20px; }
  .score-grid, .analysis-grid-container, .options-grid-container, .other-filters-grid, .overview-grid { grid-template-columns: 1fr; }

  .sidebar-brandline {
    display: block;
    margin-bottom: -6px;
  }
  .sidebar-brandline .brand-eyebrow {
    font-size: 12px;
    letter-spacing: .30em;
    line-height: 1.2;
  }
  .sidebar-brandline .brand-sub {
    display: none;
  }
}
@media (max-width: 900px) {
  .header { flex-direction: column; }
  .stats-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .charts-section.cols-2, .charts-section.cols-3 { grid-template-columns: 1fr; }
}
@media (max-width: 680px) {
  .main { padding: 14px; }
  .header-left h1 { font-size: 32px; }
  .stats-grid { grid-template-columns: 1fr; }
  .card-grid-2 { grid-template-columns: 1fr; }
  .calendar { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .table-column-header, .trade-row { grid-template-columns: 1fr; gap: 6px; }
}


/* ==========================================================
   NQTL DASHBOARD V2 · CALENDAR RANGE + HEATMAP 20260916-01
   1M keeps the detailed monthly calendar. 3M / 1Y / All switch
   to a compact dark heatmap fed by the same normalized Journal data.
   ========================================================== */
.nqtl-calendar-card {
  overflow: hidden;
  border: 1px solid rgba(45,212,191,.16);
  border-radius: 24px;
  background:
    radial-gradient(circle at 88% -25%, rgba(45,212,191,.08), transparent 30%),
    linear-gradient(180deg, #10171b 0%, #0c1215 100%);
  box-shadow: 0 18px 50px rgba(0,0,0,.22);
}
.nqtl-calendar-head {
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:18px;
  padding:20px 22px 15px;
  border-bottom:1px solid rgba(255,255,255,.06);
}
.nqtl-calendar-heading { display:flex; align-items:flex-start; gap:12px; min-width:0; }
.nqtl-calendar-icon {
  width:42px; height:42px; flex:0 0 42px;
  display:grid; place-items:center;
  border:1px solid rgba(45,212,191,.28);
  border-radius:12px;
  background:rgba(45,212,191,.08);
  color:#34d399;
  font-size:18px;
}
.nqtl-calendar-eyebrow {
  margin:1px 0 2px;
  color:#7f8b96;
  font-size:9px;
  font-weight:800;
  letter-spacing:.17em;
  text-transform:uppercase;
}
.nqtl-calendar-title-row { display:flex; align-items:baseline; gap:10px; flex-wrap:wrap; }
.nqtl-calendar-title { color:#f4f7f8; font-size:19px; font-weight:700; letter-spacing:-.02em; }
.nqtl-calendar-total { color:#34d399; font-size:14px; font-weight:800; }
.nqtl-calendar-total.is-negative { color:#fb7185; }
.nqtl-calendar-subtitle { margin-top:3px; color:#7f8b96; font-size:11px; }
.nqtl-calendar-range { display:inline-flex; align-items:center; gap:6px; flex-wrap:nowrap; }
.nqtl-calendar-range button {
  min-width:42px; height:34px; padding:0 10px;
  border:1px solid rgba(255,255,255,.09);
  border-radius:10px;
  background:rgba(255,255,255,.025);
  color:#82909b;
  font-size:11px; font-weight:750;
  cursor:pointer; transition:.18s ease;
}
.nqtl-calendar-range button:hover { color:#d9fffa; border-color:rgba(45,212,191,.28); }
.nqtl-calendar-range button.is-active {
  color:#d9fffa;
  border-color:rgba(45,212,191,.58);
  background:rgba(16,185,129,.16);
  box-shadow:0 0 0 1px rgba(16,185,129,.08), 0 0 20px rgba(16,185,129,.10);
}
.nqtl-calendar-month-view { padding:16px 18px 18px; }
.nqtl-calendar-month-view .cal-header {
  margin:0 0 12px;
  padding:0 4px;
}
.nqtl-calendar-month-view .cal-title { color:#dce4e8; font-size:16px; font-weight:650; }
.nqtl-calendar-month-view .cal-nav { display:flex; gap:7px; align-items:center; }
.nqtl-calendar-month-view .cal-nav .btn {
  min-height:34px;
  padding:7px 10px;
  border-radius:9px;
  background:rgba(255,255,255,.025);
  border-color:rgba(255,255,255,.08);
  color:#94a3ad;
}
.nqtl-calendar-month-view .calendar { gap:7px; }
.nqtl-calendar-month-view .calendar:first-child > div {
  color:#687681;
  font-size:9px;
  font-weight:800 !important;
  letter-spacing:.12em;
  text-transform:uppercase;
  padding:0 0 4px;
}
.nqtl-calendar-month-view .day {
  min-height:78px;
  border-radius:11px;
  border:1px solid rgba(255,255,255,.055);
  background:#0b1114;
  padding:9px 7px;
}
.nqtl-calendar-month-view .day strong { color:#d8e0e4; font-size:11px; font-weight:650; }
.nqtl-calendar-month-view .day.positive {
  background:linear-gradient(180deg, rgba(16,185,129,.16), rgba(16,185,129,.07));
  border-color:rgba(52,211,153,.26);
}
.nqtl-calendar-month-view .day.negative {
  background:linear-gradient(180deg, rgba(251,113,133,.16), rgba(251,113,133,.07));
  border-color:rgba(251,113,133,.25);
}
.nqtl-calendar-month-view .day.breakeven {
  background:linear-gradient(180deg, rgba(251,191,36,.13), rgba(251,191,36,.055));
  border-color:rgba(251,191,36,.22);
}
.nqtl-calendar-month-view .day.empty { background:#090e11; border-color:rgba(255,255,255,.035); }
.nqtl-calendar-month-view .day small:first-of-type { font-size:13px; }
.nqtl-calendar-month-view .day small:last-of-type { color:#66737d; font-size:9px; }
.nqtl-calendar-month-view .day-weekly {
  background:linear-gradient(180deg, rgba(96,165,250,.08), rgba(255,255,255,.015));
  border-color:rgba(96,165,250,.14);
}
.nqtl-calendar-heatmap-view { display:none; padding:0 18px 18px; }
.nqtl-calendar-heatmap-view.is-visible { display:block; }
.nqtl-calendar-summary {
  display:grid;
  grid-template-columns:repeat(5,minmax(0,1fr));
  border-bottom:1px solid rgba(255,255,255,.06);
  background:rgba(255,255,255,.015);
}
.nqtl-calendar-stat { min-width:0; padding:13px 14px 14px; border-right:1px solid rgba(255,255,255,.05); }
.nqtl-calendar-stat:last-child { border-right:0; }
.nqtl-calendar-stat-label { color:#687681; font-size:8px; font-weight:800; letter-spacing:.13em; text-transform:uppercase; }
.nqtl-calendar-stat-value { margin-top:4px; color:#e3eaed; font-size:15px; font-weight:750; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.nqtl-calendar-stat-value.is-green { color:#34d399; }
.nqtl-calendar-stat-value.is-red { color:#fb7185; }
.nqtl-calendar-stat-meta { margin-top:2px; color:#66737d; font-size:9px; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.nqtl-calendar-heatmap-scroll { overflow-x:auto; overflow-y:hidden; padding:18px 4px 4px; scrollbar-width:thin; scrollbar-color:#28343b transparent; }
.nqtl-calendar-heatmap-layout { display:grid; grid-template-columns:28px max-content; grid-template-rows:18px auto; column-gap:8px; row-gap:5px; min-width:max-content; }
.nqtl-calendar-month-labels { grid-column:2; display:grid; align-items:end; min-height:18px; color:#697680; font-size:9px; }
.nqtl-calendar-month-label { white-space:nowrap; overflow:visible; }
.nqtl-calendar-weekdays { grid-row:2; display:grid; grid-template-rows:repeat(5, 13px); gap:4px; align-items:center; color:#697680; font-size:8px; }
.nqtl-calendar-weekdays span { display:flex; align-items:center; height:13px; }
.nqtl-calendar-grid { grid-column:2; grid-row:2; display:grid; grid-auto-flow:column; grid-template-rows:repeat(5,13px); gap:4px; }
.nqtl-calendar-heat-day {
  width:13px; height:13px;
  border-radius:3px;
  border:1px solid rgba(255,255,255,.025);
  background:#121a1e;
  cursor:default;
  transition:transform .12s ease, border-color .12s ease, filter .12s ease;
}
.nqtl-calendar-heat-day.has-trades { cursor:pointer; }
.nqtl-calendar-heat-day.has-trades:hover { transform:scale(1.18); border-color:rgba(255,255,255,.32); filter:brightness(1.18); }
.nqtl-calendar-heat-day.is-positive.level-1 { background:rgba(16,185,129,.22); border-color:rgba(52,211,153,.15); }
.nqtl-calendar-heat-day.is-positive.level-2 { background:rgba(16,185,129,.38); border-color:rgba(52,211,153,.20); }
.nqtl-calendar-heat-day.is-positive.level-3 { background:rgba(16,185,129,.60); border-color:rgba(52,211,153,.28); }
.nqtl-calendar-heat-day.is-positive.level-4 { background:rgba(16,185,129,.86); border-color:rgba(110,231,183,.42); }
.nqtl-calendar-heat-day.is-negative.level-1 { background:rgba(251,113,133,.22); border-color:rgba(251,113,133,.15); }
.nqtl-calendar-heat-day.is-negative.level-2 { background:rgba(251,113,133,.38); border-color:rgba(251,113,133,.20); }
.nqtl-calendar-heat-day.is-negative.level-3 { background:rgba(251,113,133,.60); border-color:rgba(251,113,133,.28); }
.nqtl-calendar-heat-day.is-negative.level-4 { background:rgba(251,113,133,.86); border-color:rgba(253,164,175,.42); }
.nqtl-calendar-heat-day.is-breakeven { background:rgba(251,191,36,.55); border-color:rgba(251,191,36,.25); }
.nqtl-calendar-heatmap-footer { display:flex; align-items:center; justify-content:space-between; gap:14px; flex-wrap:wrap; padding:11px 4px 0; }
.nqtl-calendar-range-meta { color:#66737d; font-size:9px; }
.nqtl-calendar-legend { display:flex; align-items:center; gap:11px; flex-wrap:wrap; color:#6f7c86; font-size:9px; }
.nqtl-calendar-legend-item { display:inline-flex; align-items:center; gap:5px; }
.nqtl-calendar-legend-box { width:10px; height:10px; border-radius:3px; background:#121a1e; border:1px solid rgba(255,255,255,.04); }
.nqtl-calendar-legend-box.win { background:rgba(16,185,129,.72); }
.nqtl-calendar-legend-box.loss { background:rgba(251,113,133,.72); }
.nqtl-calendar-legend-box.be { background:rgba(251,191,36,.55); }
.nqtl-calendar-empty { padding:34px 12px; text-align:center; color:#66737d; font-size:11px; }
@media (max-width: 920px) {
  .nqtl-calendar-summary { grid-template-columns:repeat(2,minmax(0,1fr)); }
  .nqtl-calendar-stat { border-bottom:1px solid rgba(255,255,255,.05); }
  .nqtl-calendar-stat:nth-child(2n) { border-right:0; }
  .nqtl-calendar-stat:last-child { grid-column:1 / -1; }
}
@media (max-width: 760px) {
  .nqtl-calendar-head { flex-direction:column; padding-left:14px; padding-right:14px; }
  .nqtl-calendar-range { width:100%; }
  .nqtl-calendar-range button { flex:1 1 0; }
  .nqtl-calendar-month-view, .nqtl-calendar-heatmap-view { padding-left:12px; padding-right:12px; }
  .nqtl-calendar-month-view .calendar { grid-template-columns:repeat(6,minmax(86px,1fr)); min-width:620px; }
  .nqtl-calendar-month-view #calendar { overflow-x:auto; }
}

.site-header .nav { justify-content: center; }
.site-header .nav a { padding: 10px 14px; border-radius: 999px; color: var(--muted); font-size: 14px; transition: .2s ease; border: 1px solid transparent; text-decoration: none; }
.site-header .nav a:hover { background: rgba(255,255,255,.06); color: var(--text); border-color: rgba(255,255,255,.10); }
.site-header .nav a.is-active { background: rgba(45,212,191,.08); color: var(--text); border: 1px solid rgba(45,212,191,.22); }
.site-header .brand-logo{
  height: 40px;
  width: auto;
  max-width: 230px;
  object-fit: contain;
  display: block;
}


/* NQTL DIA8 DASHBOARD NOTION CTA 001 */
.nqtl-setup-notice {
  display: none;
  margin: 14px 0 18px;
  border: 1px solid rgba(45, 212, 191, .35);
  background:
    radial-gradient(circle at 12% 0%, rgba(45, 212, 191, .16), transparent 34%),
    linear-gradient(135deg, rgba(18,18,18,.98), rgba(10,18,22,.98));
  border-radius: 22px;
  padding: 22px;
  box-shadow: 0 18px 45px rgba(0,0,0,.22);
}
.nqtl-setup-notice.is-visible { display: block; }
.nqtl-setup-notice-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}
.nqtl-setup-eyebrow {
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: .16em;
  font-size: .72rem;
  font-weight: 800;
  margin-bottom: 8px;
}
.nqtl-setup-title {
  color: var(--text);
  font-size: clamp(1.15rem, 2vw, 1.7rem);
  font-weight: 700;
  letter-spacing: -.03em;
  margin-bottom: 6px;
}
.nqtl-setup-copy {
  color: var(--text-2);
  max-width: 720px;
  line-height: 1.6;
  font-size: .94rem;
}
.nqtl-setup-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.nqtl-setup-actions .btn-primary-setup {
  background: var(--accent);
  color: #041412;
  border-color: var(--accent);
  font-weight: 800;
}
.nqtl-setup-actions .btn-primary-setup:hover {
  background: #22c7b7;
  border-color: #22c7b7;
}
.nqtl-setup-actions .btn-secondary-setup {
  background: rgba(255,255,255,.04);
  color: var(--text);
  border-color: var(--border-2);
}
@media (max-width: 720px) {
  .nqtl-setup-notice-inner { align-items: flex-start; }
  .nqtl-setup-actions { width: 100%; }
  .nqtl-setup-actions .btn { flex: 1 1 100%; justify-content: center; }
}



/* ── Authenticated user menu (SaaS header) ─────────────────────── */
.nqtl-user-menu { position: relative; }
.nqtl-user-menu-trigger {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  min-height: 40px;
  padding: 6px 10px 6px 7px;
  border: 1px solid rgba(255,255,255,.14);
  border-radius: 10px;
  background: rgba(255,255,255,.04);
  color: var(--text);
  font: inherit;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  transition: background .2s ease, border-color .2s ease, transform .2s ease;
}
.nqtl-user-menu-trigger:hover,
.nqtl-user-menu.is-open .nqtl-user-menu-trigger {
  background: rgba(45,212,191,.10);
  border-color: rgba(45,212,191,.36);
}
.nqtl-user-avatar {
  width: 27px;
  height: 27px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--accent);
  color: #041412;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: .02em;
}
.nqtl-user-name {
  max-width: 124px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.nqtl-user-chevron { transition: transform .2s ease; }
.nqtl-user-menu.is-open .nqtl-user-chevron { transform: rotate(180deg); }
.nqtl-user-panel {
  position: absolute;
  z-index: 1000;
  top: calc(100% + 10px);
  right: 0;
  display: none;
  width: 235px;
  padding: 8px;
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 12px;
  background: #111827;
  box-shadow: 0 18px 50px rgba(0,0,0,.35);
}
.nqtl-user-menu.is-open .nqtl-user-panel { display: block; }
.nqtl-user-summary {
  padding: 9px 10px 11px;
  border-bottom: 1px solid rgba(255,255,255,.10);
  margin-bottom: 6px;
}
.nqtl-user-summary strong,
.nqtl-user-summary span { display: block; }
.nqtl-user-summary strong { font-size: 13px; color: var(--text); }
.nqtl-user-summary span {
  margin-top: 3px;
  overflow: hidden;
  color: #94a3b8;
  font-size: 11px;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.nqtl-user-action {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 9px 10px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: #e5e7eb;
  font: inherit;
  font-size: 13px;
  text-align: left;
  text-decoration: none;
  cursor: pointer;
}
.nqtl-user-action:hover { background: rgba(45,212,191,.10); color: #ccfbf1; }
.nqtl-user-action[hidden] { display: none !important; }
.nqtl-user-action.is-danger { color: #fda4af; }
.nqtl-user-action.is-danger:hover { background: rgba(251,113,133,.10); color: #fecdd3; }
@media (max-width: 720px) {
  .nqtl-user-name { display: none; }
  .nqtl-user-menu-trigger { padding-right: 7px; }
  .nqtl-user-panel { right: 0; }
}


/* ── Demo account tutorial banner ──────────────────────────────── */
.nqtl-demo-banner {
  display: none;
  margin: 0 0 22px;
  padding: 16px 18px;
  border: 1px solid rgba(45,212,191,.28);
  border-radius: 18px;
  background:
    radial-gradient(circle at 0% 0%, rgba(45,212,191,.12), transparent 34%),
    linear-gradient(135deg, rgba(18,18,18,.98), rgba(10,18,22,.98));
  box-shadow: 0 12px 30px rgba(0,0,0,.18);
}
.nqtl-demo-banner.is-visible { display: block; }
.nqtl-demo-banner-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  flex-wrap: wrap;
}
.nqtl-demo-banner-copy { min-width: 0; }
.nqtl-demo-banner-eyebrow {
  margin-bottom: 4px;
  color: var(--accent);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .18em;
  text-transform: uppercase;
}
.nqtl-demo-banner-title {
  margin-bottom: 4px;
  color: var(--text);
  font-size: 17px;
  font-weight: 700;
}
.nqtl-demo-banner-text {
  max-width: 760px;
  color: var(--text-2);
  font-size: 13px;
  line-height: 1.55;
}
.nqtl-demo-banner .btn {
  flex: 0 0 auto;
  white-space: nowrap;
}
@media (max-width: 720px) {
  .nqtl-demo-banner .btn {
    width: 100%;
    justify-content: center;
  }
}


/* ── Dashboard private header: mobile layout ───────────────────── */
@media (max-width: 860px) {
  .site-header > div {
    grid-template-columns: minmax(0, 1fr) auto !important;
    height: 64px !important;
    min-height: 64px;
    padding: 0 18px !important;
    gap: 12px !important;
  }

  /* Hide the desktop navigation on phones. The sidebar and account menu
     already expose the private app actions without creating a wrapped header. */
  .site-header .nav {
    display: none !important;
  }

  .site-header .brand {
    min-width: 0;
  }

  .site-header .brand-logo {
    height: 34px;
    max-width: 165px;
  }

  .site-header > div > div:last-child {
    justify-self: end !important;
  }
}


/* ── Free plan · trade quota ───────────────────────────────────── */
/* Compact status pill inside Overview > Data. Keeps the left sidebar clean. */
.data-status-bar { justify-content: space-between; }
.data-status-right { margin-left: auto; }
.nqtl-free-quota {
  display: none;
  align-items: center;
  padding: 7px 10px;
  border: 1px solid rgba(45,212,191,.24);
  border-radius: 999px;
  background: rgba(45,212,191,.07);
  color: var(--text-2);
  font-size: 12px;
  line-height: 1;
  white-space: nowrap;
}
.nqtl-free-quota.is-visible { display: inline-flex; }
.nqtl-free-quota.is-full {
  border-color: rgba(251,191,36,.34);
  background: rgba(251,191,36,.08);
}
.nqtl-free-quota.is-paid {
  border-color: rgba(45,212,191,.28);
  background: rgba(45,212,191,.08);
}
.nqtl-free-quota.is-paid strong { color: var(--accent); }
.nqtl-free-quota-row { display:flex;align-items:center;gap:7px; }
.nqtl-free-quota strong { color: var(--text); font-size:12px; }
.nqtl-free-quota.is-full strong { color:#fde68a; }
.nqtl-free-quota-sep { color: var(--text-3); }
.nqtl-free-quota a {
  color: var(--accent);
  font-weight:800;
  text-decoration:none;
  padding-left:2px;
}
.nqtl-free-quota a:hover { text-decoration:underline; }
@media (max-width: 900px) {
  .data-status-right { margin-left: 0; }
  .nqtl-free-quota { white-space: normal; }
  .nqtl-free-quota-row { flex-wrap: wrap; }
}


/* ==========================================================
   NQTL INITIAL DASHBOARD LOADER · Notion
   Covers the empty dashboard until the first Journal load ends.
   ========================================================== */
#nqtlDashboardBoot {
  position: fixed;
  inset: 0;
  z-index: 2147483000;
  display: grid;
  place-items: center;
  background:
    radial-gradient(circle at 50% 44%, rgba(45, 212, 191, .045), transparent 30%),
    #07090c;
  opacity: 1;
  visibility: visible;
  transition: opacity .32s ease, visibility .32s ease;
}
#nqtlDashboardBoot .nqtl-boot-inner {
  width: min(360px, calc(100vw - 48px));
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}
#nqtlDashboardBoot .nqtl-boot-logo {
  display: block;
  width: 116px;
  height: auto;
  margin: 0 0 28px;
  object-fit: contain;
}
#nqtlDashboardBoot .nqtl-boot-spinner {
  width: 34px;
  height: 34px;
  margin-bottom: 22px;
  border-radius: 50%;
  border: 2px solid rgba(255,255,255,.12);
  border-top-color: #2dd4bf;
  border-right-color: rgba(45,212,191,.55);
  animation: nqtlBootSpin .82s linear infinite;
}
#nqtlDashboardBoot .nqtl-boot-title {
  color: #f4f7f8;
  font-size: 15px;
  font-weight: 650;
  letter-spacing: -.01em;
  line-height: 1.35;
}
#nqtlDashboardBoot .nqtl-boot-subtitle {
  margin-top: 8px;
  color: #79828e;
  font-size: 12px;
  line-height: 1.5;
}
body.nqtl-dashboard-ready #nqtlDashboardBoot {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}
body.nqtl-dashboard-loading {
  overflow: hidden;
}
@keyframes nqtlBootSpin {
  to { transform: rotate(360deg); }
}
@media (max-width: 640px) {
  #nqtlDashboardBoot .nqtl-boot-logo { width: 104px; margin-bottom: 25px; }
  #nqtlDashboardBoot .nqtl-boot-title { font-size: 14px; }
}
@media (prefers-reduced-motion: reduce) {
  #nqtlDashboardBoot,
  #nqtlDashboardBoot .nqtl-boot-spinner { transition: none; }
  #nqtlDashboardBoot .nqtl-boot-spinner { animation-duration: 1.6s; }
}


/* ==========================================================
   NQTL DASHBOARD V2 · PERFORMANCE CURVES 20260915-01
   New experimental block. Legacy charts remain below for comparison.
   ========================================================== */
.nqtl-performance-card {
  margin-bottom: 22px;
  overflow: hidden;
  border: 1px solid rgba(45,212,191,.18);
  border-radius: 24px;
  background:
    radial-gradient(circle at 85% -20%, rgba(45,212,191,.10), transparent 30%),
    linear-gradient(180deg, #10171b 0%, #0c1215 100%);
  box-shadow: 0 18px 50px rgba(0,0,0,.24);
}
.nqtl-performance-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  padding: 20px 22px 14px;
  border-bottom: 1px solid rgba(255,255,255,.06);
}
.nqtl-performance-heading {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  min-width: 0;
}
.nqtl-performance-icon {
  width: 42px;
  height: 42px;
  flex: 0 0 42px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(45,212,191,.28);
  border-radius: 12px;
  color: #34d399;
  background: rgba(45,212,191,.08);
  box-shadow: inset 0 0 20px rgba(45,212,191,.04);
  font-size: 20px;
  font-weight: 800;
}
.nqtl-performance-eyebrow {
  margin: 1px 0 2px;
  color: #7f8b96;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: .17em;
  text-transform: uppercase;
}
.nqtl-performance-title {
  color: #f4f7f8;
  font-size: 19px;
  font-weight: 700;
  letter-spacing: -.02em;
}
.nqtl-performance-subtitle {
  margin-top: 3px;
  color: #7f8b96;
  font-size: 11px;
}
.nqtl-performance-range {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  flex-wrap: nowrap;
}
.nqtl-performance-range button {
  min-width: 42px;
  height: 34px;
  padding: 0 10px;
  border: 1px solid rgba(255,255,255,.09);
  border-radius: 10px;
  background: rgba(255,255,255,.025);
  color: #82909b;
  font-size: 11px;
  font-weight: 750;
  cursor: pointer;
  transition: .18s ease;
}
.nqtl-performance-range button:hover {
  color: #d9fffa;
  border-color: rgba(45,212,191,.28);
}
.nqtl-performance-range button.is-active {
  color: #d9fffa;
  border-color: rgba(45,212,191,.58);
  background: rgba(16,185,129,.16);
  box-shadow: 0 0 0 1px rgba(16,185,129,.08), 0 0 20px rgba(16,185,129,.10);
}
.nqtl-performance-pane {
  padding: 16px 22px 18px;
}
.nqtl-performance-pane + .nqtl-performance-pane {
  border-top: 1px solid rgba(255,255,255,.06);
}
.nqtl-performance-pane-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}
.nqtl-performance-pane-title {
  color: #9ba6af;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .14em;
  text-transform: uppercase;
}
.nqtl-performance-pane-meta {
  color: #66727d;
  font-size: 10px;
}
.nqtl-performance-canvas-wrap {
  position: relative;
  height: 300px;
}
.nqtl-performance-canvas-wrap.is-trades {
  height: 235px;
}
.nqtl-performance-empty {
  position: absolute;
  inset: 0;
  display: none;
  place-items: center;
  color: #66727d;
  font-size: 12px;
  pointer-events: none;
}
.nqtl-performance-empty.is-visible { display: grid; }
@media (max-width: 760px) {
  .nqtl-performance-head { flex-direction: column; }
  .nqtl-performance-range { width: 100%; }
  .nqtl-performance-range button { flex: 1 1 0; }
  .nqtl-performance-canvas-wrap { height: 250px; }
  .nqtl-performance-canvas-wrap.is-trades { height: 210px; }
  .nqtl-performance-pane { padding-left: 14px; padding-right: 14px; }
  .nqtl-performance-head { padding-left: 14px; padding-right: 14px; }
}


/* ==========================================================
   NQTL DASHBOARD V2 · PERFORMANCE MATRIX 20260916-01
   Category analysis: Macros / Model / Pattern / Day / Error / Direction.
   ========================================================== */
.nqtl-matrix-card {
  margin: 0 0 22px;
  overflow: hidden;
  border: 1px solid rgba(45,212,191,.16);
  border-radius: 24px;
  background:
    radial-gradient(circle at 82% -18%, rgba(45,212,191,.08), transparent 30%),
    linear-gradient(180deg, #111820 0%, #0d1419 100%);
  box-shadow: 0 18px 50px rgba(0,0,0,.22);
}
.nqtl-matrix-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  padding: 18px 22px 12px;
}
.nqtl-matrix-heading {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  min-width: 0;
}
.nqtl-matrix-icon {
  width: 38px;
  height: 38px;
  flex: 0 0 38px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(45,212,191,.24);
  border-radius: 11px;
  color: #34d399;
  background: rgba(45,212,191,.07);
  font-size: 16px;
}
.nqtl-matrix-eyebrow {
  margin: 0 0 2px;
  color: #7d8993;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: .17em;
  text-transform: uppercase;
}
.nqtl-matrix-title {
  color: #f2f6f7;
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -.02em;
}
.nqtl-matrix-subtitle {
  margin-top: 3px;
  color: #74818c;
  font-size: 11px;
}
.nqtl-matrix-head-stat {
  min-width: 92px;
  text-align: right;
}
.nqtl-matrix-head-stat span {
  display: block;
  color: #707c86;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
}
.nqtl-matrix-head-stat strong {
  display: block;
  margin-top: 3px;
  color: #f4c542;
  font-size: 18px;
  font-weight: 800;
}
.nqtl-matrix-tabs {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 0 14px 9px;
  overflow-x: auto;
  border-bottom: 1px solid rgba(255,255,255,.065);
  scrollbar-width: thin;
}
.nqtl-matrix-tabs button {
  flex: 0 0 auto;
  height: 31px;
  padding: 0 12px;
  border: 1px solid transparent;
  border-radius: 8px;
  background: transparent;
  color: #79858f;
  font-size: 10px;
  font-weight: 700;
  cursor: pointer;
  transition: .18s ease;
}
.nqtl-matrix-tabs button:hover {
  color: #d5f7f2;
  background: rgba(255,255,255,.025);
}
.nqtl-matrix-tabs button.is-active {
  color: #8cf5dc;
  border-color: rgba(45,212,191,.28);
  background: rgba(16,185,129,.13);
}
.nqtl-matrix-body {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 230px;
  min-height: 310px;
}
.nqtl-matrix-chart-panel {
  min-width: 0;
  padding: 18px 18px 10px 22px;
}
.nqtl-matrix-chart-scroll {
  width: 100%;
  overflow-x: auto;
  overflow-y: hidden;
}
.nqtl-matrix-chart-inner {
  position: relative;
  width: 100%;
  min-width: 100%;
  height: 255px;
}
.nqtl-matrix-empty {
  position: absolute;
  inset: 0;
  display: none;
  place-items: center;
  color: #6e7a84;
  font-size: 12px;
  pointer-events: none;
}
.nqtl-matrix-empty.is-visible { display: grid; }
.nqtl-matrix-footer {
  min-height: 34px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 8px 10px 0;
  color: #66727d;
  font-size: 10px;
  text-align: center;
}
.nqtl-matrix-summary {
  border-left: 1px solid rgba(255,255,255,.065);
  padding: 18px 18px 16px;
  display: flex;
  flex-direction: column;
  min-width: 0;
}
.nqtl-matrix-gauge-wrap {
  position: relative;
  width: 170px;
  height: 108px;
  margin: 0 auto;
}
.nqtl-matrix-gauge-center {
  position: absolute;
  inset: 48px 0 auto;
  text-align: center;
  pointer-events: none;
}
.nqtl-matrix-gauge-center strong {
  display: block;
  color: #f4c542;
  font-size: 28px;
  line-height: 1;
  font-weight: 700;
  letter-spacing: -.03em;
}
.nqtl-matrix-gauge-center span {
  display: block;
  margin-top: 6px;
  color: #77838d;
  font-size: 8px;
  font-weight: 800;
  letter-spacing: .11em;
  text-transform: uppercase;
}
.nqtl-matrix-trades-count {
  margin-top: 3px;
  color: #65717a;
  font-size: 10px;
  text-align: center;
}
.nqtl-matrix-summary-divider {
  height: 1px;
  margin: 15px 0 12px;
  background: rgba(255,255,255,.065);
}
.nqtl-matrix-rank {
  padding: 5px 0 9px;
}
.nqtl-matrix-rank-label {
  margin-bottom: 5px;
  color: #68747e;
  font-size: 8px;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
}
.nqtl-matrix-rank-main {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 9px;
}
.nqtl-matrix-rank-name {
  min-width: 0;
  overflow: hidden;
  color: #dfe6e9;
  font-size: 13px;
  font-weight: 650;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.nqtl-matrix-rank-rate {
  flex: 0 0 auto;
  font-size: 12px;
  font-weight: 800;
}
.nqtl-matrix-rank-rate.is-top { color: #34d399; }
.nqtl-matrix-rank-rate.is-weak { color: #fb7185; }
.nqtl-matrix-rank-meta {
  margin-top: 3px;
  color: #66727d;
  font-size: 9px;
}
@media (max-width: 920px) {
  .nqtl-matrix-body { grid-template-columns: 1fr; }
  .nqtl-matrix-summary {
    border-left: 0;
    border-top: 1px solid rgba(255,255,255,.065);
    display: grid;
    grid-template-columns: 180px 1fr 1fr;
    gap: 14px;
    align-items: center;
  }
  .nqtl-matrix-summary-divider { display: none; }
}
@media (max-width: 640px) {
  .nqtl-matrix-head { padding-left: 14px; padding-right: 14px; }
  .nqtl-matrix-head-stat { min-width: 76px; }
  .nqtl-matrix-chart-panel { padding-left: 14px; padding-right: 14px; }
  .nqtl-matrix-summary { grid-template-columns: 1fr; }
  .nqtl-matrix-gauge-wrap { margin-bottom: 4px; }
}


/* ==========================================================
   NQTL DASHBOARD V2 · TIME PERFORMANCE + CLUSTERS 20260916-02
   Diverging time-slot chart with contiguous positive/negative windows.
   ========================================================== */
.nqtl-time-card {
  grid-column: 1 / -1;
  overflow: hidden;
  border: 1px solid rgba(45,212,191,.16);
  border-radius: 24px;
  background:
    radial-gradient(circle at 86% -16%, rgba(45,212,191,.075), transparent 30%),
    linear-gradient(180deg, #111820 0%, #0d1419 100%);
  box-shadow: 0 18px 50px rgba(0,0,0,.20);
}
.nqtl-time-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  padding: 18px 22px 13px;
  border-bottom: 1px solid rgba(255,255,255,.065);
}
.nqtl-time-heading {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  min-width: 0;
}
.nqtl-time-icon {
  width: 38px;
  height: 38px;
  flex: 0 0 38px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(45,212,191,.24);
  border-radius: 11px;
  color: #34d399;
  background: rgba(45,212,191,.07);
  font-size: 18px;
  font-weight: 800;
}
.nqtl-time-eyebrow {
  margin: 0 0 2px;
  color: #7d8993;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: .17em;
  text-transform: uppercase;
}
.nqtl-time-title {
  color: #f2f6f7;
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -.02em;
}
.nqtl-time-subtitle {
  margin-top: 3px;
  color: #74818c;
  font-size: 11px;
}
.nqtl-time-interval {
  min-width: 80px;
  text-align: right;
}
.nqtl-time-interval span {
  display: block;
  color: #707c86;
  font-size: 8px;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
}
.nqtl-time-interval strong {
  display: block;
  margin-top: 4px;
  color: #dfe6e9;
  font-size: 13px;
  font-weight: 750;
}
.nqtl-time-body {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 260px;
  min-height: 360px;
}
.nqtl-time-chart-panel {
  min-width: 0;
  padding: 18px 18px 12px 22px;
}
.nqtl-time-chart-wrap {
  position: relative;
  height: 310px;
  min-width: 0;
}
.nqtl-time-empty {
  position: absolute;
  inset: 0;
  display: none;
  place-items: center;
  color: #6e7a84;
  font-size: 12px;
  pointer-events: none;
}
.nqtl-time-empty.is-visible { display: grid; }
.nqtl-time-foot {
  min-height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 7px 8px 0;
  color: #66727d;
  font-size: 10px;
  text-align: center;
}
.nqtl-time-summary {
  min-width: 0;
  display: flex;
  flex-direction: column;
  padding: 18px 18px 16px;
  border-left: 1px solid rgba(255,255,255,.065);
}
.nqtl-time-summary-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 13px;
}
.nqtl-time-summary-head span {
  color: #6f7b85;
  font-size: 8px;
  font-weight: 800;
  letter-spacing: .13em;
  text-transform: uppercase;
}
.nqtl-time-summary-head strong {
  color: #9aa5ad;
  font-size: 10px;
  font-weight: 700;
}
.nqtl-time-cluster {
  padding: 8px 0 10px;
}
.nqtl-time-cluster-kicker {
  display: flex;
  align-items: center;
  gap: 7px;
  margin-bottom: 7px;
  color: #6d7983;
  font-size: 8px;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
}
.nqtl-time-dot {
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: currentColor;
}
.nqtl-time-cluster.is-best .nqtl-time-cluster-kicker { color: #34d399; }
.nqtl-time-cluster.is-weak .nqtl-time-cluster-kicker { color: #fb7185; }
.nqtl-time-cluster-range {
  color: #e7edef;
  font-size: 17px;
  font-weight: 720;
  letter-spacing: -.02em;
}
.nqtl-time-cluster-pnl {
  margin-top: 4px;
  font-size: 18px;
  font-weight: 800;
}
.nqtl-time-cluster.is-best .nqtl-time-cluster-pnl { color: #34d399; }
.nqtl-time-cluster.is-weak .nqtl-time-cluster-pnl { color: #fb7185; }
.nqtl-time-cluster-meta {
  margin-top: 4px;
  color: #6f7b84;
  font-size: 10px;
  line-height: 1.55;
}
.nqtl-time-summary-divider {
  height: 1px;
  margin: 7px 0;
  background: rgba(255,255,255,.065);
}
.nqtl-time-note {
  margin-top: auto;
  padding-top: 14px;
  color: #5f6b74;
  font-size: 9px;
  line-height: 1.55;
}
@media (max-width: 980px) {
  .nqtl-time-body { grid-template-columns: 1fr; }
  .nqtl-time-summary {
    border-left: 0;
    border-top: 1px solid rgba(255,255,255,.065);
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0 22px;
  }
  .nqtl-time-summary-head,
  .nqtl-time-note { grid-column: 1 / -1; }
  .nqtl-time-summary-divider { display: none; }
}
@media (max-width: 640px) {
  .nqtl-time-head { padding-left: 14px; padding-right: 14px; }
  .nqtl-time-chart-panel { padding-left: 10px; padding-right: 10px; }
  .nqtl-time-chart-wrap { height: 330px; }
  .nqtl-time-summary { grid-template-columns: 1fr; }
  .nqtl-time-summary-head,
  .nqtl-time-note { grid-column: auto; }
}



/* ==========================================================
   NQTL DASHBOARD V2 · CORE UI REFRESH 20260916-02
   Overview / Controls / Trade Details aligned with the new visual system.
   ========================================================== */
#overview .section-shell,
#filters .section-shell,
#trade-log .section-shell {
  overflow: hidden;
  border: 1px solid rgba(45,212,191,.14);
  border-radius: 26px;
  background:
    radial-gradient(circle at 88% -12%, rgba(45,212,191,.07), transparent 28%),
    linear-gradient(180deg, #11171c 0%, #0d1216 100%);
  box-shadow: 0 18px 50px rgba(0,0,0,.22);
}
#overview .section-heading,
#filters .section-heading,
#trade-log .section-heading {
  margin: -22px -22px 18px;
  padding: 18px 22px 16px;
  border-bottom: 1px solid rgba(255,255,255,.06);
  background: rgba(255,255,255,.008);
}
#overview .section-kicker,
#filters .section-kicker,
#trade-log .section-kicker {
  margin-bottom: 5px;
  color: #65e6d4;
  font-size: 9px;
  font-weight: 850;
  letter-spacing: .19em;
}
#overview .section-title-large,
#filters .section-title-large,
#trade-log .section-title-large {
  color: #f3f7f8;
  font-size: 21px;
  font-weight: 650;
  letter-spacing: -.025em;
}
#overview .status-pill {
  border-color: rgba(45,212,191,.18);
  background: rgba(45,212,191,.055);
  color: #85929d;
}
#overview .status-pill strong { color: #b8fff4; }

/* Overview */
#overview .data-management.data-status-compact {
  margin-bottom: 16px;
  padding: 11px 14px;
  border: 1px solid rgba(255,255,255,.065);
  border-radius: 16px;
  background: rgba(3,10,13,.36);
  box-shadow: none;
}
#overview .ds-title {
  color: #f1f5f6;
  font-size: 12px;
  font-weight: 800;
}
#overview .ds-pill {
  padding: 6px 9px;
  border-color: rgba(255,255,255,.065);
  background: rgba(255,255,255,.025);
  color: #7f8c96;
  font-size: 10px;
}
#overview .ds-pill strong { color: #dfe8eb; }
#overview .stats-grid {
  gap: 9px;
  margin-top: 0;
}
#overview .stat-card {
  min-height: 92px;
  padding: 13px 14px;
  border: 1px solid rgba(255,255,255,.065);
  border-radius: 18px;
  background:
    linear-gradient(180deg, rgba(255,255,255,.018), rgba(255,255,255,.006)),
    #0c1216;
  box-shadow: none;
}
#overview .stat-card:hover {
  border-color: rgba(45,212,191,.17);
  background: linear-gradient(180deg, rgba(45,212,191,.035), rgba(255,255,255,.006));
}
#overview .stat-value {
  color: #edf4f5;
  font-size: 25px;
  font-weight: 560;
  letter-spacing: -.035em;
}
#overview .stat-value.profit { color: #36dfb5; }
#overview .stat-value.loss { color: #fb7185; }
#overview .stat-card small a { color: #8bdad0; font-size: 11px; text-decoration: underline; text-underline-offset: 2px; }
#overview .stat-label {
  margin-top: 4px;
  color: #687681;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: .15em;
}
#overview .overview-grid { gap: 12px; margin-top: 14px; }
#overview .insight-card {
  min-height: 215px;
  padding: 18px;
  border: 1px solid rgba(255,255,255,.065);
  border-radius: 19px;
  background:
    radial-gradient(circle at 100% 0%, rgba(45,212,191,.035), transparent 30%),
    #0c1216;
}
#overview .insight-eyebrow {
  margin-bottom: 14px;
  color: #74818b;
  font-size: 9px;
  font-weight: 850;
  letter-spacing: .18em;
}
#overview .insight-card h3 {
  margin-bottom: 18px;
  color: #eef4f5;
  font-size: 21px;
  font-weight: 590;
}
#overview .metric-slab { border-color: rgba(255,255,255,.07); }
#overview .metric-slab .k { color: #65727c; font-size: 9px; font-weight: 800; }
#overview .metric-slab .v { color: #eaf1f3; font-size: 16px; font-weight: 590; }
#overview .metric-slab .v.profit { color: #36dfb5; }
#overview .metric-slab .v.loss { color: #fb7185; }
#overview .executions-table th {
  padding: 10px 0;
  color: #65727c;
  border-color: rgba(255,255,255,.055);
  font-size: 9px;
  font-weight: 850;
}
#overview .executions-table td {
  padding: 12px 0;
  border-color: rgba(255,255,255,.045);
  color: #c9d2d6;
  font-size: 11px;
}

/* Controls */
#filters .data-management {
  border: 1px solid rgba(255,255,255,.065);
  border-radius: 19px;
  background:
    linear-gradient(180deg, rgba(255,255,255,.018), rgba(255,255,255,.006)),
    #0c1216;
  box-shadow: none;
}
#filters .section-title {
  margin-bottom: 13px;
  color: #81909b;
  font-size: 9px;
  font-weight: 850;
  letter-spacing: .17em;
}
#filters .filter-block {
  border: 1px solid rgba(255,255,255,.055);
  border-radius: 14px;
  background: rgba(3,9,12,.34);
}
#filters .field-label,
#filters .filter-block-title {
  color: #65747e;
  font-size: 9px;
  font-weight: 850;
  letter-spacing: .15em;
}
#filters .input,
#filters .select {
  min-height: 39px;
  border-color: rgba(255,255,255,.075);
  border-radius: 11px;
  background: #091015;
  color: #dce6e8;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.008);
}
#filters .input:focus,
#filters .select:focus {
  outline: none;
  border-color: rgba(45,212,191,.42);
  box-shadow: 0 0 0 3px rgba(45,212,191,.07);
}
#filters .btn-model,
#filters .btn-toggle,
#filters .field-actions .btn,
#filters .time-range-row .btn {
  min-height: 34px;
  padding: 7px 11px;
  border-color: rgba(255,255,255,.075);
  border-radius: 9px;
  background: rgba(255,255,255,.025);
  color: #87949e;
  font-size: 10px;
  font-weight: 750;
  box-shadow: none;
}
#filters .btn-model:hover,
#filters .btn-toggle:hover,
#filters .field-actions .btn:hover,
#filters .time-range-row .btn:hover {
  color: #d9fffa;
  border-color: rgba(45,212,191,.26);
  transform: none;
}
#filters .btn-model.selected,
#filters .btn-toggle.active {
  color: #a7ffef;
  border-color: rgba(45,212,191,.32);
  background: rgba(16,185,129,.13);
  font-weight: 800;
}
#filters .small-note { color: #65727d; }
#filters .options-grid-container { gap: 12px; }
#filters .other-filters-grid { gap: 10px; }

/* Trade Details */
#trade-details.trades-table {
  margin-top: 18px;
  padding: 0;
  overflow: hidden;
  border: 1px solid rgba(45,212,191,.14);
  border-radius: 22px;
  background:
    radial-gradient(circle at 90% -15%, rgba(45,212,191,.055), transparent 30%),
    linear-gradient(180deg, #0e151a 0%, #0a1014 100%);
  box-shadow: 0 16px 42px rgba(0,0,0,.18);
}
.nqtl-trade-details-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 18px;
  border-bottom: 1px solid rgba(255,255,255,.06);
}
.nqtl-trade-details-heading {
  display: flex;
  align-items: center;
  gap: 11px;
  min-width: 0;
}
.nqtl-trade-details-icon {
  width: 36px;
  height: 36px;
  flex: 0 0 36px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(45,212,191,.24);
  border-radius: 10px;
  background: rgba(45,212,191,.07);
  color: #34d399;
  font-size: 15px;
}
.nqtl-trade-details-eyebrow {
  color: #73808b;
  font-size: 9px;
  font-weight: 850;
  letter-spacing: .17em;
  text-transform: uppercase;
}
.nqtl-trade-details-title {
  margin-top: 2px;
  color: #f0f5f6;
  font-size: 17px;
  font-weight: 680;
  letter-spacing: -.02em;
}
.nqtl-trade-details-count {
  flex: 0 0 auto;
  padding: 6px 9px;
  border: 1px solid rgba(45,212,191,.16);
  border-radius: 999px;
  background: rgba(45,212,191,.055);
  color: #86a099;
  font-size: 10px;
  font-weight: 750;
}
#trade-details .table-content {
  max-height: 590px;
  padding: 0 16px 8px;
  scrollbar-width: thin;
  scrollbar-color: rgba(123,139,148,.55) transparent;
}
#trade-details .table-content::-webkit-scrollbar { width: 8px; height: 8px; }
#trade-details .table-content::-webkit-scrollbar-track { background: transparent; }
#trade-details .table-content::-webkit-scrollbar-thumb { background: rgba(123,139,148,.42); border-radius: 999px; }
#trade-details .table-column-header,
#trade-details .trade-row {
  grid-template-columns: 100px 72px 138px 64px 120px 112px 78px 95px minmax(180px,1fr) minmax(180px,1.2fr) 74px;
  gap: 12px;
}
#trade-details .table-column-header {
  top: 0;
  padding: 12px 0 10px;
  border-bottom: 1px solid rgba(255,255,255,.065);
  background: rgba(10,16,20,.96);
  backdrop-filter: blur(10px);
  color: #697781;
  font-size: 9px;
  font-weight: 850;
  letter-spacing: .14em;
}
#trade-details .trade-row {
  min-height: 48px;
  padding: 10px 0;
  border-bottom: 1px solid rgba(255,255,255,.04);
  color: #cbd5d9;
  font-size: 11px;
  transition: background .16s ease, border-color .16s ease;
}
#trade-details .trade-row:hover {
  background: rgba(45,212,191,.035);
  border-bottom-color: rgba(45,212,191,.08);
}
#trade-details .trade-result-profit,
#trade-details .trade-result-loss,
#trade-details .trade-result-breakeven {
  width: max-content;
  padding: 4px 7px;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 800;
  line-height: 1;
}
#trade-details .trade-result-profit {
  border: 1px solid rgba(52,211,153,.20);
  background: rgba(52,211,153,.08);
  color: #42e4b9;
}
#trade-details .trade-result-loss {
  border: 1px solid rgba(251,113,133,.20);
  background: rgba(251,113,133,.08);
  color: #ff8093;
}
#trade-details .trade-result-breakeven {
  border: 1px solid rgba(251,191,36,.20);
  background: rgba(251,191,36,.08);
  color: #f8c94a;
}
#trade-details .trade-pnl-positive { color: #38dfb4; font-weight: 760; }
#trade-details .trade-pnl-negative { color: #fb7185; font-weight: 760; }
#trade-details .trade-pnl-neutral { color: #cbd5d9; font-weight: 700; }
#trade-details a { color: #8beede; opacity: .85; }
#trade-details a:hover { opacity: 1; }
@media (max-width: 980px) {
  #trade-details .table-content { overflow-x: auto; }
  #trade-details .table-column-header,
  #trade-details .trade-row { min-width: 1290px; }
}
@media (max-width: 720px) {
  #overview .section-heading,
  #filters .section-heading,
  #trade-log .section-heading { margin-left: -14px; margin-right: -14px; padding-left: 14px; padding-right: 14px; }
  #overview .section-shell,
  #filters .section-shell,
  #trade-log .section-shell { padding: 14px; border-radius: 20px; }
  .nqtl-trade-details-head { align-items: flex-start; padding: 14px; }
  .nqtl-trade-details-count { margin-top: 3px; }
}



/* ==========================================================
   NQTL DASHBOARD V2 · FULL VISUAL SYSTEM 20260916-03
   Strong visual alignment with Performance / Matrix / Calendar.
   ========================================================== */
:root { --nqtl-panel:#0a1115; --nqtl-panel-2:#0d151a; --nqtl-line:rgba(255,255,255,.065); --nqtl-teal:#2dd4bf; }

/* Shared modern shell */
#overview .section-shell,
#filters .section-shell,
#setup-analysis .section-shell,
#trade-log .section-shell {
  padding: 0;
  overflow: hidden;
  border: 1px solid rgba(45,212,191,.18);
  border-radius: 24px;
  background: linear-gradient(180deg,#0c1419 0%,#081014 100%);
  box-shadow: 0 18px 48px rgba(0,0,0,.24);
}
#overview .nqtl-section-heading,
#filters .nqtl-section-heading,
#setup-analysis .nqtl-section-heading,
#trade-log .nqtl-section-heading {
  margin: 0;
  padding: 17px 18px;
  min-height: 72px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:16px;
  border-bottom:1px solid rgba(255,255,255,.06);
  background:linear-gradient(90deg,rgba(45,212,191,.045),transparent 42%);
}
.nqtl-section-heading-main { display:flex; align-items:center; gap:12px; min-width:0; }
.nqtl-section-icon {
  width:38px; height:38px; flex:0 0 38px; display:grid; place-items:center;
  border:1px solid rgba(45,212,191,.25); border-radius:11px;
  background:rgba(45,212,191,.075); color:#46e2ca; font-size:15px; font-weight:900;
  box-shadow:inset 0 0 18px rgba(45,212,191,.035);
}
#overview .section-kicker,#filters .section-kicker,#setup-analysis .section-kicker,#trade-log .section-kicker {
  margin:0 0 2px; color:#7b8a94; font-size:8px; font-weight:850; letter-spacing:.18em;
}
#overview .section-title-large,#filters .section-title-large,#setup-analysis .section-title-large,#trade-log .section-title-large {
  color:#f2f6f7; font-size:18px; line-height:1.15; font-weight:700; letter-spacing:-.025em;
}
.nqtl-section-subtitle { margin-top:3px; color:#62717b; font-size:10px; line-height:1.35; }

/* OVERVIEW: hero KPI layout */
#overview .data-management.data-status-compact { margin:14px 16px 0; }
#overview .stats-grid {
  grid-template-columns: 1.16fr repeat(4,minmax(0,1fr));
  gap:10px; margin:12px 16px 0;
}
#overview .stat-card {
  position:relative; min-height:86px; padding:15px 14px 13px;
  border:1px solid rgba(255,255,255,.065); border-radius:16px;
  background:linear-gradient(180deg,rgba(255,255,255,.021),rgba(255,255,255,.006)),#091115;
  overflow:hidden;
}
#overview .stat-card::after {
  content:''; position:absolute; left:0; right:0; top:0; height:1px;
  background:linear-gradient(90deg,transparent,rgba(45,212,191,.26),transparent); opacity:.55;
}
#overview .stat-card:first-child {
  grid-row:span 2; min-height:182px; align-items:center; justify-content:center; padding:22px 14px 14px;
  background:radial-gradient(circle at 50% 40%,rgba(45,212,191,.075),transparent 50%),#091115;
}
#overview .stat-card:first-child::before {
  content:'WIN RATE'; position:absolute; left:14px; top:13px; color:#71808a;
  font-size:8px; font-weight:850; letter-spacing:.16em;
}
#overview .stat-card:first-child canvas { width:100% !important; height:100% !important; max-height:none !important; }
#overview .stat-card:first-child .stat-gauge-wrap { max-width: 210px; height: 132px; }
#overview .stat-card:first-child .stat-gauge-center { top: 54px; }
#overview .stat-card:first-child .stat-gauge-center strong { font-size: 42px; }
#overview .stat-card:first-child .stat-gauge-center small { max-width: 175px; margin-left: auto; margin-right: auto; }
#overview .stat-value { font-size:24px; font-weight:600; }
#overview .stat-label { font-size:8px; }
#overview .overview-grid { margin:12px 16px 16px; gap:10px; grid-template-columns:1fr 1fr 1.35fr; }
#overview .insight-card {
  min-height:205px; border-radius:17px; padding:17px;
  background:linear-gradient(180deg,rgba(255,255,255,.018),rgba(255,255,255,.004)),#091115;
}
#overview .insight-card:hover { border-color:rgba(45,212,191,.16); }
#overview .insight-eyebrow { padding-bottom:10px; border-bottom:1px solid rgba(255,255,255,.05); }
#overview .metric-slab { padding:10px 0 0 12px; min-height:52px; }
#overview .executions-table td:first-child { color:#eef4f5; font-weight:650; }

/* CONTROLS: modular settings cards */
#filters .section-shell > :not(.section-heading) { margin-left:16px; margin-right:16px; }
#filters .section-shell > :last-child { margin-bottom:16px; }
#filters .data-management {
  position:relative; padding:0; overflow:hidden; border-radius:17px;
  border:1px solid rgba(255,255,255,.065); background:#091115;
}
.nqtl-control-head {
  display:flex; align-items:center; gap:10px; min-height:55px; padding:12px 14px;
  border-bottom:1px solid rgba(255,255,255,.055);
  background:linear-gradient(90deg,rgba(45,212,191,.035),transparent 55%);
}
.nqtl-control-icon {
  width:31px; height:31px; flex:0 0 31px; display:grid; place-items:center;
  border:1px solid rgba(45,212,191,.20); border-radius:9px;
  background:rgba(45,212,191,.065); color:#55e4cf; font-size:10px; font-weight:900;
}
.nqtl-control-title { color:#e9f0f2; font-size:12px; font-weight:760; letter-spacing:-.01em; }
.nqtl-control-sub { margin-top:2px; color:#62717b; font-size:9px; }

.nqtl-time-presets { display:flex; align-items:center; gap:7px; flex-wrap:wrap; margin:12px 0 10px; }
.nqtl-time-preset {
  min-height:32px; padding:7px 11px; border:1px solid rgba(255,255,255,.09); border-radius:9px;
  background:#0b1317; color:#81909a; font-size:10px; font-weight:750; cursor:pointer; transition:.18s ease;
}
.nqtl-time-preset:hover { border-color:rgba(45,212,191,.28); color:#dce7e9; }
.nqtl-time-preset.is-active {
  border-color:rgba(45,212,191,.52); background:rgba(45,212,191,.12); color:#baf7ee;
  box-shadow:inset 0 0 0 1px rgba(45,212,191,.08);
}
.nqtl-time-preset-note { margin-top:8px; color:#586872; font-size:9px; line-height:1.45; }
#filters .data-management > .flex-row,
#filters .data-management > .other-filters-grid,
#filters .data-management > .card-grid-2,
#filters .data-management > .field-block { padding:13px 14px 14px; }
#filters .options-grid-container { gap:10px; }
#filters .filter-block { padding:12px; border-radius:12px; background:#071014; }
#filters .btn-model,#filters .btn-toggle,#filters .field-actions .btn,#filters .time-range-row .btn {
  min-height:32px; border-radius:8px; background:#0c161b;
}
#filters .btn-model.selected,#filters .btn-toggle.active {
  background:linear-gradient(180deg,rgba(45,212,191,.18),rgba(45,212,191,.09));
  box-shadow:inset 0 0 0 1px rgba(45,212,191,.08);
}
#filters .input,#filters .select { background:#071014; }

/* SETUP ANALYSIS: modern performance module */
#setup-analysis .section-shell { padding-bottom:16px; }
#setup-analysis .score-section { margin:14px 16px 0; border-radius:18px; background:#091115; border-color:rgba(255,255,255,.065); }
#setup-analysis .nqtl-score-panel { padding:0; overflow:hidden; }
.nqtl-module-head {
  min-height:58px; padding:12px 14px; display:flex; align-items:center; justify-content:space-between; gap:12px;
  border-bottom:1px solid rgba(255,255,255,.055); background:linear-gradient(90deg,rgba(45,212,191,.04),transparent 55%);
}
.nqtl-module-heading { display:flex; align-items:center; gap:10px; }
.nqtl-module-icon { width:31px;height:31px;display:grid;place-items:center;border:1px solid rgba(45,212,191,.2);border-radius:9px;background:rgba(45,212,191,.06);color:#4ce2cd; }
.nqtl-module-eyebrow { color:#6f7e88;font-size:8px;font-weight:850;letter-spacing:.16em;text-transform:uppercase; }
.nqtl-module-title { margin-top:2px;color:#edf3f4;font-size:13px;font-weight:760; }
.nqtl-module-note { color:#61707a;font-size:9px; }
#setup-analysis .score-grid { padding:14px; grid-template-columns:minmax(300px,.78fr) minmax(0,1.65fr); gap:12px; }
#setup-analysis .score-main-card { min-height:360px; border-radius:16px; background:radial-gradient(circle at 50% 42%,rgba(45,212,191,.055),transparent 46%),#071014; border-color:rgba(255,255,255,.06); }
#setup-analysis .score-triangle-container { max-width:315px; height:280px; }
#setup-analysis .score-value { color:#43e2c7; font-size:36px; font-weight:650; }
#setup-analysis .score-metrics-stack { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:10px; }
#setup-analysis .score-metric-card { min-height:100px; border-radius:15px; padding:14px; background:#071014; border-color:rgba(255,255,255,.06); }
#setup-analysis .score-metric-card:last-child { grid-column:1/-1; }
#setup-analysis .score-metric-title { color:#6d7b85; font-size:8px; font-weight:850; }
#setup-analysis .score-metric-value { color:#edf3f4; font-size:23px; font-weight:620; }
#setup-analysis .analysis-grid-container { margin:12px 16px 0; gap:10px; }
#setup-analysis .nqtl-analysis-card { margin:0; padding:0; overflow:hidden; }
.nqtl-analysis-head { display:flex;align-items:center;gap:9px;padding:12px 14px;border-bottom:1px solid rgba(255,255,255,.055); }
.nqtl-analysis-dot { width:7px;height:7px;border-radius:50%; }
.nqtl-analysis-dot.is-green { background:#34d399; box-shadow:0 0 14px rgba(52,211,153,.35); }
.nqtl-analysis-dot.is-red { background:#fb7185; box-shadow:0 0 14px rgba(251,113,133,.30); }
.nqtl-analysis-eyebrow { color:#64737d;font-size:8px;font-weight:850;letter-spacing:.16em;text-transform:uppercase; }
.nqtl-analysis-title { margin-top:1px;color:#eaf1f3;font-size:12px;font-weight:750; }
#setup-analysis #ai-analysis-content,#setup-analysis #mistakes-analysis-content { padding:14px !important; font-size:12px !important; color:#a6b0b6 !important; }

/* TRADE DETAILS: rows become review cards */
#trade-log .nqtl-calendar-card { margin:14px 16px 0; }
#trade-details.trades-table { margin:12px 16px 16px; border-radius:18px; }
.nqtl-trade-details-head { padding:14px 15px; background:linear-gradient(90deg,rgba(45,212,191,.04),transparent 50%); }
.nqtl-trade-details-subtitle { margin-top:2px; color:#62717b; font-size:9px; }
#trade-details .table-content { padding:0 12px 12px; }
#trade-details .table-column-header { padding:11px 10px 9px; margin:0; border-radius:0; }
#trade-details .trade-row {
  margin:6px 0 0; min-height:50px; padding:10px;
  border:1px solid rgba(255,255,255,.045); border-radius:11px;
  background:rgba(255,255,255,.012);
}
#trade-details .trade-row:hover { background:rgba(45,212,191,.035); border-color:rgba(45,212,191,.13); }
#trade-details .trade-row > div:first-child { color:#e8eef0; font-weight:650; }
#trade-details .trade-row > div:nth-child(3) { color:#c9d6da; font-weight:650; }
/* NQTL ACCOUNT COLUMN 20261031-01 */
#trade-details .nqtl-col-account { min-width:0; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; color:#a9b8bd; font-weight:600; }

/* NQTL GRADE COLUMN 20261103-01 · badge del grado (color de la opción en Notion) */
#trade-details .nqtl-col-grade { min-width:0; }
#trade-details .nqtl-grade { display:inline-block; max-width:100%; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; vertical-align:middle; padding:4px 8px; border-radius:999px; border:1px solid rgba(148,163,184,.22); background:rgba(148,163,184,.08); color:#b7c3c8; font-size:10px; font-weight:850; line-height:1; letter-spacing:.02em; }
#trade-details .nqtl-grade.is-empty { border-color:transparent; background:transparent; color:#4f5d66; font-weight:600; padding-left:2px; }
#trade-details .nqtl-grade--green  { border-color:rgba(52,211,153,.28);  background:rgba(52,211,153,.10);  color:#42e4b9; }
#trade-details .nqtl-grade--blue   { border-color:rgba(96,165,250,.28);  background:rgba(96,165,250,.10);  color:#8cc2ff; }
#trade-details .nqtl-grade--yellow { border-color:rgba(251,191,36,.26);  background:rgba(251,191,36,.09);  color:#f8c94a; }
#trade-details .nqtl-grade--orange { border-color:rgba(251,146,60,.28);  background:rgba(251,146,60,.10);  color:#fdab6d; }
#trade-details .nqtl-grade--red    { border-color:rgba(251,113,133,.28); background:rgba(251,113,133,.10); color:#ff8093; }
#trade-details .nqtl-grade--pink   { border-color:rgba(244,114,182,.28); background:rgba(244,114,182,.10); color:#f9a8d4; }
#trade-details .nqtl-grade--purple { border-color:rgba(167,139,250,.28); background:rgba(167,139,250,.10); color:#c4b5fd; }
#trade-details .nqtl-grade--brown  { border-color:rgba(180,140,100,.30); background:rgba(180,140,100,.10); color:#d6b48c; }
#trade-details .nqtl-grade--gray   { border-color:rgba(148,163,184,.24); background:rgba(148,163,184,.08); color:#b7c3c8; }
@media print { #trade-details .nqtl-grade { background:#fff!important; color:#17242a!important; border-color:#bbb!important; } }

/* Header itself adopts the same restrained spacing */
.header { margin-bottom:18px; }
.header-left .section-kicker { color:#56dfca; font-size:9px; }
.header-left h1 { font-size:38px; font-weight:350; }

@media (max-width:1400px) {
  #overview .stats-grid { grid-template-columns:1.1fr repeat(4,minmax(0,1fr)); }
  #overview .overview-grid { grid-template-columns:1fr 1fr; }
  #overview .executions-card { grid-column:1/-1; }
}
@media (max-width:1050px) {
  #overview .stats-grid { grid-template-columns:repeat(2,minmax(0,1fr)); }
  #overview .stat-card:first-child { grid-row:auto; min-height:120px; }
  #setup-analysis .score-grid { grid-template-columns:1fr; }
  #setup-analysis .score-metrics-stack { grid-template-columns:repeat(2,minmax(0,1fr)); }
}
@media (max-width:720px) {
  #overview .stats-grid,#overview .overview-grid,#setup-analysis .score-metrics-stack { grid-template-columns:1fr; }
  #setup-analysis .score-metric-card:last-child { grid-column:auto; }
  #overview .data-management.data-status-compact,#overview .stats-grid,#overview .overview-grid,
  #filters .section-shell > :not(.section-heading),#setup-analysis .score-section,#setup-analysis .analysis-grid-container,
  #trade-log .nqtl-calendar-card,#trade-details.trades-table { margin-left:10px; margin-right:10px; }
  .nqtl-section-subtitle,.nqtl-module-note { display:none; }
}


/* NQTL V2 FILTER CLEANUP 20260916-01
   Settings owns capital/breakeven. Dashboard keeps only analytical filters. */
#filters .nqtl-remaining-filters-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: stretch;
}
#filters .nqtl-remaining-filters-grid > .data-management {
  min-height: 100%;
}
#filters #quality-filter-container .time-range-row,
#filters #time-filter-container .time-range-row {
  margin-top: 8px;
}
@media (max-width: 1180px) {
  #filters .nqtl-remaining-filters-grid { grid-template-columns: 1fr; }
}
  .nqtl-active-filters{display:flex;flex-wrap:wrap;gap:8px;margin:12px 0 4px}
  .nqtl-active-filters:empty{display:none}
  .nqtl-filter-chip,.nqtl-filter-clear{border:1px solid rgba(45,212,191,.35);border-radius:999px;background:rgba(45,212,191,.09);color:var(--text);padding:7px 12px;cursor:pointer;font:inherit;font-size:12px}
  .nqtl-filter-clear{border-color:var(--border);background:transparent;color:var(--muted)}
  .nqtl-visible-count{color:var(--muted);font-size:12px;margin:8px 0 16px}
  .nqtl-risk-notice{border:1px solid rgba(251,191,36,.28);border-radius:9px;background:rgba(251,191,36,.08);color:#fcd98b;padding:9px 12px;margin:-8px 0 14px;font-size:12px;line-height:1.45}
  .nqtl-risk-notice[hidden]{display:none}
  html[lang="es"] .stat-card-gauge::before{content:'TASA DE ACIERTO'}
  #nqtlNotificationBtn{position:relative}
  #nqtlNotificationBtn.has-unread:after{content:'';position:absolute;right:5px;top:4px;width:7px;height:7px;border-radius:50%;background:#fb7185}
  .nqtl-notification-panel{position:absolute;top:64px;right:140px;z-index:100;width:min(300px,calc(100vw - 30px));padding:16px;border:1px solid var(--border);border-radius:12px;background:#101b1e;box-shadow:0 12px 38px rgba(0,0,0,.35);color:var(--text);font-size:13px;line-height:1.5}
  .nqtl-notification-panel[hidden]{display:none}
  @media print {
    @page{size:A4 portrait;margin:14mm}
    html,body{width:100%!important;height:auto!important;overflow:visible!important;background:#fff!important;color:#111!important;-webkit-print-color-adjust:exact;print-color-adjust:exact}
    .dashboard-wrapper,.main{background:#fff!important;color:#111!important}
    .header-left h1{color:#111!important}
    .site-header,.sidebar,#nqtlDashboardBoot,#nqtlNotificationPanel,.notification,.nqtl-active-filters button,#data-status-container,#nqtlDemoBanner{display:none!important}
    .dashboard-wrapper,.dashboard-main,.main-content,.page-section,.section-shell{display:block!important;position:static!important;width:100%!important;max-width:none!important;height:auto!important;overflow:visible!important;margin:0!important;box-shadow:none!important;transform:none!important}
    .page-section{break-before:auto;page-break-before:auto}
    #trade-log{break-before:page;page-break-before:always}
    .stat-card,.nqtl-performance-pane,.nqtl-matrix-card,.nqtl-time-card,.nqtl-calendar-card,.trade-row{break-inside:avoid;page-break-inside:avoid}
    .nqtl-performance-range,.nqtl-calendar-range,.nqtl-matrix-tabs,.nqtl-import-actions{display:none!important}
    .section-shell,#overview .stat-card,#overview .stat-card:first-child,#overview .insight-card,
    .nqtl-performance-card,.nqtl-matrix-card,.nqtl-time-card,.nqtl-calendar-card,#trade-details,
    .nqtl-matrix-summary,.nqtl-time-summary,.nqtl-calendar-summary,
    .nqtl-calendar-month-view .day,.nqtl-calendar-month-view .day.empty,
    #trade-details .table-column-header,#trade-details .trade-row{
      background:#fff!important;border-color:#ddd!important;box-shadow:none!important;color:#17242a!important;
    }
    .nqtl-performance-title,.nqtl-matrix-title,.nqtl-time-title,.nqtl-calendar-title,
    .nqtl-trade-details-title,.nqtl-matrix-rank-name,.nqtl-calendar-stat-value,
    #equity-curve .section-title-large,#trade-log .section-title-large,
    #overview .stat-value,#overview .insight-card h3,#overview .metric-slab .v,
    #overview .executions-table td,#trade-details .trade-row{
      color:#17242a!important;
    }
    #overview .profit,#overview .stat-value.profit,#overview .metric-slab .v.profit,
    #trade-details .trade-pnl-positive{color:#137a52!important}
    #overview .loss,#overview .stat-value.loss,#overview .metric-slab .v.loss,
    #trade-details .trade-pnl-negative{color:#b42334!important}
    .nqtl-performance-pane-title,.nqtl-time-interval strong,.nqtl-matrix-gauge-center strong,
    .nqtl-calendar-month-view .day strong,.nqtl-matrix-head-stat strong{color:#35454d!important}
    #equity-curve .section-kicker,#trade-log .section-kicker{color:#43515a!important}
    .nqtl-calendar-month-view .day.positive{background:#e9f6ee!important}
    .nqtl-calendar-month-view .day.negative{background:#fcecef!important}
    .nqtl-calendar-month-view .day.breakeven{background:#fff8e5!important}
    .nqtl-risk-notice{background:#fff8e5!important;color:#745700!important;border-color:#ead48b!important}
    .nqtl-time-cluster-range{color:#17242a!important}
    .nqtl-calendar-heat-day:not(.has-trades),.nqtl-calendar-legend-box:not(.win):not(.loss):not(.be){background:#eef1f3!important;border-color:#d8dee2!important}
    body.nqtl-print-full .trades-table{display:block!important;overflow:visible!important}
    body.nqtl-print-full #trade-details .table-content{max-height:none!important;height:auto!important;overflow:visible!important}
    #trade-details .table-column-header,#trade-details .trade-row{
      grid-template-columns:minmax(0,.7fr) minmax(0,.5fr) minmax(0,1fr) minmax(0,.4fr) minmax(0,.8fr) minmax(0,.65fr) minmax(0,.5fr) minmax(0,.7fr) minmax(0,1fr) minmax(0,1fr)!important;
      width:100%!important;min-width:0!important;box-sizing:border-box!important;gap:3px!important;padding:7px 3px!important;font-size:10px!important;overflow-wrap:anywhere;
    }
    #trade-details .table-column-header{position:static!important;letter-spacing:0!important}
    #trade-details .trade-row > div:first-child,#trade-details .trade-row > div:nth-child(3),#trade-details a{color:#17242a!important}
    canvas{max-width:100%!important;max-height:300px!important}
    body.nqtl-print-summary #filters,body.nqtl-print-summary #equity-curve,body.nqtl-print-summary #trade-log{display:none!important}
    body.nqtl-print-full #filters{display:none!important}
  }

        @media(max-width:900px){.nqtl-tv-operation-head{grid-template-columns:32px 1fr!important}.nqtl-tv-operation-check{grid-column:1;grid-row:1}.nqtl-tv-operation-card .nqtl-operation-main{grid-column:2;grid-row:1}.nqtl-tv-operation-card .nqtl-operation-model,.nqtl-tv-operation-card .nqtl-operation-status{grid-column:2!important}.nqtl-tv-operation-card .nqtl-operation-status{justify-content:flex-start}}
      

/* NQTL 2026-10-01: Expectancy card -> 9 KPI cards in two rows
   Row 1: 5 cards; row 2: 4 cards with the last one (Drawdown) spanning 2 columns. */
#overview .stats-grid { grid-template-columns: 1.16fr repeat(5, minmax(0, 1fr)); }
#overview .stats-grid > .stat-card:last-child { grid-column: span 2; }
@media (max-width:1400px) { #overview .stats-grid { grid-template-columns: 1.1fr repeat(5, minmax(0, 1fr)); } }
@media (max-width:1050px) { #overview .stats-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width:720px) {
  #overview .stats-grid { grid-template-columns: 1fr; }
  #overview .stats-grid > .stat-card:last-child { grid-column: auto; }
}
/* Styled tooltips were clipped by overflow:hidden on overview cards */
#overview .stat-card.has-tooltip { overflow: visible; }
#overview .stat-card.has-tooltip:hover { z-index: 20; }
#overview .stat-card .tooltip-text { z-index: 30; }

/* NQTL FILTERS ROW 20261001-02
   Checklist, Account, Errors y Session time range en una sola fila.
   Las columnas se crean solo para las tarjetas visibles: si Account está
   oculta (una sola cuenta) las otras tres ocupan todo el ancho. */
#filters .nqtl-remaining-filters-grid {
  grid-template-columns: none;
  grid-auto-flow: column;
  grid-auto-columns: minmax(0, 1fr);
}
@media (max-width: 1500px) {
  #filters .nqtl-remaining-filters-grid {
    grid-auto-flow: row;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 1180px) {
  #filters .nqtl-remaining-filters-grid { grid-template-columns: 1fr; }
}

/* NQTL DRAWDOWN PANE 20261106-01 · selector PnL / trade · Drawdown */
.nqtl-performance-pane-switch {
  display: inline-flex;
  gap: 4px;
  padding: 3px;
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 10px;
  background: rgba(255,255,255,.02);
}
.nqtl-performance-pane-switch button {
  height: 26px;
  padding: 0 11px;
  border: 1px solid transparent;
  border-radius: 7px;
  background: transparent;
  color: #82909b;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
  cursor: pointer;
  transition: .18s ease;
}
.nqtl-performance-pane-switch button:hover { color: #d9fffa; }
.nqtl-performance-pane-switch button.is-active {
  color: #d9fffa;
  border-color: rgba(45,212,191,.45);
  background: rgba(16,185,129,.16);
}
@media print { .nqtl-performance-pane-switch { display: none !important; } }

/* NQTL STREAKS + TRADING BEHAVIOUR 20261108-01 */
#overview .nqtl-streaks-card {
  display:flex; flex-direction:column; gap:12px;
  border-color:rgba(45,212,191,.22);
  background:radial-gradient(circle at 100% 0%,rgba(45,212,191,.07),transparent 45%),#091115;
}
#overview .nqtl-streaks-eyebrow { justify-content:space-between; margin-bottom:0; }
.nqtl-streaks-eyebrow-main { display:flex; align-items:center; }
.nqtl-streaks-sub { letter-spacing:0; font-weight:500; font-size:10px; text-transform:none; color:#8a96a0; }
.nqtl-streaks-body { display:flex; gap:12px; }
.nqtl-streak-k { font-size:9px; font-weight:800; letter-spacing:.15em; color:#8a96a0; text-transform:uppercase; }
.nqtl-streak-current {
  flex:1.1; min-width:0; padding:12px 16px; border-radius:14px;
  background:rgba(255,255,255,.02); border:1px solid rgba(255,255,255,.06);
}
.nqtl-streak-current[data-type="W"] { background:radial-gradient(circle at 0% 0%,rgba(52,211,153,.18),transparent 62%),rgba(52,211,153,.04); border-color:rgba(52,211,153,.24); }
.nqtl-streak-current[data-type="W"] .nqtl-streak-k { color:#8fe9c6; }
.nqtl-streak-current[data-type="L"] { background:radial-gradient(circle at 0% 0%,rgba(251,113,133,.18),transparent 62%),rgba(251,113,133,.04); border-color:rgba(251,113,133,.26); }
.nqtl-streak-current[data-type="L"] .nqtl-streak-k { color:#fda4af; }
.nqtl-streak-main { display:flex; align-items:baseline; gap:10px; margin:4px 0; flex-wrap:wrap; }
.nqtl-streak-num { font-size:46px; line-height:1; font-weight:800; letter-spacing:-.04em; color:#eef4f5; }
.nqtl-streak-current[data-type="W"] .nqtl-streak-num { color:#34d399; }
.nqtl-streak-current[data-type="L"] .nqtl-streak-num { color:#fb7185; }
.nqtl-streak-word { font-size:14px; font-weight:600; color:#d6e4e8; }
.nqtl-streak-meta { font-size:11px; color:#9fb0b8; }
.nqtl-streak-records { flex:1; min-width:0; display:flex; flex-direction:column; gap:8px; }
.nqtl-streak-record { flex:1; padding:8px 14px; border-radius:12px; background:rgba(255,255,255,.02); border:1px solid rgba(255,255,255,.06); }
.nqtl-streak-record > div:last-child { margin-top:3px; }
.nqtl-streak-rnum { font-size:22px; font-weight:750; }
.nqtl-streak-rnum.win { color:#34d399; }
.nqtl-streak-rnum.loss { color:#fb7185; }
.nqtl-streak-rmeta { font-size:11px; color:#c9d4d8; }
.nqtl-streak-strip { display:grid; grid-template-columns:repeat(20,minmax(0,1fr)); gap:5px; }
.nqtl-streak-sq {
  aspect-ratio:1/1; max-height:30px; border-radius:6px; display:grid; place-items:center;
  font-size:10px; font-weight:800; cursor:default;
}
.nqtl-streak-sq.is-W { background:rgba(52,211,153,.22); color:#8ff0c9; }
.nqtl-streak-sq.is-L { background:rgba(251,113,133,.22); color:#ffb3c0; }
.nqtl-streak-sq.is-B { background:rgba(251,191,36,.18); color:#fde68a; }
.nqtl-streak-sq.is-empty { background:rgba(255,255,255,.025); }
.nqtl-streak-sq.is-current { box-shadow:0 0 0 1.5px #2dd4bf; }
.nqtl-streak-note { font-size:10px; color:#6f7d86; margin-top:-4px; }

.nqtl-behaviour { margin:4px 16px 16px; }
.nqtl-behaviour-head { display:flex; align-items:baseline; justify-content:space-between; gap:12px; padding:0 2px 10px; }
.nqtl-behaviour-kicker { font-size:8px; font-weight:850; letter-spacing:.19em; color:#7b8a94; text-transform:uppercase; }
.nqtl-behaviour-title { font-size:13px; font-weight:700; color:#eef4f5; }
.nqtl-behaviour-hint { font-size:10px; color:#8a96a0; }
.nqtl-behaviour-grid { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:10px; }
.nqtl-btile {
  padding:17px; display:flex; flex-direction:column; gap:12px; min-height:250px; min-width:0;
  border:1px solid rgba(255,255,255,.065); border-radius:17px;
  background:linear-gradient(180deg,rgba(255,255,255,.021),rgba(255,255,255,.006)),#091115;
}
.nqtl-btile:hover { border-color:rgba(45,212,191,.16); }
.nqtl-btile.is-over { border-color:rgba(251,191,36,.24); background:radial-gradient(circle at 100% 0%,rgba(251,191,36,.08),transparent 55%),#091115; }
.nqtl-btile.is-over .nqtl-btile-eye { color:#fcd34d; }
.nqtl-btile-eye {
  display:flex; align-items:center; gap:8px; font-size:9px; font-weight:800; letter-spacing:.18em;
  color:#8a96a0; text-transform:uppercase;
}
.nqtl-btag {
  margin-left:auto; font-size:9px; font-weight:800; padding:3px 7px; border-radius:999px; letter-spacing:.06em;
  text-transform:none; white-space:nowrap; background:rgba(255,255,255,.05); color:#9fb0b8;
}
.nqtl-btag.is-bad { background:rgba(251,113,133,.12); color:#fda4af; }
.nqtl-btag.is-good { background:rgba(52,211,153,.12); color:#8ff0c9; }
.nqtl-btag.is-warn { background:rgba(251,191,36,.14); color:#fde68a; }
.nqtl-btile-q { font-size:15px; font-weight:650; line-height:1.25; color:#eef4f5; overflow-wrap:anywhere; }
.nqtl-btile-body { display:flex; flex-direction:column; gap:12px; }
.nqtl-btile-foot { margin-top:auto; font-size:10.5px; line-height:1.5; color:#9fb0b8; }
.nqtl-btile-empty { padding:14px 12px; border-radius:12px; border:1px dashed rgba(255,255,255,.08); font-size:11px; line-height:1.5; color:#8a96a0; }
.nqtl-btile .win { color:#34d399; } .nqtl-btile .loss { color:#fb7185; } .nqtl-btile .warn { color:#fbbf24; } .nqtl-btile .muted { color:#8a96a0; }
.nqtl-bbar-label { display:flex; justify-content:space-between; font-size:11px; color:#c9d4d8; }
.nqtl-bbar-label small { color:#6f7d86; font-size:10px; }
.nqtl-bbar { height:8px; border-radius:999px; background:rgba(255,255,255,.06); margin-top:5px; position:relative; }
.nqtl-bbar > div { height:8px; border-radius:999px; }
.nqtl-hold-chart { display:flex; gap:22px; align-items:flex-end; height:132px; padding:0 10px; }
.nqtl-hold-col { flex:1; text-align:center; }
.nqtl-hold-v { font-size:17px; font-weight:750; }
.nqtl-hold-bar { margin-top:6px; border-radius:8px 8px 3px 3px; }
.nqtl-hold-bar.win { background:linear-gradient(180deg,#34d399,rgba(52,211,153,.35)); }
.nqtl-hold-bar.loss { background:linear-gradient(180deg,#fb7185,rgba(251,113,133,.35)); }
.nqtl-hold-l, .nqtl-ot-l { color:#8a96a0; font-size:10px; margin-top:6px; }
.nqtl-hold-l small { color:#6f7d86; }
.nqtl-cons-main { display:flex; align-items:center; gap:10px; flex-wrap:wrap; }
.nqtl-cons-pct { font-size:38px; font-weight:800; letter-spacing:-.03em; line-height:1; color:#2dd4bf; }
.nqtl-cons-bar { margin-top:4px; }
.nqtl-cons-mark { position:absolute; top:-5px; width:2px; height:18px; margin-left:-1px; background:#eef4f5; border-radius:2px; }
.nqtl-climit-btn {
  font:inherit; font-size:11px; font-weight:650; padding:5px 10px; border-radius:999px; cursor:pointer;
  border:1px solid rgba(45,212,191,.35); background:rgba(45,212,191,.12); color:#ccfbf1;
}
.nqtl-climit-btn.ghost { background:transparent; border-color:rgba(255,255,255,.12); color:#c9d4d8; }
.nqtl-climit-btn:hover { border-color:rgba(45,212,191,.5); color:#fff; }
.nqtl-climit-edit { display:inline-flex; align-items:center; gap:6px; font-size:12px; color:#c9d4d8; }
.nqtl-climit-edit input {
  width:58px; padding:5px 7px; border-radius:8px; border:1px solid rgba(45,212,191,.35);
  background:#050b0e; color:#eef4f5; font:inherit; font-size:12px;
}
.nqtl-ot-chart { display:flex; gap:10px; align-items:flex-end; height:110px; }
.nqtl-ot-col { flex:1; text-align:center; }
.nqtl-ot-col b { font-size:11px; color:#8a96a0; }
.nqtl-ot-bar { margin-top:5px; border-radius:6px 6px 2px 2px; }
.nqtl-ot-bar.win { background:rgba(52,211,153,.7); }
.nqtl-ot-bar.warn { background:rgba(251,191,36,.6); }
.nqtl-ot-bar.loss { background:rgba(251,113,133,.7); }
.nqtl-ot-bar.empty { background:rgba(255,255,255,.06); }

@media (max-width:1400px) {
  #overview .nqtl-streaks-card { grid-column:1/-1; }
  .nqtl-behaviour-grid { grid-template-columns:repeat(2,minmax(0,1fr)); }
}
@media (max-width:720px) {
  .nqtl-behaviour { margin-left:10px; margin-right:10px; }
  .nqtl-behaviour-grid { grid-template-columns:1fr; }
  .nqtl-behaviour-hint { display:none; }
  .nqtl-streaks-body { flex-direction:column; }
  .nqtl-streak-strip { grid-template-columns:repeat(10,minmax(0,1fr)); }
  .nqtl-btile { min-height:0; }
}
@media print {
  .nqtl-btile, #overview .nqtl-streaks-card { break-inside:avoid; }
  .nqtl-climit-btn { display:none !important; }
}


/* NQTL NOTION LINK COLUMN 20261115-01 · 11 columnas (Notion al final); gana a reglas anteriores de 10 columnas */
#trade-details .table-content .table-column-header,
#trade-details .table-content .trade-row{grid-template-columns:96px 60px minmax(110px,1.1fr) 56px minmax(96px,1fr) 92px 66px 84px minmax(110px,1fr) minmax(110px,1.1fr) 72px!important;gap:10px!important}
#trade-details .nqtl-col-link,#trade-details .table-content .table-column-header > div:last-child{text-align:right;padding-right:6px}
@media (max-width:1180px){#trade-details .table-content{overflow-x:auto}#trade-details .table-content .table-column-header,#trade-details .table-content .trade-row{min-width:1080px}}
#trade-details .nqtl-notion-link{display:inline-flex;align-items:center;gap:4px;padding:4px 9px;border-radius:999px;border:1px solid rgba(45,212,191,.28);background:rgba(45,212,191,.07);color:#8beede;font-size:10px;font-weight:800;text-decoration:none;white-space:nowrap;opacity:1}
#trade-details .nqtl-notion-link:hover{background:rgba(45,212,191,.16);border-color:rgba(45,212,191,.5);color:#ccfbf1}
#trade-details .nqtl-notion-link.is-off{border-color:transparent;background:transparent;color:#4b5a63}
@media print{#trade-details .nqtl-col-link{display:none}}


/* ═══════════════════════════════════════════════════════════════
   NQTL NEWS CALENDAR 20261117-01
   Alternate calendar mode: selected U.S. macro events from Investing.com.
   Existing PnL / R calendar styles remain untouched outside .is-news-mode.
   ═══════════════════════════════════════════════════════════════ */
.nqtl-calendar-news-toggle {
  position: relative;
  margin-left: 5px;
  padding-left: 14px !important;
  padding-right: 14px !important;
  color: #9cc8c1 !important;
  border-color: rgba(45,212,191,.24) !important;
  background: rgba(45,212,191,.045) !important;
}
.nqtl-calendar-news-toggle::before {
  content: '';
  position: absolute;
  left: -6px;
  top: 5px;
  bottom: 5px;
  width: 1px;
  background: rgba(255,255,255,.08);
}
.nqtl-calendar-news-toggle:hover {
  color: #d9fffa !important;
  border-color: rgba(45,212,191,.5) !important;
}
.nqtl-calendar-news-toggle.is-active,
.nqtl-calendar-news-toggle[aria-pressed="true"] {
  color: #041412 !important;
  border-color: #2dd4bf !important;
  background: #2dd4bf !important;
  box-shadow: 0 0 0 1px rgba(45,212,191,.12), 0 0 24px rgba(45,212,191,.13) !important;
}
.nqtl-calendar-card.is-news-mode #nqtlCalendarRange button[data-range] {
  opacity: .42;
  cursor: default;
  pointer-events: none;
}
.nqtl-calendar-card.is-news-mode .nqtl-calendar-total {
  display: none;
}
.nqtl-calendar-card.is-news-mode .nqtl-calendar-icon {
  color: #93c5fd;
  border-color: rgba(96,165,250,.28);
  background: rgba(96,165,250,.08);
}
.nqtl-calendar-news-meta {
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  flex-wrap:wrap;
  min-height:39px;
  padding:9px 22px;
  border-bottom:1px solid rgba(255,255,255,.055);
  background:rgba(255,255,255,.012);
}
.nqtl-calendar-news-meta[hidden] { display:none !important; }
.nqtl-calendar-news-source {
  display:flex;
  align-items:center;
  gap:8px;
  min-width:0;
  color:#86949f;
  font-size:10.5px;
  line-height:1.4;
}
.nqtl-calendar-news-source a {
  color:#9adfd5;
  text-decoration:none;
  white-space:nowrap;
}
.nqtl-calendar-news-source a:hover { color:#d9fffa; }
.nqtl-calendar-news-dot {
  width:7px;
  height:7px;
  flex:0 0 7px;
  border-radius:50%;
  background:#2dd4bf;
  box-shadow:0 0 10px rgba(45,212,191,.5);
}
.nqtl-calendar-news-dot.is-stale { background:#fbbf24; box-shadow:0 0 10px rgba(251,191,36,.4); }
.nqtl-calendar-news-dot.is-error { background:#fb7185; box-shadow:0 0 10px rgba(251,113,133,.4); }
.nqtl-calendar-news-legend {
  display:flex;
  align-items:center;
  gap:12px;
  flex-wrap:wrap;
  color:#74828d;
  font-size:9.5px;
  font-weight:700;
  letter-spacing:.04em;
}
.nqtl-calendar-news-legend span { display:inline-flex; align-items:center; gap:5px; }
.nqtl-calendar-news-legend i {
  width:7px; height:7px; border-radius:50%; display:inline-block;
  background:#60a5fa;
}
.nqtl-calendar-news-legend i.high { background:#fb7185; }
.nqtl-calendar-news-legend i.medium { background:#fbbf24; }
.nqtl-calendar-news-legend i.low { background:#60a5fa; }
.nqtl-calendar-news-legend i.holiday { background:#a78bfa; }

.nqtl-calendar-card.is-news-mode .nqtl-calendar-month-view .day {
  min-height:108px;
}
.nqtl-calendar-card.is-news-mode .nqtl-calendar-month-view .day.is-news-day {
  align-items:stretch;
  text-align:left;
  justify-content:flex-start;
  background:
    radial-gradient(circle at 90% -15%, rgba(96,165,250,.06), transparent 45%),
    #0b1114;
  border-color:rgba(96,165,250,.14);
}
.nqtl-calendar-card.is-news-mode .nqtl-calendar-month-view .day.news-empty {
  background:#0b1114;
  border-color:rgba(255,255,255,.045);
}
.nqtl-calendar-card.is-news-mode .nqtl-calendar-month-view .day strong {
  align-self:flex-start;
  margin:0 0 7px 1px;
  color:#d8e0e4;
}
.nqtl-news-events {
  display:flex;
  flex-direction:column;
  gap:5px;
  width:100%;
}
.nqtl-news-event {
  width:100%;
  min-width:0;
  display:grid;
  grid-template-columns:auto minmax(0,1fr);
  gap:6px;
  align-items:center;
  padding:5px 6px;
  border:1px solid rgba(96,165,250,.20);
  border-radius:8px;
  background:rgba(96,165,250,.075);
  color:#dbeafe;
  line-height:1.1;
}
.nqtl-news-event.high {
  border-color:rgba(251,113,133,.34);
  background:rgba(251,113,133,.095);
  color:#fecdd3;
}
.nqtl-news-event.medium {
  border-color:rgba(251,191,36,.30);
  background:rgba(251,191,36,.085);
  color:#fde68a;
}
.nqtl-news-event.low {
  border-color:rgba(96,165,250,.30);
  background:rgba(96,165,250,.085);
  color:#bfdbfe;
}
.nqtl-news-event.holiday {
  border-color:rgba(167,139,250,.30);
  background:rgba(167,139,250,.085);
  color:#ddd6fe;
}
.nqtl-news-time {
  font-size:8.5px;
  font-weight:850;
  letter-spacing:.02em;
  color:currentColor;
  opacity:.72;
  font-variant-numeric:tabular-nums;
  white-space:nowrap;
}
.nqtl-news-label {
  min-width:0;
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
  font-size:10px;
  font-weight:850;
  letter-spacing:.025em;
}
.nqtl-news-weekly {
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  gap:4px;
  min-height:74px;
}
.nqtl-news-weekly strong {
  margin:0 !important;
  font-size:16px !important;
  font-weight:750 !important;
}
.nqtl-news-weekly span {
  color:#75838e;
  font-size:9px;
  line-height:1.2;
}
.nqtl-news-weekly .nqtl-news-week-dot {
  width:8px;
  height:8px;
  border-radius:50%;
  background:#60a5fa;
}
.nqtl-news-weekly .nqtl-news-week-dot.high { background:#fb7185; }
.nqtl-news-weekly .nqtl-news-week-dot.medium { background:#fbbf24; }
.nqtl-news-weekly .nqtl-news-week-dot.low { background:#60a5fa; }
.nqtl-news-weekly .nqtl-news-week-dot.holiday { background:#a78bfa; }
.nqtl-news-loading,
.nqtl-news-error {
  padding:16px 4px 4px;
  color:#7f8b96;
  font-size:11px;
}
.nqtl-news-error { color:#fda4af; }

@media (max-width:760px) {
  .nqtl-calendar-news-toggle { margin-left:0; }
  .nqtl-calendar-news-toggle::before { display:none; }
  .nqtl-calendar-news-meta { padding-left:14px; padding-right:14px; }
  .nqtl-calendar-news-source { width:100%; }
  .nqtl-calendar-news-legend { gap:9px; }
  .nqtl-calendar-card.is-news-mode .nqtl-calendar-month-view .calendar {
    grid-template-columns:repeat(6,minmax(104px,1fr));
    min-width:730px;
  }
}


/* NQTL NEWS CALENDAR 20261117-02 · News button next to Today */


/* NQTL NEWS SWITCH 20261117-03 · separate element left of the ◀ Today ▶ group */
.nqtl-cal-tools{display:flex;align-items:center;gap:14px}
.nqtl-cal-tools-sep{width:1px;height:26px;background:rgba(255,255,255,.1)}
.nqtl-news-switch{display:inline-flex;align-items:center;gap:9px;height:36px;padding:0 14px 0 10px;border-radius:999px;border:1px solid rgba(251,113,133,.28);background:rgba(251,113,133,.06);color:#fecdd3;font:inherit;font-size:12px;font-weight:800;letter-spacing:.02em;cursor:pointer;transition:background .15s,border-color .15s}
.nqtl-news-switch:hover{border-color:rgba(251,113,133,.5);background:rgba(251,113,133,.1)}
.nqtl-news-switch-track{position:relative;width:30px;height:17px;border-radius:999px;background:rgba(255,255,255,.12);transition:background .15s}
.nqtl-news-switch-knob{position:absolute;top:2px;left:2px;width:13px;height:13px;border-radius:50%;background:#cbd5e1;transition:transform .15s,background .15s}
.nqtl-news-switch[aria-pressed="true"]{border-color:rgba(251,113,133,.6);background:rgba(251,113,133,.16);color:#fff}
.nqtl-news-switch[aria-pressed="true"] .nqtl-news-switch-track{background:#fb7185}
.nqtl-news-switch[aria-pressed="true"] .nqtl-news-switch-knob{transform:translateX(13px);background:#fff}

/* NQTL NEWS CALENDAR 20261117-05 · same day size as the PnL calendar (78 px); compact news chips */
.nqtl-calendar-card.is-news-mode .nqtl-calendar-month-view .day{min-height:78px}
.nqtl-calendar-card.is-news-mode .nqtl-calendar-month-view .day strong{margin:0 0 4px 1px}
.nqtl-calendar-card.is-news-mode .nqtl-news-events{gap:3px}
.nqtl-calendar-card.is-news-mode .nqtl-news-event{padding:3px 6px;border-radius:7px}
.nqtl-calendar-card.is-news-mode .nqtl-news-weekly{min-height:0}

/* NQTL NEWS CALENDAR 20261117-06 · source / legend bar below the calendar (it no longer pushes the days down) */
.nqtl-calendar-card .nqtl-calendar-news-meta{border-bottom:0;border-top:1px solid rgba(255,255,255,.055);border-radius:0 0 18px 18px}

/* NQTL NEWS CALENDAR 20261117-07 · day number centred, as in the PnL calendar */
.nqtl-calendar-card.is-news-mode .nqtl-calendar-month-view .day strong{align-self:center;width:100%;text-align:center;margin:0 0 4px}


/* NQTL WHATS NEW 20261117-01 · wider bell panel with scroll */
.nqtl-notification-panel{width:min(380px,calc(100vw - 30px))!important;max-height:min(70vh,560px);overflow:auto}
