/* setups page: the sentence, the builder rows, and the History summary */
.su-sentence { margin: 12px 0 4px; font-size: 15px; line-height: 1.45; color: #1f2937; }
.su-note { font-size: 13px; color: #4b5563; line-height: 1.45; margin: 0 0 6px; max-width: 900px; }
.su-tools { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; margin: 4px 0 8px; font-size: 13px; }
.su-tools button { padding: 3px 10px; }
.su-name { width: 220px; padding: 4px 6px; border: 1px solid #ccc; border-radius: 4px; font: 13px system-ui, sans-serif; }
.su-share-link { flex: 1 1 260px; min-width: 0; padding: 4px 6px; border: 1px solid #ddd; border-radius: 4px; font: 12px ui-monospace, monospace; color: #374151; }
.su-builder { display: flex; flex-direction: column; gap: 8px; padding: 6px 0 10px; }
.su-side { display: flex; align-items: center; gap: 10px; font-size: 13px; }
.su-rows { display: flex; flex-direction: column; gap: 6px; }
.su-row { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; }
.su-ctype { width: 230px; } .su-ccol { flex: 1 1 340px; min-width: 240px; } .su-cop { width: 150px; }
.su-num { width: 80px; padding: 6px 6px; border: 1px solid #ccc; border-radius: 4px; font: 14px system-ui, sans-serif; }
.su-unit { font-size: 12px; color: #595959; min-width: 40px; }
.app .su-del { padding: 2px 10px; }
.su-buttons { display: flex; gap: 8px; }
.su-wrap { margin: 6px 0 20px; }
.su-up { color: #16a34a; } .su-down { color: #dc2626; } .su-base { color: #6b6b6b; font-size: 12px; }
.su-summary { margin: 4px 0; }
.su-sum-table { border-collapse: collapse; font-size: 13px; }
.su-sum-table th, .su-sum-table td { padding: 4px 12px 4px 0; text-align: left; white-space: nowrap; }
.su-sum-table th { font-size: 12px; color: #595959; font-weight: 500; border-bottom: 1px solid #e5e5e5; }
.su-trade-line { font-size: 13px; margin: 8px 0; color: #333; line-height: 1.5; }
.su-scopes { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(480px, 100%), 1fr)); gap: 8px 28px; }  /* all tickers | selected */
.su-scope-title { font-size: 13px; margin: 6px 0 4px; }
.su-sum-table .su-under { display: block; font-size: 11px; line-height: 1.2; }
.su-sum-scroll { overflow-x: auto; }
.su-table-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; flex-wrap: wrap; font-size: 13px; }
.su-chart-note { font-size: 12px; color: #6b7280; line-height: 1.4; margin: 0 8px 4px 50px; }
.su-charts { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 3fr); gap: 12px; margin: 6px 0; }  /* after the signal | trades over time */
.su-descriptive { font-size: 12px; color: #5c4400; background: #fff8e6; border: 1px solid #f0d08a; border-radius: 6px; padding: 6px 10px; margin: 8px 0 12px; }

@media (max-width: 700px) {
  .su-summary { overflow-x: auto; }
  .su-charts { grid-template-columns: minmax(0, 1fr); }
  .su-row { padding-bottom: 6px; border-bottom: 1px solid #eee; }
  .su-ctype, .su-cop { flex: 1 1 calc(50% - 4px); width: auto; min-width: 140px; }  /* type and comparison share a line */
  .su-ccol { flex: 1 1 100%; order: 3; min-width: 0; }                                /* the column gets its own line below them */
  .su-num, .su-unit, .su-del { order: 4; }
  .su-sentence { font-size: 14px; }
}
