/* The Workflow page's two inputs beyond the typed SOP (2026-10-31): the SOP as an uploaded document (the source line
   under the heading, the drop target) and the workstations the lab already owns (the collapsible box under the SOP
   pane, ingest/owned.py). Tints are translucent so they sit on a light or a dark panel alike. */
#left h2.sop-head { display: flex; align-items: center; gap: 8px; }
#left h2.sop-head .btn { margin-left: auto; text-transform: none; letter-spacing: 0; font-weight: 400; }
.sop-source { margin: -2px 12px 6px; font-size: 11.5px; color: #6b7280; overflow-wrap: anywhere; }
.sop-source .warn { color: #b7791f; }
.sop-source[hidden] { display: none; }
#sop.drop { outline: 2px dashed #2f6fdd; outline-offset: -4px; background: rgba(47, 111, 221, 0.05); }

.owned {
  flex: 0 1 auto; min-height: 0; max-height: 45%; overflow: auto;
  margin: 8px 10px 0; padding: 0 8px 6px;
  border: 1px solid #e3e3e3; border-radius: 6px; background: white; font-size: 12px;
}
.owned > summary {
  cursor: pointer; padding: 6px 0; list-style-position: inside;
  font-size: 11px; text-transform: uppercase; letter-spacing: 0.6px; color: #777;
}
.owned-count { text-transform: none; letter-spacing: 0; color: #2f6fdd; }
.owned-tools { display: flex; flex-wrap: wrap; gap: 6px; margin: 2px 0 6px; }
.owned-tools .btn { font-size: 12px; padding: 3px 9px; }
#owned-text {
  width: 100%; min-height: 52px; height: 64px; resize: vertical; padding: 5px;
  font-family: ui-monospace, Consolas, monospace; font-size: 12px;
  border: 1px solid #ccc; border-radius: 5px;
}
.owned-msg { margin: 4px 0; color: #6b7280; }
.owned-msg.err { color: #c0392b; }
.owned-list { list-style: none; margin: 4px 0; padding: 0; }
.owned-list li {
  display: flex; flex-wrap: wrap; align-items: center; gap: 6px;
  padding: 4px 0; border-top: 1px solid rgba(127, 127, 127, 0.18);
}
.owned-list li:first-child { border-top: none; }
.owned-list .o-name { flex: 1 1 140px; min-width: 0; overflow-wrap: anywhere; }
.owned-list .o-id, .owned-list .o-src { color: #6b7280; font-size: 11px; }
.owned-list .o-src { flex-basis: 100%; font-family: ui-monospace, Consolas, monospace; overflow-wrap: anywhere; }
.owned-list input[type=number] { width: 52px; font: inherit; }
.owned-list select, .owned-list input[type=text] { font: inherit; max-width: 100%; flex: 1 1 160px; min-width: 0; }
.owned-list .btn { font-size: 11.5px; padding: 2px 8px; }
.owned-list .o-chip { font-size: 11px; padding: 0 6px; border-radius: 10px; border: 1px solid currentColor; }
.owned-list .o-ambiguous { color: #b7791f; }
.owned-list .o-unmatched { color: #c0392b; }
.owned-list .o-missing { color: #c0392b; }
#owned-unresolved li { box-shadow: inset 3px 0 0 #b7791f; padding-left: 6px; }
