/* ════════════════════════════════════════════════════════════════════
   NV Streaming · Herramientas 5.5 (nv-herramientas-550.css)
   Calculadora de reembolso y Generar lista, hechas de nuevo.
   Todo sale de los tokens del tema (--accent, --bg*, --text*, fuentes).
   ════════════════════════════════════════════════════════════════════ */

:root { --nvh-ease: cubic-bezier(.22, 1, .36, 1); --nvh-spring: cubic-bezier(.34, 1.36, .64, 1); }
#nvh-calc, #nvh-gl, #nvh-uni {
  --nvh-ok: #34d399; --nvh-warn: #fbbf24; --nvh-bad: #f87171;
  --nvh-acc: var(--accent, #6366f1);
  --nvh-acc-rgb: var(--nv-accent-rgb, 99, 102, 241);
  --nvh-on: var(--nv54-on-accent, #fff);
  --nvh-r: 14px;
  font-family: var(--nv-font-ui, inherit);
  color: var(--text);
}
#nvh-calc *, #nvh-gl *, #nvh-uni * { box-sizing: border-box; }
.nvh-i { flex-shrink: 0; display: block; }
html.nvh-lock, html.nvh-lock body { overflow: hidden !important; }

/* ── Piezas comunes ──────────────────────────────────────────────── */
.nvh-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 7px;
  height: 38px; padding: 0 15px; border-radius: 11px;
  border: 1px solid var(--border); background: var(--bg3); color: var(--text);
  font: 600 13px/1 var(--nv-font-ui, inherit); cursor: pointer; white-space: nowrap;
  transition: transform .18s var(--nvh-spring), background .18s, border-color .18s, color .18s, box-shadow .2s;
}
.nvh-btn:hover { background: var(--bg4); border-color: var(--border2, var(--border)); }
.nvh-btn:active { transform: scale(.96); }
.nvh-btn:focus-visible, .nvh-ib:focus-visible, .nvh-chip:focus-visible, .nvh-row:focus-visible { outline: 2px solid rgba(var(--nvh-acc-rgb), .7); outline-offset: 2px; }
.nvh-btn.pri { background: var(--nvh-acc); border-color: transparent; color: var(--nvh-on); box-shadow: 0 6px 18px -8px rgba(var(--nvh-acc-rgb), .8); }
.nvh-btn.pri:hover { filter: brightness(1.08); background: var(--nvh-acc); }
.nvh-btn.ghost { background: transparent; border-color: transparent; color: var(--text2); }
.nvh-btn.ghost:hover { background: var(--bg3); color: var(--text); }
.nvh-btn.sm { height: 32px; padding: 0 11px; font-size: 12.5px; border-radius: 9px; }
.nvh-btn.okd { background: rgba(52, 211, 153, .14); border-color: rgba(52, 211, 153, .4); color: var(--nvh-ok); box-shadow: none; }
.nvh-btn.busy { opacity: .7; pointer-events: none; }
.nvh-btn.busy .nvh-i { animation: nvhSpin .8s linear infinite; }
.nvh-ib {
  position: relative; width: 36px; height: 36px; border-radius: 10px; flex-shrink: 0;
  display: inline-flex; align-items: center; justify-content: center;
  background: transparent; border: 1px solid transparent; color: var(--text2); cursor: pointer;
  transition: background .16s, color .16s, transform .18s var(--nvh-spring), border-color .16s;
}
.nvh-ib:hover { background: var(--bg3); color: var(--text); }
.nvh-ib:active { transform: scale(.9); }
.nvh-ib.on { background: rgba(var(--nvh-acc-rgb), .14); color: var(--nvh-acc); }
.nvh-ib.sm { width: 30px; height: 30px; border-radius: 8px; }
.nvh-ib > i { position: absolute; top: 3px; right: 2px; min-width: 15px; height: 15px; padding: 0 4px; border-radius: 8px; background: var(--nvh-acc); color: var(--nvh-on); font: 700 9.5px/15px var(--nv-font-num, inherit); font-style: normal; text-align: center; }
.nvh-ib > i:empty { display: none; }

.nvh-chips { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.nvh-chips-l { width: 100%; font-size: 11px; font-weight: 600; color: var(--text3); letter-spacing: .02em; margin-top: 4px; }
.nvh-chip {
  display: inline-flex; align-items: center; gap: 5px; height: 30px; padding: 0 11px; border-radius: 99px;
  border: 1px solid var(--border); background: var(--bg2); color: var(--text2);
  font: 500 12.5px/1 var(--nv-font-ui, inherit); cursor: pointer; white-space: nowrap;
  transition: background .16s, color .16s, border-color .16s, transform .2s var(--nvh-spring);
}
.nvh-chip:hover { border-color: var(--border2, var(--border)); color: var(--text); }
.nvh-chip:active { transform: scale(.94); }
.nvh-chip.on { background: rgba(var(--nvh-acc-rgb), .14); border-color: rgba(var(--nvh-acc-rgb), .45); color: var(--text); }
.nvh-chip small { font: 600 10.5px/1 var(--nv-font-num, inherit); color: var(--text3); }
.nvh-chip.tg .nvh-i { width: 0; opacity: 0; margin-right: -5px; transition: width .2s var(--nvh-ease), opacity .2s, margin .2s; }
.nvh-chip.tg.on .nvh-i { width: 12px; opacity: 1; margin-right: 0; color: var(--nvh-acc); }
.nvh-chips.sm .nvh-chip { height: 26px; font-size: 11.5px; padding: 0 9px; }

.nvh-seg, .nvh-seg4 { position: relative; display: flex; padding: 3px; gap: 2px; border-radius: 12px; background: var(--bg); border: 1px solid var(--border); }
.nvh-seg button, .nvh-seg4 button {
  position: relative; z-index: 1; flex: 1; display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  height: 32px; padding: 0 10px; border: 0; border-radius: 9px; background: transparent; color: var(--text3);
  font: 600 12.5px/1 var(--nv-font-ui, inherit); cursor: pointer; white-space: nowrap; transition: color .2s, background .2s;
}
.nvh-seg button.on { color: var(--text); }
.nvh-seg4 button.on { color: var(--text); background: var(--bg3); box-shadow: 0 1px 3px rgba(0, 0, 0, .3); }
.nvh-seg4 button:hover:not(.on), .nvh-seg button:hover:not(.on) { color: var(--text2); }
.nvh-seg .nvh-seg-k { position: absolute; z-index: 0; top: 3px; bottom: 3px; left: 3px; width: calc(50% - 4px); border-radius: 9px; background: var(--bg3); box-shadow: 0 1px 3px rgba(0, 0, 0, .3); transition: transform .32s var(--nvh-spring); }
.nvh-seg.r .nvh-seg-k { transform: translateX(calc(100% + 2px)); }
.nvh-seg.sm button { height: 30px; font-size: 12px; }

.nvh-search { position: relative; display: flex; align-items: center; gap: 9px; height: 42px; padding: 0 13px; border-radius: 12px; background: var(--bg); border: 1px solid var(--border); color: var(--text3); transition: border-color .18s, box-shadow .18s; }
.nvh-search:focus-within { border-color: rgba(var(--nvh-acc-rgb), .55); box-shadow: 0 0 0 3px rgba(var(--nvh-acc-rgb), .14); }
.nvh-search input { flex: 1; min-width: 0; height: 100%; border: 0; outline: 0; background: transparent; color: var(--text); font: 400 14px/1 var(--nv-font-ui, inherit); padding: 0; }
.nvh-search input::-webkit-search-cancel-button { filter: grayscale(1) opacity(.6); }
.nvh-search.sm { height: 36px; border-radius: 10px; }
.nvh-search.sm input { font-size: 13px; }

.nvh-av { width: 34px; height: 34px; border-radius: 50%; flex-shrink: 0; display: inline-flex; align-items: center; justify-content: center; background: rgba(var(--nvh-acc-rgb), .13); color: var(--accent2, var(--nvh-acc)); font: 600 12px/1 var(--nv-font-ui, inherit); letter-spacing: .02em; }
.nvh-av.lg { width: 44px; height: 44px; font-size: 14px; }
.nvh-av.sm { width: 30px; height: 30px; font-size: 11px; }

.nvh-empty { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 44px 16px; color: var(--text3); text-align: center; }
.nvh-empty .nvh-i { width: 28px; height: 28px; opacity: .7; margin-bottom: 4px; }
.nvh-empty b { color: var(--text2); font-size: 14px; font-weight: 600; }
.nvh-empty span { font-size: 12.5px; }
.nvh-empty.sm { padding: 18px; font-size: 12.5px; }
.nvh-more { display: block; width: 100%; margin: 8px 0 2px; height: 38px; border-radius: 10px; border: 1px dashed var(--border2, var(--border)); background: transparent; color: var(--text2); font: 600 12.5px/1 var(--nv-font-ui, inherit); cursor: pointer; transition: background .16s, color .16s; }
.nvh-more:hover { background: var(--bg3); color: var(--text); }
.nvh-sp { flex: 1; }

/* ── 1 · Calculadora ─────────────────────────────────────────────── */
.nvh-ov {
  position: fixed; inset: 0; z-index: 10050; display: flex; align-items: center; justify-content: center; padding: 20px;
  background: rgba(0, 0, 0, 0); backdrop-filter: blur(0); -webkit-backdrop-filter: blur(0);
  transition: background .26s var(--nvh-ease), backdrop-filter .26s var(--nvh-ease), -webkit-backdrop-filter .26s var(--nvh-ease);
}
.nvh-ov.in { background: rgba(0, 0, 0, .58); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
.nvh-ov.out { background: rgba(0, 0, 0, 0); backdrop-filter: blur(0); -webkit-backdrop-filter: blur(0); pointer-events: none; }
.nvh-sheet {
  position: relative; width: 100%; max-width: 560px; max-height: min(760px, calc(100vh - 40px)); max-height: min(760px, calc(100dvh - 40px));
  display: flex; flex-direction: column; overflow: hidden;
  background: var(--bg2); border: 1px solid var(--border2, var(--border)); border-radius: 22px;
  box-shadow: 0 30px 80px -20px rgba(0, 0, 0, .7), 0 0 0 1px rgba(255, 255, 255, .02) inset;
  opacity: 0; transform: translateY(14px) scale(.97);
  transition: opacity .24s var(--nvh-ease), transform .34s var(--nvh-spring);
}
.nvh-ov.in .nvh-sheet { opacity: 1; transform: none; }
.nvh-ov.out .nvh-sheet { opacity: 0; transform: translateY(8px) scale(.98); transition-duration: .18s; }

.nvh-hd { display: flex; align-items: center; gap: 12px; padding: 18px 16px 12px 20px; }
.nvh-hd-ic { width: 38px; height: 38px; border-radius: 12px; display: inline-flex; align-items: center; justify-content: center; background: rgba(var(--nvh-acc-rgb), .14); color: var(--nvh-acc); flex-shrink: 0; }
.nvh-hd-t { flex: 1; min-width: 0; }
.nvh-hd-t h2 { margin: 0; font: var(--nv54-w-display, 700) 17px/1.2 var(--nv-font-display, inherit); letter-spacing: var(--nv54-ls-display, -.02em); color: var(--text); }
.nvh-hd-t p { margin: 3px 0 0; font-size: 12.5px; color: var(--text3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.nvh-steps { position: relative; display: flex; align-items: center; gap: 6px; padding: 2px 20px 14px; transition: opacity .2s, max-height .25s var(--nvh-ease), padding .25s; max-height: 60px; }
.nvh-steps.hide { opacity: 0; max-height: 0; padding-bottom: 0; pointer-events: none; overflow: hidden; }
.nvh-steps > i { flex: 1; height: 1.5px; border-radius: 2px; background: var(--border); position: relative; overflow: hidden; }
.nvh-steps > i::after { content: ''; position: absolute; inset: 0; background: var(--nvh-acc); transform: scaleX(0); transform-origin: left; transition: transform .36s var(--nvh-ease); }
.nvh-steps button.done + i::after { transform: scaleX(1); }
.nvh-steps button { display: inline-flex; align-items: center; gap: 7px; padding: 4px 6px 4px 4px; border: 0; background: transparent; color: var(--text3); cursor: pointer; border-radius: 99px; font: 600 12.5px/1 var(--nv-font-ui, inherit); transition: color .2s; }
.nvh-steps button:disabled { cursor: default; opacity: .55; }
.nvh-steps button b { width: 22px; height: 22px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; font: 700 11px/1 var(--nv-font-num, inherit); border: 1.5px solid var(--border2, var(--border)); color: var(--text3); transition: background .25s, border-color .25s, color .25s, transform .3s var(--nvh-spring); }
.nvh-steps button.on { color: var(--text); }
.nvh-steps button.on b { background: var(--nvh-acc); border-color: var(--nvh-acc); color: var(--nvh-on); transform: scale(1.08); }
.nvh-steps button.done { color: var(--text2); }
.nvh-steps button.done b { border-color: var(--nvh-acc); color: var(--nvh-acc); }

.nvh-views { position: relative; flex: 1; min-height: 0; display: grid; overflow: hidden; border-top: 1px solid var(--border); }
.nvh-view { grid-area: 1 / 1; min-height: 0; overflow-y: auto; overscroll-behavior: contain; padding: 16px 20px 18px; display: none; scrollbar-width: thin; }
.nvh-view.on { display: flex; flex-direction: column; gap: 14px; }
.nvh-view.on > *, #nvh-c-mcli > *, #nvh-c-mman > * { flex-shrink: 0; }
.nvh-view.from-r { animation: nvhFromR .34s var(--nvh-ease) both; }
.nvh-view.from-l { animation: nvhFromL .34s var(--nvh-ease) both; }
#nvh-c-v1 { min-height: min(440px, 60vh); }
#nvh-c-mcli, #nvh-c-mman { display: flex; flex-direction: column; gap: 12px; min-height: 0; }
#nvh-c-mcli[hidden], #nvh-c-mman[hidden] { display: none; }

.nvh-list { display: flex; flex-direction: column; gap: 2px; }
.nvh-row, .nvh-hopen {
  display: flex; align-items: center; gap: 12px; width: 100%; padding: 10px 10px; border-radius: 12px;
  border: 0; background: transparent; color: var(--text); text-align: left; cursor: pointer; font: inherit;
  transition: background .15s, transform .2s var(--nvh-spring);
  animation: nvhRise .36s var(--nvh-ease) both; animation-delay: var(--d, 0ms);
}
.nvh-row:hover, .nvh-hopen:hover { background: var(--bg3); }
.nvh-row > .nvh-i { color: var(--text3); opacity: 0; transform: translateX(-4px); transition: opacity .16s, transform .2s var(--nvh-ease); }
.nvh-row:hover > .nvh-i { opacity: 1; transform: none; }
.nvh-row-m { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.nvh-row-m b { font-size: 13.5px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.nvh-row-m small { font-size: 11.5px; color: var(--text3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.nvh-row-r { display: flex; flex-direction: column; align-items: flex-end; gap: 3px; flex-shrink: 0; }
.nvh-row-r b { font: 600 12.5px/1 var(--nv-font-num, inherit); color: var(--text); }
.nvh-row-r b.ok { color: var(--nvh-ok); }
.nvh-row-r b.warn { color: var(--nvh-warn); }
.nvh-row-r small { font: 500 11.5px/1 var(--nv-font-num, inherit); color: var(--text3); }

.nvh-form { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.nvh-form label, .nvh-tasa label { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.nvh-form label > span, .nvh-tasa label > span { font-size: 11.5px; font-weight: 600; color: var(--text3); }
.nvh-form input, .nvh-tasa input, .nvg-venc input, .nvg-tsave input {
  width: 100%; height: 42px; padding: 0 12px; border-radius: 11px; border: 1px solid var(--border); background: var(--bg); color: var(--text);
  font: 500 14px/1 var(--nv-font-ui, inherit); outline: none; transition: border-color .18s, box-shadow .18s; -moz-appearance: textfield;
}
.nvh-form input:focus, .nvh-tasa input:focus, .nvg-venc input:focus, .nvg-tsave input:focus { border-color: rgba(var(--nvh-acc-rgb), .55); box-shadow: 0 0 0 3px rgba(var(--nvh-acc-rgb), .14); }
.nvh-form input[type=number], .nvh-tasa input { font-family: var(--nv-font-num, inherit); }
input.nvh-noarrows::-webkit-inner-spin-button, .nvh-stp input::-webkit-inner-spin-button, .nvh-stp input::-webkit-outer-spin-button { -webkit-appearance: none; margin: 0; }

.nvh-foot { display: flex; align-items: center; gap: 8px; margin-top: auto; padding-top: 4px; flex-wrap: wrap; }

.nvh-who { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: var(--nvh-r); background: var(--bg3); border: 1px solid var(--border); }
.nvh-who-m { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.nvh-who-m b { font-size: 14.5px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.nvh-who-m small, .nvh-who-r small { font-size: 11.5px; color: var(--text3); }
.nvh-who-r { display: flex; flex-direction: column; align-items: flex-end; gap: 3px; flex-shrink: 0; }
.nvh-who-r b { font: 700 16px/1 var(--nv-font-num, inherit); color: var(--text); }

.nvh-tl { padding: 4px 2px 0; }
.nvh-tl-bar { position: relative; display: flex; height: 8px; border-radius: 99px; background: var(--bg); overflow: visible; }
.nvh-tl-bar i { display: block; height: 100%; border-radius: 99px 0 0 99px; background: color-mix(in srgb, var(--text3) 45%, transparent); transition: width .4s var(--nvh-ease); }
.nvh-tl-bar em { display: block; height: 100%; border-radius: 0 99px 99px 0; background: linear-gradient(90deg, var(--nvh-acc), var(--accent2, var(--nvh-acc))); transition: width .4s var(--nvh-ease); }
.nvh-tl-bar span { position: absolute; top: -4px; width: 16px; height: 16px; margin-left: -8px; border-radius: 50%; background: var(--text); border: 3px solid var(--bg2); box-shadow: 0 0 0 1.5px var(--nvh-acc); transition: left .4s var(--nvh-ease); }
.nvh-tl-lb { display: flex; justify-content: space-between; margin-top: 9px; font: 500 11px/1 var(--nv-font-num, inherit); color: var(--text3); }
.nvh-tl-lb .c { color: var(--text2); }

.nvh-dd { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.nvh-stp { display: flex; flex-direction: column; gap: 10px; padding: 12px; border-radius: var(--nvh-r); border: 1px solid var(--border); background: var(--bg); }
.nvh-stp-l { display: flex; flex-direction: column; gap: 2px; }
.nvh-stp-l b { font-size: 13px; font-weight: 600; }
.nvh-stp-l small { font-size: 11px; color: var(--text3); }
.nvh-stp-c { display: flex; align-items: center; gap: 6px; }
.nvh-stp-c button { width: 36px; height: 36px; border-radius: 10px; border: 1px solid var(--border); background: var(--bg3); color: var(--text2); cursor: pointer; display: inline-flex; align-items: center; justify-content: center; transition: transform .18s var(--nvh-spring), background .15s, color .15s; flex-shrink: 0; }
.nvh-stp-c button:hover { background: var(--bg4); color: var(--text); }
.nvh-stp-c button:active { transform: scale(.88); }
.nvh-stp-c input { flex: 1; min-width: 0; width: 100%; height: 40px; border: 0; background: transparent; color: var(--text); text-align: center; outline: none; font: 700 26px/1 var(--nv54-font-kpi, var(--nv-font-num, inherit)); letter-spacing: var(--nv54-ls-kpi, -.03em); -moz-appearance: textfield; border-radius: 8px; }
.nvh-stp-c input:focus { background: var(--bg3); }
.nvh-stp[data-k="r"] { border-color: rgba(var(--nvh-acc-rgb), .35); background: rgba(var(--nvh-acc-rgb), .05); }
.nvh-hint { display: flex; align-items: flex-start; gap: 7px; margin: -2px 0 0; font-size: 12px; color: var(--text3); line-height: 1.45; }
.nvh-hint .nvh-i { margin-top: 1px; }

.nvh-res { display: flex; align-items: center; gap: 22px; padding: 20px; border-radius: 18px; background: radial-gradient(120% 140% at 0% 0%, rgba(var(--nvh-acc-rgb), .16), transparent 60%), var(--bg3); border: 1px solid var(--border); }
.nvh-ring { position: relative; width: 104px; height: 104px; flex-shrink: 0; }
.nvh-ring svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.nvh-ring circle { fill: none; stroke-width: 8; }
.nvh-ring .bg { stroke: var(--bg); }
.nvh-ring .fg { stroke: var(--nvh-acc); stroke-linecap: round; transition: stroke-dashoffset .9s var(--nvh-ease), stroke .3s; }
.nvh-res.min .nvh-ring .fg { stroke: var(--nvh-warn); }
.nvh-ring > div { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; }
.nvh-ring b { font: 700 28px/1 var(--nv54-font-kpi, var(--nv-font-num, inherit)); letter-spacing: -.03em; color: var(--text); }
.nvh-ring small { font-size: 11px; color: var(--text3); margin-top: 3px; }
.nvh-res-m { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 6px; }
.nvh-badge { align-self: flex-start; display: inline-flex; align-items: center; gap: 5px; height: 22px; padding: 0 9px; border-radius: 99px; font: 600 11px/1 var(--nv-font-ui, inherit); background: rgba(52, 211, 153, .12); color: var(--nvh-ok); }
.nvh-res.min .nvh-badge { background: rgba(251, 191, 36, .12); color: var(--nvh-warn); }
.nvh-big { font: var(--nv54-w-display, 700) 46px/1.02 var(--nv54-font-kpi, var(--nv-font-display, inherit)); letter-spacing: var(--nv54-ls-kpi, -.035em); color: var(--text); font-variant-numeric: tabular-nums; white-space: nowrap; }
.nvh-bs { font: 600 17px/1.2 var(--nv-font-num, inherit); color: var(--accent2, var(--nvh-acc)); font-variant-numeric: tabular-nums; }
.nvh-bs.off { font: 400 12.5px/1.3 var(--nv-font-ui, inherit); color: var(--text3); }

.nvh-tasa { display: grid; grid-template-columns: 1fr auto; gap: 8px 10px; align-items: end; }
.nvh-tasa .nvh-btn { height: 42px; }
.nvh-tasa .nvh-chips { grid-column: 1 / -1; }
.nvh-tasa .nvh-chips:empty { display: none; }

.nvh-brk { display: flex; flex-direction: column; border-radius: var(--nvh-r); border: 1px solid var(--border); overflow: hidden; }
.nvh-ln { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding: 10px 14px; font-size: 12.5px; animation: nvhRise .32s var(--nvh-ease) both; animation-delay: var(--d, 0ms); }
.nvh-ln + .nvh-ln { border-top: 1px solid var(--border); }
.nvh-ln span { color: var(--text3); white-space: nowrap; }
.nvh-ln b { font: 500 12.5px/1.3 var(--nv-font-num, inherit); color: var(--text2); text-align: right; font-variant-numeric: tabular-nums; }
.nvh-ln.tot { background: rgba(var(--nvh-acc-rgb), .07); }
.nvh-ln.tot span { color: var(--text); font-weight: 600; }
.nvh-ln.tot b { color: var(--text); font-weight: 700; }
.nvh-ln.bs b { color: var(--accent2, var(--text)); }

.nvh-msg { display: flex; flex-direction: column; gap: 8px; }
.nvh-msg-h { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; }
.nvh-msg-h span { font-size: 12px; font-weight: 600; color: var(--text2); }
.nvh-msg-h small { font-size: 11.5px; color: var(--text3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.nvh-bub { position: relative; padding: 12px 14px; border-radius: 16px 16px 16px 5px; background: var(--bg); border: 1px solid var(--border); font-size: 13px; line-height: 1.55; color: var(--text2); white-space: pre-wrap; word-break: break-word; }
.nvh-bub b { color: var(--text); font-weight: 600; }

.nvh-hsum { display: flex; align-items: baseline; gap: 8px; padding: 2px 4px 4px; }
.nvh-hsum span { flex: 1; font-size: 12.5px; color: var(--text3); }
.nvh-hsum b { font: 700 20px/1 var(--nv54-font-kpi, var(--nv-font-num, inherit)); letter-spacing: -.02em; }
.nvh-hsum small { font-size: 11.5px; color: var(--text3); }
.nvh-hrow { display: flex; align-items: center; gap: 4px; animation: nvhRise .34s var(--nvh-ease) both; animation-delay: var(--d, 0ms); transition: opacity .2s, transform .22s var(--nvh-ease); }
.nvh-hrow .nvh-hopen { animation: none; flex: 1; min-width: 0; }
.nvh-hrow .nvh-ib { opacity: .6; }
.nvh-hrow:hover .nvh-ib { opacity: 1; }
.nvh-hrow.bye, .nvg-tpl.bye { opacity: 0; transform: translateX(-10px) scale(.97); }

/* ── 2 · Generar lista ───────────────────────────────────────────── */
#page-generar-lista.nvh-gl-on > div:not(#nvh-gl) { display: none !important; }
#nvh-gl { max-width: 1180px; margin: 0 auto; width: 100%; display: flex; flex-direction: column; gap: 16px; padding-bottom: 24px; }
.nvg-hd { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.nvg-hd-t h2 { margin: 0; font: var(--nv54-w-display, 700) 26px/1.1 var(--nv-font-display, inherit); letter-spacing: var(--nv54-ls-display, -.022em); color: var(--text); }
.nvg-hd-t p { margin: 5px 0 0; font-size: 13px; color: var(--text3); }
.nvg-resp { position: relative; }
.nvg-resp-b { display: inline-flex; align-items: center; gap: 9px; height: 42px; padding: 0 12px 0 14px; max-width: 100%; border-radius: 12px; border: 1px solid var(--border); background: var(--bg2); color: var(--text); cursor: pointer; font: 600 14px/1 var(--nv-font-ui, inherit); transition: border-color .18s, background .18s, transform .18s var(--nvh-spring); }
.nvg-resp-b:hover { border-color: var(--border2, var(--border)); background: var(--bg3); }
.nvg-resp-b:active { transform: scale(.98); }
.nvg-resp-b > .nvh-i:first-child { color: var(--nvh-acc); }
.nvg-resp-b > .nvh-i:last-child { color: var(--text3); transition: transform .25s var(--nvh-ease); }
.nvg-resp-b[aria-expanded="true"] > .nvh-i:last-child { transform: rotate(180deg); }
.nvg-resp-n { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 240px; }
.nvg-resp-b small { font: 600 11px/1 var(--nv-font-num, inherit); color: var(--text3); background: var(--bg); border: 1px solid var(--border); padding: 3px 7px; border-radius: 99px; }
.nvg-pop { position: absolute; right: 0; top: calc(100% + 8px); z-index: 60; width: 300px; max-width: calc(100vw - 32px); padding: 8px; border-radius: 16px; background: var(--bg2); border: 1px solid var(--border2, var(--border)); box-shadow: 0 24px 60px -18px rgba(0, 0, 0, .75); transform-origin: top right; }
.nvg-pop[hidden] { display: none; }
.nvg-pop-l { max-height: 320px; overflow-y: auto; margin-top: 6px; display: flex; flex-direction: column; gap: 1px; scrollbar-width: thin; }
.nvg-pop-l button { display: flex; align-items: center; gap: 10px; width: 100%; padding: 9px 10px; border: 0; border-radius: 10px; background: transparent; color: var(--text2); font: 500 13.5px/1.2 var(--nv-font-ui, inherit); text-align: left; cursor: pointer; transition: background .14s, color .14s; animation: nvhRise .28s var(--nvh-ease) both; animation-delay: var(--d, 0ms); }
.nvg-pop-l button:hover { background: var(--bg3); color: var(--text); }
.nvg-pop-l button.on { color: var(--text); background: rgba(var(--nvh-acc-rgb), .1); }
.nvg-pop-l button span { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.nvg-pop-l button small { font: 600 11px/1 var(--nv-font-num, inherit); color: var(--text3); }
.nvg-pop-l button > .nvh-i:last-child { color: var(--nvh-acc); }
.nvg-dot { width: 22px; height: 22px; border-radius: 50%; flex-shrink: 0; display: inline-flex; align-items: center; justify-content: center; background: var(--bg3); color: var(--text2); font: 700 10px/1 var(--nv-font-ui, inherit); font-style: normal; }

.nvg-kpis { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 10px; }
.nvg-kpi { display: flex; flex-direction: column; gap: 6px; padding: 14px 16px; border-radius: var(--nvh-r); background: var(--bg2); border: 1px solid var(--border); min-width: 0; animation: nvhRise .4s var(--nvh-ease) both; }
.nvg-kpi:nth-child(2) { animation-delay: 30ms; } .nvg-kpi:nth-child(3) { animation-delay: 60ms; } .nvg-kpi:nth-child(4) { animation-delay: 90ms; } .nvg-kpi:nth-child(5) { animation-delay: 120ms; }
.nvg-kpi b { font: var(--nv54-w-display, 700) 24px/1 var(--nv54-font-kpi, var(--nv-font-display, inherit)); letter-spacing: var(--nv54-ls-kpi, -.03em); color: var(--text); font-variant-numeric: tabular-nums; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.nvg-kpi span { font-size: 11.5px; color: var(--text3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.nvg-kpi.warn b { color: var(--nvh-warn); }
.nvg-kpi.bad b { color: var(--nvh-bad); }

.nvg-grid { display: grid; grid-template-columns: 318px minmax(0, 1fr); gap: 16px; align-items: start; }
.nvg-opts { position: sticky; top: 12px; max-height: calc(100vh - 24px); max-height: calc(100dvh - 24px); overflow-y: auto; overscroll-behavior: contain; scrollbar-width: thin; border-radius: 18px; background: var(--bg2); border: 1px solid var(--border); }
.nvg-opts-tg { display: none; }
.nvg-opts-b { display: grid; grid-template-rows: 1fr; }
.nvg-opts-in { min-height: 0; overflow: hidden; display: flex; flex-direction: column; }
.nvg-sec { padding: 14px 16px; display: flex; flex-direction: column; gap: 9px; }
.nvg-sec + .nvg-sec { border-top: 1px solid var(--border); }
.nvg-sec h3 { display: flex; align-items: center; gap: 7px; margin: 0; font: 600 12px/1 var(--nv-font-ui, inherit); color: var(--text2); letter-spacing: .01em; }
.nvg-sec h3 .nvh-i { color: var(--text3); }
.nvg-sec .nvh-seg4 button { font-size: 11.5px; padding: 0 4px; height: 30px; }
.nvg-lbl { display: flex; align-items: center; justify-content: space-between; font-size: 11px; font-weight: 600; color: var(--text3); margin-top: 3px; }
.nvg-link { border: 0; background: transparent; color: var(--nvh-acc); font: 600 11.5px/1 var(--nv-font-ui, inherit); cursor: pointer; padding: 2px 0; }
.nvg-link:hover { text-decoration: underline; }
.nvg-venc { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.nvg-venc input { width: 64px; height: 32px; text-align: center; font-family: var(--nv-font-num, inherit); font-size: 13px; padding: 0 6px; border-radius: 9px; }
.nvg-venc > span { font-size: 12px; color: var(--text3); margin-right: 2px; }
.nvg-venc .nvh-chip { height: 28px; padding: 0 10px; font-family: var(--nv-font-num, inherit); }
#nvg-plats { max-height: 132px; overflow-y: auto; scrollbar-width: thin; }
.nvg-sw { display: flex; align-items: center; gap: 10px; font-size: 12.5px; color: var(--text2); cursor: pointer; margin-top: 2px; }
.nvg-sw input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.nvg-sw span { position: relative; width: 34px; height: 20px; border-radius: 99px; background: var(--bg4); border: 1px solid var(--border2, var(--border)); flex-shrink: 0; transition: background .2s; }
.nvg-sw span::after { content: ''; position: absolute; top: 2px; left: 2px; width: 14px; height: 14px; border-radius: 50%; background: var(--text2); transition: transform .28s var(--nvh-spring), background .2s; }
.nvg-sw input:checked + span { background: var(--nvh-acc); border-color: transparent; }
.nvg-sw input:checked + span::after { transform: translateX(14px); background: var(--nvh-on); }
.nvg-sw input:focus-visible + span { outline: 2px solid rgba(var(--nvh-acc-rgb), .7); outline-offset: 2px; }
.nvg-tsave { display: flex; gap: 6px; }
.nvg-tsave input { height: 32px; font-size: 12.5px; border-radius: 9px; padding: 0 10px; }
.nvg-tpl { display: inline-flex; align-items: center; height: 28px; border-radius: 99px; border: 1px solid var(--border); background: var(--bg); overflow: hidden; transition: opacity .2s, transform .22s var(--nvh-ease), border-color .16s; max-width: 100%; }
.nvg-tpl:hover { border-color: rgba(var(--nvh-acc-rgb), .45); }
.nvg-tpl button { display: inline-flex; align-items: center; gap: 5px; height: 100%; border: 0; background: transparent; color: var(--text2); font: 500 12px/1 var(--nv-font-ui, inherit); cursor: pointer; padding: 0 6px 0 10px; min-width: 0; }
.nvg-tpl button span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 150px; }
.nvg-tpl button:hover { color: var(--text); }
.nvg-tpl button.x { padding: 0 8px 0 4px; color: var(--text3); }
.nvg-tpl button.x:hover { color: var(--nvh-bad); }
.nvg-muted { font-size: 12px; color: var(--text3); line-height: 1.45; }
.nvg-reset { margin: 4px 12px 12px; align-self: flex-start; }

.nvg-main { min-width: 0; display: flex; flex-direction: column; gap: 10px; }
.nvg-bar { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.nvg-bar .nvh-seg { width: 220px; }
.nvg-acts { display: flex; align-items: center; gap: 2px; }
.nvg-acts .nvh-btn { margin-left: 6px; }
.nvg-chipsel { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.nvg-chipsel:not(.on) { display: none; }
.nvg-af { display: inline-flex; align-items: center; gap: 6px; height: 26px; padding: 0 8px 0 11px; border-radius: 99px; border: 1px solid rgba(var(--nvh-acc-rgb), .35); background: rgba(var(--nvh-acc-rgb), .1); color: var(--text); font: 500 12px/1 var(--nv-font-ui, inherit); cursor: pointer; animation: nvhPop .3s var(--nvh-spring) both; transition: background .15s; }
.nvg-af:hover { background: rgba(var(--nvh-acc-rgb), .18); }
.nvg-af .nvh-i { color: var(--text3); }

.nvg-out { border-radius: 18px; background: var(--bg2); border: 1px solid var(--border); padding: 6px 8px; min-height: 240px; }
.nvg-out.txt { padding: 0; }
.nvg-g { padding: 6px 4px 8px; animation: nvhRise .36s var(--nvh-ease) both; animation-delay: var(--d, 0ms); }
.nvg-g + .nvg-g { border-top: 1px solid var(--border); }
.nvg-gh { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; padding: 10px 8px 6px; }
.nvg-gh b { font: 700 11.5px/1 var(--nv-font-ui, inherit); letter-spacing: .08em; text-transform: uppercase; color: var(--text2); }
.nvg-gh span { font: 500 11.5px/1 var(--nv-font-num, inherit); color: var(--text3); white-space: nowrap; }
.nvg-r { display: flex; align-items: center; gap: 12px; padding: 9px 8px; border-radius: 12px; transition: background .14s; }
.nvg-r:hover { background: var(--bg3); }
.nvg-r-m { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.nvg-r-m b { font-size: 13.5px; font-weight: 600; color: var(--text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.nvg-r-m small { font-size: 12px; color: var(--text3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.nvg-r-m small i { font-style: normal; margin: 0 6px; opacity: .6; }
.nvg-em { color: var(--text2); }
.nvg-mono { font-family: var(--nv-font-num, inherit); font-size: 11.5px; }
.nvg-r-r { display: flex; flex-direction: column; align-items: flex-end; gap: 4px; flex-shrink: 0; }
.nvg-r-r small { font: 500 11px/1 var(--nv-font-num, inherit); color: var(--text3); }
.nvg-r-r .nvg-pr { color: var(--text2); }
.nvg-st { display: inline-flex; align-items: center; height: 20px; padding: 0 8px; border-radius: 99px; font: 600 11px/1 var(--nv-font-ui, inherit); background: var(--bg3); color: var(--text2); white-space: nowrap; }
.nvg-st.activo { background: rgba(52, 211, 153, .1); color: var(--nvh-ok); }
.nvg-st.pronto { background: rgba(251, 191, 36, .12); color: var(--nvh-warn); }
.nvg-st.vencido { background: rgba(248, 113, 113, .12); color: var(--nvh-bad); }
.nvg-cp { width: 30px; height: 30px; border-radius: 9px; border: 0; background: transparent; color: var(--text3); cursor: pointer; display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; opacity: 0; transition: opacity .15s, background .15s, color .15s, transform .18s var(--nvh-spring); }
.nvg-r:hover .nvg-cp, .nvg-cp:focus-visible { opacity: 1; }
.nvg-cp:hover { background: var(--bg4); color: var(--text); }
.nvg-cp:active { transform: scale(.88); }
.nvg-cp.okd { opacity: 1; color: var(--nvh-ok); }
@media (hover: none) { .nvg-cp { opacity: .7; } }
.nvg-pre { margin: 0; padding: 18px 20px; max-height: 70vh; overflow: auto; white-space: pre-wrap; word-break: break-word; font: 400 12.5px/1.6 var(--nv-font-num, ui-monospace, monospace); color: var(--text2); scrollbar-width: thin; }
.nvg-foot { padding: 10px 20px 12px; border-top: 1px solid var(--border); font: 500 11.5px/1.3 var(--nv-font-ui, inherit); color: var(--text3); }

/* ── Animaciones ─────────────────────────────────────────────────── */
@keyframes nvhFromR { from { opacity: 0; transform: translateX(22px); } to { opacity: 1; transform: none; } }
@keyframes nvhFromL { from { opacity: 0; transform: translateX(-22px); } to { opacity: 1; transform: none; } }
@keyframes nvhRise { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
@keyframes nvhPop { 0% { transform: scale(.9); } 60% { transform: scale(1.04); } 100% { transform: scale(1); } }
@keyframes nvhFade { from { opacity: .35; } to { opacity: 1; } }
@keyframes nvhFlash { 0% { box-shadow: 0 0 0 0 rgba(var(--nvh-acc-rgb, 99, 102, 241), .45); } 100% { box-shadow: 0 0 0 8px rgba(var(--nvh-acc-rgb, 99, 102, 241), 0); } }
@keyframes nvhShake { 0%, 100% { transform: none; } 25% { transform: translateX(-5px); } 75% { transform: translateX(5px); } }
@keyframes nvhSpin { to { transform: rotate(360deg); } }
@keyframes nvhEnter { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
@keyframes nvhDrop { from { opacity: 0; transform: translateY(-6px) scale(.97); } to { opacity: 1; transform: none; } }
@keyframes nvhTick { 0% { transform: scale(1); } 40% { transform: scale(1.12); } 100% { transform: scale(1); } }
.nvh-pop { animation: nvhPop .3s var(--nvh-spring); }
.nvh-fade { animation: nvhFade .22s var(--nvh-ease); }
.nvh-rise { animation: nvhRise .34s var(--nvh-ease); }
.nvh-flash { animation: nvhFlash .6s var(--nvh-ease); }
.nvh-shake { animation: nvhShake .28s ease 2; }
.nvh-press { transform: scale(.98); background: rgba(var(--nvh-acc-rgb), .1) !important; }
.nvh-enter { animation: nvhEnter .38s var(--nvh-ease); }
.nvh-drop { animation: nvhDrop .22s var(--nvh-ease); }
.nvh-tick { animation: nvhTick .22s var(--nvh-spring); }

/* ── Responsive ──────────────────────────────────────────────────── */
@media (max-width: 1100px) {
  .nvg-kpis { grid-template-columns: repeat(6, minmax(0, 1fr)); }
  .nvg-kpi { grid-column: span 2; }
  .nvg-kpi:nth-child(4), .nvg-kpi:nth-child(5) { grid-column: span 3; }
}
@media (max-width: 900px) {
  .nvg-grid { grid-template-columns: minmax(0, 1fr); }
  .nvg-opts { position: relative; top: 0; max-height: none; overflow: hidden; }
  .nvg-opts-tg { display: flex; align-items: center; gap: 9px; width: 100%; height: 48px; padding: 0 16px; border: 0; background: transparent; color: var(--text); font: 600 13.5px/1 var(--nv-font-ui, inherit); cursor: pointer; }
  .nvg-opts-tg span { flex: 1; text-align: left; }
  .nvg-opts-tg > i { font: 700 10.5px/18px var(--nv-font-num, inherit); font-style: normal; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; background: var(--nvh-acc); color: var(--nvh-on); text-align: center; }
  .nvg-opts-tg > .nvh-i:last-child { color: var(--text3); transition: transform .28s var(--nvh-ease); }
  .nvg-opts.open .nvg-opts-tg > .nvh-i:last-child { transform: rotate(180deg); }
  .nvg-opts-b { grid-template-rows: 0fr; transition: grid-template-rows .34s var(--nvh-ease); }
  .nvg-opts.open .nvg-opts-b { grid-template-rows: 1fr; }
  .nvg-opts-in { border-top: 1px solid transparent; transition: border-color .2s; }
  .nvg-opts.open .nvg-opts-in { border-top-color: var(--border); }
}
@media (max-width: 640px) {
  .nvh-ov { padding: 0; align-items: flex-end; }
  .nvh-sheet { max-width: none; border-radius: 22px 22px 0 0; max-height: calc(100vh - 28px); max-height: calc(100dvh - 28px); transform: translateY(40px); border-bottom: 0; }
  .nvh-ov.out .nvh-sheet { transform: translateY(40px); }
  .nvh-hd { padding: 14px 10px 10px 16px; }
  .nvh-steps { padding: 2px 16px 12px; }
  .nvh-steps button span { font-size: 12px; }
  .nvh-view { padding: 14px 16px calc(16px + env(safe-area-inset-bottom, 0px)); }
  .nvh-form { grid-template-columns: 1fr; }
  .nvh-res { gap: 14px; padding: 16px; }
  .nvh-ring { width: 84px; height: 84px; }
  .nvh-ring b { font-size: 23px; }
  .nvh-big { font-size: 36px; }
  .nvh-bs { font-size: 15px; }
  .nvh-ln { padding: 9px 12px; font-size: 12px; }
  .nvh-ln b { font-size: 12px; }
  .nvh-foot .nvh-btn { padding: 0 12px; }
  #nvh-r-new span { display: none; }
  .nvh-stp { padding: 10px; }
  .nvh-stp-c input { font-size: 22px; }
  .nvh-stp-c button { width: 32px; height: 32px; }
  .nvg-hd-t h2 { font-size: 22px; }
  .nvg-hd { align-items: stretch; }
  .nvg-resp, .nvg-resp-b { width: 100%; }
  .nvg-resp-n { flex: 1; text-align: left; max-width: none; }
  .nvg-pop { left: 0; right: 0; width: auto; max-width: none; }
  .nvg-kpis { grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 8px; }
  .nvg-kpi { padding: 11px 12px; gap: 5px; grid-column: span 2; }
  .nvg-kpi:nth-child(n) { grid-column: span 2; }
  .nvg-kpi:nth-child(1), .nvg-kpi:nth-child(2) { grid-column: span 3; }
  .nvg-kpi b { font-size: 20px; }
  .nvg-kpi:nth-child(n+3) b { font-size: 18px; }
  .nvg-kpi span { font-size: 11px; }
  .nvg-bar { flex-direction: column; align-items: stretch; }
  .nvg-bar .nvh-seg { width: 100%; }
  .nvg-acts { justify-content: space-between; }
  .nvg-acts .nvh-btn { flex: 1; margin-left: 6px; }
  .nvg-out { padding: 4px; border-radius: 16px; }
  .nvg-r { gap: 10px; padding: 9px 6px; }
  .nvg-r .nvh-av { display: none; }
  .nvg-pre { font-size: 12px; padding: 14px; }
}
@media (max-width: 380px) {
  .nvh-dd { grid-template-columns: 1fr; }
  .nvh-steps button span { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  #nvh-calc *, #nvh-calc, #nvh-gl, #nvh-gl *, #nvh-uni, #nvh-uni * { animation-duration: .01ms !important; animation-delay: 0ms !important; transition-duration: .01ms !important; }
}

/* ── 3 · Unificar responsables (5.6) ─────────────────────────────── */
.nvg-hd-a { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.nvg-uni-b {
  position: relative; display: inline-flex; align-items: center; gap: 8px; height: 42px; padding: 0 14px; border-radius: 12px;
  border: 1px solid var(--border); background: var(--bg2); color: var(--text2); cursor: pointer; font: 600 13.5px/1 var(--nv-font-ui, inherit);
  transition: border-color .18s, background .18s, color .18s, transform .22s var(--nvh-spring), box-shadow .22s;
}
.nvg-uni-b > .nvh-i { color: var(--nvh-acc); transition: transform .34s var(--nvh-spring); }
.nvg-uni-b:hover { color: var(--text); background: var(--bg3); border-color: rgba(var(--nvh-acc-rgb), .45); transform: translateY(-1px); box-shadow: 0 8px 20px -12px rgba(var(--nvh-acc-rgb), .9); }
.nvg-uni-b:hover > .nvh-i { transform: rotate(-14deg) scale(1.1); }
.nvg-uni-b:active { transform: scale(.97); transition-duration: .08s; }
.nvg-uni-b:focus-visible { outline: 2px solid rgba(var(--nvh-acc-rgb), .7); outline-offset: 2px; }
.nvg-uni-b > i { min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; font: 700 10.5px/18px var(--nv-font-num, inherit); font-style: normal; text-align: center; background: var(--nvh-acc); color: var(--nvh-on); position: relative; }
.nvg-uni-b > i:empty { display: none; }
.nvg-uni-b.has > i::after { content: ''; position: absolute; inset: -3px; border-radius: 12px; border: 1.5px solid rgba(var(--nvh-acc-rgb), .6); animation: nvuRing 2.2s var(--nvh-ease) 3; opacity: 0; }
@keyframes nvuRing { 0% { opacity: .9; transform: scale(.85); } 70%, 100% { opacity: 0; transform: scale(1.45); } }

.nvu-sheet { max-width: 580px; }
.nvu-sheet .nvh-hd { padding-bottom: 10px; }
.nvu-x {
  flex-shrink: 0; width: 34px; height: 34px; border-radius: 50%; border: 0; background: transparent; color: var(--text3); cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center; transition: background .18s, color .18s, transform .26s var(--nvh-spring);
}
.nvu-x:hover, .nvu-x:focus-visible { background: color-mix(in srgb, var(--red2, #f87171) 16%, transparent); color: var(--red2, #f87171); transform: rotate(90deg); outline: 0; }
.nvu-x:active { transform: rotate(90deg) scale(.9); }
.nvu-tabs { padding: 0 20px 12px; }
.nvu-tabs .nvh-seg button { display: inline-flex; align-items: center; justify-content: center; gap: 6px; }
.nvu-tabs .nvh-seg button small { font: 700 10px/16px var(--nv-font-num, inherit); min-width: 16px; padding: 0 4px; border-radius: 8px; background: rgba(var(--nvh-acc-rgb), .16); color: var(--nvh-acc); }
.nvu-tabs .nvh-seg button small:empty { display: none; }
.nvu-body { flex: 1; min-height: 120px; overflow-y: auto; overscroll-behavior: contain; scrollbar-width: thin; padding: 14px 20px 16px; border-top: 1px solid var(--border); display: flex; flex-direction: column; gap: 10px; }
.nvu-body > * { flex-shrink: 0; }
.nvu-intro { margin: 0 0 2px; font-size: 12.5px; line-height: 1.5; color: var(--text3); }
.nvu-empty .nvh-i { color: var(--nvh-ok); }

.nvu-g { border: 1px solid var(--border); background: var(--bg); border-radius: 16px; padding: 10px 10px 8px; animation: nvhRise .36s var(--nvh-ease) both; animation-delay: var(--d, 0ms); transition: opacity .2s, border-color .2s; }
.nvu-g.off { opacity: .6; }
.nvu-g.off .nvu-vs, .nvu-g.off .nvu-cus { filter: saturate(.3); }
.nvu-g > header { display: flex; align-items: center; gap: 10px; padding: 2px 2px 8px 4px; }
.nvu-gt { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.nvu-gt b { font: 650 14px/1.2 var(--nv-font-ui, inherit); color: var(--text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.nvu-gt span { font-size: 11.5px; color: var(--text3); }
.nvu-one { flex-shrink: 0; }
.nvu-one:disabled { opacity: .45; pointer-events: none; }
.nvu-sw { position: relative; flex-shrink: 0; width: 36px; height: 21px; border-radius: 11px; border: 0; padding: 0; cursor: pointer; background: var(--bg4, var(--border)); transition: background .22s; }
.nvu-sw i { position: absolute; top: 2.5px; left: 2.5px; width: 16px; height: 16px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0, 0, 0, .35); transition: transform .3s var(--nvh-spring); }
.nvu-sw.on { background: var(--nvh-acc); }
.nvu-sw.on i { transform: translateX(15px); }
.nvu-sw:focus-visible { outline: 2px solid rgba(var(--nvh-acc-rgb), .7); outline-offset: 2px; }

.nvu-vs { display: flex; flex-direction: column; gap: 2px; }
.nvu-v { display: flex; align-items: center; gap: 9px; min-height: 40px; padding: 4px 4px 4px 6px; border-radius: 11px; transition: background .16s, opacity .16s; animation: nvhRise .3s var(--nvh-ease) both; animation-delay: var(--d, 0ms); }
.nvu-v:hover { background: var(--bg3); }
.nvu-v.keep { background: rgba(var(--nvh-acc-rgb), .1); box-shadow: inset 0 0 0 1px rgba(var(--nvh-acc-rgb), .28); }
.nvu-v.off .nvu-vn, .nvu-v.off .nvu-c { opacity: .5; }
.nvu-v.off .nvu-vn { text-decoration: line-through; text-decoration-color: var(--text3); }
.nvu-ck { flex-shrink: 0; width: 20px; height: 20px; border-radius: 6px; border: 1.5px solid var(--border2, var(--border)); background: transparent; color: transparent; display: inline-flex; align-items: center; justify-content: center; cursor: pointer; padding: 0; transition: background .18s, border-color .18s, color .18s, transform .22s var(--nvh-spring); }
.nvu-ck.on { background: var(--nvh-acc); border-color: var(--nvh-acc); color: var(--nvh-on); }
.nvu-ck:active { transform: scale(.85); }
.nvu-ck:disabled { cursor: default; opacity: .9; }
.nvu-ck .nvh-i { stroke-width: 2.4; }
.nvu-vn { flex: 1; min-width: 0; display: flex; align-items: center; gap: 7px; font: 500 13.5px/1.25 var(--nv-font-ui, inherit); color: var(--text); white-space: pre; overflow: hidden; text-overflow: ellipsis; }
.nvu-sp { font-style: normal; font: 700 11px/1 var(--nv-font-num, monospace); color: var(--red2, #f87171); background: color-mix(in srgb, var(--red2, #f87171) 14%, transparent); border-radius: 4px; padding: 2px 3px; letter-spacing: 1px; }
.nvu-tag { flex-shrink: 0; font-style: normal; font: 600 10px/16px var(--nv-font-ui, inherit); padding: 0 6px; border-radius: 6px; background: color-mix(in srgb, var(--amber2, #fbbf24) 16%, transparent); color: var(--amber2, #fbbf24); }
.nvu-tag.soft { background: var(--bg3); color: var(--text3); }
.nvu-c { flex-shrink: 0; min-width: 26px; text-align: right; font: 600 12px/1 var(--nv-font-num, inherit); color: var(--text3); font-variant-numeric: tabular-nums; }
.nvu-arr { flex-shrink: 0; display: inline-flex; color: var(--nvh-acc); animation: nvuNudge 1.6s var(--nvh-ease) infinite; }
@keyframes nvuNudge { 0%, 100% { transform: translateX(0); opacity: .55; } 50% { transform: translateX(3px); opacity: 1; } }
.nvu-keep { flex-shrink: 0; display: inline-flex; align-items: center; gap: 5px; height: 28px; padding: 0 9px; border-radius: 9px; border: 1px solid transparent; background: transparent; color: var(--text3); cursor: pointer; font: 600 11.5px/1 var(--nv-font-ui, inherit); transition: background .16s, color .16s, border-color .16s, transform .2s var(--nvh-spring); }
.nvu-keep:hover { background: var(--bg4, var(--bg3)); color: var(--text); }
.nvu-keep:active { transform: scale(.93); }
.nvu-keep.on { color: var(--amber2, #fbbf24); border-color: color-mix(in srgb, var(--amber2, #fbbf24) 35%, transparent); background: color-mix(in srgb, var(--amber2, #fbbf24) 12%, transparent); }
.nvu-v:not(:hover) .nvu-keep:not(.on) span { opacity: .0; }
.nvu-keep span { transition: opacity .16s; }
.nvu-crown .nvh-i { animation: nvuCrown .5s var(--nvh-spring); }
@keyframes nvuCrown { 0% { transform: translateY(0) rotate(0) scale(1); } 35% { transform: translateY(-5px) rotate(-12deg) scale(1.25); } 100% { transform: none; } }
.nvu-cus { display: flex; align-items: center; gap: 8px; height: 36px; margin: 6px 2px 2px; padding: 0 11px; border-radius: 10px; border: 1px dashed var(--border2, var(--border)); color: var(--text3); transition: border-color .18s, box-shadow .18s; }
.nvu-cus:focus-within { border-style: solid; border-color: rgba(var(--nvh-acc-rgb), .55); box-shadow: 0 0 0 3px rgba(var(--nvh-acc-rgb), .14); }
#nvh-uni .nvu-cus input { flex: 1; min-width: 0; height: 100%; border: 0 !important; outline: 0 !important; box-shadow: none !important; background: transparent !important; color: var(--text); font: 400 13px/1 var(--nv-font-ui, inherit); padding: 0 !important; margin: 0; border-radius: 0; }

.nvu-q { position: sticky; top: -14px; z-index: 2; box-shadow: 0 -14px 0 var(--bg2); }
.nvu-pick { border-radius: 14px; padding: 10px; background: rgba(var(--nvh-acc-rgb), .07); border: 1px solid rgba(var(--nvh-acc-rgb), .22); animation: nvhRise .3s var(--nvh-ease) both; }
.nvu-pick-h { font-size: 11.5px; font-weight: 600; color: var(--text2); margin: 0 2px 8px; }
.nvu-pick-l { display: flex; flex-wrap: wrap; gap: 6px; }
.nvu-chip { display: inline-flex; align-items: center; gap: 6px; max-width: 100%; height: 32px; padding: 0 10px; border-radius: 10px; border: 1px solid var(--border); background: var(--bg2); color: var(--text2); cursor: pointer; font: 500 12.5px/1 var(--nv-font-ui, inherit); transition: background .16s, border-color .16s, color .16s, transform .2s var(--nvh-spring); }
.nvu-chip span { white-space: pre; overflow: hidden; text-overflow: ellipsis; }
.nvu-chip small { font: 600 10.5px/1 var(--nv-font-num, inherit); color: var(--text3); }
.nvu-chip > .nvh-i { color: var(--text3); transition: color .16s, transform .3s var(--nvh-spring); }
.nvu-chip:hover { color: var(--text); border-color: var(--border2, var(--border)); }
.nvu-chip:active { transform: scale(.95); }
.nvu-chip.on { color: var(--text); border-color: color-mix(in srgb, var(--amber2, #fbbf24) 45%, transparent); background: color-mix(in srgb, var(--amber2, #fbbf24) 12%, var(--bg2)); }
.nvu-chip.on > .nvh-i { color: var(--amber2, #fbbf24); transform: rotate(-10deg) scale(1.1); }
.nvu-pick .nvu-cus { margin: 8px 0 0; background: var(--bg2); }
.nvu-ml { display: flex; flex-direction: column; gap: 1px; }
.nvu-m { display: flex; align-items: center; gap: 10px; width: 100%; min-height: 40px; padding: 6px 8px; border: 0; border-radius: 10px; background: transparent; color: var(--text); cursor: pointer; text-align: left; transition: background .14s; animation: nvhRise .26s var(--nvh-ease) both; animation-delay: var(--d, 0ms); }
.nvu-m:hover { background: var(--bg3); }
.nvu-m.on { background: rgba(var(--nvh-acc-rgb), .08); }

.nvu-hist { margin-top: 6px; padding-top: 12px; border-top: 1px solid var(--border); display: flex; flex-direction: column; gap: 4px; }
.nvu-hist-h { display: flex; align-items: center; gap: 7px; font-size: 11.5px; font-weight: 600; color: var(--text3); margin-bottom: 4px; }
.nvu-hr { display: flex; align-items: center; gap: 10px; padding: 6px 4px 6px 8px; border-radius: 10px; }
.nvu-hr:hover { background: var(--bg3); }
.nvu-hr > div { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.nvu-hr b { font: 600 13px/1.2 var(--nv-font-ui, inherit); color: var(--text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.nvu-hr span { font-size: 11.5px; color: var(--text3); }

.nvu-foot { display: flex; align-items: center; gap: 12px; padding: 12px 16px 14px 20px; border-top: 1px solid var(--border); background: var(--bg2); }
.nvu-prev { flex: 1; min-width: 0; font-size: 12.5px; color: var(--text3); line-height: 1.35; }
.nvu-prev b { font: var(--nv54-w-display, 700) 20px/1 var(--nv54-font-kpi, var(--nv-font-display, inherit)); color: var(--text); font-variant-numeric: tabular-nums; margin-right: 2px; }
.nvu-prev span { color: var(--text2); }
#nvu-go:disabled { opacity: .45; pointer-events: none; box-shadow: none; }
#nvu-go:not(:disabled):hover { transform: translateY(-1px); }

.nvu-run { position: absolute; inset: 0; z-index: 5; display: flex; align-items: center; justify-content: center; padding: 24px; background: color-mix(in srgb, var(--bg2) 94%, transparent); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); border-radius: inherit; }
.nvu-run[hidden] { display: none; }
.nvu-run.nvu-show { animation: nvhFade .22s var(--nvh-ease); }
.nvu-run-in { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 8px; max-width: 360px; animation: nvhRise .34s var(--nvh-ease) both; }
.nvu-run-in h3 { margin: 8px 0 0; font: var(--nv54-w-display, 700) 18px/1.25 var(--nv-font-display, inherit); color: var(--text); }
.nvu-run-in p { margin: 0; font-size: 13px; line-height: 1.5; color: var(--text2); }
.nvu-run-in p small { color: var(--text3); }
.nvu-run-a { display: flex; gap: 8px; margin-top: 10px; }
.nvu-ring { width: 76px; height: 76px; transition: transform .4s var(--nvh-spring); }
.nvu-ring svg { width: 100%; height: 100%; transform: rotate(-90deg); overflow: visible; }
.nvu-ring circle { fill: none; stroke-width: 4.5; }
.nvu-ring .bg { stroke: var(--border); }
.nvu-ring .fg { stroke: var(--nvh-acc); stroke-linecap: round; stroke-dasharray: 100; stroke-dashoffset: 100; transition: stroke-dashoffset .3s var(--nvh-ease), stroke .3s; }
.nvu-ring .ok { fill: none; stroke: var(--nvh-ok); stroke-width: 5; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 1; stroke-dashoffset: 1; transform: rotate(90deg); transform-origin: 32px 32px; }
.nvu-ring.done, .nvu-ring.warn { transform: scale(1.06); }
.nvu-ring:not(.done):not(.warn) { animation: nvuBreath 1.2s ease-in-out infinite; }
.nvu-ring.done .fg { stroke: var(--nvh-ok); }
.nvu-ring.warn .fg { stroke: var(--nvh-warn); }
.nvu-ring.done .ok { stroke-dashoffset: 0; transition: stroke-dashoffset .42s var(--nvh-ease) .12s; }
.nvu-ring.warn .ok { stroke: var(--nvh-warn); stroke-dashoffset: 0; transition: stroke-dashoffset .42s var(--nvh-ease) .12s; }
@keyframes nvuBreath { 0%, 100% { transform: scale(1); } 50% { transform: scale(.94); } }
.nvu-sheet.busy .nvu-x { opacity: .3; pointer-events: none; }

@media (max-width: 640px) {
  .nvg-hd-a { width: 100%; }
  .nvg-hd-a .nvg-resp { flex: 1; }
  .nvg-uni-b { width: 100%; justify-content: center; }
  .nvu-tabs { padding: 0 16px 10px; }
  .nvu-body { padding: 12px 14px 14px; }
  .nvu-g > header { flex-wrap: wrap; }
  .nvu-one { order: 3; width: 100%; justify-content: center; }
  .nvu-keep span { display: none; }
  .nvu-keep { padding: 0 7px; }
  .nvu-foot { padding: 10px 14px calc(12px + env(safe-area-inset-bottom, 0px)); }
}
@media (hover: none) { .nvu-v .nvu-keep:not(.on) span { opacity: 1; } }
@media (prefers-reduced-motion: reduce) {
  .nvg-uni-b, .nvg-uni-b *, .nvg-uni-b > i::after { animation: none !important; transition: none !important; }
  .nvu-arr { animation: none; }
}
