/* The app's own UI, for the demo cards on the marketing pages (Home, How it
 * works). Values are lifted from the app (prospect_search.html): the
 * history card, search pipeline, results table, inbox, compose modal and
 * Auto-reply setup. A demo is a .nv-app card built from the pieces below;
 * the tokens on .nv-app switch them between night and day. */

.nv-app {
  --a-surface: linear-gradient(155deg, rgba(255,255,255,.04), rgba(255,255,255,.01)),
    radial-gradient(120% 90% at 12% -5%, rgba(255,255,255,.043), transparent 46%),
    linear-gradient(155deg, rgba(6,6,8,.72), rgba(0,0,0,.6));
  --a-bd: rgba(255,255,255,.14);
  --a-shadow: 0 24px 60px rgba(0,0,0,.5), inset 0 1px 0 rgba(255,255,255,.08);
  --a-ink: #f0f0f0; --a-ink-2: #d0d0d0; --a-ink-3: rgba(255,255,255,.62); --a-ink-4: rgba(255,255,255,.46);
  --a-line: rgba(255,255,255,.06); --a-line-2: rgba(255,255,255,.1);
  --a-chip: #141416; --a-chip-ink: rgba(255,255,255,.82);
  --a-chip-sh: 4px 4px 9px rgba(0,0,0,.52), -4px -4px 9px rgba(255,255,255,.024);
  --a-btn: linear-gradient(160deg, rgba(255,255,255,.055), rgba(255,255,255,.01));
  --a-btn-bd: rgba(255,255,255,.043);
  --a-btn-sh: 6px 6px 14px rgba(0,0,0,.55), -4px -4px 11px rgba(255,255,255,.027), inset 0 1px 0 rgba(255,255,255,.05);
  --a-btn-sh-h: 8px 8px 18px rgba(0,0,0,.6), -5px -5px 13px rgba(255,255,255,.04), inset 0 1px 0 rgba(255,255,255,.08);
  --a-field: #141417; --a-field-bd: rgba(255,255,255,.15);
  --a-field-sh: inset 4px 4px 10px rgba(0,0,0,.6), inset -4px -4px 9px rgba(255,255,255,.03);
  --a-cell: rgba(255,255,255,.03);
  --a-src: rgba(255,255,255,.04); --a-src-bd: rgba(255,255,255,.12);
  --a-glow-bd: rgba(196,214,255,.55); --a-glow-bg: #0d0e11;
  --a-glow: 0 0 0 1.5px rgba(205,222,255,.62), 0 0 16px rgba(150,185,255,.42), 0 0 32px rgba(120,160,255,.2), inset 0 0 12px rgba(150,185,255,.06);
  --a-check: rgba(255,255,255,.04); --a-check-bd: rgba(255,255,255,.16);
  --a-green: #5be39a; --a-green-soft: rgba(91,227,154,.07); --a-green-bd: rgba(91,227,154,.5);
  --a-green-glow: 0 0 7px rgba(91,227,154,.5);
  --a-amber: #ffcf6b; --a-teal: #4de4f0; --a-teal-glow: 0 0 8px rgba(77,228,240,.55), 0 0 2px rgba(77,228,240,.9);
  --a-seg: rgba(255,255,255,.07); --a-seg-on: rgba(255,255,255,.16);
  --a-primary: #fff; --a-primary-ink: #000;
  --a-input: #0a0a0a; --a-editor: #16161a;
  --a-merge: rgba(60,110,230,.18); --a-merge-ink: #9cb8ff;
  --a-cream: #f3f2ee; --a-cream-ink: #2b2b2b; --a-cream-ph: #77756f;
  --a-switch: #141417; --a-switch-sh: inset 2px 2px 6px rgba(0,0,0,.55), inset -1px -1px 3px rgba(255,255,255,.03);
  --a-thumb: linear-gradient(#fff, #ececf0);
  --a-focus: rgba(147,197,253,.55);

  position: relative; display: flex; flex-direction: column; width: 100%; min-width: 0;
  border-radius: 26px; border: 1px solid var(--a-bd); background: var(--a-surface); box-shadow: var(--a-shadow);
  backdrop-filter: blur(16px) saturate(1.15); -webkit-backdrop-filter: blur(16px) saturate(1.15);
  color: var(--a-ink); font: 400 15px/1.5 'Inter', system-ui, sans-serif; letter-spacing: -.005em;
  text-align: left; overflow: hidden;
}
:root[data-theme="light"] .nv-app {
  --a-surface: #fff; --a-bd: rgba(0,0,0,.08);
  --a-shadow: 0 18px 46px rgba(20,30,50,.1), 0 2px 8px rgba(20,30,50,.05);
  --a-ink: #15171c; --a-ink-2: #2b303a; --a-ink-3: rgba(21,23,28,.62); --a-ink-4: rgba(21,23,28,.45);
  --a-line: rgba(0,0,0,.07); --a-line-2: rgba(0,0,0,.1);
  --a-chip: #eef1f5; --a-chip-ink: #2b303a;
  --a-chip-sh: 3px 3px 8px rgba(20,30,50,.08), -3px -3px 8px rgba(255,255,255,.9);
  --a-btn: linear-gradient(145deg, #fff, #eef1f5); --a-btn-bd: rgba(0,0,0,.08);
  --a-btn-sh: 4px 4px 12px rgba(20,30,50,.1), -3px -3px 8px rgba(255,255,255,.9), inset 0 1px 0 rgba(255,255,255,.9);
  --a-btn-sh-h: 6px 6px 16px rgba(20,30,50,.14), -4px -4px 10px #fff, inset 0 1px 0 rgba(255,255,255,.9);
  --a-field: #f3f5f8; --a-field-bd: rgba(0,0,0,.07);
  --a-field-sh: inset 2px 2px 5px rgba(20,30,50,.06), inset -2px -2px 5px rgba(255,255,255,.8);
  --a-cell: rgba(20,30,50,.04);
  --a-src: #fff; --a-src-bd: rgba(0,0,0,.12);
  --a-glow-bd: rgba(60,110,230,.5); --a-glow-bg: #fff;
  --a-glow: 0 0 0 1.5px rgba(60,110,230,.4), 0 0 14px rgba(60,110,230,.16);
  --a-check: #fff; --a-check-bd: rgba(0,0,0,.18);
  --a-green: #17834c; --a-green-soft: rgba(23,131,76,.07); --a-green-bd: rgba(23,131,76,.4); --a-green-glow: none;
  --a-amber: #a86a08; --a-teal: #0fb3c2; --a-teal-glow: 0 0 6px rgba(15,179,194,.45);
  --a-seg: rgba(20,30,50,.1); --a-seg-on: rgba(20,30,50,.24);
  --a-primary: #15171c; --a-primary-ink: #fff;
  --a-input: #f6f7f9; --a-editor: #f3f5f8;
  --a-merge: rgba(49,95,202,.1); --a-merge-ink: #315fca;
  --a-switch: #e4e8ef; --a-switch-sh: inset 2px 2px 5px rgba(20,30,50,.1), inset -1px -1px 3px rgba(255,255,255,.85);
  --a-thumb: linear-gradient(#fff, #f3f5f8);
  --a-focus: rgba(60,110,230,.45);
}
.nv-app *, .nv-app *::before, .nv-app *::after { box-sizing: border-box; }
.nv-app button { font: inherit; color: inherit; }
.nv-app :focus-visible { outline: 2px solid var(--a-focus); outline-offset: 2px; }
.nv-app svg { flex: none; }
.nv-app .ph { flex: none; line-height: 1; }

/* ---- card regions ---- */
.nv-app-pad { padding: 24px; }
.nv-app-head { display: flex; align-items: center; gap: 10px; min-height: 52px; padding: 14px 20px; border-bottom: 1px solid var(--a-line); }
.nv-app-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; padding: 14px 20px; border-top: 1px solid var(--a-line); background: rgba(255,255,255,.02); }
:root[data-theme="light"] .nv-app-foot { background: #fafbfc; }
.nv-app-eyebrow { font-size: 12.5px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--a-ink-2); }
.nv-app-meta { margin-left: auto; font-size: 13px; font-weight: 500; color: var(--a-ink-3); white-space: nowrap; }
.nv-app-dot { flex: none; width: 8px; height: 8px; border-radius: 50%; background: var(--a-green); box-shadow: var(--a-green-glow); }
.nv-app-dot.is-live { animation: nvpulse 1.6s ease-in-out infinite; }
.nv-app-dot.is-amber { background: var(--a-amber); box-shadow: none; }
.nv-app-dot.is-idle { background: var(--a-ink-4); box-shadow: none; }
.nv-app-rule { height: 1px; margin: 0; border: 0; background: var(--a-line); }
.nv-app-label { font-size: 13px; font-weight: 500; color: var(--a-ink-3); }

/* ---- title, chips, fields ---- */
.nv-app-title { margin: 0; padding: 0 6px; font-size: clamp(22px, 5cqi, 26px); font-weight: 600; letter-spacing: -.02em; line-height: 1.25; color: var(--a-ink); }
.nv-app-title.is-empty { opacity: .62; }
.nv-app-chips { display: flex; flex-wrap: wrap; gap: 10px; }
.nv-app-chip { display: inline-flex; align-items: center; gap: 7px; max-width: 100%; padding: 9px 16px; border-radius: 999px; background: var(--a-chip); box-shadow: var(--a-chip-sh); color: var(--a-chip-ink); font-size: 15px; font-weight: 650; white-space: nowrap; }
.nv-app-chip svg, .nv-app-chip .ph { width: 15px; height: 15px; font-size: 15px; }
.nv-app-chip.is-muted { color: var(--a-ink-4); }
.nv-app-field { position: relative; display: flex; align-items: center; gap: 8px; min-width: 0; height: 60px; padding: 0 16px 0 48px; border-radius: 9999px; border: 2px solid var(--a-field-bd); background: var(--a-field); box-shadow: var(--a-field-sh); }
:root[data-theme="light"] .nv-app-field { border-width: 1px; }
.nv-app-field > .nv-app-field-ico { position: absolute; left: 18px; top: 50%; width: 20px; height: 20px; margin-top: -10px; font-size: 20px; color: var(--a-ink-4); stroke-width: 1.6; }
.nv-app-field-ph { flex: 1; min-width: 0; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; color: var(--a-ink-4); font-size: 18px; font-weight: 500; }
.nv-app-field-val { flex: 1; min-width: 0; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; color: var(--a-ink); font-size: 17px; font-weight: 500; }
.nv-app-field .nv-app-chip { padding: 6px 12px; font-size: 14px; box-shadow: none; border: 1px solid var(--a-line-2); background: #101012; }
.nv-app-field .nv-app-chip { display: block; min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.nv-app-field .nv-app-chip.is-more { flex: none; color: var(--a-ink-3); }
/* Keywords and location share a row, as on the search card: the keyword bar
   takes the larger share, the location sits shorter on its right. */
.nv-app-fields { display: grid; grid-template-columns: minmax(0,1.6fr) minmax(0,1fr); gap: 12px; }
.nv-app-fields .nv-app-field { padding-right: 12px; }
:root[data-theme="light"] .nv-app-field .nv-app-chip { background: #e8ecf1; }

/* ---- source pills: glowing when on (search card), outlined in tables ---- */
.nv-app-src { display: inline-flex; align-items: center; gap: 7px; padding: 10px 16px; border-radius: 999px; border: 1px solid var(--a-glow-bd); background: var(--a-glow-bg); box-shadow: var(--a-glow); color: var(--a-ink); font-size: 14px; font-weight: 500; line-height: 1; white-space: nowrap; }
.nv-app-src svg, .nv-app-src .ph { width: 16px; height: 16px; font-size: 16px; }
.nv-app-src.is-add { border-style: dashed; border-color: var(--a-line-2); background: var(--a-chip); box-shadow: var(--a-chip-sh); color: var(--a-ink-3); opacity: .7; }
.nv-app-plat { display: inline-flex; align-items: center; gap: 7px; padding: 6px 12px; border-radius: 999px; border: 1px solid var(--a-src-bd); background: var(--a-src); color: var(--a-ink-2); font-size: 13px; font-weight: 600; white-space: nowrap; }
.nv-app-plat .ph { font-size: 15px; }

/* ---- raised buttons ---- */
.nv-app-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 52px; padding: 0 22px; border-radius: 14px; border: 1px solid var(--a-btn-bd); background: var(--a-btn); box-shadow: var(--a-btn-sh); color: var(--a-ink-2); font-size: 16px; font-weight: 700; line-height: 1; white-space: nowrap; cursor: pointer; transition: box-shadow .18s, transform .12s; }
.nv-app-btn:hover { box-shadow: var(--a-btn-sh-h); }
.nv-app-btn:active { transform: translateY(1px); }
.nv-app-btn .ph { font-size: 17px; }
.nv-app-btn.is-pill { min-height: 44px; padding: 0 18px; border-radius: 999px; font-size: 14px; font-weight: 600; color: var(--a-ink); }
.nv-app-btn.is-primary { border-color: var(--a-primary); background: var(--a-primary); box-shadow: 0 4px 14px rgba(255,255,255,.12); color: var(--a-primary-ink); }
:root[data-theme="light"] .nv-app-btn.is-primary { box-shadow: 0 4px 14px rgba(20,30,50,.18); }
.nv-app-btn.is-quiet { opacity: .45; cursor: default; }
.nv-app-btn.is-on { border-color: var(--a-glow-bd); background: var(--a-glow-bg); box-shadow: var(--a-glow); color: var(--a-ink); }
.nv-app-btns { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }

/* ---- Fuel meters (search card) ---- */
.nv-app-meter { display: inline-flex; flex-direction: column; align-items: center; justify-content: center; gap: 9px; min-width: 112px; min-height: 66px; padding: 14px 18px 13px; border-radius: 14px; border: 1px solid rgba(255,255,255,.12); background: linear-gradient(145deg, #1c1c20, #131316); box-shadow: 6px 6px 16px rgba(0,0,0,.6), -5px -5px 14px rgba(255,255,255,.035), inset 0 1px 0 rgba(255,255,255,.04); color: #e9e9ee; font-size: 15px; font-weight: 700; line-height: 1; letter-spacing: .08em; text-transform: uppercase; }
:root[data-theme="light"] .nv-app-meter { border-color: rgba(0,0,0,.08); background: linear-gradient(145deg, #fff, #eef1f5); box-shadow: var(--a-btn-sh); color: #15171c; }
.nv-app-meter.is-ar { border-color: rgba(91,227,154,.28); color: var(--a-green); font-size: 12.5px; font-weight: 800; letter-spacing: .12em; }
:root[data-theme="light"] .nv-app-meter.is-ar { border-color: rgba(23,131,76,.35); }
.nv-app-segs { display: grid; grid-template-columns: repeat(10, 1fr); gap: 3px; width: 72px; height: 10px; }
.nv-app-meter.is-ar .nv-app-segs { width: 86px; height: 8px; }
.nv-app-segs i { border-radius: 2px; background: var(--a-seg); }
.nv-app-segs i.on { background: var(--a-seg-on); }
.nv-app-segs.is-lit i.on { background: var(--a-teal); box-shadow: var(--a-teal-glow); }
.nv-app-segs.is-green i.on { background: var(--a-green); box-shadow: var(--a-green-glow); }
.nv-app-meter small { font-size: 12px; font-weight: 600; letter-spacing: 0; text-transform: none; color: var(--a-ink-3); }

/* ---- switch (as the search card's and Auto-reply's toggles) ---- */
.nv-app-switch { position: relative; flex: none; width: 52px; height: 30px; padding: 0; border-radius: 999px; border: 1px solid var(--a-line-2); background: var(--a-switch); box-shadow: var(--a-switch-sh); cursor: pointer; }
.nv-app-switch > span { position: absolute; top: 3px; left: 3px; width: 22px; height: 22px; border-radius: 50%; background: var(--a-thumb); box-shadow: 0 2px 8px rgba(0,0,0,.35); transition: transform .16s cubic-bezier(.2,.8,.2,1); }
.nv-app-switch[aria-checked="true"] { border-color: var(--a-green-bd); }
.nv-app-switch[aria-checked="true"] > span { transform: translateX(22px); }

/* ---- emails found (history card foot) ---- */
.nv-app-found { font-size: 17px; font-weight: 650; color: var(--a-ink-4); white-space: nowrap; }
.nv-app-found b { margin-right: 4px; font-size: 26px; font-weight: 800; color: var(--a-ink-2); letter-spacing: -.01em; }
.nv-app-date { display: inline-flex; align-items: center; gap: 7px; font-size: 15px; font-weight: 650; color: var(--a-ink-4); white-space: nowrap; }
.nv-app-moveto { position: absolute; top: -1px; right: -1px; display: inline-flex; align-items: center; gap: 10px; padding: 12px 16px 12px 18px; border-radius: 0 26px 0 14px; border: 1px solid var(--a-bd); background: var(--a-chip); color: var(--a-ink-2); font-size: 16px; font-weight: 650; }
.nv-app-moveto .ph { font-size: 12px; color: var(--a-ink-4); }

/* ---- search pipeline ---- */
.nv-app-pipe { display: grid; grid-template-columns: minmax(0,1fr) 22px minmax(0,1fr) 22px minmax(0,1fr); align-items: stretch; padding: 16px 18px; }
.nv-app-node { display: flex; flex-direction: column; gap: 6px; min-width: 0; padding: 12px 12px; border-radius: 12px; border: 1px solid var(--a-line-2); background: rgba(255,255,255,.02); }
:root[data-theme="light"] .nv-app-node { background: #fafbfc; }
.nv-app-node.is-hot { border-color: var(--a-green-bd); background: var(--a-green-soft); box-shadow: 0 0 0 1px rgba(91,227,154,.22), 0 8px 24px rgba(91,227,154,.08); }
.nv-app-node-tag { display: flex; align-items: center; gap: 7px; font-size: 11.5px; font-weight: 650; letter-spacing: .05em; text-transform: uppercase; color: var(--a-ink-3); }
.nv-app-node-tag .nv-app-dot { width: 7px; height: 7px; }
.nv-app-node-num { font-size: 14.5px; font-weight: 700; color: var(--a-ink); line-height: 1.3; }
.nv-app-conn { display: flex; align-items: center; justify-content: center; gap: 3px; }
.nv-app-conn i { width: 4px; height: 4px; border-radius: 50%; background: var(--a-green); box-shadow: 0 0 6px rgba(91,227,154,.6); }
.nv-app-outs { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 10px; padding: 0 18px 16px; }
.nv-app-out { display: flex; align-items: center; gap: 10px; padding: 10px 13px; border-radius: 11px; border: 1px solid var(--a-line-2); background: rgba(255,255,255,.02); }
:root[data-theme="light"] .nv-app-out { background: #fafbfc; }
.nv-app-out-body { display: flex; flex-direction: column; min-width: 0; }
.nv-app-out-label { font-size: 13.5px; font-weight: 650; color: var(--a-ink); }
.nv-app-out-sub { font-size: 12.5px; color: var(--a-ink-3); }
.nv-app-out-num { margin-left: auto; font-size: 26px; font-weight: 750; letter-spacing: -.02em; color: var(--a-green); font-variant-numeric: tabular-nums; }
.nv-app-out-num.is-plain { color: var(--a-ink); }

/* ---- results table ---- */
.nv-app-tools { display: flex; align-items: center; gap: 10px; padding: 14px 18px; border-bottom: 1px solid var(--a-line); }
.nv-app-tools .nv-app-btn.is-pill { min-height: 40px; padding: 0 15px; font-size: 13.5px; }
.nv-app-row { display: grid; grid-template-columns: 26px minmax(0,1fr) auto 32px; align-items: center; gap: 12px; padding: 10px 18px; border-bottom: 1px solid var(--a-line); }
.nv-app-row:last-child { border-bottom: 0; }
/* A long list cut short: its last row fades out under an "N more" chip. */
.nv-app-list.is-more { -webkit-mask-image: linear-gradient(180deg, #000 calc(100% - 78px), transparent 96%); mask-image: linear-gradient(180deg, #000 calc(100% - 78px), transparent 96%); }
.nv-app-more { position: relative; display: flex; justify-content: center; margin-top: -46px; padding-bottom: 16px; pointer-events: none; }
.nv-app-more span { display: inline-flex; align-items: center; gap: 8px; padding: 9px 16px; border-radius: 999px; border: 1px solid var(--a-line-2); background: var(--a-chip); box-shadow: var(--a-chip-sh); color: var(--a-ink-2); font-size: 14px; font-weight: 600; animation: nv-app-in .35s ease both; }
.nv-app-more .ph { font-size: 15px; color: var(--a-ink-3); }
@keyframes nv-app-in { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.nv-app-check { flex: none; display: grid; place-items: center; width: 26px; height: 26px; border-radius: 8px; border: 1px solid var(--a-check-bd); background: var(--a-check); color: var(--a-primary-ink); font-size: 14px; }
.nv-app-check.is-on { border-color: var(--a-primary); background: var(--a-primary); }
.nv-app-who { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.nv-app-who b { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; font-size: 14.5px; font-weight: 600; color: var(--a-ink); }
.nv-app-who span { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; font-size: 13.5px; font-weight: 500; color: var(--a-ink-3); }
.nv-app-iconbtn { display: grid; place-items: center; width: 32px; height: 32px; padding: 0; border-radius: 9px; border: 1px solid transparent; background: var(--a-cell); color: var(--a-ink-3); cursor: pointer; }
.nv-app-iconbtn:hover { color: var(--a-ink); border-color: var(--a-line-2); }
.nv-app-q { font-size: 12px; font-weight: 650; letter-spacing: .02em; padding: 3px 9px; border-radius: 999px; background: var(--a-cell); color: var(--a-ink-3); }
.nv-app-q.is-high { background: var(--a-green-soft); color: var(--a-green); }
.nv-app-q.is-good { color: var(--a-ink-2); }

/* ---- inbox ---- */
.nv-app-search { display: flex; align-items: center; gap: 10px; flex: 1; min-width: 0; height: 40px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--a-line-2); color: var(--a-ink-4); font-size: 13.5px; white-space: nowrap; overflow: hidden; }
.nv-app-tabs { display: flex; gap: 2px; padding: 0 12px; border-bottom: 1px solid var(--a-line); overflow-x: auto; scrollbar-width: none; }
.nv-app-tabs::-webkit-scrollbar { display: none; }
.nv-app-tab { position: relative; display: inline-flex; align-items: baseline; gap: 7px; padding: 14px 10px 13px; border: 0; background: none; color: var(--a-ink-3); font-size: 15px; font-weight: 600; white-space: nowrap; cursor: pointer; }
.nv-app-tab small { font-family: 'JetBrains Mono', ui-monospace, monospace; font-size: 12px; font-weight: 500; color: var(--a-ink-4); }
.nv-app-tab.is-on { color: var(--a-ink); }
.nv-app-tab.is-on::after { content: ''; position: absolute; left: 6px; right: 6px; bottom: -1px; height: 2px; border-radius: 2px; background: var(--a-ink); }
.nv-app-tab.is-replied { color: var(--a-green); }
.nv-app-mail { display: grid; grid-template-columns: 26px minmax(0,1fr) auto; align-items: center; gap: 14px; padding: 14px 18px; border-bottom: 1px solid var(--a-line); }
.nv-app-mail:last-child { border-bottom: 0; }
.nv-app-mail-main { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.nv-app-mail-main b { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; font-size: 15px; font-weight: 700; color: var(--a-ink); }
.nv-app-mail-main span { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; font-size: 13.5px; color: var(--a-ink-3); }
.nv-app-status { display: flex; flex-direction: column; align-items: flex-end; gap: 2px; white-space: nowrap; }
.nv-app-status b { font-size: 13px; font-weight: 650; }
.nv-app-status small { font-size: 12px; color: var(--a-ink-4); }
.nv-app-status .is-replied { color: var(--a-green); }
.nv-app-status .is-opened { color: var(--a-amber); }
.nv-app-status .is-sent { color: var(--a-ink-4); }
.nv-app-status .is-bounced { color: #ff8a8a; }
:root[data-theme="light"] .nv-app-status .is-bounced { color: #c0392b; }

/* ---- compose (the app's New message modal) ---- */
.nv-app-h3 { margin: 0; font-size: 17px; font-weight: 600; letter-spacing: -.02em; color: var(--a-ink); }
.nv-app-line { display: grid; grid-template-columns: 64px minmax(0,1fr) auto; align-items: center; gap: 10px; }
.nv-app-input { display: flex; align-items: center; gap: 8px; min-width: 0; min-height: 44px; padding: 10px 14px; border-radius: 12px; border: 1px solid var(--a-line-2); background: var(--a-input); color: var(--a-ink); font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.nv-app-toolbar { display: inline-flex; align-items: center; gap: 2px; align-self: flex-start; padding: 6px 10px; border-radius: 14px; border: 1px solid var(--a-line); background: var(--a-editor); color: var(--a-ink-2); font-size: 14px; }
.nv-app-toolbar span { display: grid; place-items: center; min-width: 30px; height: 30px; border-radius: 9px; }
.nv-app-editor { display: flex; flex-direction: column; gap: 10px; padding: 14px 16px; border-radius: 14px; border: 1px solid var(--a-line); background: var(--a-editor); color: var(--a-ink-2); font-size: 14.5px; line-height: 1.6; }
.nv-app-merge { padding: 1px 7px; border-radius: 6px; background: var(--a-merge); color: var(--a-merge-ink); font-size: 13.5px; font-weight: 500; }
.nv-app-merge.is-filled { background: none; padding: 0; color: var(--a-ink); font-size: inherit; }
.nv-app-link { display: inline-flex; align-items: center; gap: 6px; padding: 0; border: 0; background: none; color: var(--a-ink-2); font-size: 13.5px; font-weight: 600; cursor: pointer; }
.nv-app-link .ph { font-size: 16px; }

/* ---- Auto-reply (status strip from the history card, setup from the editor) ---- */
.nv-app-arstat { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 14px; border: 1px solid var(--a-line-2); }
.nv-app-arstat-txt { display: flex; flex-direction: column; gap: 2px; }
.nv-app-arstat-txt b { display: flex; align-items: center; gap: 7px; font-size: 12.5px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--a-ink-2); }
.nv-app-arstat-txt span { font-size: 12.5px; color: var(--a-ink-3); }
.nv-app-arstat-txt span em { margin-left: 4px; font-style: normal; font-size: 16px; font-weight: 700; color: var(--a-ink); }
.nv-app-steps { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 14px; }
.nv-app-step { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 600; color: var(--a-ink-4); }
.nv-app-step i { width: 16px; height: 16px; border-radius: 50%; border: 1.5px solid var(--a-ink-4); }
.nv-app-step.is-on { color: var(--a-ink); }
.nv-app-step.is-on i { border-color: var(--a-ink); background: var(--a-ink); box-shadow: 0 0 0 3px var(--a-line-2); }
.nv-app-cream { display: flex; flex-direction: column; gap: 3px; padding: 12px 14px; border-radius: 12px; background: var(--a-cream); color: var(--a-cream-ink); font-size: 14px; line-height: 1.5; }
.nv-app-cream b { font-size: 12px; font-weight: 600; color: var(--a-cream-ph); }
.nv-app-seg { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0,1fr); gap: 4px; padding: 4px; border-radius: 999px; border: 1px solid var(--a-line-2); background: var(--a-field); box-shadow: var(--a-field-sh); }
.nv-app-seg button { padding: 8px 6px; border: 0; border-radius: 999px; background: none; color: var(--a-ink-3); font-size: 13.5px; font-weight: 600; cursor: pointer; }
.nv-app-seg button.is-on { background: var(--a-btn); box-shadow: var(--a-btn-sh); color: var(--a-ink); }
.nv-app-rules { display: flex; flex-direction: column; gap: 10px; font-size: 14px; color: var(--a-ink-2); }
.nv-app-rules > div { display: flex; align-items: center; gap: 10px; min-width: 0; }
.nv-app-rules .ph { font-size: 17px; color: var(--a-green); }
.nv-app-tray { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; padding: 8px; border-radius: 999px; border: 1px solid var(--a-line-2); align-self: center; }
.nv-app-dim { transition: opacity .2s; }
.nv-app-dim.is-off { opacity: .45; }

/* ---- import (the search card's CSV view) ---- */
.nv-app-email { display: flex; align-items: center; height: 60px; padding: 0 20px; border-radius: 14px; border: 1px solid var(--a-line-2); background: #0e0e10; box-shadow: inset 3px 3px 8px rgba(0,0,0,.45), inset -2px -2px 6px rgba(255,255,255,.02); color: var(--a-ink-4); font-size: 18px; }
:root[data-theme="light"] .nv-app-email { background: #f3f5f8; box-shadow: var(--a-field-sh); }
.nv-app-drop { display: flex; flex-direction: column; align-items: center; gap: 12px; padding: 22px 18px; border-radius: 18px; border: 1.5px dashed var(--a-line-2); text-align: center; color: var(--a-ink-3); font-size: 14.5px; }

/* ---- extras for the How it works demos ---- */
.nv-app-src { cursor: default; }
button.nv-app-src { cursor: pointer; transition: box-shadow .18s, border-color .18s, background .18s, color .18s, opacity .18s; }
.nv-app-src.is-off { border-color: var(--a-line-2); background: var(--a-chip); box-shadow: none; color: var(--a-ink-4); }
.nv-app-who span.is-none { font-style: italic; color: var(--a-ink-4); }
.nv-app-status .is-unopened { color: var(--a-ink-4); }
.nv-app-status .is-failed { color: #ff8a8a; }
:root[data-theme="light"] .nv-app-status .is-failed { color: #c0392b; }
.nv-app-days { display: grid; grid-template-columns: repeat(7, minmax(0,1fr)); gap: 6px; }
.nv-app-days button { height: 38px; padding: 0; border-radius: 10px; border: 1px solid var(--a-line-2); background: transparent; color: var(--a-ink-4); font-size: 13px; font-weight: 650; cursor: pointer; }
.nv-app-days button.is-on { border-color: var(--a-btn-bd); background: var(--a-btn); box-shadow: var(--a-btn-sh); color: var(--a-ink); }
.nv-app-boxes { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 10px; }
.nv-app-box { display: flex; flex-direction: column; gap: 6px; padding: 12px 14px; border-radius: 12px; border: 1px solid var(--a-line-2); background: var(--a-input); }
.nv-app-box > span { font-size: 12.5px; color: var(--a-ink-3); }
.nv-app-box > b { font-size: 15px; font-weight: 650; color: var(--a-ink); font-variant-numeric: tabular-nums; }
.nv-app-stepper { display: flex; align-items: center; gap: 10px; }
.nv-app-stepper button { display: grid; place-items: center; width: 26px; height: 26px; padding: 0; border-radius: 50%; border: 1px solid var(--a-line-2); background: var(--a-btn); box-shadow: var(--a-btn-sh); color: var(--a-ink-2); font-size: 12px; cursor: pointer; }
.nv-app-drop { transition: border-color .2s, background .2s; }
.nv-app-drop.is-over { border-color: var(--a-glow-bd); background: rgba(150,185,255,.06); }
.nv-app-drop.is-done { border-color: var(--a-green-bd); background: var(--a-green-soft); }
.nv-app-drop-ico { display: grid; place-items: center; width: 52px; height: 52px; border-radius: 14px; background: var(--a-chip); box-shadow: var(--a-chip-sh); color: var(--a-ink-2); font-size: 26px; }
.nv-app-drop.is-done .nv-app-drop-ico { color: var(--a-green); }
.nv-app-drop b { font-size: 16px; font-weight: 650; color: var(--a-ink); }
.nv-app-gmail { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 14px; border: 1px solid var(--a-line-2); background: var(--a-input); }
.nv-app-gmail-ico { position: relative; display: grid; place-items: center; width: 42px; height: 42px; border-radius: 12px; background: var(--a-chip); box-shadow: var(--a-chip-sh); color: var(--a-ink-2); font-size: 20px; }
.nv-app-gmail-ico i.dot { position: absolute; right: -4px; bottom: -4px; width: 16px; height: 16px; border-radius: 50%; border: 2px solid var(--a-input); background: var(--a-ink-4); }
.nv-app-gmail-ico i.dot.is-on { background: var(--a-green); box-shadow: var(--a-green-glow); }

/* ---- spacing helpers inside a card ---- */
.nv-app-stack { display: flex; flex-direction: column; gap: 16px; }
.nv-app-between { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }

@container (max-width: 459.98px) {
  .nv-app-pad { padding: 18px; }
  .nv-app-pipe { grid-template-columns: minmax(0,1fr); gap: 8px; }
  .nv-app-conn { display: none; }
  .nv-app-outs { grid-template-columns: minmax(0,1fr); }
  .nv-app-row { grid-template-columns: 26px minmax(0,1fr) 32px; }
  .nv-app-row .nv-app-plat { display: none; }
  .nv-app-line { grid-template-columns: minmax(0,1fr) auto; }
  .nv-app-line > .nv-app-label { display: none; }
  .nv-app-fields { grid-template-columns: minmax(0,1fr); }
  /* Keep button rows on one line in a phone-width card. */
  .nv-app-foot { gap: 8px; padding: 12px 14px; }
  .nv-app-foot .nv-app-btn.is-pill { min-height: 40px; padding: 0 14px; font-size: 13.5px; }
  .nv-app-tray { gap: 5px; padding: 5px; }
  .nv-app-tray .nv-app-btn.is-pill { min-height: 38px; padding: 0 11px; font-size: 12.5px; }
  .nv-app-steps { gap: 6px 10px; }
  .nv-app-step { gap: 6px; font-size: 13px; }
  .nv-app-step i { width: 14px; height: 14px; }
  .nv-app-btns { gap: 8px; }
  .nv-app-btn { min-height: 48px; padding: 0 14px; font-size: 15px; }
  .nv-app-meter { min-width: 94px; padding: 12px 12px 11px; }
  .nv-app-meter.is-ar .nv-app-segs { width: 70px; }
}
@media (prefers-reduced-motion: reduce) {
  .nv-app-dot.is-live { animation: none; }
  .nv-app-switch > span, .nv-app-btn, .nv-app-dim { transition: none; }
  .nv-app-more span { animation: none; }
}
