/* Ship I2 (koira.ai/tools before-and-after maker and revenue forecast, koira.ai/reports).
   Loaded after tools.css. Colours only from the site's own tokens (site.css): --g1, --g2,
   --gd, --gl, --off, --beige, --dim. Type is the page's Koira Sans throughout. */

/* Before-and-after: the two photo pickers. */
.tx-pick{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:10px}
.tx-file{position:relative;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:4px;min-height:150px;padding:14px;border-radius:18px;background:var(--off);box-shadow:inset 0 0 0 1.5px rgba(16,16,18,.16);cursor:pointer;text-align:center;overflow:hidden;min-width:0;transition:box-shadow .15s,background .15s}
.tx-file:hover{background:var(--gl)}
.tx-file:focus-within{box-shadow:inset 0 0 0 2px var(--g2)}
.tx-file input{position:absolute;opacity:0;width:1px;height:1px}
.tx-file i{font-style:normal;width:40px;height:40px;border-radius:50%;background:#fff;color:var(--gd);font-size:24px;font-weight:600;line-height:40px}
.tx-file img{width:100%;height:84px;object-fit:cover;border-radius:12px}
.tx-file b{font-weight:600;font-size:15.5px;color:#2c2c2c}
.tx-file small{font-size:13px;color:var(--dim)}
.tx-file.on{background:#fff}
.tx-prev{display:block;width:100%;height:auto;border-radius:18px;background:#fff;touch-action:pan-y}
.tx-prev.drag{cursor:ew-resize}
.tx-range{width:100%;accent-color:var(--g1);height:28px;margin:0}
.tx-rl{display:flex;flex-direction:column;gap:2px;font-size:14.5px;font-weight:500;color:#2c2c2c}
.tl-out .ob:disabled{opacity:.55;cursor:default}

/* Revenue forecast: the month inputs and the chart. */
.tx-months{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px}
.tx-months .tl-num{height:44px;padding:0 10px}
.tx-months .tl-f>label{font-size:14px}
.tx-mhelp{display:block;margin-top:10px;font-size:13.5px;color:var(--dim);line-height:1.4}
.tl-math .tx-h2{margin-top:34px}
.tx-num td:nth-child(n+2),.tx-num th:nth-child(n+2){text-align:right;white-space:nowrap}
.tx-chart{margin-top:18px;min-width:0}
.tx-chart svg{display:block;max-width:100%;overflow:visible}
.tx-leg{display:flex;flex-wrap:wrap;gap:6px 18px;font-size:14px;font-weight:600;color:#2c2c2c;margin-bottom:10px}
.tx-leg span{display:inline-flex;align-items:center;gap:7px}
.tx-leg i{display:inline-block;width:12px;height:12px;border-radius:3px}
.tx-k1,.tx-b1{background:var(--gl);fill:var(--gl)}
.tx-k2,.tx-b2{background:var(--gd);fill:var(--gd)}
.tx-grid{stroke:rgba(16,16,18,.08);stroke-width:1}
.tx-base{stroke:rgba(16,16,18,.35);stroke-width:1}
.tx-ax{fill:rgba(16,16,18,.62);font-size:12px}
.tx-hit{fill:transparent}
.tx-chart g[tabindex]{outline:none}
.tx-chart g.on .tx-hit{fill:rgba(16,16,18,.04)}
.tx-tip{min-height:22px;margin-top:8px;font-size:14px;color:var(--dim)}
.tx-tip b{color:#2c2c2c;font-weight:600;margin-right:4px}

/* koira.ai/reports: the hub cards use .tl-cards; these are the report pages. */
.rp-sec{padding-block:20px 90px}
.rp-sec h2{font-family:var(--oh);font-size:clamp(26px,2.6vw,34px);font-weight:600;letter-spacing:-.035em;line-height:1.1}
.rp-sec h2:not(:first-child){margin-top:72px}
.rp-sec h3{font-family:var(--oh);font-size:21px;font-weight:600;letter-spacing:-.03em;line-height:1.15;margin-top:40px}
.rp-sec p{max-width:760px;margin-top:12px;font-size:16.5px;line-height:1.55}
.rp-sec p a,.rp-sec li a,.rp-sec td a{color:var(--g1);font-weight:600}
.rp-sec ul{max-width:760px;margin:12px 0 0;padding-left:20px;font-size:16.5px;line-height:1.55;list-style:disc}
.rp-sec ul li+li{margin-top:6px}
.rp-sec ul.rp-bars{list-style:none;padding:0}
.rp-sec ul.rp-bars li+li{margin-top:0}
.rp-sec .tl-tb tbody th{background:none;font-weight:600;white-space:normal;padding:12px 16px;border-top:1px solid rgba(16,16,18,.08)}
.rp-sec .tl-tb caption{caption-side:top;text-align:left;padding:14px 16px 4px;font-weight:600;font-size:15px}
.rp-nums td:nth-child(n+2),.rp-nums th:nth-child(n+2){text-align:right;white-space:nowrap}
.rp-dl{display:flex;flex-wrap:wrap;align-items:center;gap:8px 14px;margin-top:18px}
.rp-dl a{display:inline-flex;align-items:center;gap:8px;height:40px;padding:0 16px;border-radius:12px;background:var(--gl);color:var(--gd);font-size:14.5px;font-weight:600;flex:none}
.rp-dl a:hover{background:var(--g2);color:#fff}
.rp-dl small{font-size:13.5px;color:var(--dim)}
/* Bar charts: the words are HTML, each bar a small SVG, so the text is page-sized at every width. */
.rp-bars{list-style:none;margin:22px 0 0;padding:0;display:flex;flex-direction:column;gap:6px;max-width:860px}
.rp-bars li{display:grid;grid-template-columns:minmax(0,180px) minmax(0,1fr) 88px;align-items:center;gap:12px;font-size:14.5px}
.rp-bars li>span:first-child{line-height:1.2;overflow-wrap:anywhere}
.rp-bars li>b{font-weight:600;text-align:right;white-space:nowrap}
.rp-bars svg{display:block;width:100%;height:18px}
.rp-bars .b{fill:var(--g2)}
.rp-bars .r{fill:var(--gl)}
.rp-bars .d{fill:var(--gd)}
.rp-bars .t{fill:rgba(16,16,18,.06)}
.rp-bars li:hover>span:first-child{color:var(--g1)}
.rp-key{display:flex;flex-wrap:wrap;gap:6px 18px;font-size:14px;font-weight:600;margin-top:16px}
.rp-key span{display:inline-flex;align-items:center;gap:7px}
.rp-key i{display:inline-block;width:12px;height:12px;border-radius:3px}
.rp-key .r{background:var(--gl)}
.rp-key .d{background:var(--gd)}
.rp-key .b{background:var(--g2)}
.rp-meth{background:var(--off);border-radius:26px;padding:26px 28px;margin-top:22px;max-width:860px}
.rp-meth p:first-child{margin-top:0}
.rp-meth ol{margin:10px 0 0;padding-left:20px;font-size:16px;line-height:1.55}
.rp-y{color:var(--gd);font-weight:600}
.rp-n{color:var(--dim)}

@media (max-width:600px){
  .tx-months{grid-template-columns:repeat(3,minmax(0,1fr))}
  .tx-file{min-height:128px}
  .rp-bars li{grid-template-columns:minmax(0,118px) minmax(0,1fr) 64px;gap:8px;font-size:13.5px}
  .rp-meth{padding:22px 18px;border-radius:22px}
}
@media print{
  .tx-chart g.on .tx-hit{fill:transparent}
  .rp-dl{display:none!important}
}
.rp-bars.rp-wide li{grid-template-columns:minmax(0,180px) minmax(0,1fr) max-content}
.rp-bars .m{stroke:var(--gd);stroke-width:4;stroke-linecap:round}
.rp-bars .c{stroke:rgba(16,16,18,.45);stroke-width:2}
.rp-bars .g{stroke:#fff;stroke-width:2}
.rp-bars .u{fill:rgba(16,16,18,.06)}
.rp-key .u{background:rgba(16,16,18,.06);box-shadow:inset 0 0 0 1px rgba(16,16,18,.15)}
.rp-key .m{width:4px;height:14px;border-radius:2px;background:var(--gd)}
@media (max-width:600px){.rp-bars.rp-wide li{grid-template-columns:minmax(0,104px) minmax(0,1fr) max-content}}
