.stock-workspace { color: #182334; min-width: 0; width: 100%; }
.stock-workspace button, .stock-workspace input, .stock-workspace select { font: inherit; letter-spacing: 0; }
.stock-workspace button { cursor: pointer; }
.stock-workspace button:disabled { cursor: default; opacity: .45; }
.stock-workspace button:focus-visible, .stock-workspace input:focus-visible, .stock-workspace select:focus-visible { outline: 2px solid #245eeb; outline-offset: 3px; }
.stock-workspace svg { width: 18px; height: 18px; flex-shrink: 0; }
.stock-heading, .stock-actions, .stock-serial-heading, .stock-pagination { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.stock-heading { margin: 4px 0 20px; }
.stock-heading h2 { font-size: 26px; line-height: 1.25; margin: 0; letter-spacing: 0; }
.stock-actions { justify-content: flex-start; gap: 8px; }
.stock-tool-slot, .stock-tool-slot .mc-context-link, .stock-tool-slot .phase2-module-actions { display: contents; }
.stock-tool-slot button { max-width: 100%; }
.stock-workspace .stock-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 38px; padding: 8px 12px; border: 1px solid #d5dce6; border-radius: 5px; background: #fff; color: #34445a; font-size: 13px; font-weight: 500; line-height: 20px; box-shadow: none; }
.stock-workspace .stock-btn:hover:not(:disabled) { background: #f2f6ff; border-color: #aebfdf; }
.stock-workspace .stock-icon { width: 38px; height: 38px; min-width: 38px; padding: 8px; }
.stock-workspace .stock-primary { background: #245eeb; border-color: #245eeb; color: white; }
.stock-workspace .stock-primary:hover:not(:disabled) { background: #174ed3; border-color: #174ed3; }
.stock-metrics { display: grid; grid-template-columns: repeat(5,minmax(0,1fr)) minmax(170px,1.4fr); padding: 0 0 22px; border-bottom: 1px solid #e0e5eb; gap: 16px; }
.stock-metrics > div { display: flex; flex-direction: column; gap: 6px; }
.stock-metrics span { color: #627186; font-size: 12px; }
.stock-metrics strong { font-size: 21px; font-weight: 650; overflow-wrap: anywhere; }
.stock-metrics .ready strong { color: #13835f; }
.stock-metrics .qc strong { color: #ac6a07; }
.stock-metrics .stock-valuation strong { font-size: 19px; }
.stock-view-tabs { display: flex; gap: 24px; border-bottom: 1px solid #e0e5eb; margin-bottom: 18px; }
.stock-view-tabs button { display: inline-flex; align-items: center; gap: 8px; padding: 15px 0 12px; border: 0; border-bottom: 3px solid transparent; border-radius: 0; background: transparent; color: #607086; font-size: 14px; }
.stock-view-tabs button.selected { border-bottom-color: #245eeb; color: #245eeb; font-weight: 600; }
.stock-scope { display: flex; flex-wrap: wrap; gap: 4px; margin: 0 0 16px; }
.stock-scope button { min-height: 36px; padding: 7px 12px; background: transparent; color: #56657b; border: 1px solid transparent; border-radius: 5px; font-size: 12px; }
.stock-scope button:hover { background: #f3f5f8; }
.stock-scope button.selected { background: #eaf2ff; border-color: #b7cdfb; color: #1954d7; font-weight: 600; }
.stock-notice { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; background: #fff7e4; color: #875308; padding: 10px 12px; margin-top: 16px; font-size: 12px; border-left: 3px solid #c8861c; }
.stock-notice .stock-btn { margin-left: auto; min-height: 30px; padding: 3px 10px; }
.stock-toolbar { display: flex; align-items: center; gap: 8px; margin-bottom: 18px; flex-wrap: wrap; }
.stock-search { display: flex; align-items: center; gap: 10px; border: 1px solid #d5dce6; border-radius: 5px; padding: 0 12px; min-width: 180px; flex: 1; color: #6b7a8f; }
.stock-workspace .stock-search input { border: 0; background: transparent; padding: 9px 0; height: 38px; min-width: 0; width: 100%; box-shadow: none; border-radius: 0; font-size: 13px; color: #182334; }
.stock-workspace select { border: 1px solid #d5dce6; border-radius: 5px; background: white; color: #34445a; height: 38px; padding: 0 28px 0 10px; max-width: 100%; min-width: 0; font-size: 13px; }
.stock-path { display: flex; align-items: center; gap: 9px; flex-wrap: wrap; color: #607086; font-size: 12px; min-height: 50px; padding: 10px 0; border-bottom: 1px solid #e0e5eb; }
.stock-path svg { width: 14px; height: 14px; }
.stock-path strong { color: #245eeb; }
.stock-path > span, .stock-path > strong { overflow-wrap: anywhere; }
.stock-result-count { margin-left: auto; }
.stock-explorer { display: grid; grid-template-columns: 1fr .8fr 1.2fr; border-bottom: 1px solid #e0e5eb; }
.stock-pane { min-width: 0; padding: 0 14px 14px; border-right: 1px solid #e0e5eb; }
.stock-pane:first-child { padding-left: 0; }
.stock-pane:last-child { border-right: 0; padding-right: 0; }
.stock-pane h3 { display: flex; justify-content: space-between; gap: 10px; margin: 0; padding: 15px 10px; color: #627186; font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: 0; }
.stock-pane h3 span { text-transform: none; padding-right: 24px; }
.stock-choice-list { height: 190px; overflow-y: auto; scrollbar-gutter: stable; }
.stock-workspace .stock-mobile-choice { display: none; }
.stock-workspace .stock-choice { display: flex; align-items: center; gap: 10px; width: 100%; min-height: 44px; padding: 10px; border: 0; border-left: 3px solid transparent; border-radius: 3px; background: transparent; color: #34445a; text-align: left; font-size: 13px; }
.stock-choice > span { min-width: 0; overflow-wrap: anywhere; }
.stock-choice > strong { margin-left: auto; font-variant-numeric: tabular-nums; flex-shrink: 0; }
.stock-choice > svg:last-child { width: 14px; height: 14px; }
.stock-workspace .stock-choice:hover { background: #f3f6fa; }
.stock-workspace .stock-choice.selected { background: #eaf2ff; border-left-color: #245eeb; color: #1954d7; }
.stock-selection { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 18px; padding: 14px 0; }
.stock-selection > div { min-width: 0; overflow-wrap: anywhere; font-size: 14px; line-height: 1.8; }
.stock-selection > div > div { color: #627186; font-size: 12px; }
.stock-stages { display: flex; flex-wrap: wrap; gap: 6px 18px; }
.stock-empty { padding: 48px 16px; text-align: center; color: #627186; font-size: 14px; }
.stock-serial-heading { padding: 10px 0 16px; }
.stock-serial-heading > div:first-child { display: flex; align-items: center; gap: 12px; min-width: 0; }
.stock-serial-heading h3 { margin: 0 0 4px; font-size: 18px; overflow-wrap: anywhere; }
.stock-serial-heading span { color: #627186; font-size: 12px; }
.stock-table-wrap { overflow-x: auto; border: 1px solid #e0e5eb; border-radius: 5px; }
.stock-table { border-collapse: collapse; width: 100%; min-width: 850px; font-size: 12px; text-align: left; }
.stock-table th { background: #f3f5f8; font-weight: 600; color: #56657b; white-space: nowrap; }
.stock-table th, .stock-table td { padding: 12px; border-bottom: 1px solid #e7ebf0; vertical-align: middle; }
.stock-table td { max-width: 300px; overflow-wrap: anywhere; }
.stock-table tr:last-child td { border-bottom: 0; }
.stock-table tbody tr:hover { background: #f8fbff; }
.stock-table td > div { margin-top: 5px; color: #627186; }
.stock-code { font-family: ui-monospace, SFMono-Regular, Consolas, monospace; font-size: 11px; }
.stock-workspace .stock-serial-link { border: 0; background: transparent; color: #1954d7; padding: 0; text-align: left; font: inherit; font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
.stock-numeric { white-space: nowrap; font-variant-numeric: tabular-nums; }
.stock-stage { display: inline-block; background: #f0f3f7; color: #526176; padding: 4px 7px; border-radius: 4px; white-space: nowrap; }
.stock-stage.ready { background: #e6f6ed; color: #13835f; }
.stock-stage.qc_pending, .stock-warning { background: #fff5dc; color: #95620a; }
.stock-stage.assembly { background: #eaf2ff; color: #1954d7; }
.stock-pagination { padding: 14px 0; font-size: 12px; color: #627186; }
@media (max-width: 1200px) {
  .stock-metrics { grid-template-columns: repeat(3,minmax(0,1fr)); }
}
@media (max-width: 760px) {
  .stock-heading { gap: 12px; margin-bottom: 18px; }
  .stock-heading h2 { font-size: 22px; }
  .stock-metrics { gap: 16px 10px; }
  .stock-metrics strong, .stock-metrics .stock-valuation strong { font-size: 16px; }
  .stock-metrics span { font-size: 11px; }
  .stock-view-tabs { gap: 18px; }
  .stock-view-tabs button { font-size: 12px; }
  .stock-search { flex-basis: calc(100% - 48px); }
  .stock-toolbar select { flex: 1; }
  .stock-result-count { margin-left: 0; }
}
@media (max-width: 600px) {
  .stock-explorer { grid-template-columns: 1fr; padding: 10px 0; gap: 10px; }
  .stock-pane, .stock-pane:first-child, .stock-pane:last-child { padding: 0; border: 0; }
  .stock-pane h3 { padding: 0 0 6px; font-size: 10px; }
  .stock-pane h3 span { display: none; }
  .stock-choice-list { display: none; }
  .stock-workspace .stock-mobile-choice { display: block; width: 100%; height: 38px; }
  .stock-scope { display: grid; grid-template-columns: 1fr 1.3fr 1fr; }
  .stock-scope button { padding: 7px 5px; line-height: 16px; font-size: 11px; }
  .stock-selection { padding-top: 16px; }
  .stock-serial-heading > .stock-actions { width: 100%; }
  .stock-serial-heading select { flex: 1; width: 100px; }
}
