/* Which Framework tools: only the agile sprints pages. Written by gen/prdcss.py from css/tools.css; edit tools.css, then rerun. */
/* Rules these pages share with other playbooks (the project pages' tl-pj- parts, the investment pages' tl-iv- parts), whose files they do not load: */
.tl-ktable .tl-sug, .tl-kteam .tl-sug { color: var(--color-text-secondary); }
.tl-kteam th[scope="row"] .tl-sug { font-weight: 400; }
.tl-uacts { list-style: none; margin: 0 0 var(--space-3); padding: 0; display: grid; gap: var(--space-2); }
.tl-uact { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-2) var(--space-3); padding: var(--space-2) var(--space-3); border: 1px solid var(--color-border-strong); border-radius: var(--radius-md); background: var(--color-bg-secondary); }
.tl-uact__n { display: inline-grid; place-items: center; width: 1.6rem; height: 1.6rem; border-radius: 50%; background: var(--color-slate-800); color: #fff; font-size: var(--text-xs); font-weight: 700; flex: none; }
.tl-uact input[type="text"] { flex: 1 1 14rem; min-width: 0; padding: var(--space-2); font: var(--text-sm) var(--font-body); border: 1px solid var(--color-border-strong); border-radius: var(--radius-sm); background: #fff; }
.tl-uact__works { display: inline-flex; align-items: center; gap: var(--space-1); font-size: var(--text-sm); color: var(--color-text-secondary); white-space: nowrap; }
.tl-uact__btns { display: inline-flex; align-items: center; gap: var(--space-2); margin-left: auto; }
.tl-uact .tl-iconbtn { width: 2rem; height: 2rem; border: 1px solid var(--color-border-strong); border-radius: var(--radius-sm); background: #fff; cursor: pointer; }
.tl-uact .tl-iconbtn:disabled { opacity: .35; cursor: default; }
.tl-ucards input[type="text"] { width: 100%; min-width: 12rem; padding: var(--space-1) var(--space-2); font: var(--text-sm) var(--font-body); border: 1px solid var(--color-border-strong); border-radius: var(--radius-sm); background: var(--color-bg-secondary); }
.tl-ucards select { width: 13rem; }
.tl-ucards td { white-space: nowrap; }
.tl-umap { width: 100%; border-collapse: separate; border-spacing: 4px; font-size: var(--text-sm); min-width: 34rem; }
.tl-umap thead th { padding: var(--space-2); background: var(--color-slate-800); color: #fff; border-radius: var(--radius-sm); text-align: left; vertical-align: top; font-weight: 600; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
.tl-umap thead th small { display: block; font-weight: 400; color: var(--color-amber-300); }
.tl-umap__n { display: inline-block; min-width: 1.2rem; color: var(--color-amber-400); }
.tl-umap tbody th { padding: var(--space-2); text-align: left; vertical-align: top; width: 8.5rem; font-weight: 700; color: var(--color-text-primary); border-top: 2px dashed var(--color-slate-400); }
.tl-umap tbody th small { display: block; font-weight: 600; }
.tl-umap__ok { color: #15803d; }
.tl-umap__gap { color: #b42318; }
.tl-umap tbody td { padding: var(--space-2); vertical-align: top; background: var(--color-bg-secondary); border-top: 2px dashed var(--color-slate-400); border-radius: 0 0 var(--radius-sm) var(--radius-sm); }
.tl-umap td.is-gap { background: #fdecea; outline: 2px dashed #b42318; outline-offset: -3px; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
.tl-umap__hole { display: block; font-size: var(--text-xs); font-weight: 600; color: #b42318; }
.tl-ucard { display: block; margin: 0 0 4px; padding: 4px 6px; background: var(--color-amber-50); border: 1px solid var(--color-amber-300); border-radius: 3px; line-height: 1.3; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
.tl-ucard--m { border-left: 4px solid var(--color-slate-900); }
.tl-urels { margin: 0; padding-left: 1.1rem; }
.tl-urels li { margin-bottom: var(--space-2); }
@media (max-width: 640px) {
  .tl-uact__btns { margin-left: 0; }
  .tl-ucards select, .tl-ucards input[type="text"] { width: 100%; min-width: 0; }
  .tl-ucards td { white-space: normal; }
  .pb-grid.tl-ucards { min-width: 0 !important; }
}
@media print {
  .tl-umap { min-width: 0; font-size: 8.5pt; }
  .tl-umap tbody th { width: 22mm; }
}
.tl-ucards .tl-done-row th::before { content: none; }
.tl-ucards td:last-child { white-space: nowrap; }
.tl-ucards td:last-child .tl-link + .tl-link { margin-left: var(--space-3); }
.tl-uact__cards { display: flex; flex-wrap: wrap; gap: 4px; flex: 1 1 100%; margin-left: 2.35rem; }
.tl-uact__cards .tl-ucard { margin: 0; font-size: var(--text-xs); }
.tl-uact select { width: auto; max-width: 12rem; padding: var(--space-1) var(--space-2); font: var(--text-xs) var(--font-body); border: 1px solid var(--color-border-strong); border-radius: var(--radius-sm); background: #fff; }
.tl-umiss { margin: var(--space-2) 0 var(--space-5); padding: var(--space-3) var(--space-4); border: 1px dashed var(--color-amber-400); border-radius: var(--radius-md); background: var(--color-amber-50); }
.tl-umiss__q { margin: 0 0 var(--space-2); font-size: var(--text-sm); }
.tl-umiss input[type="text"] { flex: 1 1 14rem; min-width: 0; padding: var(--space-2); font: var(--text-sm) var(--font-body); border: 1px solid var(--color-border-strong); border-radius: var(--radius-sm); background: #fff; }
.tl-ucards input[data-step] { min-width: 10rem; }
@media (max-width: 640px) {
  .tl-uact__cards { margin-left: 0; }
}
.tl-pj-br__foot { margin: var(--space-2) 0 0; font-size: var(--text-sm); }
.tl-pj-seg .tl-seg__opt { white-space: nowrap; }
@media (max-width: 760px) {
  .tl-pj-seg .tl-seg__opt { white-space: normal; }
}
.tl-pj-rules { margin: var(--space-3) 0; display: grid; border-top: 1px solid var(--line, #dde2e9); }
.tl-pj-rule { display: grid; grid-template-columns: 13rem 1fr; gap: var(--space-4); padding: .6rem 0; border-bottom: 1px solid var(--line, #dde2e9); font-size: var(--text-sm); }
.tl-pj-rule dt { font-weight: 700; color: var(--ink, #1e293b); }
.tl-pj-rule dt::before { content: "✓"; display: inline-block; width: 1.3em; color: #17713a; }
.tl-pj-rule.is-flag dt::before { content: "!"; color: #b45309; font-weight: 800; }
.tl-pj-rule dd { margin: 0; color: var(--ink, #1e293b); line-height: 1.5; }
.tl-pj-rule q { font-style: normal; }
@media (max-width: 640px) {
  .tl-pj-rule { grid-template-columns: 1fr; gap: .2rem; }
}
@media print {
  .tl-pj-tree__br, .tl-pj-bar, .tl-pj-rule { break-inside: avoid; }
}
.tl-pj-sum { display: flex; flex-wrap: wrap; gap: 0; margin: var(--space-4) 0; border: 1px solid var(--line, #dde2e9); border-radius: var(--r, 3px); background: #fff; }
.tl-pj-sum__fig { flex: 1 1 9rem; padding: .75rem 1rem; border-left: 1px solid var(--line, #dde2e9); }
.tl-pj-sum__fig:first-child { border-left: 0; }
.tl-pj-sum__n { display: block; font-size: 1.75rem; font-weight: 700; line-height: 1.1; color: var(--ink, #1e293b); font-variant-numeric: tabular-nums; }
.tl-pj-sum__l { display: block; font-size: var(--text-sm); color: var(--mute, #5b6779); }
.tl-pj-sum__fig.is-bad .tl-pj-sum__n { color: #b42318; }
@media print {
  .tl-pj-gantt__bar, .tl-pj-gantt__key .tl-pj-k::before, .tl-pj-sum, .tl-pj-chain li { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
}
main.tl-v2 .pb-grid td.is-bad, main.tl-v2 .tl-iv-yrs td.is-bad, main.tl-v2 .pb-grid td.is-neg, main.tl-v2 .pb-grid .is-neg { color: #b91c1c; }
main.tl-v2 .pb-grid td.is-bad { font-weight: 600; }
main.tl-v2 #kGrid tbody td { padding-top: calc(.5625rem + 1.4rem); }
.tl-mwarn.is-bad { color: #b91c1c; }

/* ---------- agile sprints playbook (tl-ag-): stage 1 lean principles, the agile story map ---------- */
.tl-ag-two { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-3) var(--space-4); }
.tl-ag-ask { display: flex; flex-wrap: wrap; align-items: flex-end; gap: var(--space-3) var(--space-5); margin: var(--space-3) 0; }
.tl-ag-n { flex: 0 0 8rem; }
.tl-ag-n:has(label[for="spPeople"]), .tl-ag-n:has(label[for="spLeave"]), .tl-ag-n:has(label[for="spUrgent"]) { flex-basis: 12.5rem; }
.tl-ag-kanban { margin-top: var(--space-3); }
.tl-ag-lab { margin: 0 0 var(--space-1); font-size: 14px; font-weight: 600; color: var(--ink, #1e293b); }
.tl-ag-item { max-width: 34rem; margin: var(--space-3) 0; }
.tl-field textarea#lnValue { width: 100%; max-width: 46rem; padding: var(--space-2) var(--space-3); font: 15px/1.45 var(--font-body); color: var(--ink, #1e293b); border: 1px solid var(--line-strong, #aab3c0); border-radius: var(--r, 3px); resize: vertical; }
.tl-field textarea#lnValue:focus { outline: 2px solid var(--ink, #1e293b); outline-offset: 1px; border-color: var(--ink, #1e293b); }
.tl-ag-num { max-width: 6.5rem; }
input.tl-ag-num.is-bad { border-color: #b42318; background: #fff6f5; }
.tl-ag-themes th:nth-child(2), .tl-ag-themes td:nth-child(2) { width: 8.5rem; }
.tl-ag-themes th:nth-child(3), .tl-ag-themes td:nth-child(3) { width: 10rem; }
.tl-ag-themes td:nth-child(3) select { min-width: 9rem; }
.tl-ag-steps th:nth-child(2), .tl-ag-steps td:nth-child(2), .tl-ag-steps th:nth-child(3), .tl-ag-steps td:nth-child(3) { width: 6.5rem; }
.tl-ag-steps td:nth-child(4) select { min-width: 12rem; }
.tl-ag-steps .tl-prow__btns .tl-link { display: inline; margin: 0 0 0 .5rem; }
@media (min-width: 761px) { .tl-ag-stab th:nth-child(2), .tl-ag-stab td:nth-child(2), .tl-ag-stab th:nth-child(3), .tl-ag-stab td:nth-child(3) { text-align: right; } }
/* the results: what customers value */
.tl-ag-vtab tr.is-top th, .tl-ag-stab tr.is-top th { box-shadow: none; }
.tl-ag-vtab tr.is-flag th, .tl-ag-vtab tr.is-flag td { background: var(--color-amber-50, #fdf6dc); }
.tl-ag-note { display: block; margin-top: 2px; font-size: 13px; font-weight: 500; color: #8a4b08; }
.tl-ag-bar { display: inline-block; vertical-align: middle; width: 7rem; height: .55rem; margin-right: .5rem; background: var(--wash, #f4f6f8); border: 1px solid var(--line, #dde2e9); border-radius: 2px; overflow: hidden; }
.tl-ag-bar__fill { display: block; height: 100%; background: #475569; }
.tl-ag-bar__fill.is-miss { background: var(--act, #d97706); }
.tl-ag-bar__n { font-variant-numeric: tabular-nums; white-space: nowrap; }
.tl-ag-plan.is-over { font-weight: 600; color: #8a4b08; }
.tl-pj-rule.tl-ag-later dt::before { content: "–"; color: var(--mute, #5b6779); }
.tl-pj-rule.tl-ag-later dt { font-weight: 600; }
/* the results: one piece of work on a day axis */
.tl-ag-tl { margin: var(--space-4) 0; font-size: var(--text-sm); }
.tl-ag-tl__key { display: flex; flex-wrap: wrap; gap: .4rem 1.2rem; margin-bottom: var(--space-2); color: var(--mute, #5b6779); }
.tl-ag-k::before { content: ''; display: inline-block; width: .9rem; height: .6rem; margin-right: .35rem; vertical-align: middle; border-radius: 1px; }
.tl-ag-k--wait::before { background: #f3d58a; }
.tl-ag-k--work::before { background: var(--ink, #1e293b); }
.tl-ag-k--top::before { background: var(--act, #d97706); }
.tl-ag-tl__row { display: grid; grid-template-columns: minmax(9rem, 14rem) 1fr 9rem; align-items: center; gap: .75rem; padding: .3rem 0; border-top: 1px solid var(--line, #dde2e9); }
.tl-ag-tl__row:nth-child(2) { border-top: 0; }
.tl-ag-tl__lab { overflow-wrap: anywhere; }
.tl-ag-tl__row.is-top .tl-ag-tl__lab { font-weight: 600; }
.tl-ag-tl__track { position: relative; height: 14px; background: var(--wash, #f4f6f8); border-radius: 2px; }
.tl-ag-tl__wait, .tl-ag-tl__work { position: absolute; top: 0; bottom: 0; }
.tl-ag-tl__wait { background: #f3d58a; }
.tl-ag-tl__row.is-top .tl-ag-tl__wait { background: var(--act, #d97706); }
.tl-ag-tl__work { background: var(--ink, #1e293b); }
.tl-ag-tl__n { color: var(--mute, #5b6779); font-variant-numeric: tabular-nums; }
.tl-ag-tl__axisrow { border-top: 0; padding-top: 0; }
.tl-ag-tl__axis { position: relative; height: 1.2rem; border-top: 1px solid var(--line-strong, #aab3c0); }
.tl-ag-tl__axis span { position: absolute; top: 2px; transform: translateX(-50%); font-size: 12px; color: var(--mute, #5b6779); font-variant-numeric: tabular-nums; }
.tl-ag-stab .tl-ag-total th, .tl-ag-stab .tl-ag-total td { font-weight: 600; border-top: 2px solid var(--line-strong, #aab3c0); }
.tl-ag-stab td { font-variant-numeric: tabular-nums; }
/* the agile story map: stage 1's value, the backlog in order */
.tl-ag-value { margin: 0 0 var(--space-4); padding: .8rem 1rem; border: 1px solid var(--line, #dde2e9); border-radius: var(--r, 3px); background: var(--wash, #f4f6f8); }
.tl-ag-value__h { margin: 0; font-size: 13px; font-weight: 600; color: var(--mute, #5b6779); }
.tl-ag-value__t { margin: .15rem 0; font-size: 1.05rem; font-weight: 600; color: var(--ink, #1e293b); }
.tl-ag-value__n { margin: 0; font-size: var(--text-sm); color: var(--mute, #5b6779); }
.tl-ag-bl { margin-top: var(--space-5); }
main.tl-v2 .tl-ag-bltab th:first-child, main.tl-v2 .tl-ag-bltab td:first-child { width: 4.5rem; text-align: left; font-variant-numeric: tabular-nums; color: var(--mute, #5b6779); }
.tl-ag-bltab td:nth-child(3) { width: 30%; }
main.tl-v2 .tl-ag-bltab th, main.tl-v2 .tl-ag-bltab td { padding-top: .35rem; padding-bottom: .35rem; }
.tl-ag-bltab th[scope="row"] { font-weight: 500; }
.tl-ag-bltab--sk th[scope="row"] { font-weight: 600; }
.tl-ag-blh { margin: var(--space-4) 0 var(--space-1); font-size: var(--text-sm); font-weight: 600; color: var(--ink, #1e293b); }
.tl-ag-bld { margin: var(--space-4) 0 0; }
.tl-ag-bld > summary { cursor: pointer; font-size: var(--text-sm); font-weight: 600; color: var(--ink, #1e293b); }
.tl-ag-bld[open] > summary { margin-bottom: var(--space-1); }
@media print { #uBlOut .tl-ag-bld { display: none; } .tl-ag-blh { break-after: avoid; page-break-after: avoid; } }
.tl-ag-bltab .tl-prow__btns .tl-iconbtn + .tl-iconbtn { margin-left: .3rem; }
/* stage 3: the Scrum team setup */
.tl-ag-qs { display: grid; gap: var(--space-3); margin-top: var(--space-3); }
.tl-ag-qs .tl-seg { flex-wrap: wrap; }
.tl-ag-roles th:nth-child(2), .tl-ag-roles td:nth-child(2) { width: 7rem; }
.tl-field textarea.tl-ag-text { width: 100%; max-width: 46rem; padding: var(--space-2) var(--space-3); font: 15px/1.45 var(--font-body); color: var(--ink, #1e293b); border: 1px solid var(--line-strong, #aab3c0); border-radius: var(--r, 3px); resize: vertical; }
.tl-field textarea.tl-ag-text:focus { outline: 2px solid var(--ink, #1e293b); outline-offset: 1px; border-color: var(--ink, #1e293b); }
.tl-ag-sug { list-style: none; margin: 0 0 var(--space-4); padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .35rem 2rem; }
.tl-ag-sug .tl-check-opt { margin: 0; font-size: 15px; color: var(--ink, #1e293b); }
.tl-ag-own { list-style: none; margin: 0; padding: 0; display: grid; gap: .5rem; }
.tl-ag-own li { display: grid; grid-template-columns: minmax(0, 28rem) 11rem auto; justify-content: start; align-items: center; gap: .75rem; }
.tl-ag-kind { font-size: 13px; color: var(--mute, #5b6779); }
.tl-ag-cov { display: inline-block; margin-right: 1.1rem; color: var(--mute, #5b6779); }
.tl-ag-cov.is-on { color: var(--ink, #1e293b); font-weight: 600; }
.tl-ag-team td:first-child { color: var(--mute, #5b6779); white-space: nowrap; }
/* stage 4: the sprint plan */
.tl-ag-events td:nth-child(3) { white-space: nowrap; }
.tl-ag-refrow th, .tl-ag-refrow td { font-style: italic; }
.tl-ag-stories .tl-ag-pickc { width: 6.5rem; text-align: center; }
.tl-ag-stories .tl-ag-pickc input { width: 18px; height: 18px; }
.tl-ag-stories th:nth-child(3), .tl-ag-stories td:nth-child(3) { width: 24%; }
.tl-ag-stories .tl-ag-num { max-width: 6.5rem; }
.tl-ag-stories td:has(> .tl-ag-num) { width: 8.5rem; }
.tl-ag-stories tr.is-pick th, .tl-ag-stories tr.is-pick td { background: var(--wash, #f4f6f8); }
.tl-ag-stories th[scope="row"] { font-weight: 500; }
.tl-ag-note--plain { color: var(--mute, #5b6779); font-weight: 400; }
.tl-ag-fit { display: inline-block; vertical-align: middle; width: 9rem; height: .6rem; margin-right: .6rem; background: var(--wash, #f4f6f8); border: 1px solid var(--line, #dde2e9); border-radius: 2px; overflow: hidden; }
.tl-ag-fit__bar { display: block; height: 100%; background: #475569; }
.tl-ag-fit__bar.is-over { background: #b42318; }
.tl-ag-plan td:first-child { width: 4rem; color: var(--mute, #5b6779); }
.tl-ag-plan td:last-child, .tl-ag-plan thead th:last-child { text-align: right; font-variant-numeric: tabular-nums; }
.tl-ag-hist td.is-bad { color: #b42318; font-weight: 600; }
.tl-ag-close { margin-top: var(--space-5); padding: var(--space-4); border: 1px solid var(--line, #dde2e9); border-radius: var(--r, 3px); background: var(--wash, #f4f6f8); }
.tl-ag-close .tl-sub-h { margin-top: 0; }
.tl-ag-close .tl-ag-sug { grid-template-columns: 1fr; margin-bottom: var(--space-3); }
.tl-ag-close > .tl-field { margin-bottom: var(--space-3); }
.tl-ag-close .tl-ag-lab { margin-top: var(--space-2); }
.tl-ag-saved:empty { display: none; }
.tl-ag-how { display: inline; }
.tl-ag-how > summary { display: inline; cursor: pointer; color: var(--link, #1d4ed8); text-decoration: underline; text-underline-offset: 2px; font-size: 14px; list-style: none; }
.tl-ag-how > summary::-webkit-details-marker { display: none; }
.tl-ag-how > p { margin: .35rem 0 0; color: var(--mute, #5b6779); }
main.tl-v2 .tl-ag-close .tl-ag-chhead { display: inline-flex; align-items: center; gap: .35rem; margin: 0 0 var(--space-1); font-size: 14px; font-weight: 600; font-family: var(--font-body); }
.tl-ag-saved { margin: 0 0 var(--space-3); font-weight: 600; color: var(--ok, #15803d); }
@media (max-width: 760px) {
  .tl-ag-sug { grid-template-columns: 1fr; }
  .tl-ag-own li { grid-template-columns: 1fr auto; }
  .tl-ag-own .tl-ag-kind { grid-column: 1; grid-row: 2; }
  .tl-ag-events td:nth-child(3) { white-space: normal; }
  .tl-ag-stories .tl-ag-pickc { width: auto; text-align: left; }
  .tl-ag-two { grid-template-columns: 1fr; }
  .tl-ag-tl__row { grid-template-columns: 1fr; gap: .2rem; }
  .tl-ag-tl__axisrow .tl-ag-tl__lab, .tl-ag-tl__axisrow .tl-ag-tl__n { display: none; }
  .tl-ag-steps td:nth-child(4) select, .tl-ag-themes td:nth-child(3) select { min-width: 0; }
  .tl-ag-themes td, .tl-ag-steps td { width: auto !important; }
}
@media print {
  .tl-ag-tl, .tl-ag-tl__wait, .tl-ag-tl__work, .tl-ag-tl__track, .tl-ag-k::before, .tl-ag-bar, .tl-ag-bar__fill, .tl-ag-vtab tr.is-flag th, .tl-ag-vtab tr.is-flag td { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  .tl-ag-tl { break-inside: avoid; }
  .tl-ag-tl__row { grid-template-columns: 11rem 1fr 8rem; }
}
/* stage 5: the priority matrix; stage 6: the measures */
.tl-ag-hints { display: flex; flex-wrap: wrap; gap: .25rem 1.25rem; }
.tl-ag-hints:not(:has(button:not([hidden]))) { display: none; }
.tl-ag-wide { flex: 1 1 18rem; max-width: 26rem; }
.tl-ag-reqs td:nth-child(2) { width: 30%; }
.tl-ag-reqs td.tl-ag-pickc { width: 5.5rem; text-align: center; }
.tl-ag-sort th[scope="row"] { font-weight: 500; }
.tl-ag-sort td:nth-child(2), .tl-ag-sort td:nth-child(3) { width: 9.5rem; }
.tl-ag-sort td:last-child { width: 7rem; }
.tl-ag-yn { white-space: nowrap; }
.tl-ag-q { display: inline-block; padding: .05rem .5rem; border-radius: 3px; font-size: 13px; font-weight: 600; line-height: 1.5; border: 1px solid var(--line, #dde2e9); background: #fff; color: var(--ink, #1e293b); }
.tl-ag-q--do { background: #fdecd3; border-color: #f2c98f; color: #7a3d04; }
.tl-ag-q--sch { background: #e6eefb; border-color: #bccdec; color: #1e3a6e; }
.tl-ag-q--del { background: var(--wash, #f4f6f8); }
.tl-ag-q--dlt { background: #fff; color: var(--mute, #5b6779); text-decoration: line-through; }
.tl-ag-counts { display: flex; flex-wrap: wrap; align-items: center; gap: .35rem 1rem; }
.tl-ag-cnt { font-weight: 600; }
.tl-ag-who { display: grid; grid-template-columns: 9rem auto 1fr; align-items: center; gap: .5rem; margin: 0 0 .4rem; font-size: 15px; }
.tl-ag-who .tl-ag-bar { width: 10rem; margin: 0; }
.tl-ag-bar__n { color: var(--mute, #5b6779); }
.tl-ag-ksug { list-style: none; margin: 0; padding: 0; display: grid; gap: .5rem; }
.tl-ag-ksug li { display: grid; grid-template-columns: minmax(0, 22rem) minmax(0, 1fr) auto; align-items: baseline; gap: .25rem 1rem; padding: .45rem 0; border-bottom: 1px solid var(--line, #dde2e9); }
.tl-ag-ksug__t { font-weight: 600; }
.tl-ag-ksug__why { font-size: 14px; color: var(--mute, #5b6779); }
.tl-ag-kpis td:nth-child(2), .tl-ag-kpis td:nth-child(3) { width: 13rem; }
.tl-ag-kpis select { width: 100%; }
.tl-ag-kown th[scope="row"] { font-weight: 500; }
.tl-ag-kown td:nth-child(3) { width: 8.5rem; }
.tl-ag-kown td:nth-child(4), .tl-ag-kown td:nth-child(5) { width: 7.5rem; }
.tl-ag-kown .tl-ag-num { max-width: 100%; }
.tl-ag-flag { font-size: 14px; color: #8a4b08; font-weight: 500; }
.tl-ag-types { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: .75rem; }
.tl-ag-types li { display: flex; gap: .6rem; padding: .75rem; border: 1px solid var(--line, #dde2e9); border-radius: 4px; background: #fff; }
.tl-ag-types__n { flex: 0 0 1.6rem; height: 1.6rem; border-radius: 50%; background: var(--wash, #f4f6f8); border: 1px solid var(--line, #dde2e9); text-align: center; font-weight: 700; font-size: 14px; line-height: 1.5rem; }
.tl-ag-types__h { margin: 0 0 .2rem; font-weight: 700; font-size: 15px; }
.tl-ag-types__r { margin: 0 0 .3rem; font-size: 14px; color: var(--mute, #5b6779); }
.tl-ag-types__m { margin: 0; font-size: 14px; }
.tl-ag-review { margin: 0; padding-left: 1.2rem; }
.tl-ag-review li { margin: 0 0 .35rem; }
@media (max-width: 900px) { .tl-ag-types { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 760px) {
  .tl-ag-reqs td:nth-child(2), .tl-ag-reqs td.tl-ag-pickc, .tl-ag-sort td, .tl-ag-kpis td, .tl-ag-kown td { width: auto !important; text-align: left; }
  .tl-ag-who { grid-template-columns: 1fr; gap: .2rem; margin-bottom: .75rem; }
  .tl-ag-ksug li { grid-template-columns: 1fr auto; }
  .tl-ag-ksug__why { grid-column: 1; }
  .tl-ag-types { grid-template-columns: 1fr; }
}
@media print {
  .tl-ag-q, .tl-ag-mx__cell { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
}
.tl-ag-from5 { margin: var(--space-4) 0 var(--space-2); padding: var(--space-3) var(--space-4); border: 1px solid var(--line, #dde2e9); border-radius: 4px; background: var(--wash, #f4f6f8); }
.tl-ag-from5 .tl-note { margin: 0 0 .35rem; }
.tl-ag-from5 .tl-note:empty { display: none; }
.tl-ag-f5 { margin-top: var(--space-4); }
/* the matrix: the results and the key in step 2 share it */
.tl-ag-mx { width: 100%; border-collapse: separate; border-spacing: 8px; table-layout: fixed; margin: 0 -8px; width: calc(100% + 16px); }
.tl-ag-mx thead td { width: 3rem; }
.tl-ag-mx thead th { padding: 0 .25rem .1rem; text-align: left; vertical-align: top; }
.tl-ag-mx__ax { display: block; font-size: 13px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; color: var(--ink, #1e293b); }
.tl-ag-mx__axs { display: block; font-size: 13px; font-weight: 400; color: var(--mute, #5b6779); }
.tl-ag-mx tbody th { padding: 0; vertical-align: middle; }
.tl-ag-mx tbody th > span.tl-ag-mx__rowl { display: flex; flex-direction: column; align-items: center; justify-content: center; writing-mode: vertical-rl; transform: rotate(180deg); margin: 0 auto; gap: .15rem; }
.tl-ag-mx__cell { vertical-align: top; padding: 1rem 1.1rem 1.1rem; border: 1px solid var(--line, #dde2e9); border-radius: 6px; background: #fff; }
.tl-ag-mx__cell--do { background: #fdf3e4; border-color: #f0cf9c; }
.tl-ag-mx__cell--sch { background: #eef3fb; border-color: #c9d7ee; }
.tl-ag-mx__cell--del { background: #f6f7f9; }
.tl-ag-mx__cell--dlt { background: #fff; border-style: dashed; }
.tl-ag-mx__top { display: flex; align-items: baseline; justify-content: space-between; gap: .75rem; margin: 0 0 .35rem; }
.tl-ag-mx__name { font-family: var(--font-heading, inherit); font-size: 20px; font-weight: 700; line-height: 1.2; color: var(--ink, #1e293b); }
.tl-ag-mx__cell--do .tl-ag-mx__name { color: #7a3d04; }
.tl-ag-mx__cell--sch .tl-ag-mx__name { color: #1e3a6e; }
.tl-ag-mx__cell--dlt .tl-ag-mx__name { color: var(--mute, #5b6779); }
.tl-ag-mx__n { font-size: 32px; font-weight: 700; line-height: 1; color: var(--ink, #1e293b); font-variant-numeric: tabular-nums; }
.tl-ag-mx__n small { display: block; margin-top: .2rem; font-size: 13px; font-weight: 500; color: var(--mute, #5b6779); text-align: right; }
.tl-ag-mx__rule { margin: 0 0 .6rem; font-size: 15px; font-weight: 600; line-height: 1.4; color: var(--ink, #1e293b); }
.tl-ag-mx__ex { list-style: none; margin: 0; padding: .55rem 0 0; border-top: 1px solid rgba(30, 41, 59, .1); font-size: 14px; color: var(--ink, #1e293b); }
.tl-ag-mx__ex li { margin: 0 0 .2rem; padding-left: .9rem; text-indent: -.9rem; }
.tl-ag-mx__ex li::before { content: "–"; display: inline-block; width: .9rem; text-indent: 0; color: var(--mute, #5b6779); }
.tl-ag-mx__ex li.tl-ag-mx__more { color: var(--mute, #5b6779); }
.tl-ag-mx__ex li.tl-ag-mx__more::before { content: ""; }
.tl-ag-mx--key { margin-bottom: var(--space-3); }
.tl-ag-mx--key .tl-ag-mx__cell { padding: .7rem .85rem; }
.tl-ag-mx--key .tl-ag-mx__name { font-size: 16px; }
.tl-ag-mx--key .tl-ag-mx__rule { margin: .2rem 0 0; font-size: 14px; font-weight: 400; }
@media (max-width: 760px) {
  .tl-ag-mx { border-spacing: 5px; margin: 0 -5px; width: calc(100% + 10px); }
  .tl-ag-mx thead td { width: 1.9rem; }
  .tl-ag-mx__ax { font-size: 11px; }
  .tl-ag-mx__axs { font-size: 12px; }
  .tl-ag-mx__cell { padding: .65rem .6rem .75rem; }
  .tl-ag-mx__top { flex-direction: column; gap: .15rem; }
  .tl-ag-mx__name { font-size: 16px; }
  .tl-ag-mx__n { font-size: 24px; }
  .tl-ag-mx__n small { text-align: left; }
  .tl-ag-mx__rule { font-size: 13px; }
  .tl-ag-mx__ex { font-size: 13px; }
  .tl-ag-mx--key .tl-ag-mx__rule { font-size: 13px; }
}
@media print { .tl-ag-mx { break-inside: avoid; } }
.tl-ag-from5__h { margin: 0 0 .35rem; font-weight: 700; color: var(--ink, #1e293b); }
.tl-ag-mx--key tbody th .tl-ag-mx__axs { display: none; }
/* printing: keep a heading with what follows it (the stage 6 full report copies every stage's results) */
@media print {
  main.tl-v2 #tlResults h2, main.tl-v2 #tlResults h3, main.tl-v2 #tlResults details > summary, main.tl-v2 #tlResults .tl-pbr__kicker, main.tl-v2 #tlResults .tl-smstrat, main.tl-v2 #tlResults .tl-ag-lab { break-after: avoid-page; page-break-after: avoid; }
  main.tl-v2 #tlResults .tl-sec > h2 + *, main.tl-v2 #tlResults .tl-pbr__h + * { break-before: avoid-page; page-break-before: avoid; }
  main.tl-v2 #tlResults tr, main.tl-v2 #tlResults .tl-ag-mx__cell, main.tl-v2 #tlResults .tl-decide { break-inside: avoid; }
}
@media print { main.tl-v2 .tl-ag-note { font-size: .9em; } }
