/* AMT Journal — Dashboard */
.dash { display: flex; flex-direction: column; gap: 16px; }

/* ---------- héroe: balance + curva ---------- */
.dash-hero { overflow: hidden; }
.dash-hero::before {
  content: "";
  position: absolute; inset: 0;
  background: radial-gradient(560px 280px at 10% -14%, rgba(61, 123, 255, .12), transparent 70%);
  pointer-events: none;
}
/* marcas de registro en las esquinas */
.dash-hero .mk { position: absolute; width: 9px; height: 9px; opacity: .32; pointer-events: none; }
.dash-hero .mk::before, .dash-hero .mk::after { content: ""; position: absolute; background: #fff; }
.dash-hero .mk::before { left: 4px; top: 0; width: 1px; height: 9px; }
.dash-hero .mk::after { top: 4px; left: 0; height: 1px; width: 9px; }
.dash-hero .mk.tl { top: 9px; left: 9px; } .dash-hero .mk.tr { top: 9px; right: 9px; }
.dash-hero .mk.bl { bottom: 9px; left: 9px; } .dash-hero .mk.br { bottom: 9px; right: 9px; }

.dash-hero-head { position: relative; display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; padding: 24px 26px 6px; flex-wrap: wrap; }
.dash-balance { margin-top: 12px; font-size: 42px; font-weight: 600; letter-spacing: -.045em; line-height: 1; }
.dash-balance .cents { color: var(--text-3); font-weight: 500; }
.dash-balance-sub { display: flex; align-items: center; gap: 10px; margin-top: 14px; font-size: 13px; flex-wrap: wrap; }
.dash-balance-sub .delta { font-size: 14px; }
.dash-chip {
  display: inline-flex; align-items: center; height: 22px; padding: 0 8px;
  border-radius: 6px; font-size: 12px; font-weight: 600;
  background: rgba(255, 255, 255, .05); border: 1px solid var(--line); color: var(--text-2);
}
.dash-chip.pos { color: var(--pos); background: var(--pos-soft); border-color: rgba(62, 207, 142, .2); }
.dash-chip.neg { color: var(--neg); background: var(--neg-soft); border-color: rgba(240, 97, 109, .2); }
.dash-chart { position: relative; padding: 10px 14px 14px; }
.dash-hero-empty .empty { position: relative; padding: 36px 24px 56px; }

/* ---------- estado de la cuenta ---------- */
.dash-status { display: flex; flex-direction: column; }
.dash-status .card-body { flex: 1; display: flex; flex-direction: column; padding-top: 6px; }
.dash-gauge { padding: 14px 0 15px; border-bottom: 1px solid var(--line-soft); }
.dash-gauge-top { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; margin-bottom: 10px; }
.dash-gauge-label { font-size: 13px; color: var(--text-2); }
.dash-gauge-value { font-size: 15px; font-weight: 600; letter-spacing: -.01em; }
.dash-gauge-sub { display: flex; justify-content: space-between; gap: 10px; margin-top: 9px; font-size: 12px; color: var(--text-3); white-space: nowrap; }
.dash-status-stats { margin-top: auto; padding-top: 4px; }
.dash-status-stats .stat-row { padding: 9px 0; }
.dash-nolimits { display: flex; flex-direction: column; gap: 10px; padding: 12px 0 16px; border-bottom: 1px solid var(--line-soft); font-size: 13px; color: var(--text-3); }

/* ---------- calendario y rendimiento ---------- */
.dash-cal-month { margin-right: 4px; font-size: 13px; font-weight: 500; color: var(--text-2); font-variant-numeric: tabular-nums; }
.dash-cal .card-foot, .dash-perf .card-foot { color: var(--text-2); }
.dash-perf { display: flex; flex-direction: column; }
.dash-perf .card-body { flex: 1; }
.dash-foot-name { font-weight: 600; color: var(--text); }

/* ---------- operaciones recientes ---------- */
.dash-setup { display: block; max-width: 190px; }
.dash-inst { display: inline-flex; align-items: center; gap: 12px; }
.dash-inst .sym { min-width: 36px; }

/* ---------- insights ---------- */
.dash-ai .card-title { display: inline-flex; align-items: center; gap: 8px; }
.dash-ai .card-title .ic { color: var(--blue); }
.dash-ai::before {
  content: "";
  position: absolute; top: -1px; left: 18px; right: 18px; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(61, 123, 255, .65), transparent);
}
.dash-ai .card-body, .dash-algos .card-body { padding-top: 6px; }
.dash-insight { display: grid; grid-template-columns: 30px minmax(0, 1fr) auto; gap: 12px; align-items: start; padding: 12px 0; border-bottom: 1px solid var(--line-soft); }
.dash-insight:last-child { border-bottom: none; padding-bottom: 2px; }
.dash-insight-ic { width: 30px; height: 30px; display: grid; place-items: center; border-radius: 8px; border: 1px solid var(--line); color: var(--text-2); background: rgba(255, 255, 255, .03); }
.dash-insight-ic.tone-pos { color: var(--pos); background: var(--pos-soft); border-color: rgba(62, 207, 142, .2); }
.dash-insight-ic.tone-neg { color: var(--neg); background: var(--neg-soft); border-color: rgba(240, 97, 109, .2); }
.dash-insight-ic.tone-warn { color: var(--warn); background: var(--warn-soft); border-color: rgba(227, 169, 79, .2); }
.dash-insight-ic.tone-blue { color: #7aa5ff; background: var(--blue-soft); border-color: rgba(61, 123, 255, .24); }
.dash-insight-main { display: flex; flex-direction: column; min-width: 0; }
.dash-insight-title { font-size: 13px; font-weight: 600; line-height: 1.35; }
.dash-insight-text { margin-top: 3px; font-size: 12.5px; line-height: 1.5; color: var(--text-3); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.dash-insight-metric { padding-top: 1px; font-size: 12.5px; font-weight: 600; white-space: nowrap; color: var(--text-2); }
.tone-text-pos { color: var(--pos); } .tone-text-neg { color: var(--neg); } .tone-text-warn { color: var(--warn); }
.dash-insight:hover .dash-insight-title { color: #fff; }
.dash-quiet { padding: 10px 0 14px; font-size: 13px; line-height: 1.6; color: var(--text-3); }

/* ---------- algoritmos ---------- */
.dash-algo { display: grid; grid-template-columns: 8px minmax(0, 1fr) auto auto; align-items: center; gap: 12px; padding: 11px 0; border-bottom: 1px solid var(--line-soft); }
.dash-algo:last-child { border-bottom: none; padding-bottom: 2px; }
.dash-algo-main { display: flex; flex-direction: column; min-width: 0; }
.dash-algo-name { font-size: 13px; font-weight: 600; }
.dash-algo-sub { font-size: 11.5px; color: var(--text-3); margin-top: 1px; }
.dash-algo-pnl { min-width: 64px; text-align: right; font-size: 13px; font-weight: 600; }
.dash-algo:hover .dash-algo-name { color: #fff; }

@media (max-width: 640px) {
  .dash-hero-head { padding: 20px 18px 4px; }
  .dash-balance { font-size: 34px; }
  .dash-chart { padding: 8px 6px 10px; }
  .dash-gauge-sub { flex-direction: column; gap: 2px; }
}
