/* claude-sourcing-20261118: Work streams (#/pipeline) and Sources & imports (#/sourceimports).
   Also Sourcing (#/sourcing) and its opportunity sheet.
   Scoped to #shell #content[data-bux-page=...] (attribute repeated so these rules tie
   the shell's html[data-bleu-unified] rules on specificity and win by order); shell tokens only (--ink, --stone, --card, --chip,
   --well, --hairline, --bleu, --bux-*). No motion is added; nothing here changes layout outside
   these three views and the Sourcing opportunity sheet.
   Width rule: like Inventory, Customers and Hub, each page starts on the shell's 32 px gutter and
   fills to the right gutter (no centred max-width column). */

/* ---------- Work streams: one page header, then the view switch ---------- */
#shell #content[data-bux-page][data-bux-page][data-bux-page="pipeline"] .vw-page {
  /* The shell centred this page at max 1120 px (13 px right of every other page's 32 px gutter at
     1440); it now starts on the shared gutter like the rest of the app. */
  max-width: none;
  margin: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  column-gap: 16px;
  align-items: end;
}
#shell #content[data-bux-page][data-bux-page][data-bux-page="pipeline"] .vw-page > * { grid-column: 1 / -1; min-width: 0; }
#shell #content[data-bux-page][data-bux-page][data-bux-page="pipeline"] .vw-page > .csx-head { grid-column: 1; grid-row: 1; margin: 0; padding: 0; }
#shell #content[data-bux-page][data-bux-page][data-bux-page="pipeline"] .vw-page > nav.vw-filters { grid-column: 2; grid-row: 1; }
#shell #content[data-bux-page][data-bux-page][data-bux-page="pipeline"] .csx-title {
  margin: 0;
  font: 600 28px/34px var(--font-ui, Geist, system-ui, sans-serif);
  letter-spacing: -0.01em;
  color: var(--ink);
}
#shell #content[data-bux-page][data-bux-page][data-bux-page="pipeline"] .csx-meta { margin: 4px 0 0; font-size: 14px; line-height: 20px; color: var(--stone); }

/* The view switch keeps the shell's shared tab vocabulary (underline tabs); it moves into the
   page header row so it no longer stacks on top of the lane tabs. "More" matches the tabs. */
#shell #content[data-bux-page][data-bux-page][data-bux-page="pipeline"] .vw-page > nav.vw-filters { margin: 0; justify-self: end; align-self: end; }
#shell #content[data-bux-page][data-bux-page][data-bux-page="pipeline"] .vw-page > nav.vw-filters > details { margin: 0; }
#shell #content[data-bux-page][data-bux-page][data-bux-page="pipeline"] .vw-page > nav.vw-filters > details > summary {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 0;
  padding: 10px 2px;
  border: 0;
  border-bottom: 2px solid transparent;
  border-radius: 0;
  background: transparent;
  color: var(--stone);
  font: 500 13px/1.5 var(--font-ui, Geist, system-ui, sans-serif);
  list-style: none;
  cursor: pointer;
  white-space: nowrap;
}
#shell #content[data-bux-page][data-bux-page][data-bux-page="pipeline"] .vw-page > nav.vw-filters > details > summary::-webkit-details-marker { display: none; }
#shell #content[data-bux-page][data-bux-page][data-bux-page="pipeline"] .vw-page > nav.vw-filters > details > summary::after {
  content: "";
  width: 6px;
  height: 6px;
  margin: -3px 2px 0;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: rotate(45deg);
}
#shell #content[data-bux-page][data-bux-page][data-bux-page="pipeline"] .vw-page > nav.vw-filters > details > summary:hover,
#shell #content[data-bux-page][data-bux-page][data-bux-page="pipeline"] .vw-page > nav.vw-filters > details[open] > summary { color: var(--ink); }
/* "More" is the current tab while Inventory title custody is open (runtime adds .csx-current). */
#shell #content[data-bux-page][data-bux-page][data-bux-page="pipeline"] .vw-page > nav.vw-filters > details > summary.csx-current { color: var(--ink); font-weight: 600; border-bottom-color: currentColor; }
/* A lane title that only repeats the page title is hidden (runtime adds .csx-same-as-page). */
#shell #content[data-bux-page][data-bux-page][data-bux-page="pipeline"] .wq-heading h1.csx-same-as-page { display: none; }
/* Title custody: the workspace header repeats the panel's own title and carries a caveat; it is
   hidden, and the runtime shows the caveat once under the panel heading (.csx-custody-note). */
#shell #content[data-bux-page][data-bux-page][data-bux-page="pipeline"] .pw-title-workspace > .pw-title-workspace-heading { display: none; }
#shell #content[data-bux-page][data-bux-page][data-bux-page="pipeline"] .vw-page > .pw-title-workspace { margin-top: 24px; }
#shell #content[data-bux-page][data-bux-page][data-bux-page="pipeline"] .csx-custody-note { margin: 4px 0 12px; font-size: 14px; line-height: 20px; color: var(--stone); }
/* Wide screens: the lane board fills the page like the header (the shell capped it at 1500 px). */
#shell #content[data-bux-page][data-bux-page][data-bux-page="pipeline"] .vw-page .wq-page { max-width: none; }

/* The lane heading sits under the page header: a section title, not a second page title. */
#shell #content[data-bux-page][data-bux-page][data-bux-page="pipeline"] .wq-top { margin-top: 24px; align-items: center; }
#shell #content[data-bux-page][data-bux-page][data-bux-page="pipeline"] .wq-heading h1,
#shell #content[data-bux-page][data-bux-page][data-bux-page="pipeline"] .vw-heading h1,
#shell #content[data-bux-page][data-bux-page][data-bux-page="pipeline"] .pw-title-workspace-heading h1 {
  font: 600 20px/26px var(--font-ui, Geist, system-ui, sans-serif);
  letter-spacing: 0;
  margin: 0;
  color: var(--ink);
}
#shell #content[data-bux-page][data-bux-page][data-bux-page="pipeline"] .wq-sub,
#shell #content[data-bux-page][data-bux-page][data-bux-page="pipeline"] .vw-heading p { margin-top: 2px; font-size: 14px; line-height: 20px; color: var(--stone); }

/* Lane tabs scroll sideways on narrow screens instead of clipping the last lane. */
#shell #content[data-bux-page][data-bux-page][data-bux-page="pipeline"] .wq-lanes {
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scrollbar-width: none;
  max-width: 100%;
}
#shell #content[data-bux-page][data-bux-page][data-bux-page="pipeline"] .wq-lanes::-webkit-scrollbar { display: none; }
#shell #content[data-bux-page][data-bux-page][data-bux-page="pipeline"] .wq-lanes > button { flex: 0 0 auto; white-space: nowrap; }

/* Tool row: one control height. */
#shell #content[data-bux-page][data-bux-page][data-bux-page="pipeline"] .wq-tools { align-items: center; row-gap: 10px; }
#shell #content[data-bux-page][data-bux-page][data-bux-page="pipeline"] .wq-tools select,
#shell #content[data-bux-page][data-bux-page][data-bux-page="pipeline"] .wq-tools input[type="search"],
#shell #content[data-bux-page][data-bux-page][data-bux-page="pipeline"] .wq-filtertoggle { min-height: 40px; }

/* Done cards: the overflow button sits at the end of the card, not floating in space. */
#shell #content[data-bux-page][data-bux-page][data-bux-page="pipeline"] .wq-card[data-wq-col="completed"] .wq-actions { justify-content: flex-end; }
/* Lane card buttons keep a working width instead of stretching across wide cards. */
#shell #content[data-bux-page][data-bux-page][data-bux-page="pipeline"] .wq-actions > .btn { max-width: 280px; }

/* ---------- Work streams › All vehicle tasks ----------
   The board's filter bar shares the .vw-filters class with the view switch, so the shell's tab
   rule (an :is() list that includes an id) also turns these filters into underline tabs. The
   :not(#csx-board-filters) clause matches every element and only lifts specificity so the filter
   bar reads as a filter bar again. */
#shell #content[data-bux-page][data-bux-page][data-bux-page="pipeline"] [data-vw-board] { margin-top: 24px; }
#shell #content[data-bux-page][data-bux-page][data-bux-page="pipeline"] [data-vw-board] > .vw-heading { margin: 0 0 16px; padding: 0; }
#shell #content[data-bux-page][data-bux-page][data-bux-page="pipeline"] [data-vw-board] > nav.vw-filters:not(#csx-board-filters) {
  display: flex;
  flex-wrap: wrap;
  overflow: visible;
  align-items: flex-end;
  gap: 12px;
  margin: 0 0 16px;
  padding: 0 0 16px;
  border-bottom: 1px solid var(--hairline);
}
#shell #content[data-bux-page][data-bux-page][data-bux-page="pipeline"] [data-vw-board] > nav.vw-filters:not(#csx-board-filters) > label {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 6px;
  margin: 0;
  font: 500 13px/16px var(--font-ui, Geist, system-ui, sans-serif);
  color: var(--stone);
}
#shell #content[data-bux-page][data-bux-page][data-bux-page="pipeline"] [data-vw-board] > nav.vw-filters:not(#csx-board-filters) > label > select,
#shell #content[data-bux-page][data-bux-page][data-bux-page="pipeline"] [data-vw-board] > nav.vw-filters:not(#csx-board-filters) > label > input {
  min-width: 180px;
  min-height: 40px;
  height: 40px;
  margin: 0;
  box-sizing: border-box;
}
#shell #content[data-bux-page][data-bux-page][data-bux-page="pipeline"] [data-vw-board] > nav.vw-filters:not(#csx-board-filters) > button {
  min-height: 40px;
  margin: 0;
  padding: 0 14px;
  border: 1px solid var(--field-border);
  border-radius: 10px;
  background: var(--card);
  color: var(--ink);
  font: 550 13px/18px var(--font-ui, Geist, system-ui, sans-serif);
}
#shell #content[data-bux-page][data-bux-page][data-bux-page="pipeline"] [data-vw-board] > nav.vw-filters:not(#csx-board-filters) > [data-task-refresh] { margin-left: auto; }
/* "Assigned to me" is a toggle: it reads as a chip, pressed when the shell drops .sec. */
#shell #content[data-bux-page][data-bux-page][data-bux-page="pipeline"] [data-vw-board] > nav.vw-filters:not(#csx-board-filters) > [data-task-mine] {
  padding: 0 14px;
  border: 1px solid var(--field-border);
  border-radius: 999px;
  background: var(--card);
  color: var(--ink);
  font: 550 13px/18px var(--font-ui, Geist, system-ui, sans-serif);
}
#shell #content[data-bux-page][data-bux-page][data-bux-page="pipeline"] [data-vw-board] > nav.vw-filters:not(#csx-board-filters) > [data-task-mine][aria-pressed="true"] {
  border-color: var(--bux-selected-text, #0064C2);
  background: var(--bux-selected, #EAF4FF);
  color: var(--bux-selected-text, #0064C2);
}

#shell #content[data-bux-page][data-bux-page][data-bux-page="pipeline"] [data-vw-board] .vw-list { border-radius: 12px; overflow: hidden; }
#shell #content[data-bux-page][data-bux-page][data-bux-page="pipeline"] [data-vw-board] .vw-row {
  display: grid;
  /* The text column is as wide as its text (up to 1100 px) and the status sits right after it;
     the chevron stays at the row end. */
  grid-template-columns: fit-content(1100px) auto minmax(0, 1fr) 16px;
  align-items: center;
  column-gap: 16px;
  min-height: 64px;
  text-align: left;
}
#shell #content[data-bux-page][data-bux-page][data-bux-page="pipeline"] [data-vw-board] .vw-row > span:first-child { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
#shell #content[data-bux-page][data-bux-page][data-bux-page="pipeline"] [data-vw-board] .vw-row > span:first-child > strong { font-size: 15px; line-height: 20px; }
#shell #content[data-bux-page][data-bux-page][data-bux-page="pipeline"] [data-vw-board] .vw-row .vw-meta { font-size: 13px; line-height: 18px; color: var(--stone); overflow-wrap: anywhere; }
#shell #content[data-bux-page][data-bux-page][data-bux-page="pipeline"] [data-vw-board] .vw-row > .vw-status { grid-column: 2; }
#shell #content[data-bux-page][data-bux-page][data-bux-page="pipeline"] [data-vw-board] .vw-row > span[aria-hidden="true"] { grid-column: 4; color: var(--stone); font-size: 18px; line-height: 1; text-align: center; }
#shell #content[data-bux-page][data-bux-page][data-bux-page="pipeline"] [data-vw-board] .vw-status {
  display: inline-block;
  padding: 2px 10px;
  border-radius: 999px;
  background: var(--chip, #EBECF1);
  color: var(--ink);
  font: 550 12px/18px var(--font-ui, Geist, system-ui, sans-serif);
  white-space: nowrap;
}
#shell #content[data-bux-page][data-bux-page][data-bux-page="pipeline"] [data-vw-board] .vw-status::first-letter { text-transform: uppercase; }
#shell #content[data-bux-page][data-bux-page][data-bux-page="pipeline"] [data-vw-board] .vw-box > h2 { font: 600 15px/20px var(--font-ui, Geist, system-ui, sans-serif); }

/* ---------- Sources & imports ---------- */
#shell #content[data-bux-page][data-bux-page][data-bux-page="sourceimports"] .imp-page > .srw-launch:not(:has(button)) { display: none; }
#shell #content[data-bux-page][data-bux-page][data-bux-page="sourceimports"] .blh-acts { display: flex; align-items: center; gap: 8px; flex-wrap: nowrap; }
#shell #content[data-bux-page][data-bux-page][data-bux-page="sourceimports"] .blh-acts > .csx-review {
  min-height: 40px;
  padding: 0 14px;
  border: 1px solid var(--field-border);
  border-radius: 10px;
  background: var(--card);
  color: var(--ink);
  font: 550 14px/20px var(--font-ui, Geist, system-ui, sans-serif);
  white-space: nowrap;
}
#shell #content[data-bux-page][data-bux-page][data-bux-page="sourceimports"] .blh-acts .op-page-tools .btn { min-height: 40px; }

/* Drop zone: title and hint read as one unit; the file input covers the zone. */
#shell #content[data-bux-page][data-bux-page][data-bux-page="sourceimports"] .imp-shell { max-width: none; margin: 0; }
#shell #content[data-bux-page][data-bux-page][data-bux-page="sourceimports"] .srw { max-width: none; margin: 0; padding-left: 0; padding-right: 0; }
#shell #content[data-bux-page][data-bux-page][data-bux-page="sourceimports"] .imp-drop { gap: 6px; }
#shell #content[data-bux-page][data-bux-page][data-bux-page="sourceimports"] .imp-drop > input[type="file"] {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  opacity: 0;
  cursor: pointer;
}
#shell #content[data-bux-page][data-bux-page][data-bux-page="sourceimports"] .imp-drop::before {
  content: "";
  width: 28px;
  height: 28px;
  margin-bottom: 4px;
  background: var(--stone);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.75' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 15V3'/%3E%3Cpath d='m7 8 5-5 5 5'/%3E%3Cpath d='M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4'/%3E%3C/svg%3E") center / contain no-repeat;
  align-self: center;
  justify-self: center;
  margin-left: auto;
  margin-right: auto;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.75' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 15V3'/%3E%3Cpath d='m7 8 5-5 5 5'/%3E%3Cpath d='M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4'/%3E%3C/svg%3E") center / contain no-repeat;
}
#shell #content[data-bux-page][data-bux-page][data-bux-page="sourceimports"] .imp-drop-title { font-size: 15px; line-height: 20px; color: var(--ink); }
#shell #content[data-bux-page][data-bux-page][data-bux-page="sourceimports"] .imp-drop-sub { font-size: 13px; line-height: 18px; color: var(--stone); }
#shell #content[data-bux-page][data-bux-page][data-bux-page="sourceimports"] .imp-drop:focus-within { outline: 2px solid var(--focus-color, var(--bleu)); outline-offset: 2px; }

/* Disabled Continue: the disabled tokens instead of a faded primary (readable in both themes). */
#shell #content[data-bux-page][data-bux-page][data-bux-page="sourceimports"] .imp-primary[disabled] {
  opacity: 1;
  background: var(--bux-disabled-bg, #E5EAF0);
  border-color: var(--bux-disabled-bg, #E5EAF0);
  color: var(--bux-disabled-text, #64748B);
}

/* Source archive: a pager with nowhere to go is hidden. */
#shell #content[data-bux-page][data-bux-page][data-bux-page="sourceimports"] .sia-paging:has(> [data-sia-page="-1"][disabled]):has(> [data-sia-page="1"][disabled]) { display: none; }
#shell #content[data-bux-page][data-bux-page][data-bux-page="sourceimports"] .sia-heading { align-items: center; }

/* ---------- Sourcing (#/sourcing) ----------
   One quiet toolbar instead of four stacked control rows; one primary per screen (Import
   listing); disclosures that look like controls; cards with their actions on one baseline; the
   Edge label in sentence case so "onbleu" stays lowercase. */
#shell #content[data-bux-page][data-bux-page][data-bux-page="sourcing"] .viewhost > .card:has(> #sofbar) { background: transparent; border: 0; box-shadow: none; padding: 0; overflow: visible; }
#shell #content[data-bux-page][data-bux-page][data-bux-page="sourcing"] #sofbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 12px;
  padding: 0 0 12px;
  background: transparent;
  border: 0;
}
#shell #content[data-bux-page][data-bux-page][data-bux-page="sourcing"] #sofbar > .ivsearch { flex: 1 1 260px; max-width: 420px; margin: 0; }
#shell #content[data-bux-page][data-bux-page][data-bux-page="sourcing"] #sofbar > .ivsearch input { min-height: 36px; height: 36px; }
#shell #content[data-bux-page][data-bux-page][data-bux-page="sourcing"] #sofbar > .ivfrow { flex: 3 1 auto; display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-start; gap: 8px; margin: 0; }
#shell #content[data-bux-page][data-bux-page][data-bux-page="sourcing"] #sofbar .ivschips { display: flex; flex-wrap: wrap; gap: 6px; }
#shell #content[data-bux-page][data-bux-page][data-bux-page="sourcing"] #sofbar .ivschip,
#shell #content[data-bux-page][data-bux-page][data-bux-page="sourcing"] #sofbar .ivfiltbtn {
  min-height: 36px;
  padding: 0 12px;
  border: 1px solid var(--hairline);
  border-radius: 999px;
  background: var(--card);
  color: var(--ink);
  font: 550 13px/18px var(--font-ui, Geist, system-ui, sans-serif);
  white-space: nowrap;
}
#shell #content[data-bux-page][data-bux-page][data-bux-page="sourcing"] #sofbar .ivschip.on { background: var(--ink); border-color: var(--ink); color: var(--card); }
#shell #content[data-bux-page][data-bux-page][data-bux-page="sourcing"] #sofbar .ivfiltbtn { border-radius: 10px; }

/* Source and "Why these cars" disclosures: real controls, side by side. */
#shell #content[data-bux-page][data-bux-page][data-bux-page="sourcing"] #sosourcewrap > details.so-source-menu { border: 0; padding: 0; }
#shell #content[data-bux-page][data-bux-page][data-bux-page="sourcing"] #sosourcewrap,
#shell #content[data-bux-page][data-bux-page][data-bux-page="sourcing"] .viewhost > .card > details.sohealth { border: 0; display: inline-block; vertical-align: top; margin: 0 8px 12px 0; }
#shell #content[data-bux-page][data-bux-page][data-bux-page="sourcing"] #sosourcewrap:has(details[open]),
#shell #content[data-bux-page][data-bux-page][data-bux-page="sourcing"] .viewhost > .card > details.sohealth[open] { display: block; margin-right: 0; }
#shell #content[data-bux-page][data-bux-page][data-bux-page="sourcing"] :is(.so-source-menu, .sohealth, .so-browse-options) > summary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 36px;
  padding: 0 12px;
  border: 1px solid var(--hairline);
  border-radius: 10px;
  background: var(--card);
  color: var(--ink);
  font: 500 13px/18px var(--font-ui, Geist, system-ui, sans-serif);
  list-style: none;
  cursor: pointer;
}
#shell #content[data-bux-page][data-bux-page][data-bux-page="sourcing"] :is(.so-source-menu, .sohealth, .so-browse-options) > summary::-webkit-details-marker { display: none; }
#shell #content[data-bux-page][data-bux-page][data-bux-page="sourcing"] :is(.so-source-menu, .sohealth, .so-browse-options) > summary::marker { content: ""; }
#shell #content[data-bux-page][data-bux-page][data-bux-page="sourcing"] :is(.so-source-menu, .sohealth, .so-browse-options) > summary::after {
  content: "";
  width: 6px;
  height: 6px;
  margin: -3px 2px 0;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: rotate(45deg);
}
#shell #content[data-bux-page][data-bux-page][data-bux-page="sourcing"] :is(.so-source-menu, .sohealth, .so-browse-options)[open] > summary::after { margin-top: 3px; transform: rotate(-135deg); }
#shell #content[data-bux-page][data-bux-page][data-bux-page="sourcing"] .sohealth > summary > span { color: var(--stone); font-weight: 400; font-size: 13px; }

/* Browse / Saved / Passed: a segmented control (neutral), so Import listing stays the one primary. */
#shell #content[data-bux-page][data-bux-page][data-bux-page="sourcing"] .edge-browse-actions {
  display: inline-flex;
  gap: 2px;
  margin: 0 12px 12px 0;
  padding: 0;
  border-radius: 10px;
  background: var(--chip, #EBECF1);
  vertical-align: middle;
}
#shell #content[data-bux-page][data-bux-page][data-bux-page="sourcing"] .edge-browse-actions > button {
  min-height: 36px;
  padding: 0 14px;
  border: 1px solid transparent;
  border-radius: 8px;
  background: transparent;
  color: var(--stone);
  font: 550 13px/18px var(--font-ui, Geist, system-ui, sans-serif);
}
#shell #content[data-bux-page][data-bux-page][data-bux-page="sourcing"] .edge-browse-actions > button[aria-pressed="true"] {
  background: var(--card);
  border-color: var(--hairline);
  color: var(--ink);
  box-shadow: 0 1px 2px rgba(7, 26, 61, 0.08);
}
#shell #content[data-bux-page][data-bux-page][data-bux-page="sourcing"] .edge-team-filter { display: inline-flex; align-items: center; gap: 8px; margin: 0 0 12px; vertical-align: middle; font: 500 13px/18px var(--font-ui, Geist, system-ui, sans-serif); color: var(--stone); }
#shell #content[data-bux-page][data-bux-page][data-bux-page="sourcing"] .edge-team-filter select { min-height: 36px; height: 36px; }
#shell #content[data-bux-page][data-bux-page][data-bux-page="sourcing"] #sobody > .sorow.csx-row { cursor: pointer; }

/* Cards: equal rhythm, actions on one baseline, sentence-case Edge label. */
#shell #content[data-bux-page][data-bux-page][data-bux-page="sourcing"] .so-decision-card { height: 100%; }
#shell #content[data-bux-page][data-bux-page][data-bux-page="sourcing"] .so-decision-copy { flex: 1 1 auto; gap: 6px; }
#shell #content[data-bux-page][data-bux-page][data-bux-page="sourcing"] .so-decision-copy > h2 { margin: 2px 0 0; font: 600 17px/22px var(--font-ui, Geist, system-ui, sans-serif); }
#shell #content[data-bux-page][data-bux-page][data-bux-page="sourcing"] .so-decision-price { display: flex; align-items: baseline; gap: 6px; flex-wrap: wrap; }
#shell #content[data-bux-page][data-bux-page][data-bux-page="sourcing"] .so-decision-source,
#shell #content[data-bux-page][data-bux-page][data-bux-page="sourcing"] .so-decision-mileage { font-size: 13px; line-height: 18px; color: var(--stone); }
#shell #content[data-bux-page][data-bux-page][data-bux-page="sourcing"] .so-edge-summary .so-edge-brand { text-transform: none; letter-spacing: 0; font: 600 12px/16px var(--font-ui, Geist, system-ui, sans-serif); }
#shell #content[data-bux-page][data-bux-page][data-bux-page="sourcing"] .so-edge-median { border-bottom: 0; text-decoration: underline dotted; text-underline-offset: 3px; text-align: left; }
#shell #content[data-bux-page][data-bux-page][data-bux-page="sourcing"] .edge-card-actions { margin-top: auto; padding-top: 12px; }

#shell #content[data-bux-page][data-bux-page][data-bux-page="sourcing"] #sobody > .sorow { align-items: flex-start; gap: 16px; padding-top: 16px; padding-bottom: 16px; }
#shell #content[data-bux-page][data-bux-page][data-bux-page="sourcing"] #sobody > .sorow > .somedia { align-self: flex-start; }
#shell #content[data-bux-page][data-bux-page][data-bux-page="sourcing"] #sobody > .sorow > .chev { align-self: center; }
#shell #content[data-bux-page][data-bux-page][data-bux-page="sourcing"] #sobody > .sorow .sotopline { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; font-size: 12px; line-height: 16px; }
#shell #content[data-bux-page][data-bux-page][data-bux-page="sourcing"] #sobody > .sorow .dxh { font: 600 16px/22px var(--font-ui, Geist, system-ui, sans-serif); }
#shell #content[data-bux-page][data-bux-page][data-bux-page="sourcing"] #sobody > .sorow .dxo { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 6px; }
#shell #content[data-bux-page][data-bux-page][data-bux-page="sourcing"] #sobody > .sorow :is(.sofit, .dxf, .sovs) { font-size: 13px; line-height: 18px; }

/* List rows sit on the page background: Miami text is below 4.5:1 on Paper, so links and the Edge
   label use the darker selected-text token (Miami Night stays in dark mode); long badges and Edge
   values wrap instead of pushing the row wider than the page. */
#shell #content[data-bux-page][data-bux-page][data-bux-page="sourcing"] :is(.so-edge-brand, .so-edge-median, .sodetailhint) { color: var(--bux-selected-text, #0064C2); }
/* "No photo available" sits on the placeholder grey at 4.37:1 because Codex's photo-placeholder
   rule sets it with !important, so the leaf's only !important restores Ink for it. Page titles
   (desktop and phone sizes) are owned by the shell leaf (#799). */
#shell #content[data-bux-page][data-bux-page][data-bux-page="sourcing"] .somedia > .sophotoempty[data-onbleu-placeholder] > .so-photo-caption {
  color: var(--ink) !important;
}
#shell #content[data-bux-page][data-bux-page][data-bux-page="sourcing"] .sophotoempty { opacity: 1; }
#shell #content[data-bux-page][data-bux-page][data-bux-page="sourcing"] #sobody > .sorow > .dxmain { flex: 1 1 auto; min-width: 0; }
#shell #content[data-bux-page][data-bux-page][data-bux-page="sourcing"] #sobody > .sorow :is(.sosourcebadge, .so-edge-value, .sofresh, .sofit, .dxh) { white-space: normal; overflow-wrap: break-word; min-width: 0; max-width: 100%; }
/* The shell's narrow rule puts .dxmain in column 1 of a three-column row, squeezing it beside the
   photo (28 px of overflow at 834). Place photo, text and chevron explicitly above phone width. */
@media (min-width: 601px) {
  #shell #content[data-bux-page][data-bux-page][data-bux-page="sourcing"] #sobody > .sorow { grid-template-columns: clamp(140px, 22vw, 220px) minmax(0, 1fr) 20px; }
  #shell #content[data-bux-page][data-bux-page][data-bux-page="sourcing"] #sobody > .sorow > .somedia { grid-column: 1; grid-row: 1; }
  #shell #content[data-bux-page][data-bux-page][data-bux-page="sourcing"] #sobody > .sorow > .dxmain { grid-column: 2; grid-row: 1; }
  #shell #content[data-bux-page][data-bux-page][data-bux-page="sourcing"] #sobody > .sorow > .chev { grid-column: 3; grid-row: 1; }
}

/* Sourcing › opportunity sheet (.so-edge-modal, mounted outside #content): disclosures read as
   rows with a chevron, and the in-sheet decision pair is neutral so the sheet keeps one primary. */
.brs.so-edge-modal:not(#csx-sheet) :is(.edge-buy-ceiling, .edge-evidence, .edge-calculator, .sofitevidence, .kfmore) > summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 44px;
  padding: 0 16px;
  color: var(--ink);
  font: 600 14px/20px var(--font-ui, Geist, system-ui, sans-serif);
  list-style: none;
  cursor: pointer;
}
.brs.so-edge-modal:not(#csx-sheet) :is(.edge-buy-ceiling, .edge-evidence, .edge-calculator, .sofitevidence, .kfmore) > summary::-webkit-details-marker { display: none; }
.brs.so-edge-modal:not(#csx-sheet) :is(.edge-buy-ceiling, .edge-evidence, .edge-calculator, .sofitevidence, .kfmore) > summary::marker { content: ""; }
.brs.so-edge-modal:not(#csx-sheet) :is(.edge-buy-ceiling, .edge-evidence, .edge-calculator, .sofitevidence, .kfmore) > summary::after {
  content: "";
  flex: 0 0 auto;
  width: 7px;
  height: 7px;
  margin: -4px 4px 0;
  border-right: 1.5px solid var(--stone);
  border-bottom: 1.5px solid var(--stone);
  transform: rotate(45deg);
}
.brs.so-edge-modal:not(#csx-sheet) :is(.edge-buy-ceiling, .edge-evidence, .edge-calculator, .sofitevidence, .kfmore)[open] > summary::after { margin-top: 4px; transform: rotate(-135deg); }
.brs.so-edge-modal:not(#csx-sheet) :is(.edge-buy-ceiling, .edge-evidence, .edge-calculator, .sofitevidence, .kfmore) > summary:focus-visible { outline: 2px solid var(--focus-color, var(--bleu)); outline-offset: 2px; border-radius: 8px; }
/* One summary edge: the buy-ceiling box (14 px padding + 1 px border) and the Edge panel (18 px)
   no longer inset their summaries, so every summary starts on the card's content edge. */
.brs.so-edge-modal:not(#csx-sheet) details.edge-buy-ceiling { padding-left: 0; padding-right: 0; border-left-width: 0; border-right-width: 0; border-radius: 0; }
.brs.so-edge-modal:not(#csx-sheet) .edge-panel { padding-left: 0; padding-right: 0; }
/* The Edge card is inset 20 px (12 px at <=650 px) by Codex's own !important rule, so the loose
   "How … found this" summary is indented by the same inset plus the card's 1 px border: every
   summary shares one x. */
.brs.so-edge-modal:not(#csx-sheet) > .kfmore > summary { padding-left: 37px; }
@media (max-width: 650px) { .brs.so-edge-modal:not(#csx-sheet) > .kfmore > summary { padding-left: 29px; } }
.brs.so-edge-modal:not(#csx-sheet) .sofitactions > .btn:not(.sec) {
  background: var(--card);
  border: 1px solid var(--ink);
  color: var(--ink);
}
.brs.so-edge-modal:not(#csx-sheet) .sofitactions > .btn { min-height: 44px; }
@media (prefers-contrast: more) {
  .brs.so-edge-modal:not(#csx-sheet) :is(.edge-buy-ceiling, .edge-evidence, .edge-calculator, .sofitevidence, .kfmore) > summary::after { border-color: var(--ink); }
}

/* ---------- Both views: focus, touch targets, contrast ---------- */
#shell #content[data-bux-page][data-bux-page][data-bux-page="pipeline"] .vw-page :is(button, summary, select, input, a):focus-visible,
#shell #content[data-bux-page][data-bux-page][data-bux-page="sourceimports"] .imp-page :is(button, summary, select, input, a):focus-visible,
#shell #content[data-bux-page][data-bux-page][data-bux-page="sourceimports"] .srw :is(button, summary, select, input, a):focus-visible,
#shell #content[data-bux-page][data-bux-page][data-bux-page="sourcing"] :is(button, summary, select, input, a):focus-visible {
  outline: 2px solid var(--focus-color, var(--bleu));
  outline-offset: 2px;
}
@media (max-width: 760px) {
  #shell #content[data-bux-page][data-bux-page][data-bux-page="pipeline"] .vw-page { grid-template-columns: minmax(0, 1fr); }
  #shell #content[data-bux-page][data-bux-page][data-bux-page="pipeline"] .vw-page > .csx-head { grid-column: 1; grid-row: 1; }
  #shell #content[data-bux-page][data-bux-page][data-bux-page="pipeline"] .vw-page > nav.vw-filters { grid-column: 1; grid-row: 2; justify-self: stretch; margin-top: 12px; }
  #shell #content[data-bux-page][data-bux-page][data-bux-page="pipeline"] .csx-meta { display: none; }
  #shell #content[data-bux-page][data-bux-page][data-bux-page="pipeline"] .wq-top { margin-top: 20px; }
  #shell #content[data-bux-page][data-bux-page][data-bux-page="pipeline"] [data-vw-board] > nav.vw-filters:not(#csx-board-filters) > label { flex: 1 1 140px; }
  #shell #content[data-bux-page][data-bux-page][data-bux-page="pipeline"] [data-vw-board] > nav.vw-filters:not(#csx-board-filters) > label:first-child { flex-basis: 100%; }
  #shell #content[data-bux-page][data-bux-page][data-bux-page="pipeline"] [data-vw-board] > nav.vw-filters:not(#csx-board-filters) > label > select,
  #shell #content[data-bux-page][data-bux-page][data-bux-page="pipeline"] [data-vw-board] > nav.vw-filters:not(#csx-board-filters) > label > input { min-width: 0; width: 100%; }
  #shell #content[data-bux-page][data-bux-page][data-bux-page="pipeline"] [data-vw-board] .vw-row { grid-template-columns: minmax(0, 1fr) 16px; row-gap: 8px; }
  #shell #content[data-bux-page][data-bux-page][data-bux-page="pipeline"] [data-vw-board] .vw-row > .vw-status { grid-column: 1; grid-row: 2; justify-self: start; }
  #shell #content[data-bux-page][data-bux-page][data-bux-page="pipeline"] [data-vw-board] .vw-row > span[aria-hidden="true"] { grid-column: 2; grid-row: 1 / span 2; }
  #shell #content[data-bux-page][data-bux-page][data-bux-page="sourceimports"] .imp-shell .blh-top { flex-wrap: wrap; row-gap: 12px; }
  #shell #content[data-bux-page][data-bux-page][data-bux-page="sourceimports"] .imp-shell .blh-head { flex: 1 0 100%; }
  #shell #content[data-bux-page][data-bux-page][data-bux-page="sourceimports"] .imp-shell .blh-acts { flex: 1 0 100%; }
  #shell #content[data-bux-page][data-bux-page][data-bux-page="sourceimports"] .blh-acts > .csx-review { flex: 1 1 auto; }
}
@media (max-width: 1194px) {
  /* All five board filters fit one row down to 834 px (before the leaf they did). */
  #shell #content[data-bux-page][data-bux-page][data-bux-page="pipeline"] [data-vw-board] > nav.vw-filters:not(#csx-board-filters) > label > select,
  #shell #content[data-bux-page][data-bux-page][data-bux-page="pipeline"] [data-vw-board] > nav.vw-filters:not(#csx-board-filters) > label > input { min-width: 140px; }
  #shell #content[data-bux-page][data-bux-page][data-bux-page="pipeline"] [data-vw-board] > nav.vw-filters:not(#csx-board-filters) { gap: 10px; }
  /* Refresh joins the filter row instead of sitting alone on its own line. */
  #shell #content[data-bux-page][data-bux-page][data-bux-page="pipeline"] [data-vw-board] > nav.vw-filters:not(#csx-board-filters) > [data-task-refresh] { margin-left: 0; }
}
@media (pointer: coarse), (max-width: 1194px) {
  #shell #content[data-bux-page][data-bux-page][data-bux-page="pipeline"] .vw-page > nav.vw-filters > button,
  #shell #content[data-bux-page][data-bux-page][data-bux-page="pipeline"] .vw-page > nav.vw-filters > details > summary,
  #shell #content[data-bux-page][data-bux-page][data-bux-page="pipeline"] .wq-lanes > button,
  #shell #content[data-bux-page][data-bux-page][data-bux-page="pipeline"] .wq-tools select,
  #shell #content[data-bux-page][data-bux-page][data-bux-page="pipeline"] .wq-tools input[type="search"],
  #shell #content[data-bux-page][data-bux-page][data-bux-page="pipeline"] .wq-filtertoggle,
  #shell #content[data-bux-page][data-bux-page][data-bux-page="pipeline"] [data-vw-board] > nav.vw-filters:not(#csx-board-filters) > button,
  #shell #content[data-bux-page][data-bux-page][data-bux-page="pipeline"] [data-vw-board] > nav.vw-filters:not(#csx-board-filters) > label > select,
  #shell #content[data-bux-page][data-bux-page][data-bux-page="pipeline"] [data-vw-board] > nav.vw-filters:not(#csx-board-filters) > label > input,
  #shell #content[data-bux-page][data-bux-page][data-bux-page="sourceimports"] .blh-acts > .csx-review,
  #shell #content[data-bux-page][data-bux-page][data-bux-page="sourceimports"] .blh-acts .op-page-tools .btn,
  #shell #content[data-bux-page][data-bux-page][data-bux-page="sourcing"] #sofbar .ivschip,
  #shell #content[data-bux-page][data-bux-page][data-bux-page="sourcing"] #sofbar .ivfiltbtn,
  #shell #content[data-bux-page][data-bux-page][data-bux-page="sourcing"] :is(.so-source-menu, .sohealth, .so-browse-options) > summary,
  #shell #content[data-bux-page][data-bux-page][data-bux-page="sourcing"] .edge-browse-actions > button,
  #shell #content[data-bux-page][data-bux-page][data-bux-page="sourcing"] .edge-team-filter select,
  #shell #content[data-bux-page][data-bux-page][data-bux-page="sourcing"] #sofbar > .ivsearch input { min-height: 44px; height: 44px; }
}
/* Phones: the pile chips are one scrollable line, so the first result stays near the top. */
@media (max-width: 600px) {
  #shell #content[data-bux-page][data-bux-page][data-bux-page="sourcing"] #sofbar > .ivfrow { flex-wrap: nowrap; overflow-x: auto; overscroll-behavior-x: contain; scrollbar-width: none; padding-bottom: 2px; }
  #shell #content[data-bux-page][data-bux-page][data-bux-page="sourcing"] #sofbar > .ivfrow::-webkit-scrollbar { display: none; }
  #shell #content[data-bux-page][data-bux-page][data-bux-page="sourcing"] #sofbar .ivschips { flex-wrap: nowrap; }
  #shell #content[data-bux-page][data-bux-page][data-bux-page="sourcing"] #sofbar :is(.ivschip, .ivfiltbtn) { flex: 0 0 auto; }
}
@media (prefers-contrast: more) {
  #shell #content[data-bux-page][data-bux-page][data-bux-page="sourcing"] .edge-browse-actions > button[aria-pressed="true"],
  #shell #content[data-bux-page][data-bux-page][data-bux-page="sourcing"] #sofbar .ivschip.on,
  #shell #content[data-bux-page][data-bux-page][data-bux-page="pipeline"] [data-vw-board] > nav.vw-filters:not(#csx-board-filters) > [data-task-mine][aria-pressed="true"] { border-color: var(--ink); font-weight: 600; }
  #shell #content[data-bux-page][data-bux-page][data-bux-page="pipeline"] .vw-page > nav.vw-filters { border-bottom-color: var(--ink); }
  #shell #content[data-bux-page][data-bux-page][data-bux-page="pipeline"] [data-vw-board] .vw-status,
  #shell #content[data-bux-page][data-bux-page][data-bux-page="sourceimports"] .blh-acts > .csx-review,
  #shell #content[data-bux-page][data-bux-page][data-bux-page="sourceimports"] .imp-drop { border-color: var(--ink); }
  #shell #content[data-bux-page][data-bux-page][data-bux-page="pipeline"] .csx-meta,
  #shell #content[data-bux-page][data-bux-page][data-bux-page="pipeline"] [data-vw-board] .vw-row .vw-meta,
  #shell #content[data-bux-page][data-bux-page][data-bux-page="sourceimports"] .imp-drop-sub { color: var(--ink); }
}
@media (forced-colors: active) {
  #shell #content[data-bux-page][data-bux-page][data-bux-page="pipeline"] .vw-page > nav.vw-filters > details > summary { border-bottom-color: Canvas; }
  /* Two extra IDs: the shell's tab rule carries three (its :is() names #aprtabs). */
  #shell#shell #content#content[data-bux-page][data-bux-page][data-bux-page="pipeline"] .vw-page > nav.vw-filters > details > summary.csx-current,
  #shell#shell #content#content[data-bux-page][data-bux-page][data-bux-page="pipeline"] .vw-page > nav.vw-filters > [data-vw-tab][aria-pressed="true"] { border-bottom-color: Highlight; }
  #shell #content[data-bux-page][data-bux-page][data-bux-page="pipeline"] [data-vw-board] > nav.vw-filters:not(#csx-board-filters) > [data-task-mine][aria-pressed="true"],
  #shell #content[data-bux-page][data-bux-page][data-bux-page="sourcing"] .edge-browse-actions > button[aria-pressed="true"],
  #shell #content[data-bux-page][data-bux-page][data-bux-page="sourcing"] #sofbar .ivschip.on { border-color: Highlight; outline: 2px solid Highlight; }
  #shell #content[data-bux-page][data-bux-page][data-bux-page="sourcing"] :is(.so-source-menu, .sohealth, .so-browse-options) > summary::after,
  #shell #content[data-bux-page][data-bux-page][data-bux-page="pipeline"] .vw-page > nav.vw-filters > details > summary::after { border-color: CanvasText; }
  #shell #content[data-bux-page][data-bux-page][data-bux-page="sourceimports"] .imp-drop::before { background: CanvasText; }
}

/* Round 5 review. */
/* 1. List meta at the 12px floor (CODEX §3): source badge, its pill, the freshness line and muted figures. */
#shell #content[data-bux-page][data-bux-page][data-bux-page="sourcing"] #sobody :is(.sosourcebadge, .sosourcepill, .dxk.mut, .sofresh) { font: 500 12px/17px var(--font-ui, var(--sans)); }
/* 2. The view switch scrolls sideways: room above and below so focus rings are never clipped (net layout unchanged). */
#shell #content[data-bux-page][data-bux-page][data-bux-page="pipeline"] .vw-page > nav.vw-filters { padding-block: 4px; margin-block: -4px; }
/* 5. Dark: the selected Browse/Saved/Passed segment is raised on its track, as the List/Grid/Swipe control above it. */
:root[data-theme="dark"] #shell #content[data-bux-page][data-bux-page][data-bux-page="sourcing"] .edge-browse-actions > button[aria-pressed="true"] { background: var(--sheet, #2C2C2E); font-weight: 600; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) #shell #content[data-bux-page][data-bux-page][data-bux-page="sourcing"] .edge-browse-actions > button[aria-pressed="true"] { background: var(--sheet, #2C2C2E); font-weight: 600; } }
/* 7. The row title (the row's keyboard control) is a 44px target on touch widths. */
@media (max-width: 1194px) { #shell #content[data-bux-page][data-bux-page][data-bux-page="sourcing"] #sobody .csx-row [data-csx-open] { min-height: 44px; display: inline-flex; align-items: center; } }
