.performance-page { min-width:0; }
table.trades-grid.compact-trades { min-width:815px; width:100%; table-layout:auto; }
.compact-trades th,.compact-trades td { padding:14px 10px; }
.compact-trades .trade-extra summary { cursor:pointer; display:flex; justify-content:center; }
.compact-trades .trade-extra svg { width:18px; height:18px; }
.compact-trades .trade-extra dl { min-width:160px; padding:12px 0; }
.compact-trades .trade-extra dl>div { display:flex; justify-content:space-between; gap:12px; margin-block:8px; }
.compact-trades .trade-extra dt { color:var(--muted); font-size:11px; }
#trades-table .profit-positive { color:var(--positive)!important; }
#trades-table .profit-negative { color:var(--negative)!important; }
.performance-controls { display:flex; flex-wrap:wrap; align-items:end; gap:12px; margin:24px 0 16px; }
.performance-controls label { display:grid; gap:8px; min-width:150px; flex:1; color:var(--muted); font-size:12px; }
.performance-controls input,.performance-controls select { width:100%; min-width:0; height:44px; border:1px solid var(--line); border-radius:6px; padding:8px 12px; background:var(--surface); color:var(--text); }
.performance-controls input { direction:ltr; }
.performance-controls button { display:flex; align-items:center; justify-content:center; gap:8px; min-height:44px; padding:10px 20px; border:1px solid var(--line); border-radius:6px; }
.performance-controls svg { width:18px; height:18px; }
#month-total { color:var(--muted); font-size:12px; min-height:24px; margin-block:16px; overflow-wrap:anywhere; }
.performance-summary { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); border-block:1px solid var(--line); }
.performance-summary>div { min-width:0; padding:20px 12px; border-bottom:1px solid var(--line); display:grid; gap:10px; }
.performance-summary span { color:var(--muted); font-size:12px; }
.performance-summary strong { font-size:22px; text-align:right; overflow-wrap:anywhere; }
.performance-table-wrap { width:100%; max-width:100%; overflow-x:auto; overscroll-behavior-x:contain; border-block:1px solid var(--line); }
.performance-table { width:100%; min-width:650px; font-variant-numeric:tabular-nums; }
.performance-table th,.performance-table td { padding:14px 16px; white-space:nowrap; text-align:start; border-bottom:1px solid var(--line); font-size:13px; }
.performance-table th { background:var(--surface); color:var(--muted); font-weight:500; }
.performance-table td:last-child { font-weight:700; direction:ltr; }
.performance-table tbody tr:hover { background:var(--surface); }
.performance-page .profit-positive { color:var(--positive)!important; }
.performance-page .profit-negative { color:var(--negative)!important; }
.performance-page .profit-neutral,.performance-empty { color:var(--muted); }
main,.page-section,.panel,.archive-table-wrap,.signal-table-wrap { min-width:0; max-width:100%; }
.report-row>a,.report-row>span,.channel-detail-heading { min-width:0; overflow-wrap:anywhere; }
@media(max-width:640px) {
  .performance-controls { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:12px; }
  .performance-controls label { min-width:0; }
  .performance-controls label:first-child,.performance-controls button { grid-column:1/-1; }
  .performance-controls input,.performance-controls select { font-size:16px; padding-inline:8px; }
  .performance-summary { grid-template-columns:repeat(2,minmax(0,1fr)); }
  .performance-summary>div { padding:16px 8px; }
  .performance-summary strong { font-size:20px; }
  .performance-summary>div:last-child { grid-column:1/-1; }
  .performance-page .month-chart { height:230px; }
  .performance-table th,.performance-table td { padding:12px; }
  .page-section .report-controls { flex-wrap:wrap; }
}
