/* Which Framework tools: only the project planning pages. Written by gen/prjcss.py from css/tools.css; edit tools.css, then rerun. */
/* Rules these pages share with another playbook, whose file they do not load: */
@media (max-width: 640px) {
  .tl-vtab .tl-vtot td[colspan] { display: block; }
}

/* ---------- project planning playbook (stages 1-6). Page parts: tl-pj-. Shared by the six tools; tools-project.css is written from here by gen/prjcss.py until the split is measured again. ---------- */
.tl-pj-code { display: inline-block; min-width: 2.1em; margin-right: .35em; color: var(--mute, #5b6779); font-variant-numeric: tabular-nums; font-size: .92em; }
.tl-pj-scope { display: grid; gap: var(--space-3); max-width: 46rem; }
@media (min-width: 720px) { .tl-pj-scope { grid-template-columns: 2fr 1fr; } }
.tl-pj-scope .tl-field { display: flex; flex-direction: column; gap: var(--space-1); }
/* step 1: one block per branch */
.tl-pj-brs { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--space-5); margin-top: var(--space-3); }
.tl-pj-br { border: 1px solid var(--line, #dde2e9); border-radius: var(--r, 3px); padding: var(--space-3) var(--space-3) var(--space-2); background: #fff; min-width: 0; }
.tl-pj-br__head { display: flex; align-items: center; gap: var(--space-2); margin-bottom: var(--space-3); }
.tl-pj-br__n { display: inline-block; min-width: 1.4em; font-weight: 700; color: var(--ink, #1e293b); font-variant-numeric: tabular-nums; }
.tl-pj-br__name { flex: 1 1 auto; min-width: 0; width: 0; max-width: 28rem; padding: .45rem .6rem; border: 1px solid var(--line-strong, #aab3c0); border-radius: var(--r, 3px); font: inherit; font-size: 15px; font-weight: 600; color: var(--ink, #1e293b); background: #fff; }
.tl-pj-br__head .tl-link { flex: none; margin-left: auto; font-size: var(--text-sm); }
.tl-pj-pk { width: 100%; }
.tl-pj-pk td:first-child { width: 62%; }
.tl-pj-pk td:first-child input { width: calc(100% - 2.6em); }
.tl-pj-pk td input { width: 100%; }
.tl-pj-br__foot { margin: var(--space-2) 0 0; font-size: var(--text-sm); }
.tl-pj-fix { margin: .25rem 0 0; font-size: var(--text-xs); color: #b45309; line-height: 1.45; }
.tl-pj-fix:empty { display: none; }
.tl-pj-fix q { font-style: normal; font-weight: 600; color: var(--ink, #1e293b); }
.tl-pj-fix .tl-link { font-size: inherit; margin-left: .25em; }
.tl-pj-added { display: block; margin: .2rem 0 0 2.6em; font-size: var(--text-xs); color: var(--mute, #5b6779); }
/* step 2: the 100% test, one ruled block per branch */
.tl-pj-tests { display: grid; margin: var(--space-4) 0 var(--space-6); border-top: 1px solid var(--line, #dde2e9); }
.tl-pj-test { padding: var(--space-4) 0; border-bottom: 1px solid var(--line, #dde2e9); }
.tl-pj-test__name { font-family: var(--font-body); font-size: var(--text-base); font-weight: 700; margin: 0 0 var(--space-1); color: var(--ink, #1e293b); }
.tl-pj-test__count { font-weight: 400; font-size: var(--text-sm); color: var(--mute, #5b6779); margin-left: .35em; }
.tl-pj-test__pk { margin: 0 0 var(--space-3); font-size: var(--text-sm); color: var(--mute, #5b6779); line-height: 1.5; }
.tl-pj-test .tl-field { display: flex; flex-direction: column; gap: var(--space-1); max-width: 40rem; }
.tl-pj-test__q { margin: var(--space-3) 0 var(--space-2); font-size: var(--text-sm); font-weight: 600; color: var(--ink, #1e293b); }
.tl-pj-seg .tl-seg__opt { white-space: nowrap; }
.tl-pj-test__new { color: #b45309; font-weight: 600; }
.tl-pj-test { scroll-margin-top: 6rem; }
.tl-pj-test.is-folded { padding: 0; }
.tl-pj-fold { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr) minmax(0, 1.4fr) auto; gap: var(--space-3); align-items: center; width: 100%; padding: .7rem .25rem; border: 0; background: none; font: inherit; font-size: var(--text-sm); color: var(--ink, #1e293b); text-align: left; cursor: pointer; }
.tl-pj-fold:hover { background: var(--wash, #f4f6f8); }
.tl-pj-fold__name { font-weight: 700; font-size: var(--text-base); min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tl-pj-fold__count { color: var(--mute, #5b6779); }
.tl-pj-fold__st { color: var(--mute, #5b6779); }
.tl-pj-fold__st.is-ok { color: #17713a; font-weight: 600; }
.tl-pj-fold__st.is-ok::before { content: "\2713  "; }
.tl-pj-fold__st.is-warn { color: #b45309; font-weight: 600; }
.tl-pj-fold__go { color: var(--ink, #1e293b); text-decoration: underline; text-underline-offset: 2px; }
.tl-pj-test.is-open { padding: var(--space-4) 0 var(--space-5); }
.tl-pj-pk--test { margin: var(--space-2) 0 var(--space-4); max-width: 46rem; }
@media (max-width: 760px) {
  .tl-pj-fold { grid-template-columns: 1fr auto; gap: .15rem var(--space-3); }
  .tl-pj-fold__name { grid-column: 1; }
  .tl-pj-fold__go { grid-column: 2; grid-row: 1; }
  .tl-pj-fold__count, .tl-pj-fold__st { grid-column: 1 / -1; }
}
.tl-pj-badd { display: grid; grid-template-columns: 2fr 1.3fr auto; gap: var(--space-2) var(--space-3); align-items: end; max-width: 46rem; margin-top: var(--space-3); padding-top: var(--space-3); border-top: 1px dashed var(--line, #dde2e9); }
.tl-pj-badd__lead { grid-column: 1 / -1; margin: 0; font-size: var(--text-sm); font-weight: 600; color: var(--ink, #1e293b); }
.tl-pj-badd .tl-field { display: flex; flex-direction: column; gap: var(--space-1); max-width: none; }
.tl-pj-badd .tl-field label { font-size: var(--text-xs); }
.tl-pj-badd__msg { grid-column: 1 / -1; margin: 0; }
@media (max-width: 760px) {
  .tl-pj-badd { grid-template-columns: 1fr; }
  .tl-pj-seg .tl-seg__opt { white-space: normal; }
}
/* results: the breakdown drawn as a tree */
.tl-pj-tree { margin: var(--space-3) 0 var(--space-2); font-size: 13.5px; }
.tl-pj-tree__root { position: relative; max-width: 34rem; margin: 0 auto var(--space-6); padding: .6rem .9rem; border: 1.5px solid var(--ink, #1e293b); border-radius: var(--r, 3px); background: #fff; text-align: center; font-weight: 600; color: var(--ink, #1e293b); line-height: 1.4; }
.tl-pj-tree__root::after { content: ""; position: absolute; left: 50%; bottom: calc(-1 * var(--space-6) - 1px); height: var(--space-6); border-left: 1.5px solid var(--frame, #bcc4cf); }
.tl-pj-tree__lab { display: block; font-size: 12px; font-weight: 400; color: var(--mute, #5b6779); }
.tl-pj-tree__by { display: block; font-size: 12px; font-weight: 400; color: var(--mute, #5b6779); margin-top: .15rem; }
.tl-pj-tree__brs { list-style: none; margin: 0; padding: var(--space-4) 0 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(10.5rem, 1fr)); gap: var(--space-4) var(--space-3); border-top: 1.5px solid var(--frame, #bcc4cf); position: relative; }
.tl-pj-tree__br { position: relative; min-width: 0; }
.tl-pj-tree__br::before { content: ""; position: absolute; left: 1rem; top: calc(-1 * var(--space-4)); height: var(--space-4); border-left: 1.5px solid var(--frame, #bcc4cf); }
.tl-pj-tree__bname { margin: 0; padding: .45rem .6rem; border: 1px solid var(--ink, #1e293b); border-radius: var(--r, 3px); font-weight: 700; color: var(--ink, #1e293b); background: #fff; line-height: 1.3; }
.tl-pj-tree__bname .tl-pj-code { min-width: 1.2em; color: var(--ink, #1e293b); }
.tl-pj-tree__pks { list-style: none; margin: 0 0 0 1rem; padding: .35rem 0 0 .75rem; border-left: 1px solid var(--frame, #bcc4cf); }
.tl-pj-tree__pks li { position: relative; padding: .3rem 0; line-height: 1.35; }
.tl-pj-tree__pks li::before { content: ""; position: absolute; left: -.75rem; top: .95rem; width: .55rem; border-top: 1px solid var(--frame, #bcc4cf); }
.tl-pj-tree__pn { display: block; color: var(--ink, #1e293b); }
.tl-pj-tree__pn .tl-pj-code { min-width: 0; margin-right: .3em; }
.tl-pj-tree__ow { display: block; font-size: 12px; color: var(--mute, #5b6779); padding-left: 0; }
.tl-pj-tree__new { margin-left: .4em; font-size: 11px; font-weight: 700; color: #b45309; }
.tl-pj-tree__pks li.is-flag .tl-pj-tree__ow { color: #b42318; font-weight: 600; }
/* owners as bars */
.tl-pj-bars { display: grid; gap: .45rem; max-width: 44rem; margin: var(--space-3) 0; }
.tl-pj-bar { display: grid; grid-template-columns: minmax(9rem, 1.2fr) 2fr 6.5rem; align-items: center; gap: var(--space-3); font-size: var(--text-sm); }
.tl-pj-bar__track { display: block; height: 12px; background: var(--color-slate-100); border-radius: 2px; overflow: hidden; }
.tl-pj-bar__fill { display: block; height: 100%; background: var(--color-slate-600); }
.tl-pj-bar.is-flag .tl-pj-bar__fill { background: #b42318; }
.tl-pj-bar.is-flag .tl-pj-bar__name { color: #b42318; font-weight: 600; }
.tl-pj-bar__val { color: var(--mute, #5b6779); font-variant-numeric: tabular-nums; }
/* the rules, checked */
.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: "\2713"; 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; }
  .tl-pj-bar { grid-template-columns: 1fr 5.5rem; }
  .tl-pj-bar__track { grid-column: 1 / -1; grid-row: 2; }
  .tl-pj-pk td:first-child input { width: 100%; }
  .tl-pj-pk .tl-pj-code { display: none; }
  .tl-pj-added { margin-left: 0; }
}
.tl-pj-tab tr.is-top > * { background: var(--flag, #fdf0c4); }
@media print {
  .tl-pj-tree { font-size: 9pt; }
  .tl-pj-tree__brs { grid-template-columns: repeat(auto-fit, minmax(30mm, 1fr)); }
  .tl-pj-tree__br, .tl-pj-bar, .tl-pj-rule { break-inside: avoid; }
  .tl-pj-bar__fill, .tl-pj-tab tr.is-top > *, .tl-pj-tree__root { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
}

/* critical path calculator (stage 2) */
.tl-pj-time { display: grid; gap: var(--space-4); grid-template-columns: repeat(auto-fit, minmax(12rem, max-content)); align-items: end; }
.tl-pj-time .tl-field { display: flex; flex-direction: column; gap: var(--space-1); }
.tl-pj-lab { font-size: var(--text-sm); font-weight: 600; color: var(--ink, #1e293b); }
.tl-pj-acts { width: 100%; }
.tl-pj-acts td input[type="text"], .tl-pj-crit td input[type="text"] { width: 100%; }
.tl-pgrid.tl-pj-acts td input[type="text"], .tl-pgrid.tl-pj-crit td input[type="text"], .tl-pgrid.tl-pj-pk td input[type="text"] { min-width: 0; max-width: none; box-sizing: border-box; }
.tl-pj-acode { width: 2.4rem; text-align: center !important; font-weight: 700; color: var(--ink, #1e293b); font-variant-numeric: tabular-nums; }
th.tl-pj-acode, td.tl-pj-acode { vertical-align: top; padding-top: .7rem !important; }
.tl-pj-num { max-width: 5.5rem; text-align: right; }
@media (min-width: 761px) {
  main .pb-grid.tl-pj-acts, main .pb-grid.tl-pj-crit { table-layout: fixed; width: 100%; }
  main .tl-pj-acts thead th:nth-child(1), main .tl-pj-crit thead th:nth-child(1) { width: 2.75rem; }
  main .tl-pj-acts thead th:nth-child(3), main .tl-pj-crit thead th:nth-child(3) { width: 6.5rem; }
  main .tl-pj-acts thead th:nth-child(4), main .tl-pj-crit thead th:nth-child(4) { width: 8.5rem; }
  main .tl-pj-acts thead th:nth-child(5):not(:last-child) { width: 8.5rem; }
  main .tl-pj-acts thead th:last-child { width: 5.5rem; }
  main .tl-pj-crit thead th:nth-child(5) { width: 6.5rem; }
  main .tl-pj-crit thead th:nth-child(6) { width: 34%; }
}
.tl-pj-covbtn { white-space: nowrap; font-size: var(--text-sm); }
.tl-pj-covbtn::after { content: " \25BE"; }
.tl-pj-covbtn[aria-expanded="true"]::after { content: " \25B4"; }
.tl-pj-covrow td { background: var(--wash, #f4f6f8) !important; }
.tl-pj-covrow__lead { margin: 0 0 var(--space-2); font-size: var(--text-sm); font-weight: 600; }
.tl-pj-covgrid { display: grid; grid-template-columns: repeat(auto-fit, minmax(13rem, 1fr)); gap: var(--space-2) var(--space-5); }
.tl-pj-covgrid fieldset { border: 0; margin: 0; padding: 0; min-width: 0; }
.tl-pj-covgrid legend { font-size: var(--text-xs); font-weight: 700; color: var(--mute, #5b6779); padding: 0; }
.tl-pj-covgrid .tl-check-opt { margin-top: .3rem; }
.tl-pj-unc:empty { display: none; }
.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; }
.tl-pj-sum__was { flex: 1 1 100%; margin: 0; padding: .6rem 1rem; border-top: 1px solid var(--line, #dde2e9); font-size: var(--text-sm); color: var(--ink, #1e293b); }
.tl-pj-chain { list-style: none; display: flex; flex-wrap: wrap; align-items: stretch; gap: var(--space-2) 1.6rem; margin: var(--space-3) 0 var(--space-4); padding: 0; }
.tl-pj-chain li { position: relative; display: flex; flex-direction: column; justify-content: center; min-width: 7rem; max-width: 12rem; padding: .45rem .65rem; border: 1.5px solid var(--ink, #1e293b); border-radius: var(--r, 3px); background: #fff; font-size: 13px; line-height: 1.3; }
.tl-pj-chain li + li::before { content: "\2192"; position: absolute; left: -1.35rem; top: 50%; transform: translateY(-50%); color: var(--ink, #1e293b); font-size: 15px; }
.tl-pj-chain__code { font-weight: 700; color: var(--ink, #1e293b); }
.tl-pj-chain__name { color: var(--ink, #1e293b); }
.tl-pj-chain__d { color: var(--mute, #5b6779); font-size: 12px; margin-top: .15rem; }
.tl-pj-chain li.tl-pj-chain__end { border-style: dashed; border-color: var(--frame, #bcc4cf); }
.tl-pj-chain__end .tl-pj-chain__name { font-weight: 700; }
.tl-pj-crit tr.is-crit > th, .tl-pj-crit tr.is-crit > td:nth-child(2) { font-weight: 600; }
.tl-pj-near { display: block; font-size: var(--text-xs); font-weight: 400; color: var(--mute, #5b6779); }
.tl-pj-fl { white-space: nowrap; font-variant-numeric: tabular-nums; }
.tl-pj-arrow { margin-top: 0 !important; justify-content: flex-start; text-align: left; }
.pb-grid.tl-pj-crit td:last-child { text-align: left !important; }
.tl-pj-arrow + .tl-pj-arrow { margin-top: .35rem !important; }
.tl-pj-fitline { margin: 0 0 var(--space-2); font-size: var(--text-sm); font-weight: 600; color: var(--ink, #1e293b); }
.tl-pj-fitline.is-bad { color: #b42318; }
.tl-pj-was { font-size: var(--text-sm); line-height: 1.55; margin: 0 0 var(--space-3); }
/* the schedule as bars, earliest dates */
.tl-pj-gantt { --lab: 15rem; margin: var(--space-3) 0; font-size: 13px; }
.tl-pj-gantt__axis, .tl-pj-gantt__row { display: grid; grid-template-columns: var(--lab) 1fr; gap: var(--space-3); align-items: center; }
.tl-pj-gantt__axis { margin-bottom: .2rem; color: var(--mute, #5b6779); font-size: 11.5px; }
.tl-pj-gantt__axis .tl-pj-gantt__lab { text-align: right; }
.tl-pj-gantt__scale { position: relative; height: 1rem; }
.tl-pj-gantt__scale span { position: absolute; top: 0; transform: translateX(-50%); font-variant-numeric: tabular-nums; }
.tl-pj-gantt__row { min-height: 1.6rem; border-top: 1px solid var(--line, #eef1f5); }
.tl-pj-gantt__lab { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; color: var(--ink, #1e293b); }
.tl-pj-gantt__lab .tl-pj-acode { display: inline-block; width: 1.6rem; text-align: left !important; }
.tl-pj-gantt__row.is-crit .tl-pj-gantt__lab { font-weight: 600; }
.tl-pj-gantt__track { position: relative; height: 1.6rem; }
.tl-pj-gantt__track i { position: absolute; top: 0; bottom: 0; border-left: 1px solid #eef1f5; }
.tl-pj-gantt__due { position: absolute; top: -2px; bottom: -2px; border-left: 2px dashed #b42318; z-index: 2; }
.tl-pj-gantt__bar { position: absolute; top: .35rem; height: .9rem; background: var(--color-slate-400); border-radius: 2px; z-index: 1; }
.tl-pj-gantt__row.is-crit .tl-pj-gantt__bar { background: var(--ink, #1e293b); }
.tl-pj-gantt__fl { position: absolute; top: .35rem; height: .9rem; border: 1.5px dashed var(--color-slate-500); border-left: 0; border-radius: 0 2px 2px 0; box-sizing: border-box; }
.tl-pj-gantt__key { display: flex; flex-wrap: wrap; gap: .4rem 1.25rem; margin: var(--space-3) 0 0; font-size: 12px; color: var(--mute, #5b6779); }
.tl-pj-k::before { content: ""; display: inline-block; width: 1.4rem; height: .7rem; margin-right: .4rem; vertical-align: -1px; border-radius: 2px; }
.tl-pj-k--crit::before { background: var(--ink, #1e293b); }
.tl-pj-k--bar::before { background: var(--color-slate-400); }
.tl-pj-k--fl::before { border: 1.5px dashed var(--color-slate-500); box-sizing: border-box; }
.tl-pj-k--due::before { width: 0; height: .9rem; border-left: 2px dashed #b42318; border-radius: 0; }
@media (max-width: 760px) {
  .tl-pj-gantt { --lab: 7.5rem; }
  .tl-pj-gantt__scale .is-minor { display: none; }
  .pb-grid.tl-pj-acts th.tl-pj-acode { text-align: left !important; }
  .tl-pj-num { text-align: left; }
  .tl-pj-gantt__lab .tl-pj-acode { width: 1.3rem; }
  .tl-pj-chain { gap: var(--space-2) 1.4rem; }
  .tl-pj-chain li { min-width: 0; max-width: 9.5rem; }
  .tl-pj-num { max-width: none; }
}
@media print {
  .tl-pj-gantt { --lab: 45mm; font-size: 8.5pt; }
  .tl-pj-gantt__row { break-inside: avoid; min-height: 5mm; }
  .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; }
  .tl-pj-chain { break-inside: avoid; }
}
/* PERT calculator (stage 3) */
@media (min-width: 761px) {
  main .pb-grid.tl-pj-est { table-layout: fixed; width: 100%; }
  main .tl-pj-est thead th:nth-child(1) { width: 2.5rem; }
  main .tl-pj-est thead th:nth-child(2) { width: 2.5rem; }
  main .tl-pj-est thead th:nth-last-child(-n+5) { width: 6.6rem; }
  main .tl-pj-est.tl-pj-est--solo thead th:nth-child(4) { width: 7rem; }
  main .tl-pj-est.tl-pj-est--solo thead th:nth-last-child(-n+6) { width: 6.2rem; }
  main .tl-pj-est.tl-pj-est--solo thead th:last-child { width: 5.2rem; }
  main #ptBuy thead th:nth-child(1) { width: 2.5rem; }
  main #ptBuy thead th:nth-child(2) { width: auto; }
}
.tl-pgrid.tl-pj-est td input[type="text"] { min-width: 0; max-width: none; width: 100%; box-sizing: border-box; }
.tl-pj-tick { text-align: center !important; vertical-align: middle !important; }
.tl-pj-est tr.is-off td, .tl-pj-est tr.is-off th { color: var(--mute, #5b6779); }
.tl-pj-est input:disabled { background: var(--wash, #f4f6f8); }
.tl-pj-more { margin: var(--space-3) 0 0; border-top: 1px solid var(--line, #dde2e9); padding-top: var(--space-3); }
.tl-pj-more > summary { cursor: pointer; font-size: var(--text-sm); font-weight: 600; color: var(--ink, #1e293b); margin-bottom: var(--space-2); }
.tl-pj-change { display: grid; grid-template-columns: 2fr 1fr; gap: var(--space-3); max-width: 46rem; margin-top: var(--space-4); }
.tl-pj-change .tl-field { display: flex; flex-direction: column; gap: var(--space-1); }
.tl-pj-cv { margin: var(--space-3) 0 var(--space-4); max-width: 46rem; }
.tl-pj-cv svg { display: block; width: 100%; height: auto; }
.tl-pj-cv__line { fill: none; stroke: var(--ink, #1e293b); stroke-width: 2; }
.tl-pj-cv__in { fill: #fde7b6; }
.tl-pj-cv__axis { stroke: var(--frame, #bcc4cf); stroke-width: 1; }
.tl-pj-cv__tick { stroke: var(--frame, #bcc4cf); }
.tl-pj-cv__lab { font: 11px var(--font-body); fill: var(--mute, #5b6779); }
.tl-pj-cv__mu { stroke: var(--ink, #1e293b); stroke-dasharray: 2 3; }
.tl-pj-cv__due { stroke: #b42318; stroke-width: 2; stroke-dasharray: 5 3; }
.tl-pj-cv__dl { font: 600 12px var(--font-body); fill: #b42318; }
.tl-pj-cv__ml { font: 12px var(--font-body); fill: var(--ink, #1e293b); }
.tl-pj-cv__cap { display: flex; flex-wrap: wrap; gap: .3rem 1.25rem; font-size: var(--text-sm); color: var(--ink, #1e293b); margin-top: .35rem; }
.tl-pj-k--in::before { background: #fde7b6; border: 1px solid #e6b450; box-sizing: border-box; }
.tl-pj-bar.is-path .tl-pj-bar__fill { background: var(--ink, #1e293b); }
.tl-pj-bar:not(.is-path) .tl-pj-bar__fill { background: var(--color-slate-400); }
.tl-pj-buf { display: grid; grid-template-columns: repeat(auto-fit, minmax(10rem, 1fr)); gap: 0; margin: var(--space-3) 0; border: 1px solid var(--line, #dde2e9); border-radius: var(--r, 3px); }
.tl-pj-buf > div { padding: .7rem 1rem; border-left: 1px solid var(--line, #dde2e9); }
.tl-pj-buf > div:first-child { border-left: 0; }
.tl-pj-buf dt { font-size: var(--text-xs); color: var(--mute, #5b6779); }
.tl-pj-buf dd { margin: .15rem 0 0; font-size: 1.15rem; font-weight: 700; color: var(--ink, #1e293b); }
.tl-pj-buf dd span { display: block; font-size: var(--text-xs); font-weight: 400; color: var(--mute, #5b6779); }
@media (max-width: 760px) {
  .tl-pj-change { grid-template-columns: 1fr; }
  .tl-pj-buf > div { border-left: 0; border-top: 1px solid var(--line, #dde2e9); }
  .tl-pj-buf > div:first-child { border-top: 0; }
}
@media print {
  .tl-pj-cv, .tl-pj-buf { break-inside: avoid; }
  .tl-pj-cv__in, .tl-pj-k--in::before { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
}
/* resource allocation matrix (stage 4) */
.tl-pj-people { display: grid; grid-template-columns: repeat(auto-fill, minmax(15rem, 1fr)); gap: var(--space-2) var(--space-4); max-width: 50rem; }
.tl-pj-person { display: flex; align-items: center; gap: var(--space-2); }
.tl-pj-person input { flex: 1 1 auto; min-width: 0; padding: .45rem .6rem; border: 1px solid var(--line-strong, #aab3c0); border-radius: var(--r, 3px); font: inherit; font-size: 14px; color: var(--ink, #1e293b); }
.tl-pj-person .tl-link { flex: none; font-size: var(--text-sm); }
.tl-pj-mx { width: auto; min-width: 100%; }
.tl-pj-mx th.tl-pj-ph { font-size: 12.5px; line-height: 1.25; min-width: 5.5rem; max-width: 8rem; white-space: normal; }
.tl-pj-mx tbody th { min-width: 13rem; }
main.tl-v2 .pb-grid.tl-wk.tl-pj-mx td, .tl-pj-mx td { white-space: nowrap; }
.tl-pgrid.tl-pj-mx td input.tl-pj-pc[type="text"] { width: 3.6rem; min-width: 0; text-align: right; }
.tl-pgrid.tl-pj-mx td input.tl-pj-wk[type="text"] { width: 3.6rem; min-width: 0; }
.tl-pgrid.tl-pj-mx th input[type="text"] { width: 100%; min-width: 9rem; box-sizing: border-box; }
.tl-pj-pcu { margin-left: .25rem; color: var(--mute, #5b6779); font-size: 12px; }
.tl-pj-when { font-size: var(--text-sm); color: var(--ink, #1e293b); }
.tl-pj-mx tr.is-crit > th, .tl-pj-moves tr.is-crit > th { font-weight: 700; }
.tl-pj-mx .tl-pj-acode, .tl-pj-moves .tl-pj-acode { display: inline-block; width: 1.6rem; text-align: left !important; }
.tl-pgrid.tl-pj-moves td input[type="text"] { width: 4.5rem; min-width: 0; }
.tl-pj-dec { max-width: 26rem; }
.tl-pj-dec input { width: 100%; }
.tl-pj-heatwrap { overflow-x: auto; margin: var(--space-3) 0 .4rem; }
.tl-pj-heat { border-collapse: collapse; font-size: 12px; font-variant-numeric: tabular-nums; }
.tl-pj-heat th, .tl-pj-heat td { border: 1px solid var(--line, #dde2e9); padding: .3rem .25rem; text-align: center; min-width: 2.1rem; }
.tl-pj-heat thead th { background: #e9edf2; font-weight: 600; color: var(--ink, #1e293b); }
.tl-pj-heat thead th.is-busy { outline: 2px solid var(--ink, #1e293b); outline-offset: -2px; }
.tl-pj-heat tbody th { text-align: left; white-space: nowrap; font-weight: 600; padding: .3rem .6rem; color: var(--ink, #1e293b); background: #fff; position: sticky; left: 0; z-index: 1; }
.tl-pj-heat td { color: var(--ink, #1e293b); }
.tl-pj-heat td.is-on { background: #eef2f6; }
.tl-pj-heat td.is-high { background: #fde7b6; font-weight: 600; }
.tl-pj-heat td.is-over { background: #f6c7c1; color: #8a1c12; font-weight: 700; }
.tl-pj-heat .tl-pj-heat__pk { font-weight: 700; min-width: 3.2rem; border-left: 2px solid var(--frame, #bcc4cf); }
.tl-pj-heat td.tl-pj-heat__pk:not(.is-over):not(.is-high) { background: #fff; }
.tl-pj-k--over::before { background: #f6c7c1; border: 1px solid #d98b81; box-sizing: border-box; }
.tl-pj-k--high::before { background: #fde7b6; border: 1px solid #e6b450; box-sizing: border-box; }
.tl-pj-k--was::before { background: #cbd5e1; }
.tl-pj-k--now::before { background: var(--ink, #1e293b); }
.tl-pj-tot { font-weight: 700; }
.tl-pj-tot.is-over { color: #b42318; }
.tl-pj-tot.is-high { color: #b45309; }
.tl-pj-tot.is-worst { outline: 2px solid var(--ink, #1e293b); outline-offset: -3px; }
.tl-pj-ba { display: grid; gap: .55rem; max-width: 46rem; margin: var(--space-3) 0; }
.tl-pj-ba__row { display: grid; grid-template-columns: minmax(9rem, 1.2fr) 2fr 7.5rem; gap: var(--space-3); align-items: center; font-size: var(--text-sm); }
.tl-pj-ba__track { position: relative; height: 1.1rem; }
.tl-pj-ba__was { position: absolute; left: 0; top: 0; height: 100%; background: #cbd5e1; border-radius: 2px; }
.tl-pj-ba__now { position: absolute; left: 0; top: .25rem; height: .6rem; background: var(--ink, #1e293b); border-radius: 2px; }
.tl-pj-ba__now.is-over { background: #b42318; }
.tl-pj-ba__track i { position: absolute; top: -3px; bottom: -3px; border-left: 2px dashed #b42318; }
.tl-pj-ba__val { color: var(--mute, #5b6779); font-variant-numeric: tabular-nums; }
.tl-pj-ba__val strong { color: var(--ink, #1e293b); }
@media (max-width: 760px) {
  .tl-pj-ba__row { grid-template-columns: 1fr 6.5rem; }
  .tl-pj-ba__track { grid-column: 1 / -1; grid-row: 2; }
  .tl-pj-mx tbody th { min-width: 0; }
  .tl-pgrid.tl-pj-mx td input.tl-pj-pc[type="text"], .tl-pgrid.tl-pj-mx td input.tl-pj-wk[type="text"] { width: 5rem; }
}
@media print {
  .tl-pj-heatwrap { overflow: visible; }
  .tl-pj-heat { font-size: 7pt; }
  .tl-pj-heat th, .tl-pj-heat td { min-width: 0; padding: 1.2mm .6mm; }
  .tl-pj-heat td.is-on, .tl-pj-heat td.is-high, .tl-pj-heat td.is-over, .tl-pj-ba__was, .tl-pj-ba__now, .tl-pj-k::before { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  .tl-pj-ba__row { break-inside: avoid; }
}
main.tl-v2 .pb-grid.tl-wk.tl-pj-moves td:nth-child(3), main.tl-v2 .pb-grid.tl-wk.tl-pj-moves td:nth-child(4), .tl-pj-moves td:nth-child(3), .tl-pj-moves td:nth-child(4) { white-space: nowrap; }
.tl-pj-heatwrap + .tl-pj-gantt__key { margin-bottom: var(--space-6); }
.tl-pj-mvsel { max-width: 100%; padding: .35rem .5rem; border: 1px solid var(--line-strong, #aab3c0); border-radius: var(--r, 3px); font: inherit; font-size: 14px; background: #fff; color: var(--ink, #1e293b); }
#ramUndo { margin-left: var(--space-2); font-size: var(--text-sm); }
.tl-pj-mvbest { margin: .35rem 0 0; font-size: var(--text-xs); color: #17713a; line-height: 1.45; white-space: normal; }
.tl-pj-mvbest .tl-link { font-size: inherit; margin-left: .2em; }
@media (min-width: 761px) { main .tl-pj-moves td:last-child { min-width: 19rem; } }

/* project planning playbook, stage 5: the risk register */
.tl-pj-rk__lead { margin: var(--space-4) 0 var(--space-2); font-size: var(--text-sm); font-weight: 700; color: var(--ink, #1e293b); }
.tl-pj-rk__three { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--space-3); }
.tl-pj-rk__two { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-3); align-items: end; }
.tl-pj-rk__see { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) 7rem; gap: var(--space-3); align-items: end; }
.tl-pj-rk__see--two { grid-template-columns: minmax(0, 1fr) 7rem; }
.tl-pj-test .tl-pj-rk__see .tl-field { max-width: none; min-width: 0; }
.tl-pj-rk__score { display: grid; grid-template-columns: minmax(0, 12rem) minmax(0, 12rem) auto; gap: var(--space-3); align-items: end; }
.tl-pj-test .tl-pj-rk__three .tl-field, .tl-pj-test .tl-pj-rk__two .tl-field, .tl-pj-test .tl-pj-rk__score .tl-field { max-width: none; min-width: 0; }
.tl-pj-rk input[type="text"], .tl-pj-rk select { width: 100%; box-sizing: border-box; }
.tl-pj-rk__wk input[type="text"] { max-width: 6rem; }
.tl-pj-rk__sc { margin: 0 0 .55rem; font-size: var(--text-sm); color: var(--mute, #5b6779); }
.tl-pj-rk__sc strong { font-size: var(--text-lg); color: var(--ink, #1e293b); }
.tl-pj-rk__sug { display: block; margin: 0 0 var(--space-2); }
.tl-pj-rk .tl-pj-seg { margin-bottom: var(--space-1); }
.tl-pj-rk .tl-actions { margin-top: var(--space-4); }
.tl-pj-rk__act { display: block; font-weight: 400; font-size: var(--text-xs); }
@media (max-width: 760px) {
  .tl-pj-rk__three, .tl-pj-rk__two, .tl-pj-rk__see, .tl-pj-rk__see--two { grid-template-columns: minmax(0, 1fr); }
  .tl-pj-rk__score { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .tl-pj-rk__sc { grid-column: 1 / -1; margin: 0; }
}
.tl-pj-pimwrap { display: inline-block; max-width: 100%; overflow-x: auto; }
.tl-pj-pim { border-collapse: separate; border-spacing: 3px; font-size: var(--text-sm); }
.tl-pj-pim th { font-weight: 600; color: var(--ink, #1e293b); padding: .2rem .4rem; text-align: center; vertical-align: bottom; }
.tl-pj-pim tbody th { text-align: right; vertical-align: middle; white-space: nowrap; }
.tl-pj-pim__w { display: block; font-size: var(--text-xs); font-weight: 400; color: var(--mute, #5b6779); }
.tl-pj-pim tbody th .tl-pj-pim__w { display: inline; margin-left: .4rem; }
.tl-pj-pim td { width: 4.2rem; height: 2.6rem; text-align: center; vertical-align: middle; border-radius: 3px; }
.tl-pj-pim td.is-low { background: #eef1f4; }
.tl-pj-pim td.is-mid { background: #fdecc8; }
.tl-pj-pim td.is-high { background: #f6cfc9; }
.tl-pj-pim__n { display: inline-block; min-width: 1.1rem; margin: 0 .12rem; font-weight: 700; color: var(--ink, #1e293b); }
.tl-pj-pim__ax { display: flex; gap: var(--space-4); margin: var(--space-1) 0 0; font-size: var(--text-xs); color: var(--mute, #5b6779); }
.tl-pj-k--rhigh::before { background: #f6cfc9; }
.tl-pj-k--rmid::before { background: #fdecc8; }
.tl-pj-k--rlow::before { background: #eef1f4; border: 1px solid #d5dae1; box-sizing: border-box; }
.tl-pj-rlist { margin: var(--space-4) 0 0; padding-left: 1.4rem; font-size: var(--text-sm); }
.tl-pj-rlist li { margin: .2rem 0; }
.tl-pj-rlist__s { display: inline-block; min-width: 1.6rem; margin-right: .5rem; font-weight: 700; }
.tl-pj-rlist__s.is-high { color: #8a1c12; }
.tl-pj-rsc { white-space: nowrap; }
/* acode spacing: see the Gantt section */
.tl-pj-reg tbody th { font-weight: 400; }
.tl-pj-buf { margin: 0 0 var(--space-3); max-width: 46rem; }
.tl-pj-cal { list-style: none; margin: 0; padding: 0; max-width: 52rem; border-top: 1px solid var(--line, #dde2e9); font-size: var(--text-sm); }
.tl-pj-cal li { display: grid; grid-template-columns: 6rem minmax(0, 1fr); gap: var(--space-3); padding: .45rem 0; border-bottom: 1px solid var(--line, #dde2e9); }
.tl-pj-cal__w { font-weight: 700; color: var(--ink, #1e293b); }
@media print {
  .tl-pj-pim td, .tl-pj-k--rhigh::before, .tl-pj-k--rmid::before, .tl-pj-k--rlow::before { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
}

/* project planning playbook, stage 6: the Gantt chart */
.tl-pj-gcwrap { overflow-x: auto; margin: var(--space-3) 0 var(--space-2); border: 1px solid var(--line, #dde2e9); border-radius: 4px; background: #fff; }
.tl-pj-gc { display: block; font-family: inherit; }
.tl-pj-gc__wk { font-size: 11px; fill: #5b6779; }
.tl-pj-gc__lab { font-size: 12.5px; fill: #334155; }
.tl-pj-gc__lab.is-crit { fill: #0f172a; font-weight: 600; }
.tl-pj-gc__code { font-weight: 700; }
.tl-pj-gc__note { font-size: 11.5px; fill: #334155; }
.tl-pj-gc__slip { font-size: 11.5px; fill: #b42318; font-weight: 600; }
.tl-pj-gc__today { font-size: 11px; fill: #b45309; font-weight: 600; }
.tl-pj-k--off::before { background: #6b7280; }
.tl-pj-gantt__key .tl-pj-k--gcrit::before { background: #1e3a8a; }
.tl-pj-k--done::before { background: linear-gradient(90deg, #6b7280 55%, #d5dae1 55%); }
.tl-pj-k--plan::before { height: 3px; vertical-align: 2px; background: #b6bdc9; }
.tl-pj-k--slip::before { height: 2px; vertical-align: 3px; background: #b42318; }
.tl-pj-k--today::before { width: 0; height: .9rem; border-left: 2px dashed #b45309; border-radius: 0; }
.tl-pj-histwrap { max-width: 34rem; overflow-x: auto; }
.tl-pj-hist { display: block; width: 100%; height: auto; }
.tl-pj-upd td, .tl-pj-upd th { vertical-align: middle; }
main.tl-v2 .pb-grid.tl-pj-upd input.tl-pj-wk, .tl-pj-upd input.tl-pj-wk { width: 4.2rem; }
.tl-pj-upd select { max-width: 9rem; }
main.tl-v2 .tl-app__body .pb-grid.tl-wk.tl-pj-upd { table-layout: auto; }
main.tl-v2 .tl-app__body .pb-grid.tl-wk.tl-pj-upd select { min-width: 8.5rem; width: auto; }
.tl-pgrid.tl-pj-upd input[type="text"].tl-pj-wk, .tl-pgrid.tl-pj-acts input[type="text"].tl-pj-wk { width: 4.5rem; min-width: 0; max-width: 4.5rem; }
.tl-pj-upd .tl-pj-acode, .tl-pj-tab .tl-pj-acode { display: inline-block; width: 1.6rem; text-align: left !important; }
#tlMap > .tl-pj-time { margin-bottom: var(--space-5); }
#tlMap > .tl-pj-time input#gtT { width: 6rem; min-width: 0; }
.tl-pj-rk .tl-pj-rk__wk input[type="text"] { max-width: 6rem; }
.tl-pj-of { white-space: nowrap; }
.tl-pj-fin { display: inline-flex; flex-direction: column; gap: 2px; }
.tl-pj-fin__k, .tl-pj-fin__plan { font-size: var(--text-xs); color: var(--mute, #5b6779); line-height: 1.2; }
.tl-pj-gfolds { margin: var(--space-3) 0 var(--space-4); }
.tl-pj-gfolds .tl-pj-test:empty { display: none; }
.tl-pj-gfolds .pb-grid-wrap { margin: 0 0 var(--space-3); }
.tl-pj-acts td.tl-pj-acode { width: 2rem; font-weight: 700; }
main.tl-v2 .pb-grid.tl-pj-acts input.tl-pj-wk, .tl-pj-acts input.tl-pj-wk { width: 4.5rem; }
#gtTDate { margin-left: var(--space-2); }
@media print {
  .tl-pj-gcwrap { overflow: visible; border: 0; }
  .tl-pj-gc { max-width: 100%; height: auto; }
  .tl-pj-gc rect, .tl-pj-k--off::before, .tl-pj-k--done::before, .tl-pj-k--plan::before, .tl-pj-k--slip::before { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
}
