/* Extends the incumbent workbench surfaces and typography. */
.task-section > .lab-section-tabs { margin-bottom: 20px; }
.task-context { display:flex; align-items:center; gap:12px; margin:8px 0 18px; color:var(--muted); }
.requirement-intro { display:flex; flex-wrap:wrap; align-items:center; justify-content:space-between; gap:12px; margin-bottom:20px; }
.requirement-intro p { margin:0; max-width:72ch; color:var(--muted); }
.requirement-filters { display:flex; align-items:center; flex-wrap:wrap; gap:8px; margin:0 0 18px; }
.requirement-filters label { display:flex; align-items:center; gap:8px; }
.requirement-filters select { padding:8px 12px; border:1px solid var(--line); border-radius:8px; background:var(--panel,#fff); color:var(--ink); }
.requirement-stage { display:flex; align-items:center; flex-wrap:wrap; gap:6px; padding:0; margin:0 0 20px; list-style:none; }
.requirement-stage li { font-size:12px; color:var(--muted); }
.requirement-stage li+li::before { content:'→'; margin-right:6px; }
.requirement-history-list { display:grid; gap:0; border-top:1px solid var(--line); }
.requirement-history-row { display:flex; align-items:center; justify-content:space-between; gap:16px; padding:18px 0; border-bottom:1px solid var(--line); }
.requirement-history-row h3 { margin:0 0 6px; font-size:14px; overflow-wrap:anywhere; }
.requirement-history-row p { margin:0; color:var(--muted); font-size:12px; }
.requirement-history-detail { padding:20px; background:var(--panel,#fff); border:1px solid var(--line); border-radius:12px; }
.requirement-history-detail pre { white-space:pre-wrap; overflow-wrap:anywhere; font:inherit; line-height:1.65; }
.requirement-history-detail h2 { font-size:18px; }
.requirement-history-detail .detail-title { gap:16px; align-items:flex-start; }
.task-section .ab-toolbar-right { flex-wrap:wrap; }
.task-section .ab-search { width: min(320px,100%); }
@media(max-width:700px) {
 .task-section > .lab-section-tabs { overflow-x:auto; flex-wrap:nowrap; }
 .task-section .lab-section-tabs button { white-space:nowrap; }
 .task-section .ab-toolbar { align-items:stretch; }
 .task-section .ab-toolbar-right { width:100%; justify-content:flex-start; }
 .task-section .ab-status { min-width:0; flex:1; }
 .requirement-history-row { align-items:flex-start; }
 .requirement-history-detail { padding:14px; }
}

.requirement-filters label { white-space:nowrap; flex:none; }
.requirement-filters select { width:auto; min-width:100px; }
.task-section .rsi-header .btn { white-space:nowrap; flex-shrink:0; }
@media(max-width:700px) {
 .task-section .rsi-header { flex-wrap:wrap; }
 .task-section .rsi-header .rsi-actions { width:100%; }
}

@media(max-width:700px) {
 .delivery-workspace > .rsi-header { flex-wrap:wrap; }
 .delivery-workspace > .rsi-header > div:first-child { flex-basis:100%; min-width:0; }
 .delivery-workspace > .rsi-header .btn { flex-shrink:0; white-space:nowrap; }
}
