/* CycleForge Two — asset report desk (CF1 scorecard-v1 grid, CF2 sidebar) */

.cf2-main--desk {
  height: 100vh;
  overflow: hidden;
}

.cf2-main--desk .cf2-title-band { flex-shrink: 0; }

.cf2-desk-body {
  flex: 1;
  min-height: 0;
  overflow: hidden;
  padding: var(--desk-gap, 8px) var(--page-pad-x);
  display: flex;
  flex-direction: column;
}

/* Stephen wireframe: B,C left · charts+news right — 1:2 */
.cf2-scorecard-grid {
  flex: 1;
  min-height: 0;
  display: grid;
  gap: var(--desk-gap, 8px);
  grid-template-columns: 1fr;
  grid-template-rows: auto auto auto auto;
}

@media (min-width: 960px) {
  .cf2-scorecard-grid {
    grid-template-columns: minmax(0, 1fr) minmax(0, 2fr);
    grid-template-rows: minmax(140px, 22vh) minmax(0, 1fr) auto;
  }
  .cf2-box--cycle { grid-column: 1; grid-row: 1; }
  /* Span rows 2–3 so left column is a clean rectangle (no gap below sentiment) */
  .cf2-box--sentiment { grid-column: 1; grid-row: 2 / 4; min-height: 0; }
  .cf2-box--charts { grid-column: 2; grid-row: 1 / 3; min-height: 0; }
  .cf2-box--news { grid-column: 2; grid-row: 3; }
}

.cf2-widget {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 10px;
  min-height: 0;
  display: flex;
  flex-direction: column;
}

.cf2-widget-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
  flex-shrink: 0;
}

.cf2-cycle-split {
  flex: 1;
  min-height: 0;
  overflow: auto;
}
.cf2-cycle-facts { color: var(--text); }

.cf2-sent-body { flex: 1; min-height: 0; display: flex; flex-direction: column; }

.cf2-sent-rec {
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 6px;
  flex-shrink: 0;
}

.cf2-sent-reason {
  font-size: 12px;
  color: var(--muted2);
  margin-bottom: 8px;
  line-height: 1.45;
  flex-shrink: 0;
}

.cf2-sent-scroll {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
}

.cf2-snippet-feed { list-style: none; margin: 0; padding: 0; }
.cf2-snippet {
  padding: 8px 0;
  border-bottom: 1px solid var(--border);
  font-size: 12px;
  line-height: 1.45;
}
.cf2-snippet:last-child { border-bottom: none; }
.cf2-snippet-head {
  font-weight: 700;
  color: var(--text);
  margin-bottom: 4px;
  font-size: 13px;
}
.cf2-snippet-body { color: var(--muted2); margin-bottom: 4px; }
.cf2-snippet-text {
  display: inline;
  margin: 0;
  line-height: 1.5;
}
.cf2-snippet-more {
  display: inline;
  margin-left: 4px;
  padding: 0;
  border: none;
  background: none;
  font: inherit;
  font-size: 11px;
  font-weight: 600;
  color: var(--accent-blue, #38bdf8);
  cursor: pointer;
  text-decoration: none;
}
.cf2-snippet-more:hover { text-decoration: underline; }
.cf2-snippet-more--link { margin-left: 6px; }
.cf2-snippet-empty {
  color: var(--muted);
  font-size: 12px;
  padding: 8px 0;
}
.cf2-snippet-meta {
  font-size: 10px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.03em;
}
.cf2-snippet-meta a { color: var(--accent-blue); text-decoration: none; }
.cf2-snippet--group { border-left: 2px solid rgba(52,211,153,0.35); padding-left: 8px; }

.cf2-chart-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 12px;
  margin-bottom: 8px;
  flex-shrink: 0;
}

.cf2-chart-heading {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 1;
  min-width: 180px;
}

.cf2-symbol-select {
  background: var(--bg);
  border: 1px solid var(--border);
  color: var(--text);
  border-radius: 6px;
  padding: 5px 10px;
  font-size: 12px;
}

.cf2-price-line { font-size: 13px; font-weight: 600; }

.cf2-box--charts {
  display: flex;
  flex-direction: column;
  min-height: 0;
}

.cf2-chart-controls {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 12px;
  margin-bottom: 8px;
  flex-shrink: 0;
  padding-bottom: 6px;
  border-bottom: 1px solid var(--border);
}

.cf2-chart-controls .cf2-tf {
  flex-shrink: 0;
}

.cf2-chart-controls .chart-indicators-wrap {
  flex-shrink: 0;
}

.cf2-chart-controls #chart-legend-inline {
  flex: 1 1 auto;
  min-width: 120px;
  margin-left: 0;
}

.cf2-chart-pane {
  flex: 1;
  min-height: 360px;
  width: 100%;
  position: relative;
  overflow: hidden;
  border-radius: 8px;
  background: #0D131F;
  border: 1px solid var(--border);
}

.cf2-chart-source {
  font-size: 10px;
  color: var(--muted);
  margin-left: auto;
  font-family: "JetBrains Mono", ui-monospace, monospace;
  flex-shrink: 0;
}

.cf2-news-track {
  font-size: 12px;
  color: var(--muted2);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-top: 6px;
}

@media (max-width: 959px) {
  .cf2-main--desk { height: auto; overflow: visible; }
  .cf2-desk-body { overflow: visible; }
  .cf2-scorecard-grid { grid-template-rows: auto; }
  .cf2-box--cycle,
  .cf2-box--sentiment,
  .cf2-box--charts,
  .cf2-box--news { grid-column: 1; grid-row: auto; }
  .cf2-chart-pane { min-height: 280px; }
}
