/* compound growth */
[data-tool-page="compound"] .field { grid-template-columns: minmax(0, 1fr); }
[data-tool-page="compound"] .inp input { width: 100%; }
[data-tool-page="compound"] .field-row { align-items: start; }
/* a canvas is a replaced element: inset alone leaves it at 300x150, so size it */
[data-tool-page="compound"] .chart-box > canvas { width: calc(100% - 20px); height: calc(100% - 20px); }
[data-tool-page="compound"] .tool-grid ~ .panel { margin-top: 16px; }
.cp-sub { margin: 6px 0 -4px; font-size: 14px; font-weight: 680; color: var(--text); letter-spacing: -.01em; padding-top: 12px; border-top: 1px solid var(--line); }
.cp-foot { display: flex; flex-wrap: wrap; gap: 10px 14px; align-items: center; padding-top: 4px; }
.cp-msg { margin: 0; padding: 12px 14px; border-radius: 10px; background: var(--bg-sunk); color: var(--text-2); font-size: 13.5px; line-height: 1.6; }
.cp-msg:empty { display: none; }
.cp-box canvas { cursor: crosshair; touch-action: pan-y; }
.cp-lg-b { background: var(--amber-deep); }
.cp-lg-n { background: var(--text-3); }
.cp-lg-d { background: var(--text-2); }
.cp-lg-l { background: var(--down); border-radius: 50% !important; }
.cp-tbl td, .cp-tbl th { padding: 9px 12px; }
.cp-tbl tr.loss td:first-child { color: var(--down); font-weight: 650; }
@media (max-width: 520px) {
  .cp-box.chart-box.tall { height: 340px; }
  .cp-tbl th:nth-child(2), .cp-tbl td:nth-child(2), .cp-tbl th:nth-child(5), .cp-tbl td:nth-child(5) { display: none; }
}
