/* Net Negative Churn Calculator: subscription billing dashboard of MRR movements */
.nn .nn-unit{font-family:var(--mono);font-size:10px;letter-spacing:.06em;color:var(--blue);background:var(--blue-soft);border-radius:4px;padding:1px 6px;font-weight:400}
.nn-dot{display:inline-block;width:9px;height:9px;border-radius:3px;flex:none}
.nn-dot.churn,.nn-bar .churn,.nn-legend .churn::before{background:var(--red)}
.nn-dot.con,.nn-bar .con,.nn-legend .con::before{background:#F5B74E}
.nn-dot.exp,.nn-bar .exp,.nn-legend .exp::before{background:var(--lime)}
.nn-panel{border:1px solid var(--rule);border-radius:14px;overflow:hidden}
.nn-ph,.nn-lh{display:flex;justify-content:space-between;align-items:baseline;gap:4px 10px;flex-wrap:wrap;padding:14px 16px 8px}
.nn-ph b,.nn-lh b{font-weight:600;font-size:15px}
.nn-ph small,.nn-lh small{font-family:var(--mono);font-size:11.5px;color:var(--slate)}
.nn-rows{display:grid;gap:10px;padding:8px 16px 4px}
.nn-row{display:grid;grid-template-columns:80px minmax(0,1fr) 72px;gap:12px;align-items:center}
.nn-row > b{font-weight:500;font-size:14px}
.nn-row > span{text-align:right;font-weight:600;font-variant-numeric:tabular-nums}
.nn-bar{position:relative;display:flex;height:26px;background:var(--paper);border-radius:7px}
.nn-bar i{display:block;height:100%;transition:width .6s cubic-bezier(.3,.7,.3,1)}
.nn-bar i:first-child{border-radius:7px 0 0 7px}
.nn-bar .exp{border-radius:7px}
.nn-mark{position:absolute;top:-6px;bottom:-6px;width:0;border-left:2px dashed var(--ink);transition:left .6s cubic-bezier(.3,.7,.3,1)}
.nn-mark span{position:absolute;bottom:-17px;left:0;transform:translateX(-50%);font-style:normal;font-family:var(--mono);font-size:10px;letter-spacing:.04em;color:var(--slate);white-space:nowrap}
.nn-legend{list-style:none;display:flex;flex-wrap:wrap;gap:6px 18px;padding:22px 16px 14px;font-size:13.5px;color:var(--slate)}
.nn-legend li{display:flex;align-items:center;gap:7px}
.nn-legend li::before{content:"";width:9px;height:9px;border-radius:3px}
.nn-legend b{color:var(--ink);font-weight:600;font-variant-numeric:tabular-nums}
.nn-ladder{border-top:1px solid var(--rule);background:#FDFDFB}
.nn-steps{display:grid;padding:0 16px 10px}
.nn-step{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr) auto;gap:12px;align-items:center;padding:10px 0;border-top:1px solid var(--rule)}
.nn-step:first-child{border-top:0}
.nn-step b{display:block;font-weight:600;font-size:14.5px;font-variant-numeric:tabular-nums}
.nn-step small{display:block;font-size:12.5px;color:var(--slate)}
.nn-need{text-align:right}
.nn-step .chip{font-family:var(--mono);font-size:11px;letter-spacing:.04em;text-transform:uppercase;border-radius:6px;padding:3px 8px;white-space:nowrap;min-width:96px;text-align:center}
.nn-svg{display:block;width:calc(100% - 24px);margin:4px 12px 6px;height:auto;overflow:visible;font-family:var(--sans)}
.nn-svg .grid{stroke:#EEEEE8;stroke-width:1}
.nn-svg .base{stroke:#B8BCC4;stroke-dasharray:3 4;transition:y1 .55s,y2 .55s}
.nn-svg .area{fill:rgba(200,242,90,.35);transition:d .55s cubic-bezier(.3,.7,.3,1)}
.nn-svg .line{fill:none;stroke:#5E8C0A;stroke-width:2.5;stroke-linejoin:round;transition:d .55s cubic-bezier(.3,.7,.3,1)}
.nn-svg .dot{fill:var(--ink);stroke:#fff;stroke-width:2.5;transition:cy .55s cubic-bezier(.3,.7,.3,1)}
.nn-svg .dot.end{fill:#5E8C0A}
.nn-svg.down .area{fill:rgba(240,116,94,.16)}
.nn-svg.down .line{stroke:var(--red)}
.nn-svg.down .dot.end{fill:var(--red)}
.nn-svg .val{font-size:14px;font-weight:600;fill:var(--ink);transition:y .55s}
.nn-svg .v0{text-anchor:start}
.nn-svg .vn{text-anchor:end}
.nn-svg .lbl{font-size:12.5px;fill:var(--slate);text-anchor:middle}
.nn-stats{display:grid;grid-template-columns:1fr 1fr;border-top:1px solid var(--rule)}
.nn-stats div{padding:12px 16px;display:flex;flex-direction:column;gap:2px;min-width:0}
.nn-stats div + div{border-left:1px solid var(--rule)}
.nn-stats small{font-family:var(--mono);font-size:10.5px;letter-spacing:.07em;text-transform:uppercase;color:var(--slate)}
.nn-stats b{font-size:20px;font-weight:600;font-variant-numeric:tabular-nums}
.nn-stats span{font-size:12.5px;color:var(--slate)}
@media(max-width:600px){
  .nn-row{grid-template-columns:70px minmax(0,1fr) 60px;gap:10px}
  .nn-row > b{font-size:13px}.nn-row > span{font-size:14px}
  .nn-step{grid-template-columns:minmax(0,1fr) auto;gap:4px 10px}
  .nn-step .chip{grid-column:1/-1;justify-self:start;min-width:0}
  .nn-step b{font-size:14px}
  .nn-svg .val{font-size:22px}.nn-svg .lbl{font-size:19px}
  .nn .app-sel{margin-left:auto}
}

@media(max-width:420px){.nn .kpi:not(.kpi-main) b{font-size:24px}.nn-bar{font-size:11px}}
