:root {
  --bg: #070a10;
  --bg-soft: #0c1018;
  --panel: rgba(11, 15, 24, 0.97);
  --panel-2: rgba(14, 19, 30, 0.98);
  --panel-border: rgba(255, 255, 255, 0.07);
  --panel-border-strong: rgba(255, 255, 255, 0.14);
  --text: #d0dce8;
  --muted: #5a6e85;
  --muted-strong: #8298b0;
  --cyan: #42c8e8;
  --cyan-soft: rgba(66, 200, 232, 0.06);
  --blue: #4da6d8;
  --green: #3dd68c;
  --red: #e05060;
  --warn: #f0b429;
  --magenta: #c87aff;
  --neon-green: #3dd68c;
  --neon-pink: #e065a0;
  --neon-purple: #9b59f5;
  --shadow: 0 16px 40px rgba(0, 0, 0, 0.55), 0 1px 0 rgba(255,255,255,0.04) inset;
  --shadow-soft: 0 8px 24px rgba(0, 0, 0, 0.4);
  --focus-ring: 0 0 0 1px rgba(66, 200, 232, 0.7), 0 0 0 4px rgba(66, 200, 232, 0.12);
  --glow-cyan: 0 0 16px rgba(66, 200, 232, 0.12);
  --glow-magenta: 0 0 16px rgba(200, 122, 255, 0.1);
  --glow-green: 0 0 16px rgba(61, 214, 140, 0.12);
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: 'IBM Plex Sans', Inter, system-ui, sans-serif;
  color: var(--text);
  background: linear-gradient(160deg, #08101a 0%, var(--bg) 45%, #060a0f 100%);
  min-height: 100vh;
  padding: 1rem;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(900px at 15% 5%, rgba(66,200,232,0.04), transparent);
}

:focus-visible {
  outline: none;
  box-shadow: var(--focus-ring);
}

.bg-grid {
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(0, 255, 255, 0.018) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 255, 255, 0.018) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(circle at 50% 25%, black, transparent 78%);
}

.scanline {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 99;
  background: repeating-linear-gradient(
    0deg,
    transparent,
    transparent 2px,
    rgba(0, 255, 255, 0.008) 2px,
    rgba(0, 255, 255, 0.008) 4px
  );
}

/* ── Login overlay ───────────────────────────────────────────────────────── */
.login-overlay {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(2,4,10,0.96);
  backdrop-filter: blur(8px);
  transition: opacity 0.25s;
}
.login-overlay.hidden { display: none; }
.login-card {
  width: 100%;
  max-width: 380px;
  padding: 2.4rem 2rem 1.8rem;
  background: rgba(8,12,22,0.95);
  border: 1px solid rgba(0,255,255,0.14);
  border-radius: 20px;
  box-shadow: 0 0 60px rgba(0,255,255,0.06), 0 20px 60px rgba(0,0,0,0.6);
}
.login-eyebrow {
  font-size: 0.62rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  margin-bottom: 0.35rem;
}
.login-title {
  font-family: 'Orbitron', sans-serif;
  font-size: 1.45rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  margin-bottom: 0.5rem;
  color: var(--text);
}
.login-sub {
  font-size: 0.75rem;
  color: var(--muted);
  margin-bottom: 1.8rem;
}
.login-brand { margin-bottom: 0.2rem; }
.login-form { display: flex; flex-direction: column; gap: 1rem; }
.login-field { display: flex; flex-direction: column; gap: 0.35rem; }
.login-label {
  font-size: 0.68rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.login-input {
  padding: 0.65rem 0.9rem;
  background: rgba(0,0,0,0.45);
  border: 1px solid rgba(0,255,255,0.14);
  border-radius: 8px;
  color: var(--text);
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.9rem;
  outline: none;
  transition: border-color 0.15s;
}
.login-input:focus { border-color: rgba(0,255,255,0.4); }
.login-helper {
  font-size: 0.68rem;
  line-height: 1.35;
  color: rgba(223, 246, 255, 0.82);
  padding: 0.45rem 0.65rem;
  background: rgba(0, 255, 255, 0.04);
  border: 1px solid rgba(0, 255, 255, 0.1);
  border-radius: 7px;
}
.login-error {
  font-size: 0.75rem;
  color: var(--red);
  padding: 0.5rem 0.75rem;
  background: rgba(255,0,80,0.06);
  border-radius: 6px;
  border-left: 2px solid var(--red);
}
.login-btn { width: 100%; margin-top: 0.4rem; justify-content: center; }
.login-demo-btn {
  width: 100%;
  justify-content: center;
  margin-top: 0.8rem;
}
.login-honeypot {
  position: absolute;
  left: -9999px;
  opacity: 0;
  pointer-events: none;
}
.login-note {
  margin-top: 1.2rem;
  font-size: 0.65rem;
  color: var(--muted);
  text-align: center;
  opacity: 0.7;
}
.feedback-overlay-card {
  max-width: 520px;
}
.feedback-modal-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.2rem;
}
.feedback-brand { margin-bottom: 0; }
.modal-close-btn {
  align-self: flex-start;
  min-height: 36px;
  padding: 0.42rem 0.75rem;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.1);
  background: transparent;
  color: var(--muted);
  font-size: 0.7rem;
  font-family: 'IBM Plex Mono', monospace;
  cursor: pointer;
  transition: border-color 0.15s, color 0.15s, background 0.15s;
}
.modal-close-btn:hover {
  color: var(--cyan);
  border-color: rgba(87, 213, 255, 0.28);
  background: rgba(87, 213, 255, 0.06);
}

/* ── Nav user + logout ───────────────────────────────────────────────────── */
.route-nav-spacer { flex: 1; }
.nav-user {
  align-self: center;
  font-size: 0.68rem;
  color: var(--muted);
  font-family: 'IBM Plex Mono', monospace;
  padding: 0 0.4rem;
}
.nav-logout-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  align-self: center;
  padding: 0.3rem 0.75rem;
  font-size: 0.68rem;
  font-family: 'IBM Plex Mono', monospace;
  background: transparent;
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 999px;
  color: var(--muted);
  cursor: pointer;
  transition: border-color 0.15s, color 0.15s;
}
.nav-action-link { text-decoration: none; }
.nav-logout-btn:hover { border-color: var(--red); color: var(--red); }

/* ── Sync status ─────────────────────────────────────────────────────────── */
.sync-status {
  font-size: 0.68rem;
  padding: 0.25rem 0.6rem;
  border-radius: 5px;
  margin-top: 0.3rem;
}
.sync-status.syncing  { color: var(--blue); background: rgba(0,212,255,0.05); }
.sync-status.synced   { color: var(--neon-green); background: rgba(0,255,163,0.05); }
.sync-status.sync-err { color: var(--warn); background: rgba(255,200,0,0.05); }
.demo-seed-banner {
  margin-top: 0.35rem;
  padding: 0.34rem 0.48rem;
  border-radius: 999px;
  border: 1px solid rgba(89, 201, 255, 0.2);
  background: rgba(89, 201, 255, 0.08);
  color: #dff6ff;
  font-size: 0.62rem;
  line-height: 1.2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.45rem;
}

.demo-seed-copy {
  display: flex;
  align-items: center;
  gap: 0.3rem;
  min-width: 0;
}

.demo-seed-copy strong,
.demo-seed-copy span {
  white-space: nowrap;
}

.demo-seed-btn {
  border: 1px solid rgba(89, 201, 255, 0.24);
  background: rgba(255, 255, 255, 0.02);
  color: #dff6ff;
  border-radius: 999px;
  padding: 0.18rem 0.46rem;
  font-size: 0.58rem;
  line-height: 1;
  cursor: pointer;
}

.demo-seed-btn:hover {
  border-color: rgba(89, 201, 255, 0.42);
  background: rgba(89, 201, 255, 0.12);
}

.date-only-warning {
  margin-top: 0.35rem;
  padding: 0.42rem 0.55rem;
  border-radius: 8px;
  border: 1px solid rgba(255, 196, 0, 0.22);
  background: rgba(255, 196, 0, 0.08);
  color: #f6e7b8;
  font-size: 0.64rem;
  line-height: 1.35;
  box-shadow: none;
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.45s ease, transform 0.45s ease;
}

.date-only-warning.is-fading {
  opacity: 0;
  transform: translateY(-2px);
}

.date-only-warning strong {
  color: #ffe082;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

/* ── Login overlay ───────────────────────────────────────────────────────── */
.route-nav {
  position: sticky;
  top: 0;
  z-index: 60;
  margin-bottom: 0.9rem;
  padding: 0.7rem 0.85rem;
  display: flex;
  gap: 0.55rem;
  flex-wrap: wrap;
  border: 1px solid rgba(0, 255, 255, 0.1);
  border-radius: 14px;
  background: rgba(4, 5, 10, 0.88);
  backdrop-filter: blur(12px);
  box-shadow: var(--shadow-soft);
}

.route-link {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 0.45rem 0.78rem;
  border-radius: 999px;
  color: #d7e1e7;
  text-decoration: none;
  font-size: 0.78rem;
  font-weight: 600;
  border: 1px solid transparent;
  transition: background 0.18s ease, color 0.18s ease, border-color 0.18s ease, transform 0.18s ease;
}

.route-link:hover {
  transform: translateY(-1px);
  background: rgba(255,255,255,0.04);
}

.neon-accent { color: var(--cyan); text-shadow: 0 0 20px rgba(0, 255, 255, 0.4); }

.route-link.active {
  color: var(--cyan);
  border-color: rgba(0, 255, 255, 0.2);
  background: rgba(0, 255, 255, 0.06);
  text-shadow: 0 0 8px rgba(0, 255, 255, 0.3);
}

.topbar,
.panel,
.kpi-card,
.intake-panel {
  position: relative;
  border: 1px solid var(--panel-border);
  border-radius: 14px;
  background: linear-gradient(180deg, rgba(6, 8, 18, 0.97) 0%, rgba(4, 6, 14, 0.97) 100%);
  box-shadow: var(--shadow);
  backdrop-filter: blur(10px);
}

.topbar {
  display: grid;
  gap: 0.8rem;
  padding: 0.85rem 1rem;
}

.topbar-row {
  display: grid;
  gap: 0.8rem;
  align-items: center;
}

.topbar-row-primary {
  grid-template-columns: minmax(0, 1fr) minmax(300px, 360px) minmax(390px, auto);
}

.topbar-row-secondary {
  grid-template-columns: auto minmax(0, 1fr);
}

.topbar-sidecar {
  display: grid;
  grid-template-columns: minmax(138px, 150px) minmax(250px, 320px);
  gap: 0.75rem;
  align-items: start;
}

.topbar-meta-column {
  min-width: 0;
  display: grid;
  gap: 0.6rem;
  align-content: start;
}

.brand-copy {
  min-width: 0;
}

.trades-loaded-box {
  width: 100%;
  align-self: stretch;
}

.brand-loaded-topline {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  flex-wrap: wrap;
}

.brand-trade-grid {
  max-width: 520px;
}

.eyebrow {
  color: var(--magenta);
  font-size: 0.64rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  margin-bottom: 0.24rem;
  text-shadow: 0 0 10px rgba(255, 0, 200, 0.3);
}

h1 {
  margin: 0;
  font-family: Orbitron, sans-serif;
  font-size: clamp(1rem, 2vw, 1.4rem);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-shadow: 0 0 30px rgba(0, 255, 255, 0.2);
}

.subtitle {
  margin: 0.22rem 0 0;
  color: var(--muted-strong);
  font-size: 0.78rem;
  line-height: 1.45;
}

.header-chips {
  margin-top: 0.6rem;
  display: flex;
  gap: 0.45rem;
  flex-wrap: wrap;
}

.header-chip {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0.22rem 0.55rem;
  border-radius: 999px;
  border: 1px solid rgba(126, 144, 168, 0.18);
  background: rgba(255,255,255,0.03);
  color: #d9e7f5;
  font-size: 0.69rem;
  letter-spacing: 0.03em;
}

.topbar-action-cluster {
  min-width: 0;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.6rem;
  flex-wrap: wrap;
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 0.42rem;
  padding: 0.34rem 0.66rem;
  border-radius: 999px;
  border: 1px solid rgba(0, 255, 255, 0.24);
  background: rgba(0, 255, 255, 0.08);
  color: #dff3ff;
  font-size: 0.74rem;
  white-space: nowrap;
}

.loaded-files-bar {
  min-width: 0;
  flex: 1;
  display: flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.22rem 0.28rem 0.22rem 0.5rem;
  border: 1px solid rgba(126, 144, 168, 0.18);
  border-radius: 999px;
  background: rgba(8, 13, 20, 0.8);
}

.compact-loaded-files {
  min-height: 38px;
}

.loaded-files-label,
.kpi-card .label,
.subpanel-title {
  color: var(--muted);
  font-size: 0.66rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.loaded-files-inline {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: 0.35rem;
  overflow-x: auto;
  scrollbar-width: thin;
}

.loaded-files-inline li {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  gap: 0.38rem;
  max-width: 260px;
  padding: 0.28rem 0.5rem;
  border-radius: 999px;
  background: rgba(0, 255, 255, 0.08);
  border: 1px solid rgba(0, 255, 255, 0.14);
  font-size: 0.72rem;
  color: #dbe7f5;
}

.loaded-files-inline li span,
.loaded-files-inline li small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.loaded-files-inline li small,
.loaded-files-empty {
  color: var(--muted);
}

.topbar-controls {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.72rem;
  align-items: stretch;
  justify-content: stretch;
  flex-wrap: nowrap;
}

.trade-window-topline {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.mini-panel {
  min-width: 0;
  display: grid;
  gap: 0.42rem;
  padding: 0.7rem 0.8rem;
  border: 1px solid rgba(126, 144, 168, 0.18);
  border-radius: 12px;
  background: linear-gradient(180deg, rgba(14, 21, 31, 0.9) 0%, rgba(8, 13, 20, 0.82) 100%);
  align-content: start;
}

.mini-panel-title,
.trade-window-label {
  color: var(--muted);
  font-size: 0.66rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.mini-panel-copy {
  color: #e8f4ff;
  font-size: 0.82rem;
  font-weight: 600;
}

.mini-intake-box {
  cursor: pointer;
}

.trade-window-grid {
  display: grid;
  gap: 0.45rem;
}

.trade-window-grid-2col {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.trade-window-item {
  display: grid;
  gap: 0.16rem;
}

.trade-window-value {
  color: #e8f4ff;
  font-size: 0.78rem;
  line-height: 1.25;
}

.compact-pill {
  justify-self: start;
}

.topbar-controls-compact {
  justify-content: flex-start;
}

.control-stack {
  min-width: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: stretch;
  gap: 0.34rem;
}

.control-stack-button {
  min-width: 150px;
}

.control-stack .ghost-btn,
.control-stack .tz-select,
.small-btn {
  white-space: nowrap;
}

.tz-label {
  color: var(--muted);
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.tz-select,
.neon-btn,
.ghost-btn,
.small-btn {
  border-radius: 10px;
  font-size: 0.78rem;
}

.tz-select {
  min-height: 38px;
  border: 1px solid rgba(0, 255, 255, 0.3);
  background: rgba(0, 255, 255, 0.06);
  color: #e6f7ff;
  padding: 0.42rem 0.56rem;
  text-align: left;
}

.neon-btn,
.ghost-btn {
  min-height: 38px;
  border: 1px solid rgba(0, 255, 255, 0.38);
  color: #dff3ff;
  background: rgba(0, 255, 255, 0.08);
  padding: 0.5rem 0.84rem;
  cursor: pointer;
  transition: 0.18s ease;
}

.neon-btn:hover,
.ghost-btn:hover,
.tab-btn:hover,
.calendar-day:hover {
  transform: translateY(-1px);
}

.ghost-btn {
  border-color: rgba(255, 0, 80, 0.35);
  color: #ffd9df;
  background: rgba(255, 0, 80, 0.08);
  text-align: left;
}

.compact-drop-zone {
  min-height: 0;
  margin: 0;
  padding: 0.34rem 0.46rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.4rem;
  border: 1px dashed rgba(0, 255, 255, 0.22);
  border-radius: 12px;
  text-align: left;
  min-width: 0;
  transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease;
  background: rgba(8, 13, 20, 0.7);
}

.compact-drop-zone.dragover {
  border-color: var(--cyan);
  background: rgba(0, 255, 255, 0.08);
}

.drop-copy {
  display: flex;
  flex-direction: column;
  gap: 0.08rem;
}

.drop-copy strong {
  font-size: 0.74rem;
  color: #f3fbff;
  letter-spacing: 0.08em;
}

.drop-copy span {
  font-size: 0.7rem;
  color: var(--muted);
}

.compact-actions {
  margin: 0;
  justify-content: flex-start;
}

.small-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.34rem 0.66rem;
  min-width: 92px;
}

.layout {
  margin-top: 0.85rem;
  display: grid;
  gap: 0.85rem;
  grid-template-columns: repeat(12, minmax(0, 1fr));
}

.kpi-grid,
.view-tabs-panel,
.overview-stack,
.mae-panel,
.view-battle-prep {
  grid-column: 1 / -1;
}

.kpi-grid {
  display: grid;
  gap: 0.65rem;
  grid-template-columns: repeat(auto-fit, minmax(145px, 1fr));
}

.kpi-card {
  padding: 0.82rem;
  overflow: hidden;
}

.kpi-card::before {
  content: "";
  position: absolute;
  inset: 0 auto auto 0;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, rgba(0, 255, 255, 0.78), rgba(127, 178, 255, 0.22));
}

.kpi-card .value {
  margin-top: 0.42rem;
  font-size: 1.08rem;
  font-weight: 700;
  color: #f7fbff;
  font-variant-numeric: tabular-nums;
}

.view-tabs-panel {
  position: sticky;
  top: 4.9rem;
  z-index: 30;
  padding: 0.42rem;
  background: linear-gradient(180deg, rgba(15, 22, 33, 0.98) 0%, rgba(9, 14, 22, 0.98) 100%);
}

.view-tabs {
  display: inline-flex;
  gap: 0.4rem;
  flex-wrap: wrap;
}

.tab-btn {
  border: 1px solid rgba(126, 144, 168, 0.22);
  background: rgba(0, 255, 255, 0.04);
  color: #d5e7f5;
  border-radius: 999px;
  min-height: 42px;
  padding: 0.44rem 0.82rem;
  cursor: pointer;
  font-weight: 600;
  transition: 0.18s ease;
}

.tab-btn:hover {
  background: rgba(0, 255, 255, 0.08);
  border-color: rgba(0, 255, 255, 0.28);
}

.tab-btn.active {
  background: rgba(0, 255, 255, 0.12);
  border-color: rgba(0, 255, 255, 0.36);
  color: #f3fbff;
  box-shadow: inset 0 0 0 1px rgba(0, 255, 255, 0.08);
}

.hidden { display: none !important; }

.panel {
  padding: 0.88rem;
}

.panel-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.6rem;
  margin-bottom: 0.8rem;
}

.panel-title {
  font-family: Orbitron, sans-serif;
  letter-spacing: 0.06em;
  font-size: 0.8rem;
  color: #eef8ff;
}

.panel-subtitle {
  margin-top: 0.18rem;
  color: var(--muted-strong);
  font-size: 0.71rem;
  line-height: 1.45;
}

.overview-stack {
  display: grid;
  gap: 0.85rem;
  grid-template-columns: minmax(0, 1fr);
}

.overview-calendar-row {
  display: grid;
  gap: 0.85rem;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.chart-panel { min-height: 300px; }
.chart-panel canvas { height: 255px !important; }
.overview-equity-panel canvas { height: 280px !important; }
.mae-panel canvas { height: 290px !important; }

.insight-grid,
.mae-summary,
.day-drilldown-grid {
  display: grid;
  gap: 0.5rem;
}

.insight-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.insight-card,
.mae-chip,
.day-stat-card {
  border: 1px solid rgba(126, 144, 168, 0.18);
  border-radius: 10px;
  padding: 0.52rem 0.6rem;
  background: linear-gradient(180deg, rgba(15, 23, 35, 0.92) 0%, rgba(10, 16, 24, 0.92) 100%);
}

.insight-card .label,
.mae-chip .k,
.day-stat-card .k {
  color: #91a5bd;
  font-size: 0.66rem;
  text-transform: uppercase;
  letter-spacing: 0.07em;
}

.insight-card .value,
.mae-chip .v,
.day-stat-card .v {
  margin-top: 0.16rem;
  font-size: 0.94rem;
  font-weight: 700;
  color: #eff8ff;
}

.insight-card .value.pos { color: var(--green); }
.insight-card .value.neg { color: var(--red); }

.insight-card .meta {
  margin-top: 0.12rem;
  color: var(--muted);
  font-size: 0.66rem;
}

.insights-columns {
  margin-top: 0.75rem;
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: 0.75rem;
}

.insight-block {
  border: 1px solid rgba(126, 144, 168, 0.16);
  border-radius: 12px;
  padding: 0.72rem 0.8rem;
  background: rgba(8, 13, 20, 0.62);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.02);
}

.actionable-block {
  border-color: rgba(255, 0, 200, 0.22);
  background: linear-gradient(180deg, rgba(35, 25, 10, 0.16) 0%, rgba(8, 13, 20, 0.7) 100%);
}

.insight-list {
  margin: 0.5rem 0 0;
  padding-left: 1rem;
  display: grid;
  gap: 0.44rem;
  color: #cfdaea;
  font-size: 0.77rem;
  line-height: 1.5;
}

.insight-list li {
  padding-bottom: 0.34rem;
  border-bottom: 1px solid rgba(126, 144, 168, 0.12);
}

.insight-list li:last-child {
  padding-bottom: 0;
  border-bottom: none;
}

.insight-list li::marker { color: var(--cyan); }
.action-list li::marker { color: var(--warn); }

.setup-panel { grid-column: span 5; }
.recent-panel { grid-column: span 7; }

.calendar-wrap {
  display: grid;
  gap: 0.75rem;
}

.calendar-month {
  border: 1px solid rgba(126, 144, 168, 0.18);
  border-radius: 12px;
  padding: 0.58rem;
  background: rgba(7, 12, 18, 0.75);
}

.calendar-month h4 {
  margin: 0 0 0.46rem;
  font-size: 0.79rem;
  color: #e4f4ff;
  letter-spacing: 0.04em;
}

.calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 0.28rem;
}

.calendar-dow {
  color: #8698b0;
  font-size: 0.64rem;
  text-align: center;
  padding: 0.14rem 0;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.calendar-empty {
  min-height: 56px;
  border: 1px dashed rgba(126, 144, 168, 0.12);
  border-radius: 8px;
}

.calendar-day {
  min-height: 60px;
  border: 1px solid rgba(126, 144, 168, 0.18);
  border-radius: 10px;
  padding: 0.4rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  background: rgba(18, 26, 38, calc(0.34 + var(--intensity, 0) * 0.38));
  cursor: pointer;
  transition: transform 0.16s ease, border-color 0.16s ease, background 0.16s ease, box-shadow 0.16s ease;
}

.calendar-day:hover {
  border-color: rgba(0, 255, 255, 0.28);
  box-shadow: inset 0 0 0 1px rgba(0, 255, 255, 0.05);
}

.calendar-day.active {
  outline: 1px solid rgba(0, 255, 255, 0.8);
  box-shadow: inset 0 0 0 1px rgba(0, 255, 255, 0.18), 0 0 0 1px rgba(0, 255, 255, 0.1);
}

.calendar-day .day-num {
  font-size: 0.66rem;
  color: #aebbd0;
}

.calendar-day .day-pnl {
  font-size: 0.74rem;
  font-weight: 700;
}

.calendar-day .day-trades {
  font-size: 0.62rem;
  color: #90a1b6;
}

.calendar-day.pos { border-color: rgba(0, 255, 163, 0.35); }
.calendar-day.neg { border-color: rgba(255, 0, 80, 0.35); }
.calendar-day.flat { border-color: rgba(126, 144, 168, 0.18); }

.calendar-legend {
  margin-top: 0.55rem;
  display: flex;
  gap: 0.65rem;
  flex-wrap: wrap;
  color: var(--muted);
  font-size: 0.7rem;
}

.dot {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  display: inline-block;
  margin-right: 0.22rem;
}

.dot-pos { background: var(--green); }
.dot-neg { background: var(--red); }
.dot-flat { background: #7b8da4; }

.day-drilldown {
  border: 1px solid rgba(126, 144, 168, 0.2);
  border-radius: 12px;
  padding: 0.88rem;
  background: linear-gradient(180deg, rgba(11, 17, 26, 0.92) 0%, rgba(8, 13, 20, 0.96) 100%);
}

.day-drilldown.empty {
  border-style: dashed;
}

.day-drilldown-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.6rem;
  margin-bottom: 0.92rem;
}

.day-drilldown h3 {
  margin: 0.16rem 0 0;
  font-size: 0.96rem;
}

.day-drilldown-meta {
  color: var(--muted);
  font-size: 0.7rem;
  text-align: right;
}

.day-drilldown-grid {
  margin-top: 0.8rem;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.day-stat-card .v.pos { color: var(--green); }
.day-stat-card .v.neg { color: var(--red); }

.table-wrap {
  overflow-x: auto;
  border: 1px solid rgba(126, 144, 168, 0.14);
  border-radius: 12px;
  background: rgba(6, 10, 16, 0.44);
}

.table-wrap table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.82rem;
}

th, td {
  border-bottom: 1px solid rgba(126, 144, 168, 0.16);
  padding: 0.58rem 0.6rem;
  text-align: left;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}

th {
  position: sticky;
  top: 0;
  z-index: 1;
  color: #9ed7ff;
  font-weight: 600;
  background: rgba(10, 15, 22, 0.96);
}

tbody tr:nth-child(even) td {
  background: rgba(255,255,255,0.015);
}

tbody tr:hover td {
  background: rgba(0, 255, 255, 0.045);
}

.pos { color: var(--neon-green); text-shadow: 0 0 6px rgba(0, 255, 163, 0.15); }
.neg { color: var(--red); text-shadow: 0 0 6px rgba(255, 0, 80, 0.15); }

@media (max-width: 1180px) {
  .topbar-row-primary,
  .topbar-row-secondary,
  .overview-calendar-row,
  .topbar-sidecar,
  .trade-window-grid-2col {
    grid-template-columns: 1fr;
  }

  .topbar-action-cluster,
  .topbar-controls-compact {
    justify-content: flex-start;
  }

  .insight-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .insights-columns,
  .day-drilldown-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 980px) {
  .setup-panel,
  .recent-panel,
  .mae-panel {
    grid-column: 1 / -1;
  }

  .topbar-action-cluster,
  .topbar-controls {
    flex-direction: column;
    align-items: stretch;
  }

  .control-stack-button,
  .ghost-btn,
  .tz-select {
    width: 100%;
  }

  .pill {
    width: fit-content;
  }
}

@media (max-width: 720px) {
  body { padding: 0.75rem; }

  .route-nav {
    padding: 0.55rem;
    margin-bottom: 0.75rem;
  }

  .route-link,
  .tab-btn {
    width: 100%;
    justify-content: center;
  }

  .view-tabs-panel {
    top: 4.3rem;
  }

  .header-chips {
    gap: 0.35rem;
  }

  .header-chip {
    width: 100%;
    justify-content: center;
  }

  .compact-drop-zone {
    width: 100%;
    min-width: 0;
    justify-content: space-between;
  }

  .insight-grid,
  .day-drilldown-grid {
    grid-template-columns: 1fr;
  }

  .calendar-grid {
    gap: 0.22rem;
  }

  .calendar-day,
  .calendar-empty {
    min-height: 52px;
  }

  .loaded-files-inline li {
    max-width: 200px;
  }
}

.setup-name { display:flex; flex-direction:column; gap:0.18rem; }
.setup-note { color: var(--muted); font-size: 0.68rem; }
.profile-chip { display:inline-flex; align-items:center; gap:0.35rem; padding:0.24rem 0.48rem; border-radius:999px; border:1px solid rgba(0, 255, 255, 0.18); background:rgba(0, 255, 255, 0.08); color:#e4f4ff; font-size:0.7rem; }
.profile-chip.warn { border-color: rgba(255, 0, 200, 0.28); background: rgba(255, 0, 200, 0.08); color: #ffe9b7; }
.profile-chip.danger { border-color: rgba(255, 0, 80, 0.32); background: rgba(255, 0, 80, 0.08); color: #ffdbe1; }
.profile-chip.good { border-color: rgba(0, 255, 163, 0.28); background: rgba(0, 255, 163, 0.08); color: #dff9eb; }
.structure-read { white-space: normal; line-height: 1.35; min-width: 210px; color:#cfdaea; font-size:0.74rem; }


.hero-grid {
  grid-column: 1 / -1;
  display: grid;
  gap: 0.85rem;
  grid-template-columns: minmax(0, 1fr);
  align-items: start;
}

.hero-summary {
  min-width: 0;
  display: grid;
}

.intake-panel {
  width: 100%;
  max-width: 360px;
  justify-self: stretch;
  align-self: stretch;
  padding: 0.82rem;
  display: grid;
  align-content: start;
  gap: 0.66rem;
  overflow: hidden;
}

.intake-head {
  margin-bottom: 0;
  align-items: center;
}

.intake-drop-zone {
  min-width: 0;
  min-height: 0;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-start;
  gap: 0.7rem;
  padding: 0.72rem 0.8rem;
  border-style: dashed;
  background:
    linear-gradient(180deg, rgba(12, 20, 30, 0.98) 0%, rgba(8, 13, 20, 0.96) 100%),
    rgba(8, 13, 20, 0.75);
  box-shadow: inset 0 0 0 1px rgba(0, 255, 255, 0.04);
}

.loaded-files-box {
  min-width: 0;
  display: grid;
  gap: 0.55rem;
  padding: 0.72rem 0.78rem;
  border: 1px solid rgba(126, 144, 168, 0.16);
  border-radius: 12px;
  background: linear-gradient(180deg, rgba(14, 21, 31, 0.9) 0%, rgba(8, 13, 20, 0.82) 100%);
  min-height: 0;
  flex: 1;
}

.loaded-files-topline {
  display: flex;
  justify-content: space-between;
  gap: 0.5rem;
  align-items: center;
  flex-wrap: wrap;
}

.loaded-files-note,
.session-note {
  color: var(--muted);
  font-size: 0.68rem;
}

.loaded-files-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.38rem;
  max-height: 180px;
  overflow: auto;
}

.loaded-files-list li {
  display: grid;
  gap: 0.14rem;
  padding: 0.5rem 0.56rem;
  border-radius: 10px;
  border: 1px solid rgba(0, 255, 255, 0.12);
  background: rgba(0, 255, 255, 0.05);
}

.loaded-files-list li span {
  color: #e8f4ff;
  font-size: 0.76rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.loaded-files-list li small {
  color: var(--muted);
  font-size: 0.68rem;
}

.loaded-files-list .loaded-files-empty {
  border-style: dashed;
  color: var(--muted);
  background: rgba(126, 144, 168, 0.04);
}

.panel-head-calendar {
  align-items: center;
}

.calendar-nav {
  display: inline-flex;
  align-items: center;
  gap: 0.38rem;
  padding: 0.26rem;
  border-radius: 999px;
  background: rgba(0, 255, 255, 0.06);
  border: 1px solid rgba(0, 255, 255, 0.14);
}

.nav-btn {
  min-width: 34px;
  padding: 0.4rem 0.55rem;
  border-radius: 999px;
}

.calendar-month-label {
  min-width: 132px;
  text-align: center;
  font-family: Orbitron, sans-serif;
  font-size: 0.76rem;
  letter-spacing: 0.08em;
  color: #e9f6ff;
  text-transform: uppercase;
}

.calendar-wrap {
  gap: 0.55rem;
}

.calendar-month {
  padding: 0;
  border: none;
  background: transparent;
}

.calendar-grid {
  gap: 0.34rem;
}

.calendar-day {
  min-height: 74px;
  padding: 0.46rem;
  background:
    linear-gradient(180deg, rgba(18, 26, 38, calc(0.7 + var(--intensity, 0) * 0.14)) 0%, rgba(11, 16, 24, 0.98) 100%);
}

.calendar-day .day-pnl {
  font-size: 0.78rem;
}

.calendar-empty {
  min-height: 74px;
  background: rgba(126, 144, 168, 0.025);
}

.day-drilldown {
  padding: 1rem;
  box-shadow: inset 0 0 0 1px rgba(0, 255, 255, 0.04), var(--shadow);
}

.day-drilldown-head .subpanel-title,
.day-drilldown h3 {
  font-family: Orbitron, sans-serif;
  letter-spacing: 0.04em;
}

.day-stat-card .k,
.day-stat-card .v,
.day-drilldown-meta,
.session-note {
  font-family: Inter, system-ui, sans-serif;
  letter-spacing: normal;
}

.day-drilldown h3 {
  font-size: 0.92rem;
}

.day-drilldown-grid {
  padding-top: 0.22rem;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.day-stat-card {
  min-height: 78px;
  padding: 0.68rem 0.72rem;
}

.session-note {
  margin-top: 0.78rem;
  padding-top: 0.2rem;
  line-height: 1.5;
}

.kpi-card {
  background:
    linear-gradient(180deg, rgba(18, 26, 38, 0.96) 0%, rgba(9, 14, 22, 0.98) 100%),
    rgba(15, 23, 35, 0.98);
  overflow: hidden;
}

.kpi-card::after,
.intake-panel::after,
.panel::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  border-radius: inherit;
  background: linear-gradient(135deg, rgba(0, 255, 255, 0.05), transparent 32%, transparent 68%, rgba(127, 178, 255, 0.04));
}

@media (max-width: 1180px) {
  .hero-grid,
  .day-drilldown-grid {
    grid-template-columns: 1fr;
  }

  .intake-panel {
    max-width: none;
    justify-self: stretch;
  }
}

@media (max-width: 720px) {
  .calendar-nav {
    width: 100%;
    justify-content: space-between;
  }

  .loaded-files-topline,
  .intake-head,
  .panel-head-calendar {
    align-items: flex-start;
  }

  .calendar-month-label {
    min-width: 0;
    flex: 1;
  }
}

/* Modern terminal design pass — guided by ui-designer + tailwind-patterns */
:root {
  --bg: #050810;
  --bg-soft: #0a1017;
  --panel: rgba(10, 15, 22, 0.96);
  --panel-2: rgba(14, 20, 29, 0.98);
  --panel-border: rgba(109, 133, 168, 0.2);
  --panel-border-strong: rgba(87, 213, 255, 0.34);
  --text: #e7eef7;
  --muted: #8a98ab;
  --cyan: #57d5ff;
  --cyan-soft: rgba(87, 213, 255, 0.1);
  --blue: #7ea2ff;
  --green: #21d18b;
  --red: #ff6a63;
  --warn: #ffd166;
  --shadow: 0 14px 36px rgba(0, 0, 0, 0.28);
  --chart-text: #b8c8e0;
  --chart-tick: #7e90a8;
  --chart-grid: rgba(126, 144, 168, 0.08);
  --chart-primary: #57d5ff;
  --chart-primary-fill: rgba(87, 213, 255, 0.18);
  --chart-hot: rgba(255, 111, 192, 0.78);
  --chart-loss: rgba(255, 106, 99, 0.9);
  --chart-profit-strong: rgba(33, 209, 139, 0.9);
  --chart-profit: rgba(33, 209, 139, 0.75);
  --chart-warning: rgba(255, 209, 102, 0.78);
  --chart-danger: rgba(255, 106, 99, 0.85);
  --chart-line: rgba(87, 213, 255, 0.94);
  --chart-surface-stroke: rgba(6, 9, 15, 0.95);
}

body {
  font-family: "IBM Plex Sans", Inter, system-ui, sans-serif;
  letter-spacing: -0.01em;
  background:
    radial-gradient(900px at 15% -10%, rgba(87, 213, 255, 0.08), transparent 55%),
    radial-gradient(1000px at 110% 0%, rgba(126, 162, 255, 0.08), transparent 58%),
    linear-gradient(180deg, #04070b 0%, #091019 54%, #0b121b 100%);
}

.bg-grid {
  background-image:
    linear-gradient(rgba(87, 213, 255, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(87, 213, 255, 0.025) 1px, transparent 1px);
  background-size: 40px 40px;
  mask-image: linear-gradient(180deg, black 0%, rgba(0,0,0,0.88) 56%, transparent 100%);
}

.topbar,
.panel,
.kpi-card,
.intake-panel,
.mini-panel,
.insight-card,
.mae-chip,
.day-stat-card,
.loaded-files-box,
.loaded-files-list li,
.insight-block,
.compact-drop-zone {
  border-radius: 10px;
  background: linear-gradient(180deg, rgba(15, 20, 29, 0.98) 0%, rgba(9, 13, 20, 0.98) 100%);
  box-shadow: var(--shadow);
  backdrop-filter: none;
}

.kpi-card::after,
.intake-panel::after,
.panel::after {
  background: none;
}

.topbar,
.panel,
.kpi-card,
.intake-panel,
.mini-panel,
.insight-block,
.loaded-files-box,
.compact-drop-zone,
.calendar-day,
.calendar-empty,
.profile-chip {
  border-color: rgba(109, 133, 168, 0.22);
}

h1,
.panel-title,
.day-drilldown h3 {
  font-family: "IBM Plex Sans", Inter, system-ui, sans-serif;
  letter-spacing: 0.06em;
}

h1 {
  color: #eef6ff;
  font-size: clamp(1rem, 1.8vw, 1.18rem);
  letter-spacing: 0.1em;
}

.eyebrow,
.mini-panel-title,
.trade-window-label,
.tz-label,
.kpi-card .label,
.subpanel-title,
.loaded-files-label,
.calendar-month-label,
th,
.drop-copy strong {
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.eyebrow,
.mini-panel-title,
.trade-window-label,
.tz-label,
.kpi-card .label,
.subpanel-title,
.panel-title,
th {
  color: var(--cyan);
}

.subtitle,
.panel-subtitle,
.day-drilldown-meta,
.loaded-files-note,
.session-note,
.drop-copy span,
.loaded-files-inline li small,
.loaded-files-empty,
.loaded-files-list li small {
  color: var(--muted);
}

.topbar {
  padding: 0.82rem 0.94rem;
}

.topbar-row-primary {
  grid-template-columns: minmax(280px, 1.08fr) minmax(320px, 0.95fr) minmax(360px, 1fr);
  align-items: stretch;
  gap: 0.72rem;
}

.topbar-sidecar {
  grid-template-columns: minmax(132px, 152px) minmax(228px, 1fr);
  align-items: stretch;
}

.topbar-meta-column {
  align-content: stretch;
}

.brand-copy,
.trades-loaded-box,
.topbar-sidecar,
.topbar-meta-column,
.topbar-controls,
.control-stack {
  height: 100%;
}

.brand-copy {
  display: grid;
  align-content: start;
  gap: 0.18rem;
}

.brand-copy,
.trades-loaded-box,
.topbar-controls,
.compact-drop-zone {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(109, 133, 168, 0.22);
  background: linear-gradient(180deg, rgba(15, 20, 29, 0.98) 0%, rgba(9, 13, 20, 0.98) 100%);
  box-shadow: var(--shadow);
}

.brand-copy,
.trades-loaded-box,
.topbar-controls {
  border-radius: 10px;
  padding: 0.72rem 0.82rem;
}

.brand-copy::before,
.trades-loaded-box::before,
.topbar-controls::before,
.compact-drop-zone::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 2px;
  background: linear-gradient(180deg, rgba(87, 213, 255, 0.85) 0%, rgba(126, 162, 255, 0.55) 100%);
}

.trades-loaded-box {
  padding: 0.72rem 0.82rem;
}

.brand-loaded-topline {
  margin-bottom: 0.42rem;
}

.trade-window-grid {
  gap: 0.4rem;
}

.trade-window-value,
.kpi-card .value,
.insight-card .value,
.mae-chip .v,
.day-stat-card .v,
.calendar-day .day-pnl {
  font-family: "IBM Plex Sans", Inter, system-ui, sans-serif;
}

.trade-window-value {
  color: #edf5fd;
}

.pill,
.profile-chip,
.loaded-files-inline li {
  border-radius: 999px;
  font-family: "IBM Plex Mono", ui-monospace, monospace;
}

.pill {
  background: rgba(87, 213, 255, 0.1);
  border-color: rgba(87, 213, 255, 0.24);
  color: #dff7ff;
}

.compact-drop-zone {
  padding: 0.48rem 0.56rem;
  gap: 0.5rem;
  min-height: 100%;
  border-style: solid;
  border-color: rgba(109, 133, 168, 0.22);
  background: linear-gradient(180deg, rgba(15, 20, 29, 0.98) 0%, rgba(9, 13, 20, 0.98) 100%);
}

.drop-copy strong {
  font-size: 0.72rem;
  color: var(--cyan);
}

.neon-btn,
.ghost-btn,
.tz-select,
.small-btn,
.tab-btn,
.nav-btn {
  border-radius: 8px;
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  letter-spacing: 0.04em;
}

.neon-btn,
.tz-select {
  border-color: rgba(87, 213, 255, 0.32);
  background: rgba(87, 213, 255, 0.08);
  color: #ddf6ff;
}

.ghost-btn {
  border-color: rgba(109, 133, 168, 0.28);
  background: rgba(109, 133, 168, 0.08);
  color: #dce5ef;
}

#clearStorageBtn.ghost-btn {
  border-color: rgba(255, 0, 80, 0.24);
  background: rgba(255, 0, 80, 0.08);
  color: #ffc2bc;
}

.neon-btn:hover,
.ghost-btn:hover,
.tab-btn:hover,
.calendar-day:hover {
  transform: none;
}

.neon-btn:hover,
.ghost-btn:hover,
.tab-btn:hover,
.nav-btn:hover,
.tz-select:hover {
  border-color: rgba(87, 213, 255, 0.52);
  box-shadow: 0 0 0 1px rgba(87, 213, 255, 0.12);
}

.view-tabs-panel {
  padding: 0.38rem;
}

.tab-btn {
  padding: 0.42rem 0.82rem;
  background: rgba(255, 255, 255, 0.025);
  border-color: rgba(109, 133, 168, 0.24);
  color: #d5dee7;
}

.tab-btn.active {
  background: rgba(87, 213, 255, 0.12);
  border-color: rgba(87, 213, 255, 0.38);
  color: #dff7ff;
}

.kpi-grid {
  gap: 0.56rem;
  grid-template-columns: repeat(auto-fit, minmax(154px, 1fr));
}

.kpi-card {
  padding: 0.78rem 0.8rem;
  border-top: 1px solid rgba(87, 213, 255, 0.42);
  overflow: visible;
}

.kpi-card-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.55rem;
}

.kpi-info-btn {
  position: relative;
  z-index: 2;
  flex: 0 0 auto;
  width: 1.18rem;
  height: 1.18rem;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  border: 1px solid rgba(87, 213, 255, 0.28);
  background: rgba(87, 213, 255, 0.08);
  color: rgba(223, 247, 255, 0.88);
  font: 600 0.72rem/1 "IBM Plex Mono", ui-monospace, monospace;
  cursor: help;
  transition: background 0.16s ease, border-color 0.16s ease, color 0.16s ease, transform 0.16s ease;
}

.kpi-info-btn:hover,
.kpi-info-btn:focus-visible {
  background: rgba(87, 213, 255, 0.16);
  border-color: rgba(87, 213, 255, 0.48);
  color: #f4fbff;
  transform: translateY(-1px);
}

.kpi-tooltip {
  position: absolute;
  left: 0.8rem;
  right: 0.8rem;
  top: calc(100% - 0.18rem);
  z-index: 25;
  pointer-events: none;
  opacity: 0;
  transform: translateY(8px);
  white-space: pre-line;
  padding: 0.72rem 0.8rem;
  border-radius: 12px;
  border: 1px solid rgba(87, 213, 255, 0.2);
  background: linear-gradient(180deg, rgba(8, 13, 22, 0.98) 0%, rgba(6, 9, 16, 0.98) 100%);
  box-shadow: 0 18px 36px rgba(0, 0, 0, 0.45), 0 0 0 1px rgba(87, 213, 255, 0.05) inset;
  color: rgba(231, 242, 250, 0.96);
  font-size: 0.68rem;
  line-height: 1.5;
  transition: opacity 0.16s ease, transform 0.16s ease;
}

.kpi-tooltip::before {
  content: "";
  position: absolute;
  top: -6px;
  right: 1.1rem;
  width: 10px;
  height: 10px;
  transform: rotate(45deg);
  background: rgba(8, 13, 22, 0.98);
  border-left: 1px solid rgba(87, 213, 255, 0.2);
  border-top: 1px solid rgba(87, 213, 255, 0.2);
}

.kpi-card:hover .kpi-tooltip,
.kpi-card:focus-within .kpi-tooltip {
  opacity: 1;
  transform: translateY(0);
}

.kpi-card .value {
  margin-top: 0.32rem;
  color: #f5f8fb;
}

.panel {
  padding: 0.92rem;
}

.panel-head,
.day-drilldown-head {
  min-height: 68px;
  padding-bottom: 0.56rem;
  border-bottom: 1px solid rgba(109, 133, 168, 0.16);
}

.insight-card .label,
.mae-chip .k,
.day-stat-card .k,
.day-drilldown-meta,
.session-note,
.calendar-day .day-num,
.calendar-day .day-trades,
.calendar-month-label,
th {
  font-family: "IBM Plex Mono", ui-monospace, monospace;
}

.insight-card .value.pos,
.day-stat-card .v.pos,
.pos {
  color: var(--green);
}

.insight-card .value.neg,
.day-stat-card .v.neg,
.neg {
  color: var(--red);
}

.actionable-block {
  border-left: 2px solid rgba(87, 213, 255, 0.5);
  background: linear-gradient(180deg, rgba(12, 25, 34, 0.28) 0%, rgba(10, 13, 18, 0.98) 100%);
}

.calendar-nav {
  border-radius: 8px;
  border-color: rgba(109, 133, 168, 0.22);
  background: rgba(10, 13, 18, 0.98);
  padding: 0.22rem;
}

.calendar-month-label {
  color: #dff7ff;
}

.calendar-day,
.calendar-empty {
  border-radius: 8px;
  background: linear-gradient(180deg, rgba(16, 21, 30, 0.98) 0%, rgba(11, 15, 22, 0.98) 100%);
  box-shadow: none;
}

.calendar-day {
  border: 1px solid rgba(109, 133, 168, 0.18);
}

.calendar-day.active {
  border-color: rgba(87, 213, 255, 0.58);
  box-shadow: inset 0 0 0 1px rgba(87, 213, 255, 0.28);
}

.calendar-day.pos { border-color: rgba(33, 209, 139, 0.28); }
.calendar-day.neg { border-color: rgba(255, 0, 80, 0.28); }
.calendar-day.flat { border-color: rgba(109, 133, 168, 0.2); }

.day-drilldown,
.insight-block,
.loaded-files-box,
.intake-drop-zone {
  background: rgba(10, 13, 18, 0.98);
  box-shadow: none;
}

.day-drilldown {
  padding-top: 0.9rem;
}

.day-drilldown-head .subpanel-title,
.day-drilldown h3,
.panel-title {
  font-family: "IBM Plex Sans", Inter, system-ui, sans-serif;
}

.table-wrap table {
  font-size: 0.8rem;
}

th,
 td {
  border-bottom: 1px solid rgba(109, 133, 168, 0.18);
  padding: 0.56rem 0.6rem;
}

th {
  background: rgba(87, 213, 255, 0.05);
}

tbody tr:hover td {
  background: rgba(87, 213, 255, 0.04);
}

.profile-chip {
  border-radius: 2px;
  border-color: rgba(95, 109, 125, 0.26);
  background: rgba(255, 255, 255, 0.02);
  color: #d9e2eb;
}

.profile-chip.warn {
  border-color: rgba(255, 200, 87, 0.28);
  background: rgba(255, 200, 87, 0.08);
  color: #ffe3a2;
}

.profile-chip.danger {
  border-color: rgba(255, 91, 87, 0.28);
  background: rgba(255, 91, 87, 0.08);
  color: #ffc0bd;
}

.profile-chip.good {
  border-color: rgba(0, 193, 118, 0.28);
  background: rgba(0, 193, 118, 0.08);
  color: #baf0d5;
}

@media (max-width: 1180px) {
  .topbar-row-primary {
    grid-template-columns: 1fr;
  }

  .topbar-sidecar {
    grid-template-columns: minmax(140px, 170px) minmax(260px, 1fr);
  }
}

@media (max-width: 720px) {
  .topbar-sidecar,
  .trade-window-grid-2col {
    grid-template-columns: 1fr;
  }
}

/* Top bar rework: correct hierarchy = identity, actions, status */
.topbar-shell {
  grid-template-columns: minmax(0, 1fr) minmax(460px, 620px);
  align-items: stretch;
}

.topbar-brand-block {
  justify-content: flex-start;
  text-align: left;
}

.topbar-actions {
  min-width: 0;
  display: grid;
  grid-template-columns: minmax(220px, 252px) minmax(0, 1fr);
  gap: 0.72rem;
  align-items: stretch;
}

.topbar-upload {
  min-width: 0;
  cursor: pointer;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  grid-template-areas:
    "copy actions"
    "meta meta";
  gap: 0.28rem 0.56rem;
  align-items: center;
}

.topbar-upload .drop-copy {
  grid-area: copy;
  display: flex;
  align-items: center;
  min-height: 100%;
}

.topbar-upload .compact-actions {
  grid-area: actions;
  align-items: center;
  align-self: center;
}

.upload-meta {
  grid-area: meta;
  min-width: 0;
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-size: 0.66rem;
  letter-spacing: 0.04em;
  color: var(--muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.topbar-controls-panel {
  min-width: 0;
}

.topbar-row-secondary {
  grid-template-columns: 1fr;
}

.topbar-statusbar {
  min-width: 0;
  display: grid;
  grid-template-columns: minmax(180px, 1.2fr) repeat(4, minmax(130px, 1fr));
  gap: 0.72rem;
  align-items: stretch;
}

.status-metric {
  min-width: 0;
  display: grid;
  gap: 0.26rem;
  padding: 0.74rem 0.82rem;
  border-radius: 10px;
  border: 1px solid rgba(109, 133, 168, 0.18);
  background: linear-gradient(180deg, rgba(15, 20, 29, 0.96) 0%, rgba(10, 14, 21, 0.96) 100%);
  box-shadow: var(--shadow);
}

.status-metric-primary {
  border-color: rgba(87, 213, 255, 0.24);
  box-shadow: inset 0 0 0 1px rgba(87, 213, 255, 0.06), var(--shadow);
}

.status-label {
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-size: 0.66rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--cyan);
}

.status-value {
  min-width: 0;
  color: #edf5fd;
  font-size: 0.82rem;
  font-weight: 600;
  line-height: 1.25;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.topbar .subtitle {
  max-width: 42ch;
}

.topbar-upload .drop-copy {
  gap: 0;
}

.topbar-upload .drop-copy strong {
  font-size: 0.72rem;
  line-height: 1;
}

@media (max-width: 1180px) {
  .topbar-shell {
    grid-template-columns: 1fr;
  }

  .topbar-actions,
  .topbar-statusbar {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .status-metric-primary {
    grid-column: 1 / -1;
  }
}

@media (max-width: 720px) {
  .topbar-actions,
  .topbar-statusbar,
  .topbar-controls {
    grid-template-columns: 1fr;
  }
}

/* Daily calendar + drilldown should start from the same visual baseline */
.day-drilldown {
  padding-top: 0.92rem;
}

.day-drilldown-head {
  align-items: flex-start;
  margin-bottom: 0.66rem;
  padding-top: 0;
}

.day-drilldown-title {
  margin-top: 0.18rem;
  color: var(--muted);
  font-size: 0.71rem;
}

/* CSV control + timezone controls alignment cleanup */
.topbar-actions {
  grid-template-columns: minmax(180px, 218px) minmax(280px, 1fr);
  gap: 0.56rem;
  align-items: center;
}

.topbar-upload {
  min-height: 100%;
  justify-items: center;
  justify-content: center;
  align-content: center;
  grid-template-columns: auto auto;
  grid-template-areas:
    "copy actions"
    "meta meta";
  grid-template-rows: 30px auto;
  gap: 0.16rem 0.38rem;
  padding: 0.32rem 0.44rem;
  border-color: rgba(109, 133, 168, 0.14);
  background: rgba(13, 18, 26, 0.72);
  box-shadow: none;
  text-align: center;
}

.topbar-upload::before {
  display: none;
}

.topbar-upload .drop-copy,
.topbar-upload .compact-actions,
.topbar-upload .upload-meta {
  width: auto;
  min-width: 0;
  justify-content: center;
  text-align: center;
}

.topbar-upload .drop-copy {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 30px;
}

.topbar-upload .drop-copy strong {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 30px;
  font-size: 0.7rem;
  line-height: 1;
}

.topbar-upload .compact-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 30px;
}

.topbar-upload .small-btn {
  min-height: 30px;
  min-width: 88px;
  padding: 0.18rem 0.56rem;
  font-size: 0.7rem;
  border-radius: 7px;
}

.topbar-upload .upload-meta {
  width: 100%;
  font-size: 0.62rem;
  line-height: 1.12;
  opacity: 0.88;
}

.topbar-controls-panel {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.56rem;
  align-items: center;
}

.topbar-controls-panel .control-stack {
  height: 100%;
  justify-content: center;
  gap: 0.22rem;
}

.topbar-controls-panel .control-stack-button {
  min-width: 0;
}

.topbar-controls-panel .tz-label {
  text-align: center;
}

.topbar-controls-panel .tz-select,
.topbar-controls-panel .ghost-btn {
  width: 100%;
  min-height: 34px;
}

.topbar-controls-panel .ghost-btn {
  font-size: 0.72rem;
  padding-inline: 0.5rem;
  white-space: nowrap;
}

@media (max-width: 980px) {
  .topbar-controls-panel {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .topbar-controls-panel .control-stack-button {
    grid-column: 1 / -1;
  }
}

@media (max-width: 720px) {
  .topbar-controls-panel {
    grid-template-columns: 1fr;
  }

  .topbar-controls-panel .control-stack-button {
    grid-column: auto;
  }
}

.panel-head-drilldown {
  align-items: flex-start;
}

.setup-assign-wrap {
  display: flex;
  flex-direction: column;
  gap: 0.22rem;
  min-width: 148px;
}

.setup-assign-select {
  width: 100%;
  min-height: 32px;
  padding: 0.28rem 0.45rem;
  border-radius: 8px;
  border: 1px solid var(--panel-border);
  background: rgba(255,255,255,0.03);
  color: var(--text);
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.7rem;
}

.setup-assign-meta {
  font-size: 0.6rem;
  line-height: 1.2;
  color: var(--muted);
}

.setup-assign-meta.auto {
  color: var(--cyan);
}

.setup-library-shell {
  display: grid;
  gap: 0.85rem;
}

.setup-library-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 0.7rem;
  align-items: center;
}

.setup-library-input {
  min-width: 0;
}

.setup-library-meta {
  font-size: 0.68rem;
  color: var(--muted);
  font-family: 'IBM Plex Mono', monospace;
}

.setup-library-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 0.7rem;
}

.setup-library-card {
  display: grid;
  gap: 0.45rem;
  padding: 0.9rem 1rem;
  border-radius: 12px;
  border: 1px solid var(--panel-border);
  background: rgba(255,255,255,0.025);
}

.setup-library-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.6rem;
}

.setup-library-name {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text);
  line-height: 1.3;
}

.setup-library-count {
  font-size: 0.66rem;
  color: var(--cyan);
  font-family: 'IBM Plex Mono', monospace;
}

.setup-library-origin {
  font-size: 0.63rem;
  color: var(--muted);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.setup-library-remove {
  justify-self: flex-start;
  padding: 0.22rem 0.58rem;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.1);
  background: transparent;
  color: var(--muted);
  font-size: 0.64rem;
  cursor: pointer;
}

.setup-library-remove:hover {
  color: var(--red);
  border-color: rgba(255,0,80,0.25);
}

.suite-analytics-panel {
  display: grid;
  gap: 1rem;
}

.suite-analytics-meta {
  font-size: 0.72rem;
  color: var(--muted);
  font-family: 'IBM Plex Mono', monospace;
}

.suite-analytics-summary {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 0.7rem;
}

.suite-analytics-stat,
.suite-analytics-card {
  border: 1px solid var(--panel-border);
  border-radius: 14px;
  background: rgba(255,255,255,0.026);
}

.suite-analytics-stat {
  padding: 0.8rem 0.9rem;
  display: grid;
  gap: 0.22rem;
}

.suite-analytics-stat-value {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--cyan);
  font-family: 'IBM Plex Mono', monospace;
}

.suite-analytics-stat-label,
.suite-analytics-card-title,
.suite-analytics-row-sub,
.suite-analytics-empty {
  color: var(--muted);
}

.suite-analytics-stat-label,
.suite-analytics-card-title {
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.suite-analytics-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.8rem;
}

.suite-analytics-card {
  padding: 0.9rem 1rem;
  display: grid;
  gap: 0.7rem;
}

.suite-analytics-list {
  display: grid;
  gap: 0.6rem;
}

.suite-analytics-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.8rem;
  padding-bottom: 0.6rem;
  border-bottom: 1px dashed rgba(255,255,255,0.08);
}

.suite-analytics-row:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}

.suite-analytics-row-title {
  color: var(--text);
  font-size: 0.8rem;
  font-weight: 600;
  line-height: 1.3;
}

.suite-analytics-row-sub,
.suite-analytics-empty {
  font-size: 0.67rem;
  line-height: 1.4;
}

.suite-analytics-row-metric {
  color: var(--cyan);
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.78rem;
  font-weight: 700;
  white-space: nowrap;
}

.admin-settings-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 0.8rem;
  margin-top: 0.95rem;
}

.admin-setting {
  display: grid;
  gap: 0.38rem;
}

.admin-setting-label {
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
}

.admin-setting-input {
  width: 100%;
}

.admin-feedback-counts {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.9rem;
}

.admin-count-pill {
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 999px;
  padding: 0.35rem 0.65rem;
  font-size: 0.68rem;
  color: var(--muted-strong);
  background: rgba(255,255,255,0.03);
}

.admin-feedback-list {
  display: grid;
  gap: 0.8rem;
  margin-top: 0.95rem;
}

.admin-feedback-card {
  border: 1px solid var(--panel-border);
  border-radius: 14px;
  background: rgba(255,255,255,0.03);
  padding: 0.95rem 1rem;
  display: grid;
  gap: 0.65rem;
}

.admin-feedback-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 0.8rem;
}

.admin-feedback-title {
  color: var(--text);
  font-size: 0.85rem;
  font-weight: 700;
}

.admin-feedback-meta {
  color: var(--muted);
  font-size: 0.68rem;
  line-height: 1.45;
}

.admin-feedback-badge {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.68rem;
  color: var(--cyan);
  border: 1px solid rgba(0,255,255,0.16);
  border-radius: 999px;
  padding: 0.24rem 0.55rem;
  white-space: nowrap;
}

.admin-feedback-message {
  color: var(--text);
  font-size: 0.84rem;
  line-height: 1.55;
  white-space: pre-wrap;
  word-break: break-word;
}

.day-drilldown-copy {
  display: grid;
  gap: 0.18rem;
}

.day-drilldown-title {
  margin: 0;
  color: var(--muted);
  font-size: 0.71rem;
  line-height: 1.25;
  font-family: "IBM Plex Sans", Inter, system-ui, sans-serif;
}

.day-drilldown-meta {
  padding-top: 0.02rem;
  text-align: right;
}


.prop-accounts-stack,
.prop-accounts-panel {
  grid-column: 1 / -1;
}

.prop-accounts-stack {
  display: grid;
  gap: 0.85rem;
}

.prop-source-meta {
  color: var(--muted);
  font-size: 0.72rem;
  text-align: right;
}

.prop-editor-shell {
  margin-bottom: 0.9rem;
  border: 1px solid rgba(109, 133, 168, 0.18);
  border-radius: 12px;
  padding: 0.85rem;
  background: linear-gradient(180deg, rgba(15, 20, 29, 0.96) 0%, rgba(10, 14, 21, 0.98) 100%);
}

.prop-editor-head,
.prop-editor-card-head,
.prop-editor-toolbar {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.7rem;
}

.prop-editor-toolbar,
.prop-editor-card-actions {
  flex-wrap: wrap;
}

.prop-editor-grid {
  display: grid;
  gap: 0.8rem;
  margin-top: 0.8rem;
}

.prop-editor-card {
  border: 1px solid rgba(109, 133, 168, 0.18);
  border-radius: 12px;
  padding: 0.8rem;
  background: rgba(7, 12, 19, 0.72);
}

.prop-editor-card.is-local {
  border-color: rgba(87, 213, 255, 0.32);
  box-shadow: inset 0 0 0 1px rgba(87, 213, 255, 0.08);
}

.prop-editor-card-title {
  color: #edf5fd;
  font-size: 0.92rem;
  font-weight: 700;
}

.prop-editor-card-meta {
  color: var(--muted);
  font-size: 0.7rem;
  margin-top: 0.18rem;
}

.prop-editor-grid-fields {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.7rem;
  margin-top: 0.85rem;
}

.prop-editor-field {
  display: grid;
  gap: 0.28rem;
}

.prop-editor-field span {
  color: var(--cyan);
  font-size: 0.66rem;
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.prop-editor-field input,
.prop-editor-field select,
.prop-editor-field textarea {
  width: 100%;
  border-radius: 8px;
  border: 1px solid rgba(109, 133, 168, 0.24);
  background: rgba(4, 8, 14, 0.82);
  color: #edf5fd;
  padding: 0.55rem 0.62rem;
  font: inherit;
}

.prop-editor-field input:focus,
.prop-editor-field select:focus,
.prop-editor-field textarea:focus {
  outline: none;
  border-color: rgba(87, 213, 255, 0.42);
  box-shadow: 0 0 0 1px rgba(87, 213, 255, 0.18);
}

.prop-editor-field-wide {
  grid-column: span 2;
}

.prop-editor-btn.breach {
  border-color: rgba(255, 0, 80, 0.32);
  color: #ffc2bc;
}

.prop-summary-grid,
.prop-breakdown-grid {
  display: grid;
  gap: 0.6rem;
  margin-bottom: 0.8rem;
}

.prop-summary-grid {
  grid-template-columns: repeat(6, minmax(0, 1fr));
}

.prop-breakdown-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.prop-summary-card,
.prop-breakdown-card {
  border: 1px solid rgba(109, 133, 168, 0.18);
  border-radius: 10px;
  padding: 0.72rem 0.76rem;
  background: linear-gradient(180deg, rgba(15, 20, 29, 0.96) 0%, rgba(10, 14, 21, 0.98) 100%);
}

.prop-summary-card .label,
.prop-breakdown-card .label {
  color: var(--cyan);
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-size: 0.66rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.prop-summary-card .value,
.prop-breakdown-card .value {
  margin-top: 0.26rem;
  color: #edf5fd;
  font-size: 1rem;
  font-weight: 700;
}

.prop-summary-card .meta,
.prop-breakdown-card .meta,
.prop-challenge-cell small,
.prop-empty code {
  margin-top: 0.16rem;
  color: var(--muted);
  font-size: 0.7rem;
}

.prop-table-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 0.6rem;
  margin-bottom: 0.55rem;
}

.prop-firm-groups {
  display: grid;
  gap: 0.7rem;
}

.prop-firm-group {
  border: 1px solid rgba(109, 133, 168, 0.18);
  border-radius: 10px;
  background: linear-gradient(180deg, rgba(15, 20, 29, 0.96) 0%, rgba(10, 14, 21, 0.98) 100%);
  overflow: hidden;
}

.prop-firm-summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.8rem;
  padding: 0.78rem 0.84rem;
}

.prop-firm-summary::-webkit-details-marker {
  display: none;
}

.prop-firm-summary-copy {
  min-width: 0;
  display: grid;
  gap: 0.16rem;
}

.prop-firm-summary-copy strong {
  color: #edf5fd;
  font-size: 0.92rem;
}

.prop-firm-summary-copy small,
.prop-firm-summary-caret {
  color: var(--muted);
  font-size: 0.72rem;
}

.prop-firm-summary-caret {
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  white-space: nowrap;
}

.prop-firm-group[open] .prop-firm-summary-caret {
  color: var(--cyan);
}

.prop-firm-table-wrap {
  border-top: 1px solid rgba(109, 133, 168, 0.14);
  padding: 0 0.72rem 0.72rem;
}

.prop-challenge-cell {
  display: grid;
  gap: 0.16rem;
}

.prop-type-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.24rem;
}

.type-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.1rem 0.36rem;
  border-radius: 999px;
  border: 1px solid rgba(126, 144, 168, 0.28);
  background: rgba(126, 144, 168, 0.1);
  color: #dbe8f6;
  font-size: 0.62rem;
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.type-pill.type-funded,
.type-pill.type-passed {
  border-color: rgba(33, 209, 139, 0.34);
  background: rgba(33, 209, 139, 0.14);
  color: #bff4d8;
}

.type-pill.type-breach {
  border-color: rgba(255, 0, 80, 0.34);
  background: rgba(255, 0, 80, 0.14);
  color: #ffcac4;
}

.type-pill.type-renewal,
.type-pill.type-reset {
  border-color: rgba(255, 209, 102, 0.34);
  background: rgba(255, 209, 102, 0.14);
  color: #ffe9b6;
}

.type-pill.type-challenge,
.type-pill.type-credentials,
.type-pill.type-activation,
.type-pill.type-payment,
.type-pill.type-more {
  border-color: rgba(87, 213, 255, 0.32);
  background: rgba(87, 213, 255, 0.11);
  color: #dff7ff;
}

.status-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 86px;
  padding: 0.22rem 0.5rem;
  border-radius: 999px;
  border: 1px solid rgba(109, 133, 168, 0.22);
  background: rgba(109, 133, 168, 0.08);
  color: #e7eef7;
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.status-pill.status-passed {
  border-color: rgba(33, 209, 139, 0.28);
  background: rgba(33, 209, 139, 0.1);
  color: #baf0d5;
}

.status-pill.status-failed {
  border-color: rgba(255, 0, 80, 0.28);
  background: rgba(255, 0, 80, 0.1);
  color: #ffc2bc;
}

.status-pill.status-active {
  border-color: rgba(87, 213, 255, 0.28);
  background: rgba(87, 213, 255, 0.1);
  color: #dff7ff;
}

.status-pill.status-refunded {
  border-color: rgba(255, 209, 102, 0.28);
  background: rgba(255, 209, 102, 0.1);
  color: #ffe6ab;
}

.prop-empty {
  color: var(--muted);
  text-align: center;
  padding: 1rem;
}

@media (max-width: 1180px) {
  .prop-summary-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .prop-breakdown-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .prop-editor-grid-fields {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 720px) {
  .prop-summary-grid,
  .prop-breakdown-grid {
    grid-template-columns: 1fr;
  }

  .prop-source-meta,
  .prop-table-head {
    text-align: left;
  }

  .prop-editor-head,
  .prop-editor-card-head {
    flex-direction: column;
  }

  .prop-editor-grid-fields {
    grid-template-columns: 1fr;
  }

  .prop-editor-field-wide {
    grid-column: auto;
  }
}

/* ============================================================
   V3: DISCIPLINE MACHINE — Psychology, Heatmaps, Warnings
   ============================================================ */

@keyframes fadeSlideIn {
  from { opacity: 0; transform: translateY(12px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes pulseWarn {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.7; }
}
.anim-fade-in { animation: fadeSlideIn 0.45s ease-out both; }
.overview-stack > .anim-fade-in:nth-child(2) { animation-delay: 0.06s; }
.overview-stack > .anim-fade-in:nth-child(3) { animation-delay: 0.12s; }
.overview-stack > .anim-fade-in:nth-child(4) { animation-delay: 0.18s; }
.overview-stack > .anim-fade-in:nth-child(5) { animation-delay: 0.24s; }
.overview-stack > .anim-fade-in:nth-child(6) { animation-delay: 0.30s; }

/* Psychology Warnings Banner */
.psych-warnings-wrap { display: grid; gap: 0.5rem; }
.psych-warnings-wrap.hidden { display: none; }
.psych-warning {
  display: flex; align-items: center; gap: 0.65rem;
  padding: 0.62rem 0.82rem; border-radius: 10px;
  border: 1px solid rgba(255, 0, 80, 0.32);
  background: linear-gradient(90deg, rgba(255, 70, 60, 0.1) 0%, rgba(15, 20, 29, 0.96) 40%);
  animation: fadeSlideIn 0.35s ease-out both;
}
.psych-warning.warn-amber {
  border-color: rgba(255, 209, 102, 0.38);
  background: linear-gradient(90deg, rgba(255, 200, 60, 0.1) 0%, rgba(15, 20, 29, 0.96) 40%);
}
.psych-warning-icon { font-size: 1.1rem; flex-shrink: 0; animation: pulseWarn 2s ease-in-out infinite; }
.psych-warning-text { flex: 1; color: #ffd4d0; font-size: 0.78rem; line-height: 1.4; }
.psych-warning.warn-amber .psych-warning-text { color: #ffe9c0; }
.psych-warning-stat { font-family: "IBM Plex Mono", ui-monospace, monospace; font-weight: 600; color: var(--red); font-size: 0.82rem; }
.psych-warning.warn-amber .psych-warning-stat { color: var(--warn); }
.psych-warning-dismiss {
  flex-shrink: 0; background: none; border: 1px solid rgba(255,255,255,0.12);
  border-radius: 6px; color: var(--muted); font-size: 0.68rem; padding: 0.22rem 0.44rem; cursor: pointer;
}
.psych-warning-dismiss:hover { border-color: rgba(255,255,255,0.28); color: var(--text); }

/* Discipline Scorecard */
.discipline-panel { border-top: 2px solid rgba(87, 213, 255, 0.5); }
.discipline-panel .panel-head { display: flex; align-items: center; justify-content: space-between; }
.discipline-score-badge { display: flex; flex-direction: column; align-items: center; gap: 0.28rem; }
.discipline-score-ring { position: relative; width: 72px; height: 72px; }
.discipline-gauge-svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.discipline-gauge-bg { fill: none; stroke: rgba(109, 133, 168, 0.18); stroke-width: 3; }
.discipline-gauge-arc { fill: none; stroke: var(--green); stroke-width: 3; stroke-linecap: round; transition: stroke-dasharray 1.2s ease-out, stroke 0.4s ease; }
.discipline-gauge-arc.gauge-warn { stroke: var(--warn); }
.discipline-gauge-arc.gauge-danger { stroke: var(--red); }
.discipline-score-value {
  position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
  font-family: "IBM Plex Mono", ui-monospace, monospace; font-size: 1.2rem; font-weight: 700; color: #f5f8fb;
}
.discipline-score-label { font-family: "IBM Plex Mono", ui-monospace, monospace; font-size: 0.58rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); }
.discipline-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0.6rem; }
.discipline-card {
  border: 1px solid rgba(109, 133, 168, 0.2); border-radius: 10px; padding: 0.72rem 0.78rem;
  background: linear-gradient(180deg, rgba(15, 20, 29, 0.96) 0%, rgba(10, 14, 21, 0.98) 100%);
  display: grid; gap: 0.24rem; transition: border-color 0.3s ease;
}
.discipline-card.grade-green { border-left: 3px solid var(--green); }
.discipline-card.grade-yellow { border-left: 3px solid var(--warn); }
.discipline-card.grade-red { border-left: 3px solid var(--red); }
.discipline-card .dc-label { font-family: "IBM Plex Mono", ui-monospace, monospace; font-size: 0.64rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--cyan); }
.discipline-card .dc-value { font-size: 1.1rem; font-weight: 700; color: #edf5fd; }
.discipline-card .dc-target { font-size: 0.68rem; color: var(--muted); }
.discipline-card .dc-bar { height: 4px; border-radius: 2px; background: rgba(109, 133, 168, 0.18); margin-top: 0.28rem; overflow: hidden; }
.discipline-card .dc-bar-fill { height: 100%; border-radius: 2px; transition: width 0.8s ease-out; }
.grade-green .dc-bar-fill { background: var(--green); }
.grade-yellow .dc-bar-fill { background: var(--warn); }
.grade-red .dc-bar-fill { background: var(--red); }

/* Symbol Performance */
.symbol-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 0.6rem; }
.symbol-card {
  border: 1px solid rgba(109, 133, 168, 0.2); border-radius: 10px; padding: 0.72rem 0.78rem;
  background: linear-gradient(180deg, rgba(15, 20, 29, 0.96) 0%, rgba(10, 14, 21, 0.98) 100%);
  display: grid; gap: 0.2rem; position: relative; overflow: hidden;
}
.symbol-card::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 2px; }
.symbol-card.sym-pos::before { background: var(--green); }
.symbol-card.sym-neg::before { background: var(--red); }
.symbol-card.sym-neg { border-color: rgba(255, 0, 80, 0.28); }
.symbol-card .sym-name { font-family: "IBM Plex Mono", ui-monospace, monospace; font-size: 0.82rem; font-weight: 600; color: #edf5fd; letter-spacing: 0.04em; }
.symbol-card .sym-pnl { font-size: 1rem; font-weight: 700; }
.symbol-card .sym-meta { font-size: 0.68rem; color: var(--muted); }
.symbol-card .sym-warn { font-size: 0.68rem; color: var(--red); font-weight: 600; animation: pulseWarn 2.5s ease-in-out infinite; }

/* Time-of-Day Heatmap */
.heatmap-wrap { display: grid; grid-template-columns: repeat(24, minmax(0, 1fr)); gap: 3px; }
.heatmap-cell {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  min-height: 72px; border-radius: 6px; border: 1px solid rgba(109, 133, 168, 0.16);
  padding: 0.28rem 0.14rem; gap: 0.12rem; transition: transform 0.15s ease, border-color 0.15s ease; cursor: default;
}
.heatmap-cell:hover { transform: scale(1.06); z-index: 2; border-color: rgba(87, 213, 255, 0.44); }
.heatmap-cell .hm-hour { font-family: "IBM Plex Mono", ui-monospace, monospace; font-size: 0.56rem; color: var(--muted); }
.heatmap-cell .hm-pnl { font-size: 0.68rem; font-weight: 700; }
.heatmap-cell .hm-count { font-size: 0.52rem; color: var(--muted); }
.heatmap-cell.hm-pos { background: rgba(33, 209, 139, calc(0.08 + var(--hm-intensity, 0) * 0.22)); border-color: rgba(33, 209, 139, calc(0.14 + var(--hm-intensity, 0) * 0.2)); }
.heatmap-cell.hm-neg { background: rgba(255, 0, 80, calc(0.08 + var(--hm-intensity, 0) * 0.22)); border-color: rgba(255, 0, 80, calc(0.14 + var(--hm-intensity, 0) * 0.2)); }
.heatmap-cell.hm-empty { background: rgba(109, 133, 168, 0.04); border-color: rgba(109, 133, 168, 0.1); }
.heatmap-cell.hm-toxic { box-shadow: inset 0 0 0 1px rgba(255, 0, 80, 0.35); position: relative; }
.heatmap-cell.hm-toxic::after { content: "⚠"; position: absolute; top: 2px; right: 3px; font-size: 0.5rem; opacity: 0.7; }
.heatmap-cell.hm-golden { box-shadow: inset 0 0 0 1px rgba(33, 209, 139, 0.35); position: relative; }
.heatmap-cell.hm-golden::after { content: "★"; position: absolute; top: 2px; right: 3px; font-size: 0.5rem; color: var(--green); opacity: 0.8; }
.heatmap-legend { margin-top: 0.55rem; display: flex; gap: 0.8rem; flex-wrap: wrap; font-size: 0.68rem; color: var(--muted); }
.heatmap-legend-toxic { color: var(--red); }
.heatmap-legend-golden { color: var(--green); }

/* Trade Frequency Chart */
.frequency-panel canvas { height: 220px !important; }

/* Tilt Indicator */
.tilt-indicator-wrap { margin-top: 0.6rem; }
.tilt-indicator-wrap:empty { display: none; }
.tilt-indicator { display: flex; align-items: center; gap: 0.55rem; padding: 0.52rem 0.72rem; border-radius: 8px; font-size: 0.76rem; }
.tilt-indicator.tilt-green { border: 1px solid rgba(33, 209, 139, 0.2); background: rgba(33, 209, 139, 0.06); color: #baf0d5; }
.tilt-indicator.tilt-yellow { border: 1px solid rgba(255, 209, 102, 0.28); background: rgba(255, 209, 102, 0.08); color: #ffe9b6; }
.tilt-indicator.tilt-red { border: 1px solid rgba(255, 0, 80, 0.32); background: rgba(255, 0, 80, 0.1); color: #ffc2bc; animation: pulseWarn 3s ease-in-out infinite; }
.tilt-indicator-icon { font-size: 1rem; }
.tilt-indicator-label { flex: 1; }
.tilt-indicator-stat { font-family: "IBM Plex Mono", ui-monospace, monospace; font-weight: 600; }

/* Revenge Trade in Table */
tr.revenge-trade td { background: rgba(255, 70, 60, 0.08) !important; position: relative; }
tr.revenge-trade td:first-child::before { content: "⚡"; position: absolute; left: 2px; top: 50%; transform: translateY(-50%); font-size: 0.62rem; }

/* V3 Responsive */
@media (max-width: 1180px) {
  .discipline-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .heatmap-wrap { grid-template-columns: repeat(12, minmax(0, 1fr)); }
}
@media (max-width: 720px) {
  .discipline-grid, .symbol-grid { grid-template-columns: 1fr; }
  .heatmap-wrap { grid-template-columns: repeat(8, minmax(0, 1fr)); }
  .discipline-score-ring { width: 58px; height: 58px; }
}

/* ============================================================
   V3: DISCIPLINE MACHINE — Psychology, Heatmaps, Warnings
   ============================================================ */

/* Animations */
@keyframes fadeSlideIn {
  from { opacity: 0; transform: translateY(12px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes pulseWarn {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.7; }
}

@keyframes gaugeGrow {
  from { stroke-dasharray: 0, 100; }
}

@keyframes countUp {
  from { opacity: 0.4; }
  to   { opacity: 1; }
}

.anim-fade-in {
  animation: fadeSlideIn 0.45s ease-out both;
}

.overview-stack > .anim-fade-in:nth-child(2) { animation-delay: 0.06s; }
.overview-stack > .anim-fade-in:nth-child(3) { animation-delay: 0.12s; }
.overview-stack > .anim-fade-in:nth-child(4) { animation-delay: 0.18s; }
.overview-stack > .anim-fade-in:nth-child(5) { animation-delay: 0.24s; }
.overview-stack > .anim-fade-in:nth-child(6) { animation-delay: 0.30s; }

/* ---- Psychology Warnings Banner ---- */
.psych-warnings-wrap {
  display: grid;
  gap: 0.5rem;
}

.psych-warnings-wrap.hidden { display: none; }

.psych-warning {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.62rem 0.82rem;
  border-radius: 10px;
  border: 1px solid rgba(255, 0, 80, 0.32);
  background: linear-gradient(90deg, rgba(255, 70, 60, 0.1) 0%, rgba(15, 20, 29, 0.96) 40%);
  animation: fadeSlideIn 0.35s ease-out both;
}

.psych-warning.warn-amber {
  border-color: rgba(255, 209, 102, 0.38);
  background: linear-gradient(90deg, rgba(255, 200, 60, 0.1) 0%, rgba(15, 20, 29, 0.96) 40%);
}

.psych-warning-icon {
  font-size: 1.1rem;
  flex-shrink: 0;
  animation: pulseWarn 2s ease-in-out infinite;
}

.psych-warning-text {
  flex: 1;
  color: #ffd4d0;
  font-size: 0.78rem;
  font-family: "IBM Plex Sans", Inter, system-ui, sans-serif;
  line-height: 1.4;
}

.psych-warning.warn-amber .psych-warning-text {
  color: #ffe9c0;
}

.psych-warning-stat {
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-weight: 600;
  color: var(--red);
  font-size: 0.82rem;
}

.psych-warning.warn-amber .psych-warning-stat {
  color: var(--warn);
}

.psych-warning-dismiss {
  flex-shrink: 0;
  background: none;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 6px;
  color: var(--muted);
  font-size: 0.68rem;
  padding: 0.22rem 0.44rem;
  cursor: pointer;
  transition: 0.15s ease;
}

.psych-warning-dismiss:hover {
  border-color: rgba(255, 255, 255, 0.28);
  color: var(--text);
}

/* ---- Discipline Scorecard ---- */
.discipline-panel {
  border-top: 2px solid rgba(87, 213, 255, 0.5);
}

.discipline-panel .panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.discipline-score-badge {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.28rem;
}

.discipline-score-ring {
  position: relative;
  width: 72px;
  height: 72px;
}

.discipline-gauge-svg {
  width: 100%;
  height: 100%;
  transform: rotate(-90deg);
}

.discipline-gauge-bg {
  fill: none;
  stroke: rgba(109, 133, 168, 0.18);
  stroke-width: 3;
}

.discipline-gauge-arc {
  fill: none;
  stroke: var(--green);
  stroke-width: 3;
  stroke-linecap: round;
  transition: stroke-dasharray 1.2s ease-out, stroke 0.4s ease;
}

.discipline-gauge-arc.gauge-warn { stroke: var(--warn); }
.discipline-gauge-arc.gauge-danger { stroke: var(--red); }

.discipline-score-value {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-size: 1.2rem;
  font-weight: 700;
  color: #f5f8fb;
}

.discipline-score-label {
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-size: 0.58rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}

.discipline-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.6rem;
}

.discipline-card {
  border: 1px solid rgba(109, 133, 168, 0.2);
  border-radius: 10px;
  padding: 0.72rem 0.78rem;
  background: linear-gradient(180deg, rgba(15, 20, 29, 0.96) 0%, rgba(10, 14, 21, 0.98) 100%);
  display: grid;
  gap: 0.24rem;
  transition: border-color 0.3s ease;
}

.discipline-card.grade-green { border-left: 3px solid var(--green); }
.discipline-card.grade-yellow { border-left: 3px solid var(--warn); }
.discipline-card.grade-red { border-left: 3px solid var(--red); }

.discipline-card .dc-label {
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-size: 0.64rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--cyan);
}

.discipline-card .dc-value {
  font-size: 1.1rem;
  font-weight: 700;
  color: #edf5fd;
}

.discipline-card .dc-target {
  font-size: 0.68rem;
  color: var(--muted);
}

.discipline-card .dc-bar {
  height: 4px;
  border-radius: 2px;
  background: rgba(109, 133, 168, 0.18);
  margin-top: 0.28rem;
  overflow: hidden;
}

.discipline-card .dc-bar-fill {
  height: 100%;
  border-radius: 2px;
  transition: width 0.8s ease-out;
}

.grade-green .dc-bar-fill { background: var(--green); }
.grade-yellow .dc-bar-fill { background: var(--warn); }
.grade-red .dc-bar-fill { background: var(--red); }

/* ---- Symbol Performance Breakdown ---- */
.symbol-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 0.6rem;
}

.symbol-card {
  border: 1px solid rgba(109, 133, 168, 0.2);
  border-radius: 10px;
  padding: 0.72rem 0.78rem;
  background: linear-gradient(180deg, rgba(15, 20, 29, 0.96) 0%, rgba(10, 14, 21, 0.98) 100%);
  display: grid;
  gap: 0.2rem;
  position: relative;
  overflow: hidden;
}

.symbol-card::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
}

.symbol-card.sym-pos::before { background: var(--green); }
.symbol-card.sym-neg::before { background: var(--red); }

.symbol-card.sym-neg {
  border-color: rgba(255, 0, 80, 0.28);
}

.symbol-card .sym-name {
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-size: 0.82rem;
  font-weight: 600;
  color: #edf5fd;
  letter-spacing: 0.04em;
}

.symbol-card .sym-pnl {
  font-size: 1rem;
  font-weight: 700;
}

.symbol-card .sym-meta {
  font-size: 0.68rem;
  color: var(--muted);
}

.symbol-card .sym-warn {
  font-size: 0.68rem;
  color: var(--red);
  font-weight: 600;
  animation: pulseWarn 2.5s ease-in-out infinite;
}

/* ---- Time-of-Day Heatmap ---- */
.heatmap-wrap {
  display: grid;
  grid-template-columns: repeat(24, minmax(0, 1fr));
  gap: 3px;
}

.heatmap-cell {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 72px;
  border-radius: 6px;
  border: 1px solid rgba(109, 133, 168, 0.16);
  padding: 0.28rem 0.14rem;
  gap: 0.12rem;
  transition: transform 0.15s ease, border-color 0.15s ease;
  cursor: default;
}

.heatmap-cell:hover {
  transform: scale(1.06);
  z-index: 2;
  border-color: rgba(87, 213, 255, 0.44);
}

.heatmap-cell .hm-hour {
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-size: 0.56rem;
  color: var(--muted);
  letter-spacing: 0.04em;
}

.heatmap-cell .hm-pnl {
  font-size: 0.68rem;
  font-weight: 700;
}

.heatmap-cell .hm-count {
  font-size: 0.52rem;
  color: var(--muted);
}

.heatmap-cell.hm-pos {
  background: rgba(33, 209, 139, calc(0.08 + var(--hm-intensity, 0) * 0.22));
  border-color: rgba(33, 209, 139, calc(0.14 + var(--hm-intensity, 0) * 0.2));
}

.heatmap-cell.hm-neg {
  background: rgba(255, 0, 80, calc(0.08 + var(--hm-intensity, 0) * 0.22));
  border-color: rgba(255, 0, 80, calc(0.14 + var(--hm-intensity, 0) * 0.2));
}

.heatmap-cell.hm-empty {
  background: rgba(109, 133, 168, 0.04);
  border-color: rgba(109, 133, 168, 0.1);
}

.heatmap-cell.hm-toxic {
  box-shadow: inset 0 0 0 1px rgba(255, 0, 80, 0.35);
  position: relative;
}

.heatmap-cell.hm-toxic::after {
  content: "⚠";
  position: absolute;
  top: 2px; right: 3px;
  font-size: 0.5rem;
  opacity: 0.7;
}

.heatmap-cell.hm-golden {
  box-shadow: inset 0 0 0 1px rgba(33, 209, 139, 0.35);
  position: relative;
}

.heatmap-cell.hm-golden::after {
  content: "★";
  position: absolute;
  top: 2px; right: 3px;
  font-size: 0.5rem;
  color: var(--green);
  opacity: 0.8;
}

.heatmap-legend {
  margin-top: 0.55rem;
  display: flex;
  gap: 0.8rem;
  flex-wrap: wrap;
  font-size: 0.68rem;
  color: var(--muted);
}

.heatmap-legend-toxic { color: var(--red); }
.heatmap-legend-golden { color: var(--green); }

/* ---- Trade Frequency Chart ---- */
.frequency-panel canvas {
  height: 220px !important;
}

/* ---- Direction Bias (shown in insights) ---- */
.direction-bias {
  display: inline-flex;
  gap: 0.6rem;
  padding: 0.38rem 0.66rem;
  border-radius: 8px;
  border: 1px solid rgba(109, 133, 168, 0.18);
  background: rgba(10, 14, 21, 0.8);
  font-size: 0.74rem;
}

.direction-bias .bias-side {
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-weight: 600;
}

/* ---- Tilt Indicator in Day Drilldown ---- */
.tilt-indicator-wrap {
  margin-top: 0.6rem;
}

.tilt-indicator-wrap:empty { display: none; }

.tilt-indicator {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.52rem 0.72rem;
  border-radius: 8px;
  font-size: 0.76rem;
}

.tilt-indicator.tilt-green {
  border: 1px solid rgba(33, 209, 139, 0.2);
  background: rgba(33, 209, 139, 0.06);
  color: #baf0d5;
}

.tilt-indicator.tilt-yellow {
  border: 1px solid rgba(255, 209, 102, 0.28);
  background: rgba(255, 209, 102, 0.08);
  color: #ffe9b6;
}

.tilt-indicator.tilt-red {
  border: 1px solid rgba(255, 0, 80, 0.32);
  background: rgba(255, 0, 80, 0.1);
  color: #ffc2bc;
  animation: pulseWarn 3s ease-in-out infinite;
}

.tilt-indicator-icon { font-size: 1rem; }
.tilt-indicator-label { flex: 1; }
.tilt-indicator-stat {
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-weight: 600;
}

/* ---- Revenge Trade Highlight in Table ---- */
tr.revenge-trade td {
  background: rgba(255, 70, 60, 0.08) !important;
  position: relative;
}

tr.revenge-trade td:first-child::before {
  content: "⚡";
  position: absolute;
  left: 2px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 0.62rem;
}

/* ---- Discipline Trend Chart ---- */
.discipline-trend-panel {
  min-height: 200px;
}
.discipline-trend-panel canvas {
  max-height: 220px;
}

/* ---- Day Discipline Score ---- */
.day-discipline-wrap {
  padding: 0 0.25rem;
}
.day-discipline {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.5rem 0.75rem;
  border-radius: 8px;
  margin-top: 0.5rem;
  font-family: "IBM Plex Mono", ui-monospace, monospace;
}
.day-discipline-score {
  font-size: 1.3rem;
  font-weight: 700;
  min-width: 2.4rem;
  text-align: center;
}
.day-discipline-label {
  font-size: 0.6rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--muted);
}
.day-discipline-detail {
  font-size: 0.68rem;
  color: var(--muted-strong);
  margin-left: auto;
}
.day-discipline.disc-great {
  border: 1px solid rgba(0, 255, 163, 0.25);
  background: rgba(0, 255, 163, 0.06);
}
.day-discipline.disc-great .day-discipline-score { color: var(--neon-green); text-shadow: 0 0 12px rgba(0, 255, 163, 0.4); }
.day-discipline.disc-ok {
  border: 1px solid rgba(0, 255, 255, 0.2);
  background: rgba(0, 255, 255, 0.04);
}
.day-discipline.disc-ok .day-discipline-score { color: var(--cyan); text-shadow: 0 0 12px rgba(0, 255, 255, 0.3); }
.day-discipline.disc-warn {
  border: 1px solid rgba(255, 0, 200, 0.25);
  background: rgba(255, 0, 200, 0.06);
}
.day-discipline.disc-warn .day-discipline-score { color: var(--magenta); text-shadow: 0 0 12px rgba(255, 0, 200, 0.4); }
.day-discipline.disc-bad {
  border: 1px solid rgba(255, 0, 80, 0.3);
  background: rgba(255, 0, 80, 0.08);
}
.day-discipline.disc-bad .day-discipline-score { color: var(--red); text-shadow: 0 0 12px rgba(255, 0, 80, 0.5); }

/* ---- Cyberpunk Neon Glow Overrides ---- */
.panel-title {
  text-shadow: 0 0 8px rgba(0, 255, 255, 0.12);
}

.kpi-card .value {
  text-shadow: 0 0 6px rgba(0, 255, 255, 0.08);
}

.kpi-card .value.pos {
  color: var(--neon-green);
  text-shadow: 0 0 10px rgba(0, 255, 163, 0.3);
}

.kpi-card .value.neg {
  color: var(--red);
  text-shadow: 0 0 10px rgba(255, 0, 80, 0.3);
}

.tab-btn.active {
  color: var(--cyan);
  border-color: var(--cyan);
  text-shadow: 0 0 10px rgba(0, 255, 255, 0.4);
  box-shadow: 0 2px 12px rgba(0, 255, 255, 0.1);
}

/* Discipline gauge cyberpunk */
.discipline-gauge-arc {
  stroke: var(--cyan);
  filter: drop-shadow(0 0 4px rgba(0, 255, 255, 0.5));
  transition: stroke-dasharray 0.6s ease, stroke 0.3s;
}
.discipline-gauge-arc.gauge-warn {
  stroke: var(--magenta);
  filter: drop-shadow(0 0 4px rgba(255, 0, 200, 0.5));
}
.discipline-gauge-arc.gauge-danger {
  stroke: var(--red);
  filter: drop-shadow(0 0 6px rgba(255, 0, 80, 0.6));
}
.discipline-score-value {
  color: var(--cyan);
  text-shadow: 0 0 14px rgba(0, 255, 255, 0.4);
}
.discipline-score-label {
  color: var(--muted);
  text-shadow: 0 0 6px rgba(0, 255, 255, 0.15);
}

/* Discipline card grade glow */
.discipline-card.grade-green {
  border-color: rgba(0, 255, 163, 0.22);
  box-shadow: inset 0 0 16px rgba(0, 255, 163, 0.04), 0 0 8px rgba(0, 255, 163, 0.06);
}
.discipline-card.grade-green .dc-value { color: var(--neon-green); text-shadow: 0 0 8px rgba(0, 255, 163, 0.3); }
.discipline-card.grade-yellow {
  border-color: rgba(255, 0, 200, 0.2);
  box-shadow: inset 0 0 16px rgba(255, 0, 200, 0.04), 0 0 8px rgba(255, 0, 200, 0.06);
}
.discipline-card.grade-yellow .dc-value { color: var(--magenta); text-shadow: 0 0 8px rgba(255, 0, 200, 0.3); }
.discipline-card.grade-red {
  border-color: rgba(255, 0, 80, 0.25);
  box-shadow: inset 0 0 16px rgba(255, 0, 80, 0.06), 0 0 8px rgba(255, 0, 80, 0.08);
}
.discipline-card.grade-red .dc-value { color: var(--red); text-shadow: 0 0 8px rgba(255, 0, 80, 0.4); }

.dc-bar-fill {
  background: linear-gradient(90deg, var(--cyan), var(--magenta));
  box-shadow: 0 0 6px rgba(0, 255, 255, 0.3);
}

/* Heatmap cyberpunk — grouped sessions */
.heatmap-wrap {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(90px, 1fr));
  gap: 0.5rem;
  padding: 0.5rem 0;
}
.heatmap-cell {
  padding: 0.6rem 0.5rem;
  border-radius: 8px;
  text-align: center;
  border: 1px solid rgba(0, 255, 255, 0.08);
  background: rgba(0, 255, 255, calc(var(--hm-intensity, 0) * 0.08));
  transition: all 0.2s;
}
.heatmap-cell.hm-pos {
  border-color: rgba(0, 255, 163, calc(0.12 + var(--hm-intensity, 0) * 0.2));
  background: rgba(0, 255, 163, calc(var(--hm-intensity, 0) * 0.1));
  box-shadow: 0 0 calc(var(--hm-intensity, 0) * 12px) rgba(0, 255, 163, calc(var(--hm-intensity, 0) * 0.15));
}
.heatmap-cell.hm-neg {
  border-color: rgba(255, 0, 80, calc(0.12 + var(--hm-intensity, 0) * 0.2));
  background: rgba(255, 0, 80, calc(var(--hm-intensity, 0) * 0.1));
  box-shadow: 0 0 calc(var(--hm-intensity, 0) * 12px) rgba(255, 0, 80, calc(var(--hm-intensity, 0) * 0.15));
}
.heatmap-cell.hm-empty {
  opacity: 0.3;
}
.heatmap-cell.hm-toxic {
  border-color: rgba(255, 0, 80, 0.35) !important;
  box-shadow: inset 0 0 12px rgba(255, 0, 80, 0.08);
}
.heatmap-cell.hm-golden {
  border-color: rgba(0, 255, 163, 0.35) !important;
}
.hm-hour {
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--muted-strong);
  margin-bottom: 0.2rem;
}
.hm-pnl {
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-size: 0.82rem;
  font-weight: 600;
}
.hm-pnl.pos { color: var(--neon-green); }
.hm-pnl.neg { color: var(--red); }
.hm-count {
  font-size: 0.6rem;
  color: var(--muted);
  margin-top: 0.15rem;
}

/* Psychology warnings cyberpunk */
.psych-warning {
  border-left: 3px solid var(--red);
  background: rgba(255, 0, 80, 0.06);
  box-shadow: 0 0 12px rgba(255, 0, 80, 0.04);
}
.psych-warning.warn-amber {
  border-left-color: var(--magenta);
  background: rgba(255, 0, 200, 0.05);
  box-shadow: 0 0 12px rgba(255, 0, 200, 0.04);
}
.psych-warning-icon { font-size: 1rem; }

/* Tilt indicator cyberpunk */
.tilt-indicator.tilt-green {
  border-color: rgba(0, 255, 163, 0.2);
  background: rgba(0, 255, 163, 0.04);
  color: var(--neon-green);
}
.tilt-indicator.tilt-yellow {
  border-color: rgba(255, 0, 200, 0.2);
  background: rgba(255, 0, 200, 0.04);
  color: var(--magenta);
}
.tilt-indicator.tilt-red {
  border-color: rgba(255, 0, 80, 0.3);
  background: rgba(255, 0, 80, 0.06);
  color: var(--red);
  box-shadow: 0 0 16px rgba(255, 0, 80, 0.08);
}

/* Calendar day cyberpunk */
.calendar-day.pos {
  border-color: rgba(0, 255, 163, 0.25);
  box-shadow: inset 0 0 8px rgba(0, 255, 163, 0.04);
}
.calendar-day.neg {
  border-color: rgba(255, 0, 80, 0.25);
  box-shadow: inset 0 0 8px rgba(255, 0, 80, 0.04);
}
.calendar-day.active {
  border-color: var(--cyan) !important;
  box-shadow: 0 0 12px rgba(0, 255, 255, 0.15), inset 0 0 8px rgba(0, 255, 255, 0.04) !important;
}

/* Revenge trade highlight cyberpunk */
tr.revenge-trade td {
  background: rgba(255, 0, 80, 0.06) !important;
  box-shadow: inset 2px 0 0 var(--red);
}

/* Table hover cyberpunk */
tbody tr:hover td {
  background: rgba(0, 255, 255, 0.03);
}

/* ---- Responsive overrides ---- */
@media (max-width: 1180px) {
  .discipline-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .heatmap-wrap {
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }
}

@media (max-width: 720px) {
  .discipline-grid {
    grid-template-columns: 1fr;
  }
  .heatmap-wrap {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .discipline-score-ring {
    width: 58px;
    height: 58px;
  }
}

/* ════════════════════════════════════════
   BATTLE PREP TAB
   ════════════════════════════════════════ */

.bp-tab-btn {
  border-color: rgba(0, 255, 163, 0.18) !important;
  color: var(--neon-green) !important;
}
.bp-tab-btn.active {
  background: rgba(0, 255, 163, 0.08) !important;
  border-color: rgba(0, 255, 163, 0.35) !important;
  box-shadow: 0 0 12px rgba(0, 255, 163, 0.12) !important;
  color: var(--neon-green) !important;
}

/* Persistent page + sidebar wrapper */
.page-with-sidebar {
  grid-column: 1 / -1;
  display: flex;
  gap: 1.25rem;
  align-items: flex-start;
}
.tab-content-col {
  flex: 1 1 0;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

/* Battle Prep internal layout */
.bp-layout {
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
}
.view-battle-prep {
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
}
.bp-main {
  flex: 1 1 0;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
}
.bp-sidebar {
  flex: 0 0 260px;
  position: sticky;
  top: 8.5rem;
  max-height: calc(100vh - 9.5rem);
  overflow-y: auto;
  overflow-x: visible;
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
  z-index: 15;
  scrollbar-width: thin;
  scrollbar-color: rgba(87,213,255,0.18) transparent;
}
.bp-sidebar::-webkit-scrollbar { width: 4px; }
.bp-sidebar::-webkit-scrollbar-track { background: transparent; }
.bp-sidebar::-webkit-scrollbar-thumb { background: rgba(87,213,255,0.18); border-radius: 4px; }

/* Hero header */
.bp-hero {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.35rem;
  background: linear-gradient(135deg, rgba(0,255,163,0.055) 0%, rgba(0,0,0,0) 55%);
  border: 1px solid rgba(0,255,163,0.2);
  border-radius: 12px;
  position: relative;
  overflow: hidden;
}
.bp-hero::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, rgba(0,255,163,0.55), rgba(0,255,163,0.12) 55%, transparent);
  pointer-events: none;
}
.bp-hero-left {
  display: flex;
  flex-direction: column;
  gap: 0.22rem;
}
.bp-hero-mode {
  font-family: 'Orbitron', monospace;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  color: var(--neon-green);
  text-shadow: 0 0 14px rgba(0,255,163,0.45);
  text-transform: uppercase;
}
.bp-hero-date {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.83rem;
  color: var(--muted-strong);
  letter-spacing: 0.04em;
}
.bp-reset-btn {
  font-size: 0.72rem !important;
  padding: 0.3rem 0.65rem !important;
  color: var(--muted) !important;
}
.bp-reset-btn:hover { color: var(--red) !important; border-color: rgba(255,0,80,0.25) !important; }

/* Section panels */
.bp-section {
  padding: 1.25rem 1.4rem;
}
.bp-section-title {
  color: var(--text) !important;
  text-shadow: none !important;
  display: flex;
  align-items: center;
  gap: 0;
  font-size: 0.88rem;
  font-weight: 600;
  letter-spacing: 0.01em;
}
.bp-section-num {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.62rem;
  font-weight: 500;
  color: var(--muted);
  margin-right: 0.6rem;
  flex-shrink: 0;
  letter-spacing: 0.04em;
}
.bp-section-progress {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.7rem;
  color: var(--muted);
  align-self: flex-start;
  padding: 0.22rem 0.6rem;
  border: 1px solid var(--panel-border);
  border-radius: 999px;
  white-space: nowrap;
  letter-spacing: 0.04em;
}
.bp-section-progress.done {
  color: var(--neon-green);
  border-color: rgba(0,255,163,0.3);
  background: rgba(0,255,163,0.07);
  text-shadow: 0 0 8px rgba(0,255,163,0.3);
}

/* COT Bias */
.bp-cot-badge {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.72rem;
  font-weight: 600;
  padding: 0.3rem 0.75rem;
  border-radius: 999px;
  border: 1px solid;
  white-space: nowrap;
  align-self: flex-start;
}
.bp-cot-loading { border-color: var(--muted); color: var(--muted); background: transparent; }
.bp-cot-bullish { border-color: rgba(0,255,163,0.4); color: var(--neon-green); background: rgba(0,255,163,0.07); text-shadow: 0 0 8px rgba(0,255,163,0.3); }
.bp-cot-bearish { border-color: rgba(255,0,80,0.4); color: var(--red); background: rgba(255,0,80,0.07); }
.bp-cot-neutral { border-color: rgba(0,212,255,0.3); color: var(--blue); background: rgba(0,212,255,0.05); }
.bp-cot-error { border-color: var(--muted); color: var(--muted); background: transparent; }

.bp-cot-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(148px, 1fr));
  gap: 0.6rem;
  margin: 0.9rem 0 0.65rem;
}
.bp-cot-card {
  padding: 0.65rem 0.9rem;
  background: rgba(0,0,0,0.38);
  border: 1px solid var(--panel-border);
  border-radius: 10px;
  transition: border-color 0.15s, background 0.15s;
}
.bp-cot-card:hover {
  border-color: rgba(0,255,255,0.2);
  background: rgba(0,0,0,0.5);
}
.bp-cot-card-label {
  font-size: 0.6rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 0.3rem;
}
.bp-cot-card-value {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text);
}
.bp-cot-card-value.bullish { color: var(--neon-green); }
.bp-cot-card-value.bearish { color: var(--red); }
.bp-cot-card-value.neutral { color: var(--blue); }
.bp-cot-card-value.high-gas { color: var(--neon-green); }
.bp-cot-card-value.low-gas { color: var(--red); }

.bp-cot-alignment {
  padding: 0.7rem 0.9rem;
  border-left: 2px solid var(--neon-green);
  background: rgba(0,255,163,0.035);
  border-radius: 0 8px 8px 0;
  font-size: 0.82rem;
  line-height: 1.55;
  margin: 0.4rem 0 0.3rem;
}
.bp-cot-alignment.tone-positive { border-left-color: var(--neon-green); background: rgba(0,255,163,0.035); }
.bp-cot-alignment.tone-negative { border-left-color: var(--red); background: rgba(255,0,80,0.04); }
.bp-cot-alignment.tone-neutral  { border-left-color: var(--blue); background: rgba(0,212,255,0.035); }

.bp-cot-why {
  font-size: 0.78rem;
  color: var(--muted-strong);
  font-style: italic;
  margin: 0.35rem 0 0;
  line-height: 1.5;
}
.bp-fallback {
  padding: 0.8rem;
  border: 1px dashed var(--panel-border);
  border-radius: 8px;
  font-size: 0.78rem;
  color: var(--muted);
  text-align: center;
  margin-top: 0.6rem;
}

/* Profile Framing */
.bp-form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.85rem;
  margin-top: 1rem;
}
.bp-field { display: flex; flex-direction: column; gap: 0.35rem; }
.bp-field-wide { grid-column: 1 / -1; }
.bp-label {
  font-size: 0.65rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
}
.bp-select,
.bp-textarea {
  background: rgba(0,0,0,0.44);
  border: 1px solid rgba(0,255,255,0.1);
  border-radius: 8px;
  color: var(--text);
  font-family: inherit;
  font-size: 0.83rem;
  padding: 0.55rem 0.8rem;
  transition: border-color 0.18s, box-shadow 0.18s;
  resize: vertical;
}
.bp-select:focus, .bp-textarea:focus {
  outline: none;
  border-color: rgba(0,255,163,0.4);
  box-shadow: 0 0 0 1px rgba(0,255,163,0.1), inset 0 0 0 1px rgba(0,255,163,0.04);
}
.bp-select:not(:placeholder-shown):not([value=""]),
.bp-textarea:not(:placeholder-shown) {
  border-color: rgba(0,255,255,0.15);
}
.bp-select option { background: #0a0d16; }

/* Checklist */
.bp-checklist {
  list-style: none;
  padding: 0;
  margin: 0.9rem 0 0;
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}
.bp-check-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.55rem 0.8rem;
  border: 1px solid transparent;
  border-radius: 8px;
  cursor: pointer;
  font-size: 0.84rem;
  line-height: 1.4;
  transition: background 0.14s, border-color 0.14s;
  user-select: none;
  color: var(--muted-strong);
}
.bp-check-item:hover {
  background: rgba(0,255,163,0.03);
  border-color: rgba(0,255,163,0.12);
  color: var(--text);
}
.bp-check-item-final {
  border: 1px solid rgba(0,255,163,0.15);
  background: rgba(0,255,163,0.03);
  font-weight: 600;
  color: var(--neon-green);
  letter-spacing: 0.02em;
  margin-top: 0.3rem;
}

/* Custom checkbox */
.bp-cb {
  appearance: none;
  -webkit-appearance: none;
  width: 16px;
  height: 16px;
  min-width: 16px;
  border: 1.5px solid var(--muted);
  border-radius: 4px;
  cursor: pointer;
  position: relative;
  transition: border-color 0.16s, background 0.16s, box-shadow 0.16s;
  background: transparent;
}
.bp-cb:checked {
  background: var(--neon-green);
  border-color: var(--neon-green);
  box-shadow: 0 0 8px rgba(0,255,163,0.4);
}
.bp-cb:checked::after {
  content: '';
  position: absolute;
  left: 3px;
  top: 1px;
  width: 7px;
  height: 4px;
  border-left: 1.5px solid #03080d;
  border-bottom: 1.5px solid #03080d;
  transform: rotate(-45deg);
}

/* Checked item styling via :has() */
.bp-check-item:has(.bp-cb:checked) {
  background: rgba(0,255,163,0.04);
  border-color: rgba(0,255,163,0.14);
  color: var(--neon-green);
}
.bp-check-item:has(.bp-cb:checked) span {
  text-decoration: line-through;
  text-decoration-color: rgba(0,255,163,0.4);
  opacity: 0.75;
}
.bp-checklist-rules .bp-check-item:has(.bp-cb:checked) span {
  text-decoration: none;
  opacity: 1;
}

/* Compliance bar */
.bp-compliance-bar {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-top: 1rem;
  padding-top: 0.85rem;
  border-top: 1px solid var(--panel-border);
}
.bp-compliance-label {
  font-size: 0.67rem;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--muted);
  flex-shrink: 0;
}
.bp-progress-track {
  flex: 1;
  height: 6px;
  background: rgba(255,255,255,0.05);
  border-radius: 4px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,0.04);
}
.bp-progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--neon-green), var(--cyan));
  border-radius: 4px;
  transition: width 0.35s ease;
  box-shadow: 0 0 8px rgba(0,255,163,0.5);
}
.bp-compliance-pct {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.73rem;
  color: var(--muted-strong);
  flex-shrink: 0;
  min-width: 2.4rem;
  text-align: right;
}

/* ── Timeline sidebar ── */
.bp-timeline-panel {
  padding: 1rem 0.95rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.bp-timeline-head .panel-title {
  font-size: 0.92rem;
}

.bp-tl-top {
  text-align: left;
  padding: 0.8rem 0.9rem;
  border: 1px solid var(--panel-border);
  border-radius: 12px;
  background: rgba(255,255,255,0.03);
}
.bp-tl-micro {
  font-size: 0.6rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--muted);
  margin-bottom: 0.28rem;
}
.bp-tl-countdown {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 1.52rem;
  font-weight: 800;
  color: var(--cyan);
  text-shadow: 0 0 12px rgba(0,255,255,0.45);
  letter-spacing: 0.02em;
  line-height: 1.15;
  transition: color 0.4s ease, text-shadow 0.4s ease;
}
.bp-tl-open-time {
  font-size: 0.68rem;
  color: var(--muted);
  margin-top: 0.3rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.bp-tl-time-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.45rem;
  padding-inline: 0.1rem;
}
.bp-tl-clock {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--text);
  letter-spacing: 0.04em;
}
.bp-tl-tz {
  font-size: 0.6rem;
  color: var(--muted);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.bp-tl-session-now {
  text-align: center;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.66rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  padding: 0.22rem 0.5rem;
  border: 1px solid var(--panel-border);
  border-radius: 6px;
  background: rgba(0,0,0,0.3);
}
.bp-tl-session-now.bp-tl-session-now-asia   { color: rgba(180,0,255,0.85); border-color: rgba(180,0,255,0.22); background: rgba(180,0,255,0.06); }
.bp-tl-session-now.bp-tl-session-now-london { color: var(--blue); border-color: rgba(0,212,255,0.22); background: rgba(0,212,255,0.06); }
.bp-tl-session-now.bp-tl-session-now-ny     { color: var(--neon-green); border-color: rgba(0,255,163,0.25); background: rgba(0,255,163,0.07); text-shadow: 0 0 8px rgba(0,255,163,0.3); }
.bp-tl-status-line {
  font-size: 0.7rem;
  color: var(--muted-strong);
  line-height: 1.45;
  padding: 0 0.1rem;
}
.bp-tl-bar-wrap {
  display: grid;
}
.bp-tl-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.5rem;
}

/* Session table in sidebar */
.bp-session-table {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  padding-top: 0.1rem;
}
.bp-sess-row {
  display: grid;
  grid-template-columns: 10px minmax(0, 1fr);
  gap: 0.55rem 0.7rem;
  padding: 0.8rem 0.85rem;
  border-radius: 12px;
  border: 1px solid var(--panel-border);
  background: rgba(255,255,255,0.028);
  font-size: 0.68rem;
  color: var(--muted);
  transition: background 0.2s, border-color 0.2s;
}
.bp-sess-row.bp-sess-active {
  color: var(--text);
  background: rgba(255,255,255,0.05);
  border-color: rgba(87,213,255,0.2);
  font-weight: 600;
}
.bp-sess-row.bp-sess-past { opacity: 0.58; }
.bp-sess-dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  flex-shrink: 0;
  margin-top: 0.36rem;
}
.bp-sess-dot-asia   { background: var(--neon-purple); opacity: 0.7; }
.bp-sess-dot-london { background: var(--blue); opacity: 0.8; }
.bp-sess-dot-ny     { background: var(--neon-green); }
.bp-sess-main {
  display: grid;
  gap: 0.4rem;
}
.bp-sess-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem;
}
.bp-sess-name {
  font-size: 0.76rem;
  font-weight: 700;
  color: var(--text);
}
.bp-sess-state {
  font-size: 0.6rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}
.bp-sess-time {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.64rem;
  color: var(--muted);
  white-space: nowrap;
}
.bp-sess-row.bp-sess-active .bp-sess-time { color: var(--cyan); }
.bp-sess-detail {
  font-size: 0.68rem;
  color: var(--muted-strong);
}
.bp-sess-progress {
  width: 100%;
  height: 8px;
  border-radius: 999px;
  background: rgba(255,255,255,0.06);
  overflow: hidden;
}
.bp-sess-progress-fill {
  height: 100%;
  width: 0%;
  border-radius: inherit;
  background: linear-gradient(90deg, rgba(87,213,255,0.55), rgba(87,213,255,0.95));
  box-shadow: 0 0 12px rgba(87,213,255,0.28);
}
.bp-sess-progress-fill.bp-sess-fill-asia {
  background: linear-gradient(90deg, rgba(180,0,255,0.42), rgba(180,0,255,0.9));
  box-shadow: 0 0 12px rgba(180,0,255,0.26);
}
.bp-sess-progress-fill.bp-sess-fill-london {
  background: linear-gradient(90deg, rgba(0,212,255,0.42), rgba(0,212,255,0.92));
}
.bp-sess-progress-fill.bp-sess-fill-ny {
  background: linear-gradient(90deg, rgba(0,255,163,0.42), rgba(0,255,163,0.95));
  box-shadow: 0 0 12px rgba(0,255,163,0.24);
}

.bp-strip-seg {
  display: grid;
  gap: 0.35rem;
}

.bp-strip-label {
  display: grid;
  gap: 0.18rem;
  font-size: 0.6rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
}

.bp-strip-name {
  color: var(--muted-strong);
  line-height: 1.25;
}

.bp-strip-time {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.58rem;
  letter-spacing: 0.03em;
  text-transform: none;
  color: var(--muted);
  line-height: 1.3;
}

.bp-strip-track {
  height: 10px;
  border-radius: 999px;
  background: rgba(255,255,255,0.06);
  overflow: hidden;
  border: 1px solid rgba(255,255,255,0.06);
}

.bp-strip-fill {
  height: 100%;
  width: 0%;
  border-radius: inherit;
}

.bp-strip-fill.bp-strip-asia {
  background: linear-gradient(90deg, rgba(180,0,255,0.38), rgba(180,0,255,0.9));
}

.bp-strip-fill.bp-strip-london {
  background: linear-gradient(90deg, rgba(0,212,255,0.38), rgba(0,212,255,0.95));
}

.bp-strip-fill.bp-strip-ny {
  background: linear-gradient(90deg, rgba(0,255,163,0.38), rgba(0,255,163,0.95));
}

.bp-reminder {
  margin: 0 0 1rem;
  padding: 0.95rem 1rem;
  border-radius: 14px;
  border: 1px solid rgba(0,212,255,0.18);
  background: rgba(7, 15, 28, 0.82);
  color: var(--text);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.03);
}
.bp-reminder.is-warning { border-color: rgba(255, 209, 102, 0.28); color: #ffe29a; }
.bp-reminder.is-good { border-color: rgba(0,255,163,0.24); color: var(--neon-green); }

.bp-mantra-strip {
  display: grid;
  gap: 0.75rem;
  margin-top: 1rem;
}

.bp-positive-board {
  margin-top: 1rem;
  display: grid;
  gap: 0.8rem;
}
.bp-positive-title {
  font-size: 0.82rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}
.bp-positive-grid,
.bp-account-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 0.9rem;
}
.bp-positive-card {
  border: 1px solid var(--panel-border);
  background: rgba(255,255,255,0.025);
  border-radius: 10px;
  padding: 1rem 1.1rem;
  transition: border-color 0.2s, background 0.2s;
}
.bp-positive-card:hover {
  border-color: rgba(255,255,255,0.12);
  background: rgba(255,255,255,0.04);
}
.bp-account-card {
  border: 1px solid var(--panel-border);
  background: rgba(255,255,255,0.025);
  border-radius: 10px;
  padding: 0.95rem;
}
.bp-positive-label,
.bp-account-meta,
.bp-habit-meta {
  font-size: 0.7rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.bp-positive-value {
  margin-top: 0.3rem;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--text);
  line-height: 1.2;
}
.bp-positive-value.sig-pos { color: var(--neon-green); }
.bp-positive-value.sig-neg { color: var(--red); }
.bp-account-name {
  margin-top: 0.35rem;
  font-size: 1rem;
  font-weight: 700;
  color: var(--text);
}
.bp-positive-meta {
  margin-top: 0.5rem;
  font-size: 0.8rem;
  line-height: 1.5;
  color: var(--muted-strong);
}

.bp-account-card-head,
.bp-habit-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem;
}
.bp-account-status,
.bp-habit-score {
  white-space: nowrap;
  font-size: 0.8rem;
  padding: 0.34rem 0.58rem;
  border-radius: 999px;
  border: 1px solid rgba(0,212,255,0.14);
  color: var(--blue);
  background: rgba(0,212,255,0.06);
}
.bp-account-bullets {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-top: 0.9rem;
}
.bp-bullet-pill {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.58rem 0.8rem;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.08);
  background: rgba(255,255,255,0.03);
  color: var(--text);
  cursor: pointer;
}
.bp-bullet-pill input {
  appearance: none;
  width: 0.95rem;
  height: 0.95rem;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.24);
  background: rgba(255,255,255,0.03);
  margin: 0;
}
.bp-bullet-pill input:checked {
  background: var(--neon-green);
  border-color: rgba(0,255,163,0.42);
  box-shadow: 0 0 14px rgba(0,255,163,0.34);
}
.bp-account-card-warn { border-color: rgba(255, 209, 102, 0.22); }
.bp-account-card-done {
  border-color: rgba(255, 0, 80, 0.24);
  box-shadow: inset 0 0 0 1px rgba(255,0,80,0.08);
}
.bp-account-card-done .bp-account-status {
  color: #ff9ab5;
  border-color: rgba(255,0,80,0.24);
  background: rgba(255,0,80,0.08);
}
.bp-account-empty {
  padding: 1rem;
  border-radius: 14px;
  border: 1px dashed rgba(255,255,255,0.12);
  color: var(--muted);
}

.bp-habit-check { flex: 1; }
.bp-habit-meta { margin: 0.8rem 0 0.7rem; }
.bp-habit-grid {
  display: grid;
  grid-template-columns: repeat(18, minmax(0, 1fr));
  gap: 0.35rem;
}
.bp-habit-cell {
  aspect-ratio: 1;
  border-radius: 6px;
  border: 1px solid rgba(255,255,255,0.06);
  background: rgba(255,255,255,0.03);
}
.bp-habit-cell.done {
  background: rgba(0,255,163,0.22);
  border-color: rgba(0,255,163,0.28);
  box-shadow: 0 0 10px rgba(0,255,163,0.12);
}
.bp-habit-cell.partial {
  background: rgba(255, 209, 102, 0.16);
  border-color: rgba(255, 209, 102, 0.28);
}
.bp-habit-cell.today {
  outline: 1px solid rgba(0,212,255,0.38);
  outline-offset: 1px;
}

.bp-reflection-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

/* ── Journal Signals (Profile Framing) ── */
.bp-journal-signals { margin: 0 0 1.1rem; }
.bp-signals-title {
  font-size: 0.6rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.09em;
  margin-bottom: 0.5rem;
}
.bp-signals-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 0.5rem;
}
.bp-signal-card {
  padding: 0.6rem 0.8rem;
  background: rgba(0,0,0,0.3);
  border: 1px solid var(--panel-border);
  border-radius: 8px;
}
.bp-signal-label {
  font-size: 0.58rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.07em;
  margin-bottom: 0.25rem;
}
.bp-signal-value {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 0.2rem;
}
.bp-signal-meta {
  font-size: 0.65rem;
  color: var(--muted);
  line-height: 1.4;
}
.bp-signal-value.sig-up   { color: var(--neon-green); }
.bp-signal-value.sig-down { color: var(--red); }
.bp-signal-value.sig-flat { color: var(--blue); }
.bp-signals-empty {
  font-size: 0.75rem;
  color: var(--muted);
  font-style: italic;
  padding: 0.4rem 0;
}

/* ── Walk-Away Lock ── */
.bp-walkaway-wrap {
  margin: 0.8rem 0 0.2rem;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}
.bp-walkaway-sessions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.6rem;
}
.bp-walkaway-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.7rem 1rem;
  border-radius: 10px;
  border: 1px solid rgba(255,0,80,0.35);
  background: rgba(255,0,80,0.05);
  color: var(--red);
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.78rem;
  font-weight: 600;
  cursor: pointer;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  transition: background 0.15s, border-color 0.15s;
}
.bp-walkaway-btn:hover:not(:disabled) {
  background: rgba(255,0,80,0.12);
  border-color: rgba(255,0,80,0.6);
}
.bp-walkaway-btn.locked {
  border-color: rgba(255,0,80,0.6);
  background: rgba(255,0,80,0.13);
  color: var(--red);
  cursor: default;
}
.bp-walkaway-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}
.bp-walkaway-status {
  padding: 0.6rem 0.9rem;
  border-radius: 8px;
  font-size: 0.78rem;
  line-height: 1.5;
  border-left: 2px solid transparent;
}
.bp-walkaway-status.wa-locked {
  border-left-color: var(--red);
  background: rgba(255,0,80,0.06);
  color: var(--red);
}
.bp-walkaway-status.wa-clear {
  border-left-color: var(--neon-green);
  background: rgba(0,255,163,0.04);
  color: var(--neon-green);
  font-size: 0.72rem;
}
.bp-walkaway-status.wa-partial {
  border-left-color: var(--warn);
  background: rgba(255,200,0,0.05);
  color: var(--warn);
}

/* ── Mindset Fuel sidebar panel ── */
.bp-motiv-sidebar {
  padding: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}
.bp-motiv-sidebar-hdr {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.62rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--muted);
  font-weight: 600;
}
.bp-motiv-next-sm {
  background: none;
  border: 1px solid var(--panel-border);
  color: var(--muted);
  font-size: 0.6rem;
  padding: 0.15rem 0.5rem;
  border-radius: 5px;
  cursor: pointer;
  letter-spacing: 0.04em;
  transition: border-color 0.2s, color 0.2s;
}
.bp-motiv-next-sm:hover { border-color: var(--cyan); color: var(--cyan); }
.bp-motiv-sidebar .bp-motiv-text {
  font-size: 0.78rem;
  line-height: 1.6;
  color: var(--text);
  font-style: italic;
  transition: opacity 0.22s ease, transform 0.22s ease;
}
.bp-motiv-sidebar .bp-motiv-author {
  font-size: 0.62rem;
  color: var(--muted);
  text-align: right;
  margin-top: 0;
}

/* ── Support / visitor stats sidebar panel ── */
.bp-support-sidebar {
  padding: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}
.bp-support-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem;
}
.bp-support-title {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text);
}
.bp-support-sub {
  margin-top: 0.2rem;
  font-size: 0.68rem;
  color: var(--muted);
  line-height: 1.4;
}
.bp-kofi-link {
  align-self: flex-start;
  text-decoration: none;
  font-size: 0.68rem;
  color: var(--muted-strong);
  border: 1px solid var(--panel-border);
  border-radius: 999px;
  padding: 0.28rem 0.68rem;
  transition: color 0.18s ease, border-color 0.18s ease, background 0.18s ease;
}
.bp-kofi-link:hover {
  color: var(--cyan);
  border-color: rgba(66, 200, 232, 0.25);
  background: rgba(66, 200, 232, 0.06);
}
.public-stats-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.55rem;
}
.public-stat-card {
  min-width: 0;
  padding: 0.7rem 0.75rem;
  border-radius: 10px;
  border: 1px solid var(--panel-border);
  background: rgba(255, 255, 255, 0.025);
}
.public-stat-k {
  font-size: 0.62rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.public-stat-v {
  margin-top: 0.28rem;
  font-family: 'Orbitron', sans-serif;
  font-size: 1rem;
  color: var(--cyan);
  letter-spacing: 0.03em;
}
.public-stats-meta {
  font-size: 0.65rem;
  line-height: 1.45;
  color: var(--muted);
}

.feedback-shell {
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
  padding-top: 0.2rem;
  border-top: 1px solid rgba(255,255,255,0.06);
}
.feedback-head {
  display: flex;
  flex-direction: column;
  gap: 0.18rem;
}
.feedback-title {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text);
}
.feedback-sub {
  font-size: 0.66rem;
  line-height: 1.45;
  color: var(--muted);
}
.feedback-form {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}
.feedback-row {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}
.feedback-select,
.feedback-input,
.feedback-textarea {
  width: 100%;
}
.feedback-input {
  font-size: 0.78rem;
  padding: 0.58rem 0.8rem;
}
.feedback-textarea {
  min-height: 88px;
  resize: vertical;
}
.feedback-actions {
  display: flex;
  align-items: center;
  gap: 0.65rem;
}
.feedback-status {
  min-width: 0;
  font-size: 0.64rem;
  line-height: 1.4;
  color: var(--muted);
}
.feedback-status.success { color: var(--neon-green); }
.feedback-status.error { color: var(--warn); }

/* ── Theme variants ── */
body[data-theme="bloomberg"] {
  --bg: #0b0c0f;
  --bg-soft: #111317;
  --panel: rgba(18, 20, 24, 0.97);
  --panel-2: rgba(24, 26, 31, 0.98);
  --panel-border: rgba(255, 196, 87, 0.16);
  --panel-border-strong: rgba(255, 196, 87, 0.34);
  --text: #f4ebd7;
  --muted: #b59d74;
  --muted-strong: #dcc6a1;
  --cyan: #ffc857;
  --cyan-soft: rgba(255, 200, 87, 0.1);
  --blue: #f6d47f;
  --green: #dbc06a;
  --red: #ff7a3a;
  --warn: #ffd56f;
  --magenta: #ffb347;
  --neon-green: #f0cb70;
  --neon-pink: #ff9f43;
  --neon-purple: #f2c55c;
  --shadow: 0 14px 34px rgba(0, 0, 0, 0.42);
  --chart-text: #e9dcc0;
  --chart-tick: #c1aa7d;
  --chart-grid: rgba(193, 170, 125, 0.12);
  --chart-primary: #ffc857;
  --chart-primary-fill: rgba(255, 200, 87, 0.2);
  --chart-hot: rgba(255, 179, 71, 0.82);
  --chart-loss: rgba(255, 122, 58, 0.92);
  --chart-profit-strong: rgba(234, 203, 106, 0.92);
  --chart-profit: rgba(234, 203, 106, 0.76);
  --chart-warning: rgba(255, 213, 111, 0.82);
  --chart-danger: rgba(255, 122, 58, 0.88);
  --chart-line: rgba(255, 190, 74, 0.95);
  --chart-surface-stroke: rgba(16, 13, 10, 0.95);
  background:
    radial-gradient(900px at 14% -10%, rgba(255, 196, 87, 0.08), transparent 55%),
    radial-gradient(850px at 105% 0%, rgba(255, 136, 56, 0.1), transparent 52%),
    linear-gradient(180deg, #09090b 0%, #111317 58%, #15181d 100%);
}

body[data-theme="bloomberg"]::before {
  background: radial-gradient(1000px at 18% 6%, rgba(255, 196, 87, 0.05), transparent);
}

body[data-theme="bloomberg"] .bg-grid {
  background-image:
    linear-gradient(rgba(255, 196, 87, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 136, 56, 0.028) 1px, transparent 1px);
}

body[data-theme="bloomberg"] .route-nav {
  border-color: rgba(255, 196, 87, 0.12);
  background: rgba(17, 18, 21, 0.92);
}

body[data-theme="bloomberg"] .route-link.active,
body[data-theme="bloomberg"] .tab-btn.active,
body[data-theme="bloomberg"] .tz-select,
body[data-theme="bloomberg"] .neon-btn,
body[data-theme="bloomberg"] .loaded-files-inline li,
body[data-theme="bloomberg"] .pill {
  border-color: rgba(255, 196, 87, 0.34);
  background: rgba(255, 196, 87, 0.1);
  color: #fff1c8;
}

body[data-theme="bloomberg"] .ghost-btn,
body[data-theme="bloomberg"] #clearStorageBtn.ghost-btn {
  border-color: rgba(255, 122, 58, 0.28);
  background: rgba(255, 122, 58, 0.09);
  color: #ffd7bf;
}

body[data-theme="bloomberg"] .eyebrow,
body[data-theme="bloomberg"] .mini-panel-title,
body[data-theme="bloomberg"] .trade-window-label,
body[data-theme="bloomberg"] .tz-label,
body[data-theme="bloomberg"] .drop-copy strong,
body[data-theme="bloomberg"] .panel-title,
body[data-theme="bloomberg"] .kpi-card .label,
body[data-theme="bloomberg"] .subpanel-title,
body[data-theme="bloomberg"] .neon-accent {
  color: #ffc857;
  text-shadow: 0 0 16px rgba(255, 196, 87, 0.18);
}

body[data-theme="bloomberg"] h1 {
  text-shadow: 0 0 20px rgba(255, 184, 65, 0.14);
}

body[data-theme="aurora"] {
  --bg: #07111f;
  --bg-soft: #0c1730;
  --panel: rgba(12, 18, 36, 0.97);
  --panel-2: rgba(16, 25, 48, 0.98);
  --panel-border: rgba(138, 122, 255, 0.18);
  --panel-border-strong: rgba(125, 240, 205, 0.26);
  --text: #eaf1ff;
  --muted: #90a4c8;
  --muted-strong: #bed0f4;
  --cyan: #7fe8ff;
  --cyan-soft: rgba(127, 232, 255, 0.1);
  --blue: #8ea8ff;
  --green: #7df0cd;
  --red: #ff7fb5;
  --warn: #cab1ff;
  --magenta: #b58cff;
  --neon-green: #7df0cd;
  --neon-pink: #ff7fb5;
  --neon-purple: #a289ff;
  --shadow: 0 16px 38px rgba(3, 7, 20, 0.5);
  --chart-text: #d8e5ff;
  --chart-tick: #9caed1;
  --chart-grid: rgba(132, 152, 199, 0.1);
  --chart-primary: #7fe8ff;
  --chart-primary-fill: rgba(127, 232, 255, 0.18);
  --chart-hot: rgba(181, 140, 255, 0.82);
  --chart-loss: rgba(255, 127, 181, 0.9);
  --chart-profit-strong: rgba(125, 240, 205, 0.92);
  --chart-profit: rgba(125, 240, 205, 0.76);
  --chart-warning: rgba(202, 177, 255, 0.82);
  --chart-danger: rgba(255, 127, 181, 0.86);
  --chart-line: rgba(127, 232, 255, 0.95);
  --chart-surface-stroke: rgba(7, 12, 24, 0.95);
  background:
    radial-gradient(950px at 16% -8%, rgba(127, 232, 255, 0.1), transparent 52%),
    radial-gradient(900px at 108% 0%, rgba(181, 140, 255, 0.12), transparent 56%),
    linear-gradient(180deg, #06101d 0%, #0d1830 56%, #111a36 100%);
}

body[data-theme="aurora"]::before {
  background: radial-gradient(900px at 18% 4%, rgba(127, 232, 255, 0.05), transparent);
}

body[data-theme="aurora"] .bg-grid {
  background-image:
    linear-gradient(rgba(127, 232, 255, 0.026) 1px, transparent 1px),
    linear-gradient(90deg, rgba(181, 140, 255, 0.03) 1px, transparent 1px);
}

body[data-theme="aurora"] .route-nav {
  border-color: rgba(138, 122, 255, 0.14);
  background: rgba(10, 15, 28, 0.9);
}

body[data-theme="aurora"] .route-link.active,
body[data-theme="aurora"] .tab-btn.active,
body[data-theme="aurora"] .tz-select,
body[data-theme="aurora"] .neon-btn,
body[data-theme="aurora"] .loaded-files-inline li,
body[data-theme="aurora"] .pill {
  border-color: rgba(127, 232, 255, 0.3);
  background: rgba(127, 232, 255, 0.1);
  color: #e8fbff;
}

body[data-theme="aurora"] .ghost-btn,
body[data-theme="aurora"] #clearStorageBtn.ghost-btn {
  border-color: rgba(255, 127, 181, 0.28);
  background: rgba(255, 127, 181, 0.1);
  color: #ffd8ea;
}

body[data-theme="aurora"] .eyebrow,
body[data-theme="aurora"] .mini-panel-title,
body[data-theme="aurora"] .trade-window-label,
body[data-theme="aurora"] .tz-label,
body[data-theme="aurora"] .drop-copy strong,
body[data-theme="aurora"] .panel-title,
body[data-theme="aurora"] .kpi-card .label,
body[data-theme="aurora"] .subpanel-title,
body[data-theme="aurora"] .neon-accent {
  color: #8fe9ff;
  text-shadow: 0 0 18px rgba(127, 232, 255, 0.16);
}

body[data-theme="aurora"] h1 {
  text-shadow: 0 0 22px rgba(181, 140, 255, 0.18);
}

/* ── Setup table untagged row ── */
.setup-row-untagged { opacity: 0.65; }
.setup-name-untagged { color: var(--muted); font-style: italic; }

/* ── Market Structure Bias ── */
.bp-bias-result {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.78rem;
  font-weight: 700;
  padding: 0.42rem 0.85rem;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.1);
  background: rgba(255,255,255,0.04);
  color: var(--muted);
  white-space: nowrap;
  letter-spacing: 0.04em;
  transition: all 0.35s ease;
}
.bp-bias-result.bias-long  { color: var(--neon-green); border-color: rgba(0,255,163,0.3); background: rgba(0,255,163,0.07); text-shadow: 0 0 12px rgba(0,255,163,0.4); }
.bp-bias-result.bias-short { color: var(--red); border-color: rgba(255,0,80,0.3); background: rgba(255,0,80,0.07); text-shadow: 0 0 12px rgba(255,0,80,0.4); }
.bp-bias-result.bias-range { color: var(--warn); border-color: rgba(255,200,0,0.3); background: rgba(255,200,0,0.07); text-shadow: 0 0 12px rgba(255,200,0,0.35); }
.bp-bias-label { font-size: 0.82rem; font-weight: 700; }
.bp-bias-score { font-size: 0.65rem; opacity: 0.75; }

.bp-struct-questions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.7rem 1rem;
  margin: 0.85rem 0;
}
.bp-struct-q { display: flex; flex-direction: column; gap: 0.35rem; }
.bp-struct-label { font-size: 0.72rem; color: var(--muted); font-weight: 500; }
.bp-struct-sel { font-size: 0.8rem; }

/* ── Walk-away gate notice ── */
.bp-gate-notice {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.65rem 0.9rem;
  margin-bottom: 0.9rem;
  border-radius: 10px;
  border: 1px solid rgba(255,200,0,0.22);
  background: rgba(255,200,0,0.05);
  color: var(--warn);
  font-size: 0.78rem;
  font-weight: 500;
}

/* ── 90-Day Habit Game — dopamine redesign ── */
.bp-habit-score-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.1rem;
  padding: 1.2rem 1rem;
  border-radius: 20px;
  border: 1px solid rgba(0,255,163,0.14);
  background: linear-gradient(135deg, rgba(0,255,163,0.06), rgba(0,0,0,0));
  margin: 0.8rem 0;
}
.bp-habit-flame { font-size: 1.5rem; min-height: 1.8rem; line-height: 1; }
.bp-habit-streak-num {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 4rem;
  font-weight: 900;
  line-height: 1;
  color: var(--neon-green);
  text-shadow: 0 0 40px rgba(0,255,163,0.55), 0 0 80px rgba(0,255,163,0.25);
  letter-spacing: -0.02em;
}
.bp-habit-streak-label {
  font-size: 0.6rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(0,255,163,0.6);
  font-weight: 600;
  margin-top: 0.1rem;
}
.bp-habit-progress-bar {
  height: 4px;
  background: rgba(255,255,255,0.06);
  border-radius: 4px;
  overflow: hidden;
  margin: 0.55rem 0 0.35rem;
}
.bp-habit-progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--neon-green), var(--cyan));
  border-radius: 4px;
  transition: width 0.6s ease;
}
.bp-habit-stats {
  font-size: 0.7rem;
  color: var(--muted);
  text-align: center;
  margin-bottom: 0.2rem;
}
.bp-habit-grid {
  display: grid;
  grid-template-columns: repeat(13, minmax(0, 1fr));
  gap: 0.28rem;
  margin: 0.8rem 0 0;
}
.bp-habit-cell {
  aspect-ratio: 1;
  border-radius: 5px;
  border: 1px solid rgba(255,255,255,0.05);
  background: rgba(255,255,255,0.025);
  cursor: default;
  transition: transform 0.12s ease, box-shadow 0.12s ease;
}
.bp-habit-cell:hover { transform: scale(1.4); z-index: 10; position: relative; }
.bp-habit-cell.week-gap { margin-left: 4px; }
.bp-habit-cell.done          { background: rgba(0,255,163,0.14); border-color: rgba(0,255,163,0.2); }
.bp-habit-cell.done.streak-1 { background: rgba(0,255,163,0.18); box-shadow: 0 0 5px rgba(0,255,163,0.1); }
.bp-habit-cell.done.streak-2 { background: rgba(0,255,163,0.27); border-color: rgba(0,255,163,0.3); box-shadow: 0 0 9px rgba(0,255,163,0.2); }
.bp-habit-cell.done.streak-3 { background: rgba(0,255,163,0.38); border-color: rgba(0,255,163,0.42); box-shadow: 0 0 13px rgba(0,255,163,0.32); }
.bp-habit-cell.done.streak-4 { background: rgba(0,255,163,0.52); border-color: rgba(0,255,163,0.58); box-shadow: 0 0 18px rgba(0,255,163,0.44); }
.bp-habit-cell.done.streak-5 { background: rgba(0,255,163,0.68); border-color: rgba(0,255,163,0.78); box-shadow: 0 0 24px rgba(0,255,163,0.58); }
.bp-habit-cell.partial { background: rgba(255,209,102,0.13); border-color: rgba(255,209,102,0.25); }
.bp-habit-cell.milestone { outline: 1px solid rgba(255,209,102,0.45); outline-offset: 1px; }
.bp-habit-cell.today { outline: 2px solid var(--cyan); outline-offset: 2px; }

/* ── Motivational section ── */
.bp-motivation-section { overflow: hidden; }
.bp-motiv-card {
  margin-top: 0.75rem;
  padding: 1.5rem 1.8rem;
  border-radius: 18px;
  border: 1px solid rgba(255,255,255,0.06);
  background: linear-gradient(135deg, rgba(180,0,255,0.04), rgba(0,212,255,0.03), rgba(0,0,0,0));
  position: relative;
  overflow: hidden;
}
.bp-motiv-card::before {
  content: "\201C";
  position: absolute;
  top: -0.5rem;
  left: 0.8rem;
  font-size: 6rem;
  line-height: 1;
  color: rgba(255,255,255,0.04);
  font-family: Georgia, serif;
  pointer-events: none;
}
.bp-motiv-text {
  font-size: 1.05rem;
  line-height: 1.65;
  color: #d7e6ff;
  font-style: italic;
  position: relative;
  z-index: 1;
  transition: opacity 0.22s ease, transform 0.22s ease;
}
.bp-motiv-author {
  margin-top: 1rem;
  font-size: 0.72rem;
  color: var(--muted);
  letter-spacing: 0.06em;
  text-align: right;
}

/* Responsive */
@media (max-width: 900px) {
  .suite-analytics-grid {
    grid-template-columns: 1fr;
  }
  .page-with-sidebar { flex-direction: column-reverse; }
  .bp-sidebar {
    position: static;
    width: 100%;
    flex: none;
    max-height: none;
    overflow: visible;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 0.75rem;
  }
  .bp-timeline-panel {
    flex: 1 1 280px;
    gap: 0.8rem;
  }
  .bp-tl-strip {
    grid-template-columns: 1fr;
  }
  .bp-motiv-sidebar { flex: 1 1 260px; }
  .bp-support-sidebar { flex: 1 1 260px; }
}
@media (max-width: 560px) {
  .suite-analytics-summary {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .bp-form-grid { grid-template-columns: 1fr; }
  .setup-library-form {
    grid-template-columns: 1fr;
  }
  .bp-sess-head,
  .bp-strip-label,
  .bp-tl-time-row {
    flex-direction: column;
    align-items: flex-start;
  }
  .bp-struct-questions { grid-template-columns: 1fr; }
  .bp-habit-grid { grid-template-columns: repeat(10, minmax(0, 1fr)); }
}
