[data-view-panel=watch] .page-head { margin-bottom: 12px; }
[data-view-panel=watch] .page-desc { max-width: 780px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.watch-local-badge { display: none; }
.workflow-context { border: 1px solid var(--semi-color-border); border-radius: var(--op-radius); padding: 0; margin: 0 0 12px; box-shadow: var(--op-shadow-none); }
.workflow-stage-strip { display: flex; height: 40px; gap: 0; padding: 0; }
.workflow-stage { flex: 1; min-width: 0; display: flex; align-items: center; gap: 8px; padding: 8px 12px; border: 0; border-radius: var(--op-radius-none); background: transparent; }
.workflow-stage b { display: inline-flex; align-items: center; justify-content: center; width: 20px; height: 20px; padding: 0; flex: 0 0 20px; border-radius: var(--op-radius-circle); font-size: var(--semi-font-size-small); background: var(--semi-color-fill-1); }
.workflow-stage strong { font-size: var(--semi-font-size-small); font-weight: 400; line-height: 20px; white-space: nowrap; }
.workflow-stage small { display: none; }
.workflow-stage.active { background: var(--semi-color-primary-light-default); color: var(--semi-color-primary); }
.workflow-stage.active b { background: var(--semi-color-primary); color: var(--op-on-primary); }
#watchTable .watch-candidate-visual { background: var(--semi-color-fill-0); color: var(--semi-color-text-1); }
.workflow-stage b,.vote-chip { color: var(--semi-color-text-1); }
.workflow-stage.active strong { color: var(--op-color-info); }
#watchMetrics { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 12px; margin: 0 0 12px; }
#watchMetrics .watch-metric { display: flex; align-items: center; justify-content: space-between; min-height: 48px; padding: 8px 16px; border-radius: var(--op-radius); border: 1px solid var(--semi-color-border); background: var(--semi-color-bg-1); box-shadow: var(--op-shadow-none); }
#watchMetrics .watch-metric small { display: none; }
#watchMetrics .watch-metric strong { font-size: var(--semi-font-size-header-3); line-height: 32px; font-weight: 600; }
#watchMetrics .watch-metric span { font-size: var(--semi-font-size-regular); }
#watchMetrics .watch-metric[aria-pressed=true] { border-color: var(--semi-color-primary); background: var(--semi-color-primary-light-default); }
#watchFilters { display: flex; flex-wrap: wrap; gap: 12px; align-items: end; padding: 12px 16px; margin: 0 0 12px; }
#watchFilters > .watch-filter-field, #watchFilters > label { flex: 1; min-width: 120px; max-width: 190px; display: flex; flex-direction: column; gap: 4px; margin: 0; }
#watchFilters > .watch-search-field { min-width: 180px; max-width: 280px; flex: 1.5; }
#watchFilters :where(input,select,.searchable-select__trigger) { width: 100%; height: 32px; min-height: 32px; }
#watchFilters label > span:first-child { font-size: var(--semi-font-size-small); color: var(--semi-color-text-2); font-weight: 400; line-height: 16px; }
.op-filter-more { display: contents; }
.op-filter-more > summary { list-style: none; display: inline-flex; align-items: center; min-height: 32px; font-size: var(--semi-font-size-regular); color: var(--semi-color-primary); cursor: pointer; }
.op-filter-more > summary::-webkit-details-marker { display: none; }
.op-filter-more > summary::after { content: '⌄'; margin-left: 6px; }
.op-filter-more[open] > summary::after { content: '⌃'; }
.op-filter-more > .op-filter-extra { display: none; }
.op-filter-more[open] > .op-filter-extra { display: flex; order: 5; flex: 0 0 100%; flex-wrap: wrap; gap: 12px; padding: 12px 0 0; border-top: 1px solid var(--semi-color-border); }
.op-filter-extra > label { display: flex; flex-direction: column; gap: 4px; min-width: 160px; flex: 0 1 180px; }
.op-filter-extra > label > span { font-size: var(--semi-font-size-small); color: var(--semi-color-text-2); }
.loop-filters { display: contents; }
.watch-filter-actions { min-width: auto; margin-left: auto; gap: 8px; padding: 0; }
.watch-filter-actions #watchFilterCount { display: none; }
.op-table-heading { display: flex; align-items: center; justify-content: space-between; min-height: 40px; padding: 8px 12px; border-bottom: 1px solid var(--semi-color-border); font-size: var(--semi-font-size-regular); }
.op-table-heading strong { font-weight: 600; }
.op-table-heading span { color: var(--semi-color-text-2); font-size: var(--semi-font-size-small); }
.watch-table-shell { overflow: visible; border: 1px solid var(--semi-color-border); border-radius: var(--op-radius); }
.watch-table-viewport { max-height: none; overflow: visible; overscroll-behavior: auto; scrollbar-gutter: auto; position: static; border-radius: var(--op-radius-none); }
.watch-table-viewport.op-table-scroll--page-x { overflow-x: auto; overflow-y: hidden; overscroll-behavior-x: contain; scrollbar-width: none; }
.watch-table-viewport.op-table-scroll--page-x #watchTable thead th { top: var(--op-watch-header-top, 0px); }
.watch-table-viewport.op-table-scroll--contained #watchTable thead th { top: 0; }
.watch-table-viewport.op-table-scroll--page-x #watchTable .op-more[open] { display: block; }
.watch-table-viewport.op-table-scroll--page-x #watchTable .op-more-menu { position: static; min-width: 0; }
.watch-table-scroll-control { position: sticky; bottom: 0; z-index: var(--op-z-sticky); flex: none; padding: 7px 12px; border-block: 1px solid var(--semi-color-border); background: var(--semi-color-bg-1); }
#watchTable { width: 100%; min-width: 0; table-layout: fixed; font-size: var(--semi-font-size-regular); }
#watchTable :is(th,td) { min-width: 0; width: auto; padding: 6px 12px; vertical-align: middle; overflow-wrap: anywhere; }
#watchTable th { height: 40px; color: var(--semi-color-text-2); background: var(--op-table-header-bg); font-size: var(--semi-font-size-small); font-weight: 600; top: var(--op-header-h); }
#watchTable tbody tr { height: 64px; }
#watchTable th:first-child, #watchTable td:first-child { width: 25%; }
#watchTable[data-section=observation] th:nth-child(2) { width: 10%; }
#watchTable[data-section=observation] th:nth-child(3) { width: 19%; }
#watchTable[data-section=observation] th:nth-child(4) { width: 15%; }
#watchTable[data-section=observation] th:nth-child(5) { width: 15%; }
#watchTable[data-section=observation] th:last-child { width: 16%; }
/* Header and body share one eight-column width model. */
#watchTable[data-section=confirm_pool] :is(th,td):nth-child(1) { width: 280px; }
#watchTable[data-section=confirm_pool] :is(th,td):nth-child(2) { width: 260px; }
#watchTable[data-section=confirm_pool] :is(th,td):nth-child(3) { width: 180px; }
#watchTable[data-section=confirm_pool] :is(th,td):nth-child(4) { width: 144px; }
#watchTable[data-section=confirm_pool] :is(th,td):nth-child(5) { width: 176px; }
#watchTable[data-section=confirm_pool] :is(th,td):nth-child(6) { width: 200px; }
#watchTable[data-section=confirm_pool] :is(th,td):nth-child(7) { width: 160px; }
#watchTable[data-section=confirm_pool] :is(th,td):nth-child(8) { width: 144px; }
#watchTable[data-section=confirm_pool] tr > :first-child { left: 0; background: var(--semi-color-bg-1); position: sticky; z-index: var(--op-z-content); }
#watchTable[data-section=confirm_pool] tr > :last-child { right: 0; background: var(--semi-color-bg-1); position: sticky; z-index: var(--op-z-content); }
#watchTable[data-section=confirm_pool] thead tr > :is(:first-child,:last-child) { z-index: calc(var(--op-z-sticky) + 1); background: var(--op-table-header-bg); }
#watchTable[data-section=confirm_pool] tr > :first-child { border-right: 1px solid var(--semi-color-border); }
#watchTable[data-section=confirm_pool] tr > :last-child { border-left: 1px solid var(--semi-color-border); }
#watchTable .watch-candidate { display: flex; align-items: center; gap: 8px; min-width: 0; }
#watchTable .watch-candidate-visual { width: 48px; height: 48px; flex: 0 0 48px; border-radius: var(--op-radius); overflow: hidden; }
#watchTable .watch-candidate-visual img { width: 48px; height: 48px; object-fit: cover; }
#watchTable .watch-candidate-copy { min-width: 0; flex: 1; }
#watchTable .watch-candidate-copy > :is(.product-link,strong) { display: block; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: var(--semi-font-size-regular); line-height: 20px; font-weight: 400; text-align: left; }
#watchTable .watch-candidate-copy .subline { display: none; }
.op-product-meta { display: flex; align-items: center; gap: 4px; margin-top: 4px; min-width: 0; }
.op-product-source { font-size: var(--semi-font-size-small); color: var(--semi-color-text-2); white-space: nowrap; }
#watchTable .stage-tag { display: inline-block; font-size: var(--semi-font-size-small); line-height: 16px; padding: 0; margin: 0; border: 0; border-radius: var(--op-radius-none); background: transparent; color: var(--semi-color-text-2); white-space: nowrap; }
#watchTable .watch-tier-note, #watchTable .permission-note, #watchTable .workflow-cell small, #watchTable .watch-list-age { font-size: var(--semi-font-size-small); line-height: 16px; color: var(--semi-color-text-2); }
#watchTable .watch-tier-note { display: none; }
#watchTable .workflow-cell, #watchTable .workflow-actions, #watchTable .watch-evidence { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; min-width: 0; max-width: 100%; }
#watchTable .workflow-actions { flex-direction: row; flex-wrap: wrap; }
#watchTable .watch-evidence > :nth-child(n+4), #watchTable .workflow-cell > small:nth-of-type(n+2), #watchTable td > .permission-note { display: none; }
#watchTable .watch-evidence > strong, #watchTable .workflow-cell > strong, #watchTable .workflow-cell > span { max-width: 100%; font-size: var(--semi-font-size-regular); line-height: 20px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
#watchTable .review-progress > small, #watchTable .workflow-actions > small, #watchTable .loop-design-summary > small:nth-of-type(n+2) { display: none; }
#watchTable .loop-design-summary { min-width: 0; gap: 2px; }
#watchTable .loop-design-summary strong { font-size: var(--semi-font-size-regular); line-height: 20px; }
#watchTable .loop-design-summary small { font-size: var(--semi-font-size-small); line-height: 16px; }
#watchTable :where(.btn,.product-name-source-row select) { padding: 0 4px; font-size: var(--semi-font-size-small); min-height: 24px; height: 24px; }
#watchTable :where(.btn).primary { color: var(--semi-color-primary); background: transparent; border: 0; }
#watchTable .op-more-menu .btn { height: 32px; min-height: 32px; font-size: var(--semi-font-size-regular); }
#watchTable .op-row-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 0; }
.op-form-drawer { position: fixed; top: 0; right: 0; bottom: 0; left: auto; width: min(720px,100vw); max-width: none; height: 100vh; max-height: none; margin: 0; transform: none; border-radius: var(--op-radius-none); display: none; }
.op-form-drawer.open { display: flex; flex-direction: column; opacity: 1; visibility: visible; transform: none; }
.op-form-drawer > .modal-body { flex: 1; min-height: 0; overflow-y: auto; }
.op-form-drawer > :is(.modal-head,.modal-foot) { flex-shrink: 0; }
.op-candidate-details { display: grid; gap: 16px; }
.op-candidate-details section { padding-bottom: 16px; border-bottom: 1px solid var(--semi-color-border); }
.op-candidate-details h3 { font-size: var(--semi-font-size-header-6); margin: 0 0 8px; }
.op-candidate-details p { margin: 0; line-height: 1.6; overflow-wrap: anywhere; }
dialog.op-candidate-dialog { position: fixed; inset: 0 0 0 auto; width: min(560px,100vw); height: 100vh; max-height: none; margin: 0 0 0 auto; padding: 0; }
#watchTable .product-name-source-row { display: flex; align-items: center; gap: 4px; width: 100%; min-width: 0; }
#watchTable .product-name-source-row strong { min-width: 0; flex: 1; font-size: var(--semi-font-size-regular); line-height: 20px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
#watchTable .product-name-source-row .op-tag { flex: 0 0 auto; }
#watchTable[data-section=confirm_pool] .op-demand-summary > small { display: none; }
#watchTable .op-demand-bottom { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; width: 100%; min-height: 24px; }
#watchTable .op-demand-bottom > span { min-width: 0; max-width: 100%; overflow: visible; white-space: normal; overflow-wrap: anywhere; font-size: var(--semi-font-size-small); color: var(--semi-color-text-2); }
#watchTable .workflow-cell > small { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
#watchTable .status-chip { overflow: hidden; text-overflow: ellipsis; }
#watchTable .review-progress { display: flex; flex-direction: row; flex-wrap: nowrap; align-items: center; gap: 6px; min-width: 0; padding-right: 0; white-space: nowrap; }
#watchTable .vote-summary-inline { display: flex; flex-direction: row; flex-wrap: nowrap; align-items: center; gap: 6px; }
#watchTable .coverage-line { margin-top: 0; }
#watchTable .rating-distribution-trigger { position: static; flex: 0 0 24px; opacity: 1; pointer-events: auto; transform: none; }
#watchTable .vote-distribution { display: inline-flex; gap: 2px; }
#watchTable :is(.vote-chip,.reviewer-status,.coverage-line,.op-discussion-summary) { font-size: var(--semi-font-size-small); line-height: 20px; min-height: 20px; }
#watchTable .vote-chip { padding: 0 4px; }
#watchTable .coverage-line { white-space: nowrap; }
#watchTable[data-section=assessment] th:first-child { width: 21%; }
#watchTable[data-section=assessment] th:nth-child(2) { width: 8%; }
#watchTable[data-section=assessment] th:nth-child(3) { width: 29%; }
#watchTable[data-section=assessment] th:nth-child(4) { width: 7%; }
#watchTable[data-section=assessment] th:nth-child(5) { width: 9%; }
#watchTable[data-section=assessment] th:nth-child(6) { width: 12%; }
#watchTable[data-section=assessment] th:last-child { width: 14%; }
#watchTable[data-section=assessment] .review-score :is(span,small,em) { display: none; }
#watchTable[data-section=assessment] .review-score strong { font-size: var(--semi-font-size-regular); line-height: 20px; }
.op-owner-line { display: flex; align-items: center; gap: 6px; max-width: 100%; }
.op-owner-line small { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.op-owner-line .op-link-btn { flex-shrink: 0; }
.op-muted { color: var(--semi-color-text-2); }

#watchTable[data-section=confirm_pool] { min-width: 1544px; }

#watchTable[data-section=reference_pool] :is(th,td) { padding: 6px 8px; }



/* Review has five columns; reserve readable space for every workflow step. */
#watchTable[data-section=review] { min-width: 1120px; }
#watchTable[data-section=review] :is(th,td):nth-child(1) { width: 280px; }
#watchTable[data-section=review] :is(th,td):nth-child(2) { width: 144px; }
#watchTable[data-section=review] :is(th,td):nth-child(3) { width: 196px; }
#watchTable[data-section=review] :is(th,td):nth-child(4) { width: 320px; }
#watchTable[data-section=review] :is(th,td):nth-child(5) { width: 180px; }
#watchTable:is([data-section=review],[data-section=project],[data-section=reference_pool]) .company-rating-summary { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; }
#watchTable:is([data-section=review],[data-section=project],[data-section=reference_pool]) .company-rating-summary > * { flex-shrink: 0; white-space: nowrap; }
#watchTable:is([data-section=review],[data-section=project]) td:nth-child(3) :is(.team-badge,.workflow-cell > small,.op-owner-line small),
#watchTable[data-section=reference_pool] td:nth-child(4) .team-badge {
  max-width: 100%;
  white-space: normal;
  overflow: visible;
  text-overflow: clip;
  overflow-wrap: anywhere;
}
#watchTable:is([data-section=review],[data-section=project]) td:nth-child(3) .op-owner-line { flex-wrap: wrap; }
#watchTable[data-section=review] td:nth-child(4) .review-progress {
  display: grid;
  grid-template-columns: minmax(0,1fr);
  align-items: start;
  gap: 4px;
  white-space: normal;
}
#watchTable[data-section=review] td:nth-child(4) .status-chip {
  max-width: 100%;
  white-space: normal;
  overflow: visible;
  text-overflow: clip;
  overflow-wrap: anywhere;
}
#watchTable[data-section=review] td:nth-child(4) .review-step-complete { color: var(--semi-color-success); }
#watchTable[data-section=review] .review-step-trigger {
  font-family: inherit;
  text-align: left;
  cursor: pointer;
}
#watchTable[data-section=review] .review-step-trigger:hover { background: var(--semi-color-fill-1); }
#watchTable[data-section=review] .review-step-trigger:focus-visible {
  outline: 2px solid var(--semi-color-primary);
  outline-offset: 2px;
}

/* Initiation facts remain readable before opening the existing read-only drawer. */
#watchTable[data-section=project] { min-width: 1280px; }
#watchTable[data-section=project] :is(th,td):nth-child(1) { width: 280px; }
#watchTable[data-section=project] :is(th,td):nth-child(2) { width: 120px; }
#watchTable[data-section=project] :is(th,td):nth-child(3) { width: 180px; }
#watchTable[data-section=project] :is(th,td):nth-child(4) { width: 320px; }
#watchTable[data-section=project] :is(th,td):nth-child(5) { width: 180px; }
#watchTable[data-section=project] :is(th,td):nth-child(6) { width: 200px; }
/* The specification uses the shared two-line clamp below. Visible overflow on
   this more specific selector would paint the remaining text over later facts. */
#watchTable[data-section=project] .initiation-summary > span:not(.initiation-spec) { white-space: normal; overflow: visible; overflow-wrap: anywhere; }

#watchTable[data-section=confirm_pool] .product-name-source-row { flex-direction: column; align-items: flex-start; }
#watchTable[data-section=confirm_pool] .product-name-source-row strong { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; white-space: normal; overflow-wrap: anywhere; flex: none; }

#watchTable:is([data-section=confirm_pool],[data-section=reference_pool]) .workflow-record-date { display: flex; flex-direction: column; gap: 2px; white-space: normal; overflow: visible; }
#watchTable:is([data-section=confirm_pool],[data-section=reference_pool]) .workflow-record-date time { white-space: nowrap; font-variant-numeric: tabular-nums; }
#watchTable:is([data-section=confirm_pool],[data-section=reference_pool]) .status-chip { white-space: normal; overflow: visible; }

/* Reference names and their type tags occupy separate lines. */
#watchTable[data-section=reference_pool] { min-width: 1584px; }
#watchTable[data-section=reference_pool] :is(th,td):nth-child(1) { width: 240px; }
#watchTable[data-section=reference_pool] :is(th,td):nth-child(2) { width: 120px; }
#watchTable[data-section=reference_pool] :is(th,td):nth-child(3) { width: 160px; }
#watchTable[data-section=reference_pool] :is(th,td):nth-child(4) { width: 160px; }
#watchTable[data-section=reference_pool] :is(th,td):nth-child(5) { width: 200px; }
#watchTable[data-section=reference_pool] :is(th,td):nth-child(6) { width: 160px; }
#watchTable[data-section=reference_pool] :is(th,td):nth-child(7) { width: 240px; }
#watchTable[data-section=reference_pool] :is(th,td):nth-child(8) { width: 180px; }
#watchTable[data-section=reference_pool] :is(th,td):nth-child(9) { width: 124px; }
#watchTable[data-section=reference_pool] .product-name-source-row { flex-direction: column; align-items: flex-start; gap: 4px; }
#watchTable[data-section=reference_pool] .product-name-source-row strong { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; white-space: normal; overflow-wrap: anywhere; flex: none; }
#watchTable[data-section=reference_pool] td:nth-child(7) .workflow-cell:has(> [data-op-demand-preview]) {
  display: grid;
  grid-template-columns: minmax(0, max-content) minmax(0, max-content);
  gap: 4px 8px;
}
#watchTable[data-section=reference_pool] td:nth-child(7) .workflow-cell:has(> [data-op-demand-preview]) > :is(.product-name-source-row,.demand-spec) { grid-column: 1 / -1; }
#watchTable[data-section=reference_pool] td:nth-child(7) .workflow-cell:has(> [data-op-demand-preview]) > small { display: none; }
#watchTable[data-section=reference_pool] td:nth-child(7) .product-name-source-row { flex-direction: row; align-items: center; }
#watchTable[data-section=reference_pool] td:nth-child(7) .product-name-source-row strong { flex: 1; min-width: 0; }
#watchTable[data-section=reference_pool] .demand-spec { white-space: normal; overflow: visible; overflow-wrap: anywhere; }

/* Keep short number/unit items together; long summaries use the read-only entry. */
#watchTable:is([data-section=project],[data-section=confirm_pool],[data-section=reference_pool]) :is(.demand-spec,.initiation-spec) {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  max-width: 100%;
  white-space: normal;
  overflow: hidden;
}
#watchTable .op-spec-item { white-space: nowrap; }
