.opportunity-controls{display:grid;grid-template-columns:repeat(auto-fit,minmax(175px,1fr));gap:14px;margin:20px 0}.opportunity-controls label{display:flex;flex-direction:column;gap:7px;font-size:13px;color:var(--muted)}.opportunity-controls input,.opportunity-controls select{width:100%;background:var(--panel-3);color:var(--text);border:1px solid var(--border);border-radius:7px;padding:10px;font:inherit}.opportunity-note{border-left:3px solid var(--accent);padding-left:14px}.opportunity-layout{display:grid;grid-template-columns:minmax(0,1.6fr) minmax(240px,1fr);gap:20px;margin-top:20px}.opportunity-map{background:var(--panel-3);border:1px solid var(--border);border-radius:12px;min-height:380px;padding:10px}.opportunity-map canvas{width:100%;height:430px;display:block;cursor:crosshair;touch-action:manipulation}.opportunity-map canvas:focus-visible{outline:2px solid var(--accent)}.opportunity-legend{display:flex;gap:12px;flex-wrap:wrap;font-size:12px;color:var(--muted)}.opportunity-legend span{display:inline-flex;gap:6px;align-items:center}.opportunity-legend i{width:13px;height:13px;display:inline-block;border:1px solid var(--muted)}.opportunity-detail{background:var(--panel-3);border:1px solid var(--border);border-radius:12px;padding:18px;overflow-wrap:anywhere}.opportunity-detail h4{margin:20px 0 8px}.opportunity-detail dl{display:grid;grid-template-columns:1fr auto;gap:8px;font-size:13px}.opportunity-detail dd{margin:0;text-align:right}.opportunity-region{width:100%;text-align:left;margin:6px 0;background:var(--panel-2);color:var(--text)}.opportunity-region[aria-pressed=true]{outline:2px solid var(--accent)}.opportunity-detail table{font-size:12px}.opportunity-detail td,.opportunity-detail th{padding:7px}.opportunity-caption{font-size:12px;color:var(--muted)}.opportunity-summary{display:flex;flex-wrap:wrap;gap:12px;margin-top:15px}.opportunity-summary span{padding:10px 14px;border-radius:8px;background:var(--panel-3);color:var(--muted)}.opportunity-summary strong{color:var(--text)}.opportunity-cases{margin-top:16px}@media(max-width:850px){.opportunity-layout{grid-template-columns:1fr}.opportunity-map canvas{height:360px}}

.opportunity-layout{align-items:start}.opportunity-distributions{max-height:none}.opportunity-distributions td:not(:first-child),.opportunity-distributions th{white-space:nowrap}

.opportunity-map-tools{align-items:center;gap:8px;margin-bottom:10px}.opportunity-map-tools button{padding:8px 12px}.opportunity-map-tools label{display:flex;align-items:center;gap:5px;font-size:12px;color:var(--muted)}.opportunity-map canvas{height:480px;cursor:grab;touch-action:none}.opportunity-coordinate-check{font-size:12px;color:var(--muted);margin:10px 0}.opportunity-coordinate-check p{white-space:pre-line;overflow-wrap:anywhere}.opportunity-map-tools input[type=checkbox]{accent-color:var(--accent)}

/* Keep evidence columns intact, and let the table scroll instead of breaking words. */
.opportunity-evidence .table-wrap{max-width:100%;max-height:420px;overflow:auto}
.opportunity-evidence table{width:max-content;min-width:100%;table-layout:auto}
.opportunity-evidence th,.opportunity-evidence td{white-space:nowrap;overflow-wrap:normal;word-break:normal;min-width:75px}
.opportunity-evidence th:first-child,.opportunity-evidence td:first-child{min-width:240px;max-width:360px;white-space:normal;overflow-wrap:break-word}
.opportunity-evidence th:nth-child(3),.opportunity-evidence td:nth-child(3){min-width:150px;white-space:normal}

#opportunityEvidence{margin-top:18px;min-width:0}.opportunity-evidence{padding:14px;background:var(--panel-3);border:1px solid var(--border);border-radius:10px}.opportunity-evidence table{min-width:1050px}

.opportunity-detail dl.opportunity-proximity{grid-template-columns:minmax(90px,1fr) minmax(0,1.5fr)}.opportunity-proximity dd{min-width:0;overflow-wrap:anywhere}

.opportunity-mark-tools{gap:12px;align-items:end;margin-bottom:8px}.opportunity-mark-tools label{display:flex;flex-direction:column;gap:5px;font-size:12px;color:var(--muted)}.opportunity-mark-tools input,.opportunity-mark-tools select{background:var(--panel-3);color:var(--text);border:1px solid var(--border);border-radius:6px;padding:8px;max-width:100%}.opportunity-mark-tools input{width:155px}.opportunity-legend .distance-mark-swatch{background:repeating-linear-gradient(135deg,transparent 0 4px,#ffad65 4px 6px)}.opportunity-legend .distance-unknown-swatch{background:repeating-linear-gradient(45deg,transparent 0 4px,#dba7ed 4px 6px)}

.opportunity-candidate-panel{margin-top:24px;padding:16px;background:var(--panel-3);border:1px solid var(--border);border-radius:12px;min-width:0}.opportunity-candidate-panel .toolbar{margin-top:12px;align-items:center}.opportunity-candidate-panel label{display:flex;flex-direction:column;gap:6px;font-size:13px;color:var(--muted)}.opportunity-candidate-panel select{background:var(--panel-3);color:var(--text);border:1px solid var(--border);border-radius:6px;padding:8px}.opportunity-candidate-panel table{width:max-content;min-width:100%}.opportunity-candidate-panel th,.opportunity-candidate-panel td{white-space:nowrap;overflow-wrap:normal;padding:10px;font-size:12px}.opportunity-candidate-panel a,.opportunity-reading-guide a{color:var(--accent)}.opportunity-reading-guide{margin:20px 0;padding:16px;border:1px solid var(--border);border-radius:10px}.opportunity-reading-guide li{margin:10px 0;line-height:1.55;color:var(--muted)}

.opportunity-candidate-panel td:first-child{position:sticky;left:0;background:var(--panel-3);z-index:1}.opportunity-candidate-panel th:first-child{left:0;z-index:3}

.candidate-metric strong,.candidate-metric small{display:block}.candidate-metric small{font-size:11px;line-height:1.7;color:var(--muted)}.opportunity-candidate-panel th:nth-child(5),.opportunity-candidate-panel th:nth-child(6){white-space:normal;max-width:180px}

.opportunity-shortlist{margin-top:24px;padding:16px;background:var(--panel-3);border:1px solid var(--border);border-radius:12px;min-width:0}.opportunity-saved-target{padding:16px 0;border-top:1px solid var(--border)}.opportunity-saved-target h4{margin:4px 0 10px}.opportunity-saved-target label{display:flex;flex-direction:column;gap:6px;margin:12px 0;font-size:13px;color:var(--muted)}.opportunity-saved-target input,.opportunity-saved-target textarea{box-sizing:border-box;width:100%;background:var(--panel-3);color:var(--text);border:1px solid var(--border);border-radius:7px;padding:10px;font:inherit}.opportunity-saved-target textarea{resize:vertical}.opportunity-saved-target details{margin:14px 0;font-size:12px;color:var(--muted)}.opportunity-saved-target pre{max-height:300px;overflow:auto;white-space:pre-wrap;overflow-wrap:anywhere;background:var(--panel-3);padding:12px}.opportunity-saved-target>p{overflow-wrap:anywhere}

.opportunity-saved-cases{max-height:260px;overflow:auto}.opportunity-saved-cases table{min-width:650px}.opportunity-saved-cases td:first-child{min-width:240px;overflow-wrap:anywhere}

.opportunity-colour-tools{display:flex;flex-wrap:wrap;gap:10px;align-items:end}.opportunity-colour-tools label{display:flex;flex-direction:column;gap:5px;font-size:12px;color:var(--muted)}.opportunity-colour-tools select,.opportunity-colour-tools input{max-width:210px;box-sizing:border-box;background:var(--panel-3);color:var(--text);border:1px solid var(--border);border-radius:6px;padding:8px}.opportunity-colour-tools input{width:135px}.opportunity-colour-legend{display:flex;flex-wrap:wrap;align-items:center;gap:10px;margin:10px 0;font-size:12px;color:var(--muted)}.opportunity-gradient{display:inline-block;width:150px;height:15px;border:1px solid var(--muted)}.opportunity-map-notes{margin-top:20px;padding:16px;background:var(--panel-3);border:1px solid var(--border);border-radius:12px}.opportunity-circle-note{display:flex;flex-direction:column;gap:8px;font-size:13px;color:var(--muted)}.opportunity-circle-note textarea{box-sizing:border-box;width:100%;background:var(--panel-3);color:var(--text);border:1px solid var(--border);border-radius:7px;padding:10px;font:inherit;resize:vertical}

.opportunity-review{margin-top:24px;border:1px solid var(--border);border-left:4px solid var(--accent);background:var(--panel-3);border-radius:12px;padding:18px;min-width:0;scroll-margin-top:16px}.opportunity-review h3{margin:0 0 10px}.opportunity-review-scopes{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,340px),1fr));gap:18px}.opportunity-review-scopes section{min-width:0}.opportunity-review-scopes .table-wrap{max-height:none}.opportunity-review-scopes th,.opportunity-review-scopes td{padding:8px;font-size:12px;white-space:normal;overflow-wrap:anywhere}.opportunity-review-scopes td:first-child{width:42%}.opportunity-review-columns{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,260px),1fr));gap:16px;margin-top:14px}.opportunity-review-columns section{min-width:0;background:var(--panel-3);border:1px solid var(--border);border-radius:8px;padding:14px}.opportunity-review-columns h4{margin:0 0 10px}.opportunity-review-columns ul{padding-left:18px;margin:0}.opportunity-review-columns li{font-size:13px;line-height:1.6;margin:0 0 12px;color:var(--text)}.opportunity-saved-target>details .opportunity-review-columns{margin:12px 0}
