/* Shared interaction grammar, built on the generated semantic token contract. */
.source-text p { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; white-space: pre-wrap; overflow-wrap: anywhere; margin: 0; }
.source-text-open p { display: block; -webkit-line-clamp: unset; }
.source-text .quiet-link { margin-top: var(--space-2xs); }
/* Numbered criteria (Acceptance) read as a list, in full. */
.source-text-list { margin: 0; padding-left: 1.5em; }
.source-text-list li { white-space: pre-wrap; overflow-wrap: anywhere; }
.source-text-list li + li { margin-top: var(--space-xs); }
/* Reference chips: an object named by id reads as its title — a quiet inline
   link in the surrounding type, no pill. Raw id on hover via title. */
.ref-chip { color: var(--color-text-link); font: inherit; text-decoration: none; overflow-wrap: anywhere; }
a.ref-chip[href]:hover, a.ref-chip[href]:focus-visible { text-decoration: underline; text-underline-offset: 2px; }
.ref-chip-text, a.ref-chip:not([href]) { color: inherit; }
.inline-notice { border-left: 2px solid var(--color-focus-ring); padding: var(--space-xs) var(--space-sm); margin-block: var(--space-sm); color: var(--color-text-secondary); }
.inline-notice-dawn { border-left-color: var(--color-status-warning-fg); }
.inline-notice-ember { border-left-color: var(--color-status-danger-fg); }
.collection-toolbar-controls { display: flex; align-items: center; flex-wrap: wrap; gap: var(--space-sm); padding-block: var(--space-sm); }
.collection-toolbar-primary { margin-left: auto; }
.collection-find { min-width: 0; flex: 0 1 240px; }
.collection-find input { width: 100%; min-width: 0; border: 1px solid var(--color-border-default); background: var(--color-bg-surface); color: var(--color-text-primary); padding: var(--space-xs) var(--space-sm); font: inherit; }
.segmented-control { display: inline-flex; flex-wrap: wrap; gap: var(--space-2xs); border: 1px solid var(--color-border-subtle); border-radius: var(--radius-full); padding: var(--space-2xs); }
.segmented-control > :is(button, a) { display: inline-flex; align-items: center; justify-content: center; border: 0; border-radius: var(--radius-full); background: transparent; color: var(--color-text-secondary); min-height: var(--control-height); padding-inline: var(--space-sm); font: inherit; text-decoration: none; cursor: pointer; }
.segmented-control > [aria-pressed="true"], .segmented-control > [aria-current="page"] { background: var(--color-bg-sunken); color: var(--color-text-primary); }
.filter-chip { background: var(--color-text-primary); color: var(--color-bg-canvas); border-color: var(--color-text-primary); border-radius: var(--radius-full); }
.filter-chip-remove { color: inherit; }
.movement-trigger { font-family: var(--type-family-body); }
.movement-retired { display: flex; align-items: center; flex-wrap: wrap; gap: var(--space-sm); padding-block: var(--space-sm); color: var(--color-text-secondary); }
.ov-menu-item[disabled] { opacity: .6; cursor: default; }
.ov-dialog--panel { position: fixed; inset: 0 0 0 auto; margin: 0; width: min(420px, 100vw); height: 100dvh; max-height: 100dvh; max-width: 100vw; border-radius: 0; border-left: 1px solid var(--color-border-subtle); }
.ov-dialog--panel .ov-body { overflow-y: auto; min-height: 0; }
/* One height per row: command rows, toolbars and list-row actions share the
   control height; on phone every control in them steps up to 44px together. */
:is(.page-shell-commands, .collection-toolbar-controls, .home-signal-actions, .home-inbox-actions, .person-action-actions, .person-artifact-row-actions) { align-items: center; }
@media (max-width: 640px) {
  :is(.page-shell-commands, .output-command-row, .collection-toolbar-controls, .home-signal-actions, .home-inbox-actions, .person-action-actions, .person-artifact-row-actions, .work-row, .pipeline-record-list-row, .pipeline-detail-commands) { --control-height: var(--control-height-large); }
  .ov-dialog--panel { width: 100%; border: 0; }
  .collection-find { flex: 1 1 100%; }
  .collection-toolbar-controls, .page-shell-meta { gap: var(--space-xs); }
  .segmented-control { max-width: 100%; border-radius: var(--radius-surface); }
}

.ov-menu-reason { display: block; font-size: var(--type-small-size); color: var(--color-text-tertiary); font-weight: var(--type-body-weight); }
.page-shell-heading, .page-shell-meta { overflow-wrap: anywhere; }
/* 24px target size (WCAG 2.5.8; PQ-006/PQ-009). Quiet text controls and footer
   links become centred inline-flex boxes with a 24px minimum block size: same
   text, baseline and inline width, so at most a line grows by a few pixels.
   :where() keeps specificity at zero, so surface rules (block rows, chips,
   44px phone controls) still win on display and size. [hidden] and <summary>
   keep their own display (author display would beat the UA [hidden] rule). */
:where(.quiet-link, .entry-foot a, .footer a):where(:not([hidden], summary)) { display: inline-flex; align-items: center; min-block-size: 24px; }
:where(summary.quiet-link) { min-block-size: 24px; }
/* For you rows (PQ-022): the brief waits behind More, under the title and status line. */
.person-action-brief { grid-column: 1; min-width: 0; }
.person-action-brief > summary { width: fit-content; cursor: pointer; list-style: none; }
.person-action-brief > summary::-webkit-details-marker { display: none; }
.person-action-brief-text { margin: var(--space-2xs) 0 0; white-space: pre-wrap; overflow-wrap: anywhere; }
.person-for-you-elsewhere { display: flex; flex-wrap: wrap; gap: var(--space-xs) var(--space-md); }
