/* ── Help Tab ──────────────────────────────────────────────────────– */
#help-canvas .help-wrap {
  max-width: 880px;
  margin: 0 auto;
  padding: 18px 22px 40px;
}

#help-canvas h1.help-title {
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--primary);
  margin: 2px 0 6px;
}

#help-canvas p.help-intro {
  font-size: 0.9rem;
  color: var(--muted);
  line-height: 1.5;
  margin: 0 0 14px;
}

#help-canvas h2.help-sec {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text);
  margin: 20px 0 8px;
  padding-top: 12px;
  border-top: 1px solid var(--border);
}

#help-canvas dl.help-list {
  margin: 0;
  display: grid;
  grid-template-columns: 170px 1fr;
  gap: 6px 16px;
}

#help-canvas dl.help-list dt {
  font-weight: 700;
  color: var(--text);
  font-size: 0.85rem;
}

#help-canvas dl.help-list dd {
  margin: 0;
  color: var(--muted);
  font-size: 0.85rem;
  line-height: 1.45;
}

#help-canvas .help-note {
  margin-top: 16px;
  padding: 10px 12px;
  background: var(--hl);
  border: 1px solid var(--hl-border);
  border-radius: 8px;
  font-size: 0.82rem;
  color: var(--text);
  line-height: 1.5;
}

/* ── Charts (Summary Tab) ───────────────────────────────────────────– */
#summary-canvas .summary-wrap {
  overflow: visible;
  padding-bottom: 0;
}

#summary-charts {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin: 18px 20px 28px;
}

#summary-charts .chart-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 12px 14px;
}

#summary-charts .chart-card.chart-wide {
  grid-column: 1 / -1;
}

#summary-charts .chart-title {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text);
  margin: 0 0 8px;
}

#summary-charts .chart-box {
  position: relative;
  height: 300px;
}

/* ── Equity Panel (Summary Tab) ────────────────────────────────────– */
#equity-panel {
  margin: 4px 20px 30px;
}

#equity-panel .eq-title {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--text);
  margin: 0 0 4px;
}

#equity-panel .eq-note {
  font-size: 0.78rem;
  color: var(--muted);
  margin: 0 0 10px;
  line-height: 1.4;
}

#equity-panel table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.82rem;
}

#equity-panel th,
#equity-panel td {
  padding: 6px 8px;
  border-bottom: 1px solid var(--border);
  text-align: center;
}

#equity-panel th:first-child,
#equity-panel td:first-child {
  text-align: left;
}

#equity-panel thead th {
  color: var(--muted);
  font-weight: 700;
}

#equity-panel td.eq-pos {
  color: #dc2626;
  font-weight: 700;
}

#equity-panel td.eq-neg {
  color: #16a34a;
  font-weight: 700;
}

#equity-panel tr.eq-former td {
  color: var(--muted);
  font-style: italic;
}

#equity-panel .eq-empty {
  font-size: 0.82rem;
  color: var(--muted);
  padding: 8px 0;
}

/* ── Print Styles ────────────────────────────────────────────– */
@media print {
  body * {
    visibility: hidden !important;
  }

  /* Ancestors clip or scroll the canvas on screen; neutralise that for print
     so the whole coverage table flows across pages. */
  html,
  body,
  main.workspace-grid,
  .col-canvas {
    overflow: visible !important;
    height: auto !important;
    max-height: none !important;
    position: static !important;
    display: block !important;
  }

  #coverage-canvas,
  #coverage-canvas * {
    visibility: visible !important;
  }

  #coverage-canvas {
    position: absolute;
    left: 0;
    top: 0;
    width: auto;
    display: block !important;
    overflow: visible !important;
    height: auto !important;
    max-height: none !important;
  }

  #coverage-wrap {
    overflow: visible !important;
    height: auto !important;
    max-height: none !important;
  }

  .cov-toolbar,
  .cov-print-btn {
    display: none !important;
  }

  .cov-print-title {
    display: block !important;
    visibility: visible !important;
    font-size: 14pt;
    font-weight: 700;
    margin: 0 0 8px;
    color: #000;
  }

  .cov-chip,
  .day-cell.weekend-row,
  th.weekend {
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
  }

  table.schedule {
    font-size: 8pt;
  }

  @page {
    size: landscape;
    margin: 10mm;
  }
}
