/* NOVA page, 09 See your growth, in real time (assets/js/n-dash.js). The live page's NOVA dashboard on a plain app window in a
   screen's own proportions (16:10): drawn at 1160 x 725 and scaled to the room (--k), so every measure stays exact. Product UI,
   clarity over decoration: bordered cards inside the app, mono labels, NOVA's green to teal for the data. The tour sits under the
   window (above it on phones, where the window reflows into a column). */
.nd-box { display: flex; flex-direction: column; max-width: 1160px; margin: 0 auto; }
.nd-win { order: 1; position: relative; overflow: hidden; border-radius: 18px; background: #fff; box-shadow: var(--nv-card-lg); }
.nd-scale { display: flex; flex-direction: column; width: 1160px; height: 725px; transform: scale(var(--k, 1)); transform-origin: 0 0; }

/* the window bar */
.nd-bar { flex: none; display: flex; align-items: center; gap: 14px; height: 44px; padding: 0 16px; border-bottom: 1px solid #EDF0EE; background: #FAFBFA; }
.nd-wd { display: flex; gap: 7px; width: 80px; }
.nd-wd i { width: 11px; height: 11px; border-radius: 50%; background: #E2E5E3; }
.nd-tt { display: flex; align-items: center; gap: 9px; margin: 0 auto; font: 500 12.5px/1 var(--sans); color: var(--nv-mute); }
.nd-tl, .nd-bl { display: inline-flex; }
.nd-auto { display: inline-flex; align-items: center; justify-content: center; width: 112px; height: 24px; border-radius: 999px; background: rgba(84,184,106,.13);
  font: 500 9px/1 var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--nv-ink-g); }

/* the app */
.nd-app { flex: 1 1 auto; min-height: 0; display: grid; grid-template-columns: 214px minmax(0, 1fr); }
.nd-side { display: flex; flex-direction: column; gap: 2px; min-height: 0; padding: 18px 12px 14px; background: #F8FAF9; border-right: 1px solid #EDF0EE; }
.nd-brand { display: grid; justify-items: start; gap: 6px; margin: 2px 0 14px; padding: 0 10px; }
.nd-brand small { font: 500 11.5px/1 var(--sans); color: var(--nv-mute); }
.nd-nl { margin: 12px 0 5px; padding: 0 10px; font: 500 9.5px/1 var(--mono); letter-spacing: .14em; text-transform: uppercase; color: rgba(11,11,12,.42); }
.nd-nav { display: grid; gap: 2px; }
.nd-ni { display: flex; align-items: center; gap: 10px; width: 100%; height: 34px; padding: 0 10px; border: 0; border-radius: 9px; background: transparent; cursor: pointer;
  font: 500 13.5px/1 var(--sans); color: rgba(11,11,12,.64); text-align: left; transition: background-color .25s ease, color .25s ease, box-shadow .25s ease; }
.nd-ni svg { width: 17px; height: 17px; flex: none; }
.nd-ni:hover { color: var(--ink); background: rgba(255,255,255,.7); }
.nd-ni.on { background: #fff; color: var(--ink); font-weight: 600; box-shadow: 0 1px 2px rgba(11,11,12,.06), 0 6px 14px -10px rgba(16,44,40,.35); }
.nd-ni em { margin-left: auto; min-width: 20px; padding: 3px 6px; border-radius: 999px; background: var(--nv-grad); color: #fff; font: 600 10.5px/1 var(--sans); font-style: normal; text-align: center; }
.nd-ni:focus-visible { outline: 2px solid var(--nv-teal); outline-offset: 1px; }
.nd-user { display: flex; align-items: center; gap: 10px; margin: auto 0 0; padding: 10px; border-radius: 12px; background: #fff; box-shadow: 0 0 0 1px rgba(11,11,12,.05); }
.nd-user i { display: grid; place-items: center; flex: none; width: 30px; height: 30px; border-radius: 50%; background: #0B0B0C; color: #B9EFA3; font: 700 10.5px/1 var(--sans); font-style: normal; letter-spacing: .02em; }
.nd-user span { display: grid; gap: 3px; }
.nd-user b { font: 600 12.5px/1.1 var(--sans); color: var(--ink); }
.nd-user small { font: 500 11px/1 var(--sans); color: var(--nv-mute); }

.nd-main { display: flex; flex-direction: column; gap: 14px; min-width: 0; min-height: 0; padding: 18px 22px; background: #fff; }
.nd-top { display: flex; align-items: center; gap: 12px; }
.nd-ttl { display: grid; gap: 5px; margin: 0 auto 0 0; }
.nd-ttl b { font: 600 19px/1.1 var(--sans); letter-spacing: -.016em; color: var(--ink); }
.nd-ttl small { display: flex; font: 500 12px/1 var(--sans); color: var(--nv-mute); }
.nd-ttl small span + span { margin-left: 9px; padding-left: 9px; border-left: 1px solid var(--nv-line); }
.nd-search { display: inline-flex; align-items: center; gap: 8px; width: 200px; height: 34px; padding: 0 12px; border-radius: 10px; background: #F3F5F4; font: 400 13px/1 var(--sans); color: rgba(11,11,12,.42); }
.nd-search svg { width: 15px; height: 15px; }
.nd-lv { display: inline-flex; align-items: center; height: 26px; padding: 0 11px; border-radius: 999px; background: rgba(84,184,106,.13); font: 500 9.5px/1 var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--nv-ink-g); }

.nd-views { position: relative; flex: 1 1 auto; min-height: 0; }
.nd-v { display: none; }
.nd-v.on { display: block; animation: ndview .55s var(--ease-out) both; }
@keyframes ndview { from { opacity: 0; translate: 0 6px; } }

/* KPIs */
.nd-kpis { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.nd-kpi { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: end; padding: 13px 14px 13px; border-radius: 14px; box-shadow: inset 0 0 0 1px #EAEEEC; }
.nd-kk { grid-column: 1 / -1; margin: 0 0 9px; font: 500 9.5px/1 var(--mono); letter-spacing: .12em; text-transform: uppercase; color: rgba(11,11,12,.5); }
.nd-kv { display: flex; align-items: baseline; gap: 7px; margin: 0; }
.nd-kv b { font: 600 25px/1 var(--sans); letter-spacing: -.03em; font-variant-numeric: tabular-nums; color: var(--ink); }
.nd-up { font: 600 11.5px/1 var(--sans); color: var(--nv-ink-g); white-space: nowrap; }
.nd-sp { display: flex; align-items: flex-end; gap: 3px; height: 26px; margin: 0; }
.nd-sp i { width: 5px; height: var(--h); border-radius: 2px; background: linear-gradient(180deg, #54B86A, #4F98A7); transform-origin: 50% 100%; }
.nd-in .nd-sp i { animation: ndgrow .8s var(--ease-out) both; animation-delay: calc(200ms + var(--i) * 55ms); }
@keyframes ndgrow { from { transform: scaleY(0); } }
.nd-kpi.flash { animation: ndflash 1s ease; }
@keyframes ndflash { 30% { box-shadow: inset 0 0 0 1px rgba(84,184,106,.55), 0 0 0 4px rgba(84,184,106,.09); } }

/* cards inside the app */
.nd-grid { display: grid; grid-template-columns: minmax(0, 1.42fr) minmax(0, 1fr); gap: 12px; height: 100%; }
.nd-g2 { grid-template-columns: repeat(2, minmax(0, 1fr)); height: auto; }
.nd-col { display: grid; grid-template-rows: auto minmax(0, 1fr); gap: 12px; min-width: 0; }   /* the second card fills, so both columns end on one line */
.nd-card { min-width: 0; padding: 14px 16px; border-radius: 14px; background: #fff; box-shadow: inset 0 0 0 1px #EAEEEC; }
.nd-ch { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; margin: 0 0 8px; }
.nd-ch b { font: 600 14px/1.2 var(--sans); letter-spacing: -.008em; color: var(--ink); }
.nd-ch span { font: 500 9.5px/1 var(--mono); letter-spacing: .12em; text-transform: uppercase; color: rgba(11,11,12,.45); white-space: nowrap; }

/* the chart */
.nd-cht { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.nd-chn { display: grid; gap: 6px; margin: 0; }
.nd-cnum { font: 600 26px/1 var(--sans); letter-spacing: -.03em; font-variant-numeric: tabular-nums; color: var(--ink); }
.nd-clab { display: flex; gap: 8px; font: 500 12px/1 var(--sans); color: var(--nv-mute); }
.nd-clab em { font-style: normal; font-weight: 600; color: var(--ink); }
.nd-seg { display: inline-flex; gap: 2px; padding: 3px; border-radius: 9px; background: #F1F4F2; }
.nd-seg button { height: 26px; padding: 0 10px; border: 0; border-radius: 7px; background: transparent; cursor: pointer; font: 500 12px/1 var(--sans); color: var(--nv-mute);
  transition: background-color .2s ease, color .2s ease, box-shadow .2s ease; }
.nd-seg button:hover { color: var(--ink); }
.nd-seg button.on { background: #fff; color: var(--ink); font-weight: 600; box-shadow: 0 1px 2px rgba(11,11,12,.08), 0 0 0 1px rgba(11,11,12,.03); }
.nd-seg button:focus-visible { outline: 2px solid var(--nv-teal); outline-offset: 1px; }
.nd-metric { margin-top: 12px; }
.nd-plot { height: 148px; margin-top: 8px; transition: opacity .22s ease; }
.nd-plot.fade { opacity: 0; }
.nd-svg { display: block; width: 100%; height: 100%; overflow: hidden; }
.nd-gl line { stroke: #EEF1EF; stroke-width: 1; }
.nd-line { stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.nd-dot { fill: #4F98A7; stroke: #fff; stroke-width: 2.5; }
.nd-in .nd-line { animation: nddraw 1.6s cubic-bezier(.4,.1,.2,1) .25s both; stroke-dasharray: 1400; }
@keyframes nddraw { from { stroke-dashoffset: 1400; } to { stroke-dashoffset: 0; } }
.nd-in .nd-area { animation: ndfade 1s ease 1s both; }
.nd-in .nd-dot { animation: ndfade .45s ease 1.7s both; }
@keyframes ndfade { from { opacity: 0; } }

/* rows */
.nd-rows { display: grid; }
.nd-r { display: grid; align-items: center; gap: 10px; min-height: 36px; margin: 0 -6px; padding: 0 6px; border-radius: 8px; cursor: pointer; transition: background-color .2s ease; }
.nd-r + .nd-r { box-shadow: inset 0 1px 0 #F0F2F1; }
.nd-r:hover { background: #F7F9F8; }
.nd-r.sel { background: #F0F7F3; }
.nd-mk { display: block; width: 16px; height: 16px; }
.nd-r .kw { min-width: 0; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; font: 500 13px/1.2 var(--sans); color: var(--ink); }
.nd-r .pos { font: 600 13px/1 var(--sans); text-align: right; font-variant-numeric: tabular-nums; color: var(--ink); }
.nd-mv { grid-template-columns: minmax(0, 1fr) 16px 32px 46px; }
.nd-mv .chg { display: inline-flex; align-items: center; justify-content: flex-end; gap: 3px; font: 600 12px/1 var(--sans); color: var(--nv-ink-g); }
.nd-mv .chg svg { width: 11px; height: 11px; }
.nd-mv .chg.ai, .nd-r .ai { color: var(--nv-ink-t); font-weight: 600; }
.nd-pl { grid-template-columns: minmax(0, 1fr) auto; }
.nd-r .u, .nd-kt span { font: 500 12.5px/1.2 var(--mono); letter-spacing: 0; color: var(--ink); }
.nd-st { display: inline-flex; align-items: center; height: 22px; padding: 0 9px; border-radius: 999px; font: 500 9px/1 var(--mono); letter-spacing: .12em; text-transform: uppercase; }
.nd-st.live { background: rgba(84,184,106,.14); color: var(--nv-ink-g); }
.nd-st.wr { background: rgba(79,152,167,.13); color: var(--nv-ink-t); }
.nd-st.q { background: #F1F3F2; color: rgba(11,11,12,.52); }

/* bars */
.nd-bars { display: grid; gap: 10px; padding: 2px 0 4px; }
.nd-b { display: grid; grid-template-columns: 16px 76px minmax(0, 1fr) 34px; align-items: center; gap: 9px; }
.nd-b b { font: 500 12.5px/1 var(--sans); color: var(--ink); }
.nd-b .t { height: 7px; overflow: hidden; border-radius: 4px; background: #EEF1EF; }
.nd-b .t i { display: block; width: var(--w); height: 100%; border-radius: 4px; background: var(--nv-grad); transform-origin: 0 50%; }
.nd-b em { font: 600 12px/1 var(--sans); font-style: normal; text-align: right; font-variant-numeric: tabular-nums; color: var(--ink); }
.nd-in .nd-v.on .nd-b .t i { animation: ndbar 1.1s var(--ease-out) both; }
.nd-in .nd-v.on .nd-b:nth-child(2) .t i { animation-delay: .07s; } .nd-in .nd-v.on .nd-b:nth-child(3) .t i { animation-delay: .14s; }
.nd-in .nd-v.on .nd-b:nth-child(4) .t i { animation-delay: .21s; } .nd-in .nd-v.on .nd-b:nth-child(5) .t i { animation-delay: .28s; }
.nd-in .nd-v.on .nd-b:nth-child(6) .t i { animation-delay: .35s; }
@keyframes ndbar { from { transform: scaleX(0); } }
.nd-bars6 { gap: 26px; padding: 14px 0 8px; }
.nd-bars6 .nd-b { grid-template-columns: 20px 84px minmax(0, 1fr) 38px; }
.nd-bars6 .nd-mk { width: 20px; height: 20px; }
.nd-bars6 .nd-b b { font-size: 13.5px; }
.nd-bars6 .nd-b .t { height: 9px; }
.nd-bars6 .nd-b em { font-size: 13px; }

/* tables */
.nd-th { display: grid; align-items: center; gap: 10px; min-height: 30px; margin: 0 -6px; padding: 0 6px; border-bottom: 1px solid #EAEEEC;
  font: 500 9.5px/1 var(--mono); letter-spacing: .12em; text-transform: uppercase; color: rgba(11,11,12,.45); }
.nd-tab .nd-r { min-height: 52px; }
.nd-kw { grid-template-columns: minmax(0, 1fr) 16px 64px 72px 72px; }
.nd-pg { grid-template-columns: minmax(0, 1fr) 88px 88px 64px; }
.nd-th .n { text-align: right; }
.nd-r .n { text-align: right; font: 500 13px/1 var(--sans); font-variant-numeric: tabular-nums; color: rgba(11,11,12,.72); }
.nd-r .n.pos { font-weight: 600; color: var(--ink); }
.nd-r .n.ai { color: var(--nv-ink-t); }

/* citations */
.nd-ct { grid-template-columns: 20px minmax(0, 1fr) auto; min-height: 70px; }
.nd-ct .nd-mk { width: 20px; height: 20px; }
.nd-ct .ct { display: grid; gap: 5px; min-width: 0; }
.nd-ct .ct b { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; font: 600 13px/1.2 var(--sans); color: var(--ink); }
.nd-ct small { display: flex; font: 500 11.5px/1 var(--sans); color: var(--nv-mute); }
.nd-ct small span + span { margin-left: 8px; padding-left: 8px; border-left: 1px solid var(--nv-line); }
.nd-ct .cm { font: 600 12px/1 var(--sans); color: var(--nv-ink-g); }

/* the pipeline board */
.nd-kan { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.nd-kc { display: grid; align-content: start; gap: 8px; min-height: 360px; padding: 10px; border-radius: 12px; background: #F7F9F8; }
.nd-kh { display: flex; align-items: center; justify-content: space-between; margin: 3px 3px 4px; font: 500 9.5px/1 var(--mono); letter-spacing: .12em; text-transform: uppercase; color: rgba(11,11,12,.55); }
.nd-kh b { font: 600 12px/1 var(--sans); letter-spacing: 0; color: var(--ink); }
.nd-kt { display: flex; align-items: center; gap: 8px; margin: 0; padding: 13px 12px; border-radius: 10px; background: #fff; box-shadow: 0 0 0 1px rgba(11,11,12,.05), 0 6px 14px -10px rgba(16,44,40,.3); }
.nd-kt i { display: grid; place-items: center; flex: none; width: 18px; height: 18px; border-radius: 50%; background: var(--nv-grad); color: #fff; }
.nd-kt i svg { width: 10px; height: 10px; }
.nd-in .nd-v.on .nd-kt { animation: ndview .6s var(--ease-out) both; }
.nd-in .nd-v.on .nd-kc:nth-child(2) .nd-kt { animation-delay: .12s; } .nd-in .nd-v.on .nd-kc:nth-child(3) .nd-kt { animation-delay: .24s; }

/* the tour and the note */
.nd-tour { order: 2; align-self: center; display: flex; gap: 4px; margin: 22px 0 0; padding: 5px; border-radius: 999px; background: #fff; box-shadow: var(--nv-card); }
.nd-tb { position: relative; overflow: hidden; height: 42px; padding: 0 18px; border: 0; border-radius: 999px; background: transparent; cursor: pointer;
  font: 600 14px/1 var(--sans); color: var(--nv-mute); white-space: nowrap; transition: background-color .3s ease, color .3s ease; }
.nd-tb:hover { color: var(--ink); }
.nd-tb.on { background: #F1F7F3; color: var(--ink); }
.nd-tb i { position: absolute; left: 18px; right: 18px; bottom: 6px; height: 2px; border-radius: 2px; background: var(--nv-grad); transform: scaleX(0); transform-origin: 0 50%; }
.nd-run .nd-tb.on i { animation: ndprog 7.6s linear both; }
@keyframes ndprog { to { transform: scaleX(1); } }
.nd-tb:focus-visible { outline: 2px solid var(--nv-teal); outline-offset: 2px; }
.nd-note { order: 3; margin: 16px 0 0; text-align: center; font: 400 14px/1.5 var(--sans); color: var(--nv-mute); }

html.reduce .nd-box *, html.still .nd-box * { animation: none !important; transition: none !important; }

/* ---------------------------------------------------------------- tablets and phones: below 960 px the window would scale its text
   under 10 px, so it reflows instead (no side bar; the tour above it). Phones (600 px and less) get one column. */
@media (max-width: 959px) {
  .nd-tour { order: 0; margin: 0 0 16px; }
  .nd-scale { width: auto; height: auto; transform: none; }
  .nd-win { height: auto !important; border-radius: 16px; }
  .nd-app { display: block; }
  .nd-side { display: none; }
  .nd-main { gap: 12px; padding: 16px; }
  .nd-kc { min-height: 0; }
  .nd-col { grid-template-rows: none; align-content: start; }
  .nd-kpi { grid-template-columns: minmax(0, 1fr); }
  .nd-sp { margin-top: 10px; height: 22px; }
}
@media (max-width: 600px) {
  .nd-tour { align-self: stretch; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 4px; margin: 0 0 14px; border-radius: 20px; }
  .nd-tb { height: 44px; padding: 0 10px; border-radius: 15px; font-size: 13.5px; }
  .nd-tb i { left: 12px; right: 12px; }
  .nd-bar { padding: 0 14px; }
  .nd-wd { width: auto; }
  .nd-auto { width: auto; padding: 0 10px; }
  .nd-tt { margin: 0 auto 0 4px; }
  .nd-main { padding: 14px 12px; }
  .nd-search { display: none; }
  .nd-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .nd-kpi { grid-template-columns: minmax(0, 1fr); padding: 12px; }
  .nd-sp { margin-top: 10px; height: 20px; }
  .nd-kv b { font-size: 22px; }
  .nd-grid, .nd-g2 { grid-template-columns: minmax(0, 1fr); }
  .nd-card { padding: 13px 12px; }
  .nd-cht { flex-wrap: wrap; }
  .nd-plot { height: 130px; }
  .nd-kan { grid-template-columns: minmax(0, 1fr); }
  .nd-kw { grid-template-columns: minmax(0, 1fr) 16px 30px 38px 42px; gap: 7px; }
  .nd-pg { grid-template-columns: minmax(0, 1fr) 40px 42px 30px; gap: 7px; }
  .nd-r .n, .nd-r .kw { font-size: 12px; }
  .nd-r .u { font-size: 11.5px; }
  .nd-b { grid-template-columns: 16px 70px minmax(0, 1fr) 32px; }
  .nd-bars6 { gap: 14px; padding: 6px 0 4px; }
  .nd-bars6 .nd-b { grid-template-columns: 16px 70px minmax(0, 1fr) 32px; }
  .nd-bars6 .nd-mk, .nd-ct .nd-mk { width: 16px; height: 16px; }
  .nd-ct { grid-template-columns: 16px minmax(0, 1fr) auto; min-height: 54px; }
  .nd-tab .nd-r { min-height: 44px; }
}
