.trade-ideas-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: start;
  gap: 14px;
  padding: 14px;
  background: var(--canvas);
}
.trade-idea-card {
  min-width: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface);
  box-shadow: inset 4px 0 var(--accent);
}
.trade-idea-card.plan-b { box-shadow: inset 4px 0 var(--accent); }
.trade-idea-card-header {
  min-height: 74px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 16px 12px 20px;
  border-bottom: 1px solid var(--line);
  background: linear-gradient(120deg, var(--surface-2), color-mix(in srgb, var(--accent) 8%, var(--surface-2)));
}
.trade-idea-card-header h2 {
  margin: 3px 0 0;
  color: var(--text);
  font-size: 20px;
  line-height: 25px;
}
.trade-plan-key {
  color: var(--accent);
  font: 800 8px/11px var(--mono);
  letter-spacing: .12em;
}
.plan-b .trade-plan-key { color: var(--accent); }
.trade-plan-status {
  max-width: 190px;
  padding: 5px 7px;
  border: 1px solid var(--line-strong);
  border-radius: 6px;
  color: var(--muted);
  background: var(--canvas);
  font: 700 7px/10px var(--mono);
  text-align: right;
}
.plan-b .trade-plan-status { color: var(--amber); border-color: color-mix(in srgb, var(--amber) 45%, var(--line)); background: var(--amber-soft); }
.trade-one-line {
  margin: 0;
  padding: 13px 16px 13px 20px;
  border-bottom: 1px solid var(--line);
  color: var(--text);
  background: color-mix(in srgb, var(--accent) 4%, var(--surface));
  font-size: 13px;
  line-height: 20px;
  font-weight: 650;
}
.trade-idea-section { padding: 13px 16px 0 20px; }
.trade-idea-section-title {
  margin: 0 0 7px;
  color: var(--muted);
  font: 750 8px/11px var(--mono);
  letter-spacing: .1em;
  text-transform: uppercase;
}
.trade-idea-table-wrap {
  max-width: 100%;
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 8px;
}
.trade-idea-table {
  width: 100%;
  border-collapse: collapse;
  table-layout: fixed;
}
.trade-idea-table th,
.trade-idea-table td {
  padding: 8px 9px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  color: var(--body);
  font-size: 10px;
  line-height: 15px;
  text-align: left;
  vertical-align: top;
}
.trade-idea-table th:last-child,
.trade-idea-table td:last-child { border-right: 0; }
.trade-idea-table tr:last-child > * { border-bottom: 0; }
.trade-idea-table thead th {
  color: var(--muted);
  background: var(--surface-2);
  font: 750 7px/10px var(--mono);
  letter-spacing: .08em;
  text-transform: uppercase;
}
.allocation-table th:first-child { width: 15%; }
.allocation-table th:nth-child(2) { width: 24%; }
.trade-fund { color: var(--text) !important; font: 800 11px/15px var(--mono) !important; }
.trade-allocation strong,
.trade-allocation small { display: block; }
.trade-allocation strong { color: var(--accent); font: 800 12px/15px var(--mono); }
.trade-allocation small { margin-top: 2px; color: var(--muted); font: 650 7px/10px var(--mono); }
.why-table th { width: 31%; color: var(--text); background: var(--surface-2); font-weight: 700; }
.comparison-table th { width: 50%; }
.comparison-table .good-heading { color: var(--green); background: var(--green-soft); }
.comparison-table .bad-heading { color: var(--red); background: var(--red-soft); }
.good-cell { box-shadow: inset 3px 0 var(--green); }
.bad-cell { box-shadow: inset 3px 0 var(--red); }
.trade-decision-grid {
  display: grid;
  gap: 7px;
  padding: 13px 16px 14px 20px;
}
.trade-decision {
  display: grid;
  grid-template-columns: 105px minmax(0, 1fr);
  gap: 10px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-2);
}
.trade-decision span {
  color: var(--muted);
  font: 750 7px/11px var(--mono);
  letter-spacing: .08em;
  text-transform: uppercase;
}
.trade-decision strong { color: var(--text); font-size: 10px; line-height: 15px; }
.trade-decision.kill { border-color: color-mix(in srgb, var(--red) 42%, var(--line)); background: var(--red-soft); }
.trade-decision.kill span { color: var(--red); }
.trade-decision.recommendation { border-color: color-mix(in srgb, var(--accent) 42%, var(--line)); }
.trade-decision.recommendation span { color: var(--accent); }
.trade-idea-footer {
  padding: 10px 16px 10px 20px;
  border-top: 1px solid var(--line);
  color: var(--text);
  background: var(--surface-2);
  font: 750 8px/12px var(--mono);
  text-align: right;
}
.trade-ideas-state {
  grid-column: 1 / -1;
  min-height: 220px;
  display: grid;
  place-items: center;
  border: 1px dashed var(--line-strong);
  border-radius: 10px;
  color: var(--muted);
  background: var(--surface);
  font: 700 10px/15px var(--mono);
  text-align: center;
}
.trade-ideas-state.error { color: var(--red); }

@media (max-width: 1000px) {
  .trade-ideas-list { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
  .trade-ideas-list { gap: 10px; padding: 8px; }
  .trade-idea-card-header { align-items: flex-start; padding: 12px 11px 10px 15px; }
  .trade-idea-card-header h2 { font-size: 18px; line-height: 23px; }
  .trade-plan-status { max-width: 125px; }
  .trade-one-line { padding: 11px 11px 11px 15px; font-size: 12px; line-height: 18px; }
  .trade-idea-section { padding: 11px 8px 0 12px; }
  .trade-idea-table th,
  .trade-idea-table td { padding: 7px; font-size: 9px; line-height: 13px; }
  .allocation-table th:first-child { width: 18%; }
  .allocation-table th:nth-child(2) { width: 27%; }
  .why-table th { width: 34%; }
  .trade-decision-grid { padding: 11px 8px 12px 12px; }
  .trade-decision { grid-template-columns: 82px minmax(0, 1fr); gap: 7px; padding: 8px; }
  .trade-decision strong { font-size: 9px; line-height: 14px; }
  .trade-idea-footer { padding: 9px 10px 9px 14px; text-align: left; }
}
