/* 0.9.11A — Market decision support inside existing Economics modal. */
.te-market{border:1px solid var(--border);border-radius:14px;padding:23px;background:var(--paper);display:grid;gap:16px}
.te-market header h3{font-size:19px;line-height:1.4;margin:6px 0 8px;font-weight:750;color:var(--ink)}
.te-market header p,.te-market-provenance,.te-market-small,.te-market-detail{font-size:13px;line-height:1.75;color:var(--muted);margin:0}
.te-market-provenance a{color:var(--primary);text-decoration:underline;text-underline-offset:3px}
.te-market-confirm{display:flex;align-items:flex-start;gap:10px;font-size:13px;line-height:1.7;cursor:pointer;color:var(--ink2);padding:12px;border:1px solid var(--border);border-radius:8px}
.te-market-confirm input{width:20px;height:20px;accent-color:var(--primary);flex:none;margin-top:2px}
.te-market-controls{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px;align-items:end}
.te-market-controls input{min-height:44px;background:var(--paper-soft)}
#teMarketOutput h4{font-size:16px;font-weight:750;margin:0 0 14px}
.te-market-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:11px}
.te-market-cell{padding:17px 18px;border:1px solid var(--border);border-radius:11px;background:var(--paper-soft);display:grid;gap:8px}
.te-market-cell span{color:var(--muted);font-size:12px}
.te-market-cell strong{font-size:19px;line-height:1.4;color:var(--ink);overflow-wrap:anywhere}
.te-market-cell small{color:var(--muted);font-size:11px}
.te-market-assessment{font-size:14px;line-height:1.7;padding:15px 18px;border:1px solid var(--border);border-left:3px solid var(--primary);border-radius:9px;background:var(--paper-soft);margin:18px 0 11px;color:var(--ink)}
.te-market-assessment[data-state="below_direct_cost"]{border-left-color:#c95353}
.te-market-assessment[data-state="below_target_margin"]{border-left-color:#c29139}
.te-market-assessment[data-state="meets_direct_margin_target"]{border-left-color:#409875}
@media(max-width:650px){.te-market{padding:16px}.te-market-grid{grid-template-columns:1fr}.te-market-controls{grid-template-columns:1fr}.te-market-cell strong{font-size:17px}}
