/* ===== Status Page Bar ===== */
.status-page-bar {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(280px, 1fr);
  gap: 10px;
  align-items: start;
}
.status-page-bar .page-bar-copy { display: contents; }
.status-page-bar .page-bar-actions {
  grid-column: 2; width: auto; min-width: 0;
  display: grid; grid-template-columns: 1fr;
  gap: 8px; align-content: start; justify-items: stretch;
}
.status-page-bar .save-status-panel {
  height: auto; gap: 8px; padding: 12px 14px;
  border-radius: var(--radius-lg); background: var(--panel);
  border: 1px solid var(--line); box-shadow: var(--shadow-soft);
}
.status-page-bar .page-bar-note {
  display: grid; gap: 8px; align-content: start;
  max-width: none; width: 100%; min-width: 0;
  padding: 12px 14px; border-radius: var(--radius-lg);
  background: var(--panel); border: 1px solid var(--line);
  box-shadow: var(--shadow-soft);
}
.status-page-bar .page-bar-note .detail-list { gap: 0; }

/* ===== Hero header ===== */
.status-hero-header {
  display: grid; gap: 3px;
  grid-column: 1 / -1; padding: 3px 0 1px;
}

/* ===== Ticker panel ===== */
.status-hero-ticker {
  grid-column: 1; min-width: 0;
  display: grid; gap: 10px; padding: 14px;
  border: 1px solid var(--line); border-radius: var(--radius-lg);
  background: var(--panel); box-shadow: var(--shadow-soft);
}
.status-hero-ticker-head {
  display: flex; justify-content: space-between;
  gap: 10px; align-items: flex-start;
}
.status-hero-ticker-title {
  margin: 4px 0 0; font-size: 14px; line-height: 1.2;
  font-weight: 700; color: var(--text);
}
.status-hero-ticker .chips { margin-top: 0; }
.ticker-panel { margin-bottom: 0; }

#tickerCanvas {
  width: 100%; display: block; border-radius: var(--radius-md);
  border: 1px solid rgba(0, 212, 255, 0.15);
  background: linear-gradient(180deg, #06090f 0%, #080e18 100%);
}

/* ===== Intelligence Summary ===== */
.intelligence-summary { margin-bottom: 6px; }
.intelligence-card {
  background: var(--panel); border: 1px solid var(--line);
  border-radius: var(--radius-lg); padding: 14px;
  box-shadow: var(--shadow-soft);
}
.intelligence-card .card-header { margin-bottom: 12px; }
.intelligence-grid {
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 8px 14px;
}
.intelligence-metric {
  padding: 10px 12px; border-radius: var(--radius-md);
  background: var(--bg-2); border: 1px solid var(--line);
}
.intelligence-metric-wide { grid-column: 1 / -1; }
.intelligence-metric-label {
  font-size: 10px; font-weight: 700; text-transform: uppercase;
  letter-spacing: .06em; color: var(--muted); margin-bottom: 4px;
}
.intelligence-metric-value {
  font-size: 18px; font-weight: 800; color: var(--text);
  line-height: 1.2; font-variant-numeric: tabular-nums;
  font-family: ui-monospace, "JetBrains Mono", Consolas, monospace;
}
.intelligence-metric-text { font-size: 12px; font-weight: 500; line-height: 1.5; color: var(--text-soft); }

/* ===== Summary grid ===== */
.status-summary-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px; margin-bottom: 10px;
}
.status-summary-grid .card-panel {
  min-width: 0; background: var(--panel);
  border: 1px solid var(--line); border-radius: var(--radius-lg);
  box-shadow: var(--shadow-soft);
}
.status-note { font-size: 11px; line-height: 1.5; color: var(--muted); }

/* ===== Activity section ===== */
.activity-panel { margin-bottom: 0; }

/* ===== Feed panels ===== */
.status-sections {
  display: grid; grid-template-columns: 1fr 1fr; gap: 10px;
}
.status-feed-panel {
  min-width: 0; background: var(--panel);
  border: 1px solid var(--line); border-radius: var(--radius-lg);
  box-shadow: var(--shadow-soft);
}

/* ===== Highlight cards ===== */
.highlight-list { display: grid; gap: 6px; }
.highlight-card {
  padding: 10px 12px; border-radius: var(--radius-md);
  border: 1px solid var(--line); background: var(--panel);
  display: grid; gap: 5px; box-shadow: var(--shadow-soft);
  transition: border-color .2s ease;
}
.highlight-card:hover { border-color: var(--line-strong); }
.highlight-title {
  display: flex; justify-content: space-between; gap: 7px;
  align-items: flex-start; font-weight: 700;
  font-size: 12px; color: var(--text);
}
.highlight-meta { color: var(--muted); font-size: 11px; line-height: 1.4; }

/* ===== Responsive ===== */
/* --- Operations top-right daily P/L -------------------------- */
.experience-ops .topnav-status {
  max-width: min(760px, 54vw);
}
.topnav-status-item.is-profit .value {
  color: var(--good);
}
.topnav-status-item.is-loss .value {
  color: var(--bad, #f54444);
}
.topnav-status-item.is-flat .value {
  color: var(--text-soft);
}

/* --- Today trades panel (Command Desk) ----------------------- */
.today-trades-panel {
  margin-top: 14px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--panel);
  box-shadow: var(--shadow-soft);
}
.today-trades-panel-head {
  display: flex; align-items: center; justify-content: space-between;
  gap: 8px; margin-bottom: 10px;
}
.today-trades-summary {
  display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 4px;
}
.today-stat {
  display: flex; flex-direction: column; gap: 2px;
  padding: 7px 12px; border: 1px solid var(--line);
  border-radius: var(--radius-md); background: var(--bg-2);
  min-width: 72px;
}
.today-stat-label {
  font-size: 9px; text-transform: uppercase; letter-spacing: .06em;
  font-weight: 700; color: var(--muted);
}
.today-stat-value {
  font-size: 14px; font-weight: 700; color: var(--text);
  font-variant-numeric: tabular-nums;
  font-family: ui-monospace, "JetBrains Mono", Consolas, monospace;
}
.today-stat-value.is-win { color: var(--good); }
.today-stat-value.is-loss { color: var(--bad, #f54444); }

.today-td-time { color: var(--muted); font-size: 11px; white-space: nowrap; }
.today-td-dir  { white-space: nowrap; }
.today-td-lane { font-size: 11px; color: var(--text-soft); max-width: 180px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.today-td-reason { font-size: 11px; color: var(--muted); }
.today-td-r, .today-td-money {
  font-family: ui-monospace, "JetBrains Mono", Consolas, monospace;
  font-weight: 600; font-variant-numeric: tabular-nums; white-space: nowrap;
}
.today-td-r.is-win, .today-td-money.is-win { color: var(--good); }
.today-td-r.is-loss, .today-td-money.is-loss { color: var(--bad, #f54444); }

.today-dir-badge {
  display: inline-flex; align-items: center; padding: 2px 7px;
  border-radius: 3px; font-size: 10px; font-weight: 700; letter-spacing: .05em;
}
.today-dir-badge.is-buy  { background: rgba(0,224,122,.12); color: var(--good); border: 1px solid rgba(0,224,122,.25); }
.today-dir-badge.is-sell { background: rgba(245,162,62,.12); color: var(--warn); border: 1px solid rgba(245,162,62,.25); }

.today-wl-badge {
  display: inline-flex; align-items: center; padding: 2px 7px;
  border-radius: 3px; font-size: 10px; font-weight: 700; letter-spacing: .05em;
}
.today-wl-badge.is-win  { background: rgba(0,224,122,.12); color: var(--good); border: 1px solid rgba(0,224,122,.25); }
.today-wl-badge.is-loss { background: rgba(255,68,68,.12);  color: var(--bad,#f54444); border: 1px solid rgba(255,68,68,.25); }

/* Scrollable table — show ~18 rows then scroll */
.today-trades-panel .table-wrap {
  max-height: 612px; /* ~20 rows × 29px + 32px header */
  overflow-y: auto;
}
.today-trades-panel .table-ui thead th {
  position: sticky; top: 0; z-index: 1;
  background: var(--panel);
  box-shadow: 0 1px 0 var(--line);
}

@media (max-width: 1320px) {
  .status-page-bar { grid-template-columns: 1fr; }
  .status-page-bar .page-bar-actions,
  .status-hero-ticker { grid-column: 1; }
  .status-page-bar .page-bar-actions { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .status-summary-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .intelligence-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 1200px) {
  .status-sections { grid-template-columns: 1fr; }
}
@media (max-width: 700px) {
  .status-page-bar .page-bar-actions { grid-template-columns: 1fr; }
  .status-summary-grid { grid-template-columns: 1fr; }
  .intelligence-grid { grid-template-columns: 1fr; }
  .intelligence-card { padding: 12px; }
  .lane-search, .lane-sort-select { min-width: 100%; }
}
