/* Which Framework tools: only the validate pages. Generated from css/tools.css by gen/csssplit.py; edit tools.css, then rerun. */
/* ---------- Lean Canvas tool ---------- */
.tl-canvas { display: grid; gap: 0; border: 2px solid var(--color-slate-800); border-radius: var(--radius-sm); background: var(--color-bg-secondary); margin: 0 0 var(--space-5); }
.tl-cv { display: flex; flex-direction: column; padding: var(--space-2) var(--space-3) var(--space-3); border: 1px solid var(--color-slate-400); min-width: 0; }
.tl-cv__head { display: flex; align-items: center; gap: var(--space-2); margin: 0 0 var(--space-2); font-size: var(--text-sm); font-weight: 700; color: var(--color-text-primary); }
.tl-cv__n { display: grid; place-items: center; flex: none; width: 1.3rem; height: 1.3rem; border-radius: 50%; background: var(--color-slate-800); color: #fff; font-size: 11px; }
.tl-cv textarea { flex: 1; width: 100%; min-height: 6.5rem; padding: var(--space-2); font: var(--text-sm) var(--font-body); line-height: 1.4; border: 1px solid var(--color-border-strong); border-radius: var(--radius-sm); resize: vertical; background: #fff; }
.tl-cv textarea:focus { outline: 2px solid var(--color-accent); outline-offset: 1px; border-color: var(--color-accent); }
.tl-cv__text { margin: 0; font-size: var(--text-sm); line-height: 1.45; color: var(--color-text-primary); overflow-wrap: anywhere; }
.tl-cv.is-hot { background: var(--color-amber-50); box-shadow: inset 0 0 0 3px var(--color-amber-500); -webkit-print-color-adjust: exact; print-color-adjust: exact; }
@media (min-width: 900px) {
  .tl-canvas { grid-template-columns: repeat(10, 1fr); }
  .tl-cv--problem { grid-column: 1 / 3; grid-row: 1 / 3; }
  .tl-cv--solution { grid-column: 3 / 5; grid-row: 1; }
  .tl-cv--metrics { grid-column: 3 / 5; grid-row: 2; }
  .tl-cv--uvp { grid-column: 5 / 7; grid-row: 1 / 3; }
  .tl-cv--advantage { grid-column: 7 / 9; grid-row: 1; }
  .tl-cv--channels { grid-column: 7 / 9; grid-row: 2; }
  .tl-cv--segments { grid-column: 9 / 11; grid-row: 1 / 3; }
  .tl-cv--cost { grid-column: 1 / 6; grid-row: 3; }
  .tl-cv--revenue { grid-column: 6 / 11; grid-row: 3; }
  .tl-cv--cost textarea, .tl-cv--revenue textarea { min-height: 4.5rem; }
}
@media print {
  .tl-canvas { grid-template-columns: repeat(10, 1fr); break-inside: avoid; }
  .tl-cv--problem { grid-column: 1 / 3; grid-row: 1 / 3; }
  .tl-cv--solution { grid-column: 3 / 5; grid-row: 1; }
  .tl-cv--metrics { grid-column: 3 / 5; grid-row: 2; }
  .tl-cv--uvp { grid-column: 5 / 7; grid-row: 1 / 3; }
  .tl-cv--advantage { grid-column: 7 / 9; grid-row: 1; }
  .tl-cv--channels { grid-column: 7 / 9; grid-row: 2; }
  .tl-cv--segments { grid-column: 9 / 11; grid-row: 1 / 3; }
  .tl-cv--cost { grid-column: 1 / 6; grid-row: 3; }
  .tl-cv--revenue { grid-column: 6 / 11; grid-row: 3; }
  .tl-cv__text { font-size: 8.5pt; }
}
.tl-asm td, .tl-asm th, .tl-asmrank td, .tl-asmrank th { vertical-align: top; }
.tl-asm textarea { width: 100%; min-width: 16rem; padding: var(--space-2); font: var(--text-sm) var(--font-body); border: 1px solid var(--color-border-strong); border-radius: var(--radius-sm); resize: vertical; }
.tl-asm select { width: 15rem; max-width: 100%; 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: #fff; }
.tl-asm .tl-sug { color: var(--color-amber-600); }
.tl-asmrank input[type=radio] { width: 1.1rem; height: 1.1rem; accent-color: var(--color-amber-600); }
/* ---------- riskiest assumption test tool ---------- */
.tl-types { display: grid; gap: var(--space-2); margin: 0 0 var(--space-4); }
@media (min-width: 900px) {
  .tl-types { grid-template-columns: repeat(5, 1fr); }
}
.tl-type { display: flex; flex-direction: column; gap: 2px; padding: var(--space-3); border: 1px solid var(--color-border-strong); border-radius: var(--radius-md); background: var(--color-bg-secondary); cursor: pointer; font-size: var(--text-xs); color: var(--color-text-secondary); }
.tl-type input { position: absolute; opacity: 0; pointer-events: none; }
.tl-type.is-on { border: 2px solid var(--color-amber-500); background: var(--color-amber-50); }
.tl-type:focus-within { outline: 2px solid var(--color-slate-900); outline-offset: 1px; }
.tl-type__name { font-size: var(--text-sm); font-weight: 700; color: var(--color-text-primary); }
.tl-mark__line { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-2); margin: 0 0 var(--space-3); font-weight: 600; color: var(--color-text-primary); }
.tl-mark__line input { padding: var(--space-2) var(--space-3); font: var(--text-base) var(--font-body); border: 1px solid var(--color-border-strong); border-radius: var(--radius-md); }
.tl-mark__line input[type=number] { width: 5.5rem; }
.tl-mark__line input[type=text] { flex: 1 1 18rem; }
.tl-mark__line input:disabled { background: var(--color-bg-tertiary); color: var(--color-text-primary); }
.tl-locked { padding: var(--space-3) var(--space-4); border: 2px solid var(--color-slate-800); border-radius: var(--radius-md); background: var(--color-bg-secondary); font-size: var(--text-sm); }
.tl-locked p { margin: 0 0 var(--space-1); }
.tl-plancard { width: 100%; table-layout: fixed; }
.tl-plancard th { width: 13rem; text-align: left; }
.tl-plancard td { text-align: left; font-weight: 400; }
@media (max-width: 560px) {
  .tl-plancard th { width: 7.5rem; }
}
.tl-money { margin: var(--space-5) 0; }
.tl-money__grid { display: grid; gap: var(--space-3); }
@media (min-width: 760px) {
  .tl-money__grid { grid-template-columns: 6rem 1fr 1fr 10rem; }
}
.tl-type { position: relative; }
.tl-asm__src { font-size: var(--text-xs); white-space: nowrap; }
@media print {
  .tl-asmrank tr { break-inside: avoid; }
  .tl-asmrank thead { display: table-header-group; }
}
/* stage 4: several tests, two kinds */
.tl-tests { margin: 0 0 var(--space-5); }
.tl-tests__head { margin: 0 0 var(--space-1); font-family: var(--font-display); font-weight: 400; font-size: var(--text-xl); color: var(--color-text-primary); }
.tl-tests__add select { max-width: 32rem; 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-tlist td, .tl-tlist th { vertical-align: top; }
.tl-tlist td:first-child { white-space: nowrap; }
.tl-st { display: inline-block; padding: 1px 8px; border-radius: 3px; font-size: var(--text-xs); font-weight: 600; white-space: nowrap; background: var(--color-slate-100); color: var(--color-slate-700); }
.tl-st--running, .tl-st--draft { background: var(--color-amber-100); color: #92400e; }
.tl-st--passed { background: var(--color-slate-800); color: #fff; }
.tl-kind { border: 0; margin: 0 0 var(--space-4); padding: 0; }
.tl-kind legend { font-size: var(--text-sm); font-weight: 600; color: var(--color-text-primary); margin-bottom: var(--space-2); }
.tl-kind__opts { display: grid; gap: var(--space-2); }
@media (min-width: 760px) {
  .tl-kind__opts { grid-template-columns: 1fr 1fr; }
}
.tl-kind__opt { position: relative; display: flex; flex-direction: column; gap: 2px; padding: var(--space-3); border: 1px solid var(--color-border-strong); border-radius: var(--radius-md); background: var(--color-bg-secondary); cursor: pointer; font-size: var(--text-xs); color: var(--color-text-secondary); }
.tl-kind__opt input { position: absolute; opacity: 0; pointer-events: none; }
.tl-kind__opt.is-on { border: 2px solid var(--color-slate-800); }
.tl-kind__opt:focus-within { outline: 2px solid var(--color-slate-900); outline-offset: 1px; }
@media (min-width: 900px) {
  .tl-types { grid-template-columns: repeat(auto-fit, minmax(10rem, 1fr)); }
}
.tl-mark { margin-top: var(--space-4); padding-top: var(--space-4); border-top: 1px solid var(--color-border); }
.tl-mark__head { margin: 0 0 var(--space-1); font-size: var(--text-base); font-weight: 700; color: var(--color-text-primary); }
.tl-mark__line select { padding: var(--space-2) var(--space-3); font: var(--text-base) var(--font-body); border: 1px solid var(--color-border-strong); border-radius: var(--radius-md); background: #fff; }
.tl-mark__line #tLimit { width: 6rem; flex: none; }
.tl-mark__line #tUnit { flex: 1 1 10rem; }
.tl-skip { margin-top: var(--space-4); font-size: var(--text-sm); }
.tl-skip summary { cursor: pointer; color: var(--color-text-secondary); }
.tl-tcard__body .tl-plan1 { margin: 0; padding: var(--space-4) 0 0; border: 0; border-top: 1px solid var(--color-border); border-radius: 0; background: none; }
@media (max-width: 560px) {
  .tl-tcard__head .tl-st { order: 3; margin-left: 2.2rem; }
}
/* stage 5: break-even */
.tl-be__grid { display: grid; gap: var(--space-4); margin-bottom: var(--space-3); }
@media (min-width: 760px) {
  .tl-be__grid { grid-template-columns: 1fr 1fr; }
  .tl-be__grid--small { grid-template-columns: 8rem 14rem; }
}
.tl-be__terms { margin: var(--space-3) 0 var(--space-4); }
.tl-beplan { margin: 0 0 var(--space-4); }
.tl-beplan__top { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: var(--space-2); }
.tl-beplan__sub { margin: var(--space-4) 0 var(--space-2); font-size: var(--text-base); font-weight: 700; color: var(--color-text-primary); }
.tl-beplan__live { margin: var(--space-3) 0 0; padding: var(--space-3) var(--space-4); border-left: 3px solid var(--color-slate-800); background: var(--color-bg-secondary); font-size: var(--text-sm); }
.tl-becost { width: 100%; }
.tl-becost td { vertical-align: middle; }
.tl-becost input[type=text] { width: 100%; padding: 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); color: var(--color-text-primary); }
.tl-becost td:nth-child(2) { width: 9rem; }
.tl-becost__nc { white-space: nowrap; font-size: var(--text-xs); width: 1%; }
.tl-becost__nc label { display: inline-flex; align-items: center; gap: 4px; cursor: pointer; }
.tl-becost__x { width: 1%; }
.tl-x { border: 0; background: none; font-size: 1.3rem; line-height: 1; padding: 2px 6px; color: var(--color-text-muted); cursor: pointer; border-radius: var(--radius-sm); }
.tl-x:hover, .tl-x:focus-visible { color: #b42318; outline: 2px solid var(--color-accent); }
@media (max-width: 560px) {
  .pb-grid.tl-becost { min-width: 0; display: block; border-width: 1px; }
  .tl-becost thead { display: none; }
  .tl-becost tbody { display: block; }
  .tl-becost tr { display: grid; grid-template-columns: 7rem 1fr auto; align-items: center; gap: 4px var(--space-2); padding: var(--space-2); border-bottom: 1px solid var(--color-border); }
  .pb-grid.tl-becost td { display: block; padding: 0; border: 0; width: auto !important; text-align: left; }
  .pb-grid.tl-becost td:first-child { grid-column: 1 / -1; }
}
.tl-bechart { max-width: 44rem; }
.tl-bechart svg { width: 100%; height: auto; display: block; }
.tl-bechart__grid { stroke: var(--color-slate-300); stroke-width: 1; }
.tl-bechart__zero { stroke: var(--color-slate-800); stroke-width: 1.5; }
.tl-bechart__ax { font: 11px var(--font-body); fill: var(--color-text-muted); }
.tl-bechart__ax--title { font-weight: 600; fill: var(--color-text-secondary); }
.tl-bechart__mark { stroke: var(--color-slate-600); stroke-width: 1.5; stroke-dasharray: 2 4; }
.tl-bechart__mlab { font: 600 11px var(--font-body); fill: var(--color-text-secondary); }
.tl-bechart__l { fill: none; stroke-width: 2.5; }
.tl-bechart__l--0 { stroke: var(--color-slate-800); }
.tl-bechart__l--1 { stroke: var(--color-amber-600); stroke-dasharray: 8 5; }
.tl-bechart__pt { stroke: #fff; stroke-width: 2; }
.tl-bechart__pt--0 { fill: var(--color-slate-800); }
.tl-bechart__pt--1 { fill: var(--color-amber-600); }
.tl-bechart__plab { font: 700 11px var(--font-body); fill: var(--color-text-primary); }
.tl-bechart__key { list-style: none; margin: var(--space-2) 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: var(--space-2) var(--space-5); font-size: var(--text-sm); color: var(--color-text-secondary); }
.tl-bechart__key li { display: inline-flex; align-items: center; gap: var(--space-2); }
.tl-bechart__key svg { width: 28px; height: 8px; flex: none; }
@media print {
  .tl-bechart svg *, .tl-bechart__key svg * { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  .tl-bechart { break-inside: avoid; }
}
.tl-bechart__plab, .tl-bechart__mlab { paint-order: stroke; stroke: var(--color-bg-secondary, #fff); stroke-width: 3px; stroke-linejoin: round; }
.tl-be__buy { margin: var(--space-3) 0 var(--space-4); }
.tl-be__freq { max-width: 26rem; margin-bottom: var(--space-4); }
/* stage 5: the what-if */
.tl-beplan__up { max-width: 26rem; margin-top: var(--space-3); }
.tl-bewhen__form { display: grid; gap: var(--space-3); max-width: 44rem; padding: var(--space-4) var(--space-5); border: 1px solid var(--color-border); border-radius: var(--radius-md); background: var(--color-bg-tertiary); }
@media (min-width: 760px) {
  .tl-bewhen__form { grid-template-columns: 1fr 1fr; }
  .tl-bewhen__modes, .tl-bewhen__form .tl-actions { grid-column: 1 / -1; }
}
.tl-bewhen__modes { display: flex; flex-wrap: wrap; gap: var(--space-2) var(--space-5); font-size: var(--text-sm); font-weight: 600; }
.tl-bewhen__mode { display: inline-flex; align-items: center; gap: 6px; cursor: pointer; }
.tl-bewhen__f { margin: 0; }
.tl-bewhen__lead { margin: var(--space-5) 0 var(--space-2); }
#bWhenOut .tl-bechart { margin-top: var(--space-4); }
@media print {
  .tl-bewhen__form, .tl-bewhen .tl-setup__hint { display: none !important; }
  .tl-bewhen.is-empty { display: none !important; }
}
