/* Churn Rate Calculator: customer retention dashboard */
.ch-lh{display:flex;justify-content:space-between;align-items:center;gap:10px;flex-wrap:wrap}
.app.ch .ch-mode{width:auto;order:0}
.ch-mode button{padding:4px 10px;font-size:12.5px}
.ch-sub{display:flex;align-items:center;gap:8px;font-family:var(--mono);font-size:11px;letter-spacing:.07em;text-transform:uppercase;color:var(--slate);padding-top:14px;border-top:1px solid var(--rule)}
.ch-sub em{font-style:normal;font-size:10px;letter-spacing:.06em;background:var(--paper);border:1px solid var(--rule);border-radius:4px;padding:1px 6px}
.ch-panel{border:1px solid var(--rule);border-radius:14px;overflow:hidden}
.ch-ph{display:flex;justify-content:space-between;align-items:baseline;gap:10px;flex-wrap:wrap;padding:14px 16px 8px}
.ch-ph b{font-weight:600;font-size:15px}
.ch-ph small{font-family:var(--mono);font-size:11.5px;color:var(--slate)}
.ch-rows{display:grid;gap:8px;padding:6px 16px 4px}
.ch-row{display:grid;grid-template-columns:48px minmax(0,1fr) 64px;gap:12px;align-items:center}
.ch-row b{font-weight:500;font-size:14px}
.ch-row span{text-align:right;font-weight:600;font-variant-numeric:tabular-nums}
.ch-bar{display:flex;height:26px;background:var(--paper);border-radius:7px;overflow:hidden}
.ch-bar i{display:block;height:100%;transition:width .6s cubic-bezier(.3,.7,.3,1)}
.ch-bar .kept,.ch-legend .kept::before{background:var(--ink)}
.ch-bar .lost,.ch-legend .lost::before{background:var(--red)}
.ch-bar .new,.ch-legend .new::before{background:var(--lime)}
.ch-legend{list-style:none;display:flex;flex-wrap:wrap;gap:6px 18px;padding:10px 16px 14px;font-size:13.5px;color:var(--slate)}
.ch-legend li{display:flex;align-items:center;gap:7px}
.ch-legend li::before{content:"";width:9px;height:9px;border-radius:3px}
.ch-legend b{color:var(--ink);font-weight:600;font-variant-numeric:tabular-nums}
.ch-svg{display:block;width:calc(100% - 24px);margin:4px 12px 6px;height:auto;overflow:visible;font-family:var(--sans)}
.ch-svg .grid{stroke:#EEEEE8;stroke-width:1}
.ch-svg .area{fill:rgba(61,90,254,.1);transition:d .55s cubic-bezier(.3,.7,.3,1)}
.ch-svg .line{fill:none;stroke:var(--blue);stroke-width:2.5;stroke-linejoin:round;transition:d .55s cubic-bezier(.3,.7,.3,1)}
.ch-svg .dot{fill:var(--blue);stroke:#fff;stroke-width:2.5;transition:cy .55s cubic-bezier(.3,.7,.3,1)}
.ch-svg .val{font-size:14px;font-weight:600;fill:var(--ink)}
.ch-svg .v0{text-anchor:start}
.ch-svg .vn{text-anchor:end}
.ch-svg .lbl{font-size:12.5px;fill:var(--slate);text-anchor:middle}
.ch-stats{display:grid;grid-template-columns:1fr 1fr;border-top:1px solid var(--rule)}
.ch-stats div{padding:12px 16px;display:flex;flex-direction:column;gap:2px;min-width:0}
.ch-stats div + div{border-left:1px solid var(--rule)}
.ch-stats small{font-family:var(--mono);font-size:10.5px;letter-spacing:.07em;text-transform:uppercase;color:var(--slate)}
.ch-stats b{font-size:20px;font-weight:600;font-variant-numeric:tabular-nums}
.ch-stats span{font-size:12.5px;color:var(--slate)}
@media(max-width:600px){
  .ch-row{grid-template-columns:40px minmax(0,1fr) 52px;gap:10px}
  .ch-svg .val{font-size:22px}.ch-svg .lbl{font-size:19px}
  .ch .app-sel{margin-left:auto}
}
