/* Which Framework tools: only the share pages. Generated from css/tools.css by gen/csssplit.py; edit tools.css, then rerun. */
/* ---------- market share playbook: Market Share Calculator (stage 1) ---------- */
.tl-ms-lines { display: grid; gap: var(--space-3); margin: 0 0 var(--space-3); }
.tl-ms-line { border: 1px solid var(--color-border-strong); border-radius: var(--radius-md); background: var(--color-bg-secondary); padding: var(--space-3) var(--space-4); }
.tl-ms-line__head { display: flex; align-items: center; gap: var(--space-3); margin-bottom: var(--space-2); }
.tl-ms-name { flex: 1; min-width: 0; padding: var(--space-2) var(--space-3); font: 600 var(--text-base) var(--font-body); border: 1px solid var(--color-border-strong); border-radius: var(--radius-md); }
.pb-grid.tl-ms-yrs { min-width: 0; width: 100%; table-layout: fixed; }
.tl-ms-yrs th, .tl-ms-yrs td { padding: 4px 6px; }
.tl-ms-yrs thead th { text-align: center; font-variant-numeric: tabular-nums; }
.tl-ms-yrs th[scope="row"] { width: 8rem; text-align: left; font-size: var(--text-sm); font-weight: 600; white-space: nowrap; }
.tl-ms-amt { width: 100%; padding: 4px 6px; text-align: right; font: var(--text-sm) var(--font-body); font-variant-numeric: tabular-nums; border: 1px solid var(--color-border-strong); border-radius: var(--radius-sm); }
.tl-ms-share td { text-align: right; font-variant-numeric: tabular-nums; font-weight: 600; font-size: var(--text-sm); background: var(--color-bg-tertiary); }
.tl-ms-share th { background: var(--color-bg-tertiary); }
.tl-ms-line__st { margin: var(--space-2) 0 0; font-size: var(--text-sm); }
.tl-ms-st { display: inline-block; padding: 1px var(--space-2); border-radius: 999px; font-size: var(--text-xs); font-weight: 600; white-space: nowrap; border: 1px solid var(--color-border-strong); color: var(--color-text-secondary); background: var(--color-bg-tertiary); }
.tl-ms-st--lost { border-color: #e7a99d; color: #b42318; background: #fef3f2; }
.tl-ms-st--won { border-color: #86c79b; color: #15803d; background: #f0fdf4; }
.tl-ms-why { display: grid; grid-template-columns: 1fr 2fr; gap: var(--space-3); }
.tl-ms-why textarea, .tl-ms-why input { width: 100%; }
.tl-ms-why textarea { padding: var(--space-2) var(--space-3); font: var(--text-sm)/1.45 var(--font-body); border: 1px solid var(--color-border-strong); border-radius: var(--radius-md); resize: vertical; }
.tl-ms-asked { max-width: 12rem; margin-bottom: var(--space-3); }
.tl-ms-fac td:first-child { width: 60%; }
.tl-ms-fac td:first-child input { width: 100%; }
.tl-ms-n { width: 9rem; text-align: right; }
.tl-ms-sl__grid { stroke: var(--color-slate-300); stroke-width: 1; }
.tl-ms-sl__tick { font-size: 11px; fill: var(--color-text-secondary); }
.tl-ms-sl__line { fill: none; stroke-width: 2; }
.tl-ms-sl__line.is-worst { stroke-width: 3.5; }
.tl-ms-sl__line--lost { stroke: #d4664f; }
.tl-ms-sl__line--lost.is-worst { stroke: #b42318; }
.tl-ms-sl__line--won { stroke: #15803d; }
.tl-ms-sl__line--steady { stroke: var(--color-slate-500); stroke-dasharray: 5 3; }
.tl-ms-sl__dot--lost { fill: #b42318; }
.tl-ms-sl__dot--won { fill: #15803d; }
.tl-ms-sl__dot--steady { fill: var(--color-slate-600); }
.tl-ms-sl__lab { font-size: 12px; fill: var(--color-text-primary); }
.tl-ms-sl__lab.is-worst { font-weight: 700; fill: #b42318; }
.tl-ms-sl__key { display: flex; flex-wrap: wrap; gap: var(--space-4); margin: 0 0 var(--space-3); font-size: var(--text-xs); color: var(--color-text-secondary); }
.tl-ms-sl__k::before { content: ""; display: inline-block; width: 18px; height: 0; margin-right: 6px; vertical-align: middle; border-top: 3px solid; }
.tl-ms-sl__k--lost::before { border-color: #b42318; }
.tl-ms-sl__k--won::before { border-color: #15803d; }
.tl-ms-sl__k--steady::before { border-top: 2px dashed var(--color-slate-500); }
.tl-ms-fbars { display: grid; gap: 6px; max-width: 44rem; }
.tl-ms-fbar { display: grid; grid-template-columns: minmax(10rem, 1.3fr) 2fr 4.5rem; align-items: center; gap: var(--space-3); font-size: var(--text-sm); }
.tl-ms-fbar__track { display: block; height: 12px; background: var(--color-slate-200); border-radius: 2px; overflow: hidden; }
.tl-ms-fbar__bar { display: block; height: 100%; background: var(--color-slate-700); }
.tl-ms-fbar__val { font-variant-numeric: tabular-nums; text-align: right; font-size: var(--text-xs); color: var(--color-text-secondary); }
@media (max-width: 640px) {
  .tl-ms-line { padding: var(--space-3); }
  .tl-ms-yrs th[scope="row"] { width: 4.6rem; white-space: normal; font-size: var(--text-xs); }
  .tl-ms-yrs thead th { font-size: var(--text-xs); }
  .tl-ms-yrs th, .tl-ms-yrs td { padding: 3px 2px; }
  .tl-ms-amt { padding: 4px 3px; font-size: var(--text-xs); }
  .tl-ms-share td { font-size: var(--text-xs); }
  .tl-ms-why { grid-template-columns: 1fr; }
  .tl-ms-fbar { grid-template-columns: 1fr 3.6rem; }
  .tl-ms-fbar__track { grid-column: 1 / -1; grid-row: 2; }
}
@media print {
  .tl-ms-st, .tl-ms-fbar__bar, .tl-ms-fbar__track { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  .tl-ms-fbar { break-inside: avoid; }
}
/* ---------- market share playbook: BCG Growth-Share Matrix (stage 2) ---------- */
.tl-bcg-lines td:first-child { min-width: 12rem; }
.tl-bcg-lines td:first-child input { width: 100%; }
.tl-bcg-lines th small { font-weight: 400; text-transform: none; letter-spacing: 0; }
.tl-bcg-in { width: 5.5rem; text-align: right; font-variant-numeric: tabular-nums; }
.tl-bcg-lines input[data-f="sales"] { width: 7rem; }
.tl-bcg-s1 { font-variant-numeric: tabular-nums; }
.tl-bcg-lines td[data-rel] { font-variant-numeric: tabular-nums; font-weight: 600; }
.tl-bcg-q { display: inline-block; padding: 1px var(--space-2); border-radius: 999px; font-size: var(--text-xs); font-weight: 600; white-space: nowrap; border: 1px solid; }
.tl-bcg-q--qm { color: #b45309; border-color: var(--color-amber-400); background: var(--color-amber-50); }
.tl-bcg-q--cow { color: #0f766e; border-color: #8fcfc6; background: #effaf8; }
.tl-bcg-q--dog { color: var(--color-slate-700); border-color: var(--color-slate-400); background: var(--color-bg-tertiary); }
.tl-bcg-gl { display: flex; flex-wrap: wrap; align-items: flex-end; gap: var(--space-3); }
.tl-bcg-gl .tl-field { max-width: 12rem; margin: 0; }
.tl-bcg-mx { margin: var(--space-2) 0 var(--space-4); }
.tl-bcg-svg__q--star { fill: #eff4ff; }
.tl-bcg-svg__q--qm { fill: var(--color-amber-50); }
.tl-bcg-svg__q--cow { fill: #effaf8; }
.tl-bcg-svg__q--dog { fill: var(--color-slate-200); }
.tl-bcg-svg__frame { fill: none; stroke: var(--color-slate-700); stroke-width: 1.5; }
.tl-bcg-svg__div { stroke: var(--color-slate-700); stroke-width: 1.5; stroke-dasharray: 6 4; }
.tl-bcg-svg__qlab { font-size: 13px; font-weight: 700; fill: var(--color-slate-600); letter-spacing: .02em; }
.tl-bcg-svg__tick { font-size: 11px; fill: var(--color-text-secondary); }
.tl-bcg-svg__gl { font-size: 11px; font-weight: 700; fill: var(--color-slate-800); }
.tl-bcg-svg__ax { font-size: 11px; fill: var(--color-text-secondary); font-weight: 600; }
.tl-bcg-svg__dot { stroke: #fff; stroke-width: 1.5; fill-opacity: .9; }
.tl-bcg-svg__dot--push { fill: var(--color-amber-600); }
.tl-bcg-svg__dot--pays { fill: #0f766e; }
.tl-bcg-svg__dot--other { fill: var(--color-slate-500); }
.tl-bcg-svg__lab { font-size: 12px; fill: var(--color-text-primary); font-weight: 600; paint-order: stroke; stroke: rgba(255,255,255,.85); stroke-width: 3px; }
.tl-bcg-svg__lab.is-push { fill: #92400e; }
.tl-bcg-key { display: flex; flex-wrap: wrap; gap: var(--space-2) var(--space-4); margin: var(--space-2) 0 0; font-size: var(--text-xs); color: var(--color-text-secondary); }
.tl-bcg-key__k::before { content: ""; display: inline-block; width: 10px; height: 10px; border-radius: 50%; margin-right: 6px; vertical-align: -1px; }
.tl-bcg-key__k--push::before { background: var(--color-amber-600); }
.tl-bcg-key__k--pays::before { background: #0f766e; }
.tl-bcg-key__k--other::before { background: var(--color-slate-500); }
.tl-bcg-roles th small { display: block; font-weight: 400; }
.tl-bcg-roles select { min-width: 11rem; }
.tl-bcg-fund { max-width: 34rem; margin: var(--space-3) 0; }
.tl-bcg-fund input { width: 100%; }
.tl-bcg-scale { margin-top: var(--space-4); }
@media (max-width: 640px) {
  .tl-bcg-in, .tl-bcg-lines input[data-f="sales"] { width: 100%; }
}
@media print {
  .tl-bcg-q, .tl-bcg-svg, .tl-bcg-key__k::before { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  .tl-bcg-tab tr, .tl-ms-tab tr { break-inside: avoid; }
}
/* ---------- market share playbook: Porter's Generic Strategies (stage 4) ---------- */
.tl-gs-rivals td:first-child { width: 45%; }
.tl-gs-rivals td:first-child input { width: 100%; }
.tl-gs-rivals select { width: 100%; }
.tl-gs-wrap { margin: var(--space-4) 0 var(--space-2); }
.tl-gs-grid { display: grid; grid-template-columns: 2.4rem 1fr 1fr; grid-template-rows: auto 1fr 1fr; max-width: 46rem; border: 2px solid var(--color-slate-800); border-radius: var(--radius-md); overflow: hidden; background: #fff; }
.tl-gs-corner { background: var(--color-slate-900); }
.tl-gs-ax { background: var(--color-slate-900); color: #fff; font-size: var(--text-xs); font-weight: 700; letter-spacing: .05em; text-transform: uppercase; display: flex; align-items: center; justify-content: center; padding: var(--space-2); }
.tl-gs-ax--y span { writing-mode: vertical-rl; transform: rotate(180deg); white-space: nowrap; }
.tl-gs-cell { display: flex; flex-direction: column; gap: 4px; min-height: 7.5rem; padding: var(--space-3); border: 0; border-left: 1px solid var(--color-border-strong); border-top: 1px solid var(--color-border-strong); background: #fff; text-align: left; font: inherit; color: inherit; }
button.tl-gs-cell { cursor: pointer; }
button.tl-gs-cell:hover { background: var(--color-slate-100); }
.tl-gs-cell--cl, .tl-gs-cell--cf { background: #f6f8fb; }
.tl-gs-cell.is-pick { background: var(--color-amber-50); box-shadow: inset 0 0 0 3px var(--color-amber-600); }
.tl-gs-cell__name { font-weight: 700; }
.tl-gs-cell__short { font-size: var(--text-xs); color: var(--color-text-secondary); }
.tl-gs-cell__chips { display: flex; flex-wrap: wrap; gap: 4px; margin-top: auto; padding-top: var(--space-2); }
.tl-gs-chip { display: inline-block; padding: 1px 8px; border-radius: 999px; font-size: var(--text-xs); font-weight: 600; background: var(--color-slate-700); color: #fff; }
.tl-gs-chip--pick { background: var(--color-amber-600); }
.tl-gs-mid { max-width: 46rem; margin: var(--space-2) 0 0; padding: var(--space-2) var(--space-3); border: 1px dashed #e7a99d; border-radius: var(--radius-md); background: #fef3f2; font-size: var(--text-sm); }
.tl-gs-seg, .tl-gs-own { max-width: 40rem; }
.tl-gs-seg input, .tl-gs-own input { width: 100%; }
.tl-gs-restbox { display: grid; gap: var(--space-2); margin-bottom: var(--space-3); }
.tl-gs-rest { margin: 0; padding-left: 1.1rem; }
.tl-gs-rest li { margin-bottom: 4px; }
@media (max-width: 640px) {
  .tl-gs-grid { grid-template-columns: 1.8rem 1fr 1fr; }
  .tl-gs-cell { min-height: 6.5rem; padding: var(--space-2); }
  .tl-gs-ax { font-size: 10px; }
}
@media print {
  .tl-gs-grid, .tl-gs-cell, .tl-gs-chip, .tl-gs-ax, .tl-gs-corner, .tl-gs-mid { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
}
/* ---------- market share playbook: Blue Ocean Strategy (stage 5) ---------- */
.tl-bos-rvs { display: grid; gap: var(--space-2); margin-bottom: var(--space-2); max-width: 44rem; }
.tl-bos-rv { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-2) var(--space-4); }
.tl-bos-rv input[type="text"] { flex: 1; min-width: 12rem; }
.tl-bos-sc th[scope="row"] { min-width: 12rem; text-align: left; }
.tl-bos-sc th[scope="row"] input { width: 100%; }
.tl-bos-sc select, .tl-bos-acts select { min-width: 3.6rem; }
.tl-bos-acts th[scope="row"] { min-width: 11rem; text-align: left; }
.tl-bos-acts th[scope="row"] input { width: 100%; }
.tl-bos-acts td input { width: 100%; min-width: 12rem; }
.tl-bos-acts tr.tl-bos-a--elim > *, .tl-bos-acts tr.tl-bos-a--reduce > * { background: #f6f8fb; }
.tl-bos-acts tr.tl-bos-a--raise > *, .tl-bos-acts tr.tl-bos-a--create > * { background: var(--color-amber-50); }
.tl-bos-pos { margin: 0 0 var(--space-3); padding: var(--space-3) var(--space-4); border: 1px solid var(--color-border-strong); border-radius: var(--radius-md); background: #fff; font-size: var(--text-sm); }
.tl-bos-pos p { margin: 0; }
.tl-bos-pos span { color: var(--color-text-secondary); font-size: var(--text-xs); font-weight: 600; text-transform: uppercase; letter-spacing: .04em; margin-right: var(--space-2); }
.tl-bos-cv { margin: var(--space-4) 0 var(--space-2); }
.tl-bos-svg { display: block; max-width: 820px; height: auto; font-family: var(--font-body); }
.tl-bos-svg__grid { stroke: var(--color-slate-300); stroke-width: 1; }
.tl-bos-svg__tick { font-size: 11px; fill: var(--color-text-secondary); }
.tl-bos-svg__lab { font-size: 11px; fill: var(--color-text-primary); }
.tl-bos-svg__lab.is-new { font-weight: 700; fill: #92400e; }
.tl-bos-key { display: flex; flex-wrap: wrap; gap: var(--space-2) var(--space-4); margin: var(--space-2) 0; font-size: var(--text-xs); color: var(--color-text-secondary); }
.tl-bos-key__k::before { content: ""; display: inline-block; width: 20px; height: 0; margin-right: 6px; vertical-align: middle; border-top: 2px dashed var(--c, #475569); }
.tl-bos-errc { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--space-3); margin: var(--space-3) 0; max-width: 60rem; }
.tl-bos-errc__box { padding: var(--space-3) var(--space-4); border: 1px solid var(--color-border-strong); border-radius: var(--radius-md); background: #fff; border-top-width: 4px; }
.tl-bos-errc__box--elim, .tl-bos-errc__box--reduce { border-top-color: var(--color-slate-700); }
.tl-bos-errc__box--raise, .tl-bos-errc__box--create { border-top-color: var(--color-amber-600); }
.tl-bos-errc__h { margin: 0; font-weight: 700; }
.tl-bos-errc__h small { font-weight: 400; color: var(--color-text-secondary); margin-left: var(--space-2); }
.tl-bos-errc__l { display: inline-grid; place-items: center; width: 1.4rem; height: 1.4rem; border-radius: 4px; background: var(--color-slate-800); color: #fff; font-size: var(--text-xs); margin-right: 4px; }
.tl-bos-errc__box--raise .tl-bos-errc__l, .tl-bos-errc__box--create .tl-bos-errc__l { background: var(--color-amber-600); }
.tl-bos-errc__q { margin: 2px 0 var(--space-2); font-size: var(--text-xs); color: var(--color-text-secondary); }
.tl-bos-errc ul { margin: 0; padding-left: 1.1rem; font-size: var(--text-sm); }
.tl-bos-tab tr.is-copy td small { color: #b42318; }
@media (max-width: 640px) {
  .tl-bos-errc { grid-template-columns: 1fr; }
}
@media print {
  .tl-bos-errc__box, .tl-bos-errc__l, .tl-bos-svg, .tl-bos-acts tr > * { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  .tl-bos-errc__box, .tl-bos-cv { break-inside: avoid; }
}
#bKpis td:first-child { width: 55%; }
#bKpis td:first-child input { width: 100%; }
.tl-bos-svg__end { font-size: 12px; font-weight: 600; paint-order: stroke; stroke: #fff; stroke-width: 3px; }
.tl-bos-key__k { display: inline-flex; align-items: center; gap: 6px; }
.tl-bos-key__k::before { content: none; }
.tl-bos-kept { font-variant-numeric: tabular-nums; }
.tl-bos-kept small { color: var(--color-text-secondary); }
