.viewer-yield-manager { min-width: 0; }
.yield-heading { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 16px; }
.yield-heading h2 { margin: 0; font-size: 17px; font-weight: 500; }
.yield-heading .quiet-button { font-size: 12px; min-height: 34px; }
.yield-toolbar { gap: 12px; margin-bottom: 10px; }
.yield-search { min-width: 0; flex: 1 1 250px; max-width: 380px; }
.yield-search label { display: grid; gap: 5px; }
.yield-search-line { display: flex; gap: 6px; }
.yield-search-line input { width: 100%; flex: 1 1 auto; }
.yield-search-line .button { padding: 6px 10px; min-height: 34px; }
.yield-toolbar > label { flex: 0 1 180px; min-width: 0; }
.yield-toolbar select { width: 100%; }
.yield-count-line { margin: 8px 0 12px; }
.yield-lot-table { max-height: 232px; }
.viewer-yield-manager .viewer-table th button { text-decoration: none; color: var(--muted); }
.viewer-yield-manager th[aria-sort="ascending"] button::after { content: ' ↑'; }
.viewer-yield-manager th[aria-sort="descending"] button::after { content: ' ↓'; }
.yield-lot-table th:first-child, .yield-lot-table td:first-child { position: sticky; left: 0; min-width: 170px; max-width: 240px; background: var(--surface); border-right: 1px solid var(--border); }
.yield-lot-table td:first-child { z-index: 1; }
.yield-lot-table th:first-child { z-index: 2; }
.yield-lot-table .yield-selected-row td { background: var(--raised); }
.yield-identity { display: block; white-space: normal; overflow-wrap: anywhere; }
.yield-identity small { display: block; margin-top: 3px; color: var(--muted); font-size: 11px; line-height: 1.5; }
.viewer-yield-manager .yield-open-lot { text-decoration: none; font-weight: 500; white-space: normal; overflow-wrap: anywhere; }
.viewer-yield-manager .yield-open-lot:hover { text-decoration: underline; }
.viewer-yield-manager .yield-count { min-width: 24px; color: var(--ink); text-decoration: none; }
.viewer-yield-manager .yield-count:hover:not(:disabled) { text-decoration: underline; color: var(--blue); }
.viewer-yield-manager .yield-count:disabled { opacity: 1; color: var(--muted); }
.viewer-yield-manager .yield-fail .yield-count:not(:disabled) { color: var(--negative); }
/* Available result width = two equal columns + one 24px gutter. */
.yield-detail-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 24px; margin-top: 24px; padding-top: 20px; border-top: 1px solid var(--border); align-items: start; }
.yield-section, .yield-lot-detail { min-width: 0; }
.yield-section h3, .yield-lot-detail h3 { margin: 0 0 10px; font-size: 16px; font-weight: 500; overflow-wrap: anywhere; }
.yield-lot-detail > .viewer-help { margin: 6px 0; }
.yield-bin-heading { display: flex; align-items: center; flex-wrap: wrap; justify-content: space-between; gap: 8px 16px; margin: 16px 0 10px; }
.yield-bin-heading h4 { margin: 0; font-size: 14px; font-weight: 500; }
.yield-bin-heading label { display: flex; align-items: center; gap: 8px; font-size: 11px; color: var(--muted); }
.yield-bin-heading select { font-size: 12px; }
.yield-bin-table { max-height: 228px; }
.yield-trend-wrap { min-width: 0; width: 100%; }
.yield-trend { display: block; width: 100%; height: 190px; max-width: 100%; overflow: visible; }
.yield-grid { stroke: var(--rule); stroke-width: 1; }
.yield-axis { fill: var(--muted); font: 11px var(--viewer-font); font-variant-numeric: tabular-nums; }
.yield-point { fill: var(--muted); stroke: var(--surface); stroke-width: 1.5; cursor: pointer; }
.yield-point.is-selected { fill: var(--blue); }
.yield-point:hover, .yield-point:focus { stroke: var(--ink); stroke-width: 2; outline: none; }
.yield-files { min-width: 0; margin-top: 16px; }
.yield-files > summary, .yield-scope-notes > summary { cursor: pointer; padding: 9px 0; color: var(--ink); font-size: 12px; }
.yield-scope-notes { margin-top: 16px; }
.yield-files .viewer-table-wrap { margin-top: 6px; max-height: 330px; }
.viewer-yield-manager > .yield-section { margin-top: 24px; padding-top: 20px; border-top: 1px solid var(--border); }
.yield-site-table { max-height: 290px; }
.yield-empty { color: var(--muted); font-size: 13px; line-height: 1.6; margin: 16px 0; }
@media (max-width: 1100px) {
  .yield-detail-grid { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 760px) {
  .yield-heading .quiet-button, .yield-search-line .button, .viewer-yield-manager .viewer-table button, .yield-toolbar > .quiet-button { min-height: 44px; }
  .yield-toolbar input, .yield-toolbar select, .yield-bin-heading select { min-height: 44px; }
  .yield-search { flex-basis: 100%; max-width: none; }
  .yield-toolbar > label { flex: 1 1 100px; }
  .yield-lot-table th:first-child, .yield-lot-table td:first-child { min-width: 132px; max-width: 170px; }
  .yield-lot-table { max-height: 300px; }
  .yield-files > summary, .yield-scope-notes > summary { min-height: 44px; display: list-item; padding-top: 12px; }
}
