@import url("https://fonts.googleapis.com/css2?family=Cinzel:wght@500;700&family=Source+Sans+3:wght@400;500;600;700&display=swap");

:root {
  --bg: #120c1c;
  --bg2: #1b1328;
  --card: #221833;
  --gold: #d4a853;
  --gold2: #f0d9a0;
  --ink: #f4ead4;
  --muted: #b7a88c;
  --line: rgba(212, 168, 83, 0.28);
}
* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; background: var(--bg); color: var(--ink);
  font-family: "Source Sans 3", sans-serif; }
html.nv-i18n-pending body { visibility: hidden; }
body {
  background: radial-gradient(900px 420px at 10% -8%, #3a2458 0%, transparent 52%),
              radial-gradient(700px 380px at 100% 0%, #2a1a12 0%, transparent 48%), var(--bg);
}
body.nv-shell {
  height: 100dvh;
  max-height: 100dvh;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  padding: 12px 12px calc(12px + 52px + env(safe-area-inset-bottom, 0px));
}
.nv-app { min-height: 0; flex: 1; display: flex; flex-direction: column;
  overflow: hidden; background: var(--card); border: 1px solid var(--line); border-radius: 16px; }
.nv-top { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center; gap: 8px; padding: 8px 12px;
  border-bottom: 1px solid var(--line); position: relative; z-index: 44; }
.nv-top-left { display: flex; align-items: center; gap: 8px; min-width: 0; justify-self: start; }
.nv-top-left > .nv-icon {
  width: 34px; min-width: 34px; height: 34px; padding: 0; flex-shrink: 0;
}
.nv-icon, .nv-home { background: transparent; border: 1px solid var(--line); color: var(--gold2);
  border-radius: 9px; padding: 5px 10px; cursor: pointer; text-decoration: none; font-size: 0.8rem;
  display: inline-flex; align-items: center; justify-content: center; }
.nv-top-right { display: flex; align-items: center; gap: 6px; justify-self: end; flex-shrink: 0; }
.nv-langs { display: flex; align-items: center; justify-content: center; gap: 6px; }
.nv-lang { display: inline-flex; align-items: center; justify-content: center;
  background: transparent; border: 1px solid transparent; border-radius: 6px;
  padding: 3px; cursor: pointer; line-height: 0; }
.nv-lang.on { border-color: var(--gold); }
.nv-lang:hover { border-color: var(--line); }
.nv-flag { width: 22px; height: 15px; border-radius: 2px; display: block; flex-shrink: 0;
  box-shadow: 0 0 0 1px rgba(255,255,255,.18); }
.nv-flag-lt { background: linear-gradient(to bottom, #fdb913 0 33.34%, #006a44 33.34% 66.67%, #c1272d 66.67% 100%); }
.nv-flag-ru { background: linear-gradient(to bottom, #fff 0 33.34%, #0039a6 33.34% 66.67%, #d52b1e 66.67% 100%); }
.nv-flag-pl { background: linear-gradient(to bottom, #fff 0 50%, #dc143c 50% 100%); }
.nv-flag-ua { background: linear-gradient(to bottom, #0057b7 0 50%, #ffd700 50% 100%); }
.nv-flag-en {
  background: #012169 url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 60 30'><rect width='60' height='30' fill='%23012169'/><path d='M0 0l60 30M60 0L0 30' stroke='%23fff' stroke-width='6'/><path d='M0 0l60 30M60 0L0 30' stroke='%23C8102E' stroke-width='2'/><path d='M30 0v30M0 15h60' stroke='%23fff' stroke-width='10'/><path d='M30 0v30M0 15h60' stroke='%23C8102E' stroke-width='6'/></svg>") center / 100% 100% no-repeat;
}
.nv-wa { width: 34px; height: 34px; display: grid; place-items: center; padding: 0;
  background: transparent; border: 1px solid var(--line); color: #9adf8a;
  border-radius: 9px; text-decoration: none; flex-shrink: 0; }
.nv-wa:hover { border-color: #9adf8a; }
.nv-cloud { width: 34px; height: 34px; display: grid; place-items: center; padding: 0;
  background: transparent; border: 1px solid var(--line); color: var(--gold2);
  border-radius: 9px; text-decoration: none; flex-shrink: 0; }
.nv-cloud:hover { border-color: var(--gold); color: var(--gold); }
.nv-profile-wrap { position: relative; }
.nv-profile { width: 34px; height: 34px; display: grid; place-items: center; padding: 0;
  background: var(--gold); border: 1px solid var(--gold); color: #1a1208;
  border-radius: 50%; cursor: pointer; text-decoration: none; }
.nv-profile:hover, .nv-profile[aria-expanded="true"] { filter: brightness(1.08); }
.nv-profile-menu { position: absolute; right: 0; top: calc(100% + 6px); width: min(300px, calc(100vw - 24px));
  background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 10px;
  z-index: 20; box-shadow: 0 12px 40px rgba(0,0,0,.35); }
.nv-profile.on { background: var(--gold); color: #1a1208; border-color: var(--gold); }
body.nv-auth-page > .nv-top {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 16px;
  margin-bottom: 10px;
  border-bottom: 1px solid var(--line);
}
.nv-top .nv-brand { min-width: 0; }
.nv-top .nv-brand strong { color: var(--gold); }
.nv-auth-form { display: grid; gap: 6px; }
.nv-auth-form[hidden] { display: none !important; }
.nv-auth-form label { display: grid; gap: 3px; color: var(--muted); font-size: 0.78rem; }
.nv-auth-form input, .nv-auth-form select, .nv-auth-form textarea { width: 100%; border-radius: 8px; border: 1px solid var(--line);
  background: var(--bg2); color: var(--ink); padding: 7px 9px; font: inherit; }
.nv-auth-form textarea { min-height: 64px; resize: vertical; }
.nv-auth-form input[type="checkbox"] {
  width: 18px; height: 18px; padding: 0; accent-color: var(--gold); cursor: pointer;
}
.nv-auth-form.compact { margin-bottom: 4px; }
.nv-auth-page { display: grid; place-items: start stretch; padding: 12px 12px calc(12px + 52px + env(safe-area-inset-bottom, 0px)); }
.nv-auth-card { width: 100%; background: var(--card); border: 1px solid var(--line);
  border-radius: 16px; padding: 14px; display: grid; gap: 8px; }
.nv-auth-card h1 {
  font-family: Cinzel, serif; margin: 0; color: var(--gold); text-align: center;
  text-transform: uppercase; letter-spacing: .08em; font-size: 1.45rem; font-weight: 700;
}
.nv-auth-card h2, .nv-mx h2 {
  font-family: Cinzel, serif; margin: 2px 0 0; color: var(--gold);
  text-transform: uppercase; letter-spacing: .08em; font-size: 0.82rem; font-weight: 700;
}
.nv-lead { color: var(--muted); margin: 0; line-height: 1.4; font-size: 0.9rem; }
.nv-auth-tabs { display: flex; flex-wrap: wrap; gap: 5px; }
.nv-auth-msg { color: var(--gold2); margin: 0; }
.nv-profile-link { display: block; width: 100%; text-align: center; text-decoration: none; border-radius: 999px;
  padding: 8px 12px; margin-top: 4px; font-weight: 600; font-size: 0.86rem; border: 0; cursor: pointer;
  background: var(--gold); color: #1a1208; font-family: inherit; }
.nv-profile-title { margin: 0 0 2px; font-family: Cinzel, serif; color: var(--gold); text-transform: uppercase; }
.nv-profile-note { margin: 0 0 8px; color: var(--muted); font-size: 0.8rem; line-height: 1.35; }
.nv-profile-field { display: grid; gap: 4px; color: var(--muted); font-size: 0.78rem; margin-bottom: 8px; }
.nv-profile-field input { width: 100%; border-radius: 8px; border: 1px solid var(--line);
  background: var(--bg2); color: var(--ink); padding: 7px 9px; font: inherit; }
.nv-profile-link.ghost { background: transparent; color: var(--gold2); border: 1px solid var(--line); }
.nv-brand { display: flex; align-items: center; gap: 8px; color: inherit; text-decoration: none; }
.nv-brand strong { font-family: Cinzel, serif; letter-spacing: .12em; text-transform: uppercase; font-size: 0.95rem; }
.nv-brand small { display: block; color: var(--muted); font-size: 0.72rem; }
.nv-mark { color: var(--gold); font-size: 1.15rem; line-height: 1; }
.nv-main { display: grid; grid-template-columns: 240px minmax(0, 1fr); flex: 1; min-height: 0; min-width: 0; position: relative; }
.nv-side {
  display: flex; flex-direction: column; min-height: 0;
  border-right: 1px solid var(--line); background: rgba(18,12,28,.72);
  padding: 10px; overflow: hidden;
}
.nv-side-h { display: flex; align-items: center; gap: 6px; flex-shrink: 0; }
.nv-side-h h1 {
  flex: 1; min-width: 0; font-size: 0.72rem; letter-spacing: .12em;
  text-transform: uppercase; color: var(--muted); margin: 0; white-space: nowrap;
}
.nv-side-close { display: none; width: 32px; height: 32px; padding: 0; font-size: 1.2rem; line-height: 1; flex-shrink: 0; }
.nv-side-new { width: 100%; margin: 8px 0 6px; flex-shrink: 0; }
.nv-thread-list { flex: 1; min-height: 0; overflow: auto; }
.nv-side-empty { color: var(--muted); font-size: 0.8rem; margin: 12px 4px; line-height: 1.4; }
.nv-side-user {
  flex-shrink: 0; margin-top: auto; padding-top: 10px;
  border-top: 1px solid var(--line); display: grid; gap: 8px;
}
.nv-side-guest-label { margin: 0; color: var(--muted); font-size: 0.72rem; letter-spacing: .06em; text-transform: uppercase; }
.nv-side-card {
  display: grid; grid-template-columns: 40px 1fr auto; gap: 8px; align-items: center;
  border: 1px solid var(--line); border-radius: 12px; padding: 8px;
  background: var(--bg2);
}
.nv-side-ava {
  width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center;
  background: linear-gradient(135deg, #d4a853, #5a3a18); color: #1a1208;
  font-weight: 700; font-size: 0.78rem; border: 1px solid var(--gold);
}
.nv-side-meta { min-width: 0; display: grid; gap: 2px; }
.nv-side-name-row { display: flex; align-items: center; gap: 6px; min-width: 0; }
.nv-side-name-row strong {
  min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
  font-size: 0.88rem; color: var(--ink);
}
.nv-side-lang {
  flex-shrink: 0; margin-left: auto; color: var(--muted); font-size: 0.68rem; font-weight: 700;
  display: inline-flex; align-items: center; gap: 4px;
}
.nv-side-lang i { width: 7px; height: 7px; border-radius: 50%; background: #6fdc6f; }
.nv-side-meta small {
  display: block; color: var(--muted); font-size: 0.68rem;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.nv-side-out-ico { width: 32px; height: 32px; padding: 0; display: grid; place-items: center; flex-shrink: 0; }
.nv-side-logout {
  width: 100%; background: transparent; color: var(--gold); border: 1px solid var(--line);
  border-radius: 12px; padding: 8px 12px; font-weight: 700; cursor: pointer; font: inherit;
}
.nv-side-logout:hover { border-color: var(--gold); }
.nv-side-backdrop { display: none; }
.nv-btn { background: var(--gold); color: #1a1208; border: 0; border-radius: 999px; padding: 5px 10px; font-weight: 700; cursor: pointer; }
.nv-thread {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: start;
  gap: 4px 6px;
  width: 100%;
  text-align: left;
  margin-top: 6px;
  padding: 8px 8px 8px 10px;
  background: var(--card);
  border: 1px solid transparent;
  border-radius: 10px;
  color: var(--ink);
}
.nv-thread.active { border-color: var(--gold); }
.nv-thread-main {
  display: grid;
  gap: 4px;
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
  text-align: left;
  cursor: pointer;
  font: inherit;
}
.nv-thread-title {
  display: block;
  font-weight: 650;
  font-size: .84rem;
  line-height: 1.3;
  color: #f3edf8;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.nv-thread-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 2px 8px;
}
.nv-thread-meta small {
  display: inline;
  color: #9a8fa4;
  font-size: .68rem;
  line-height: 1.3;
}
.nv-thread-edit {
  width: 28px;
  height: 28px;
  margin-top: 1px;
  padding: 0;
  border: 1px solid transparent;
  border-radius: 8px;
  background: transparent;
  color: #c9b27a;
  cursor: pointer;
  display: grid;
  place-items: center;
  flex: 0 0 28px;
}
.nv-thread-edit:hover,
.nv-thread-edit:focus-visible {
  border-color: rgba(226,184,95,.35);
  background: rgba(226,184,95,.1);
  color: #ead7a4;
}
.nv-thread-edit svg { width: 14px; height: 14px; display: block; }
.nv-thread-input {
  width: 100%;
  min-width: 0;
  border: 1px solid rgba(226,184,95,.45);
  border-radius: 8px;
  background: rgba(10,7,16,.55);
  color: #f3edf8;
  padding: 4px 7px;
  font: inherit;
  font-size: .82rem;
}
.nv-stage { display: flex; flex-direction: column; min-height: 0; min-width: 0; height: 100%; }
.nv-persona { display: flex; align-items: center; gap: 8px; padding: 7px 10px; border-bottom: 1px solid var(--line); flex-shrink: 0; }
.nv-avatar { width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center;
  background: linear-gradient(135deg, #d4a853, #7a4b12); color: #1a1208; font-weight: 700; }
.nv-persona strong { font-family: Cinzel, serif; letter-spacing: .04em; }
.nv-persona small { display: block; color: var(--muted); font-size: 0.74rem; }
.nv-ready { margin-left: auto; color: #9adf8a; font-size: 0.72rem; white-space: nowrap; }
.nv-ready i { display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: #6fdc6f; margin-right: 5px; }
.nv-themes { display: flex; flex-wrap: nowrap; gap: 6px; padding: 6px 10px; overflow-x: auto; flex-shrink: 0; }
.nv-themes::-webkit-scrollbar { height: 0; }
.nv-chip { border: 1px solid var(--line); background: transparent; color: var(--gold2);
  border-radius: 999px; padding: 4px 10px; cursor: pointer; font-size: 0.76rem; flex: 0 0 auto; }
.nv-chip.on { background: var(--gold); color: #1a1208; border-color: var(--gold); }
.nv-chat { flex: 1; overflow: auto; padding: 10px; display: flex; flex-direction: column; gap: 8px; min-height: 0; }
.nv-bubble { max-width: min(72ch, 92%); padding: 9px 12px; border-radius: 14px; line-height: 1.45; white-space: pre-wrap; text-align: left; }
.nv-bubble.assistant { align-self: flex-start; background: var(--card); border: 1px solid var(--line); }
.nv-bubble.user { align-self: flex-end; background: #3a2a18; }
.nv-bubble .who { display: block; font-size: 0.7rem; color: var(--gold); margin-bottom: 2px; }
.nv-composer { padding: 8px 10px; display: grid; gap: 6px; flex-shrink: 0;
  border-top: 1px solid var(--line); background: rgba(34, 24, 51, 0.92); min-width: 0; }
.nv-compose-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px; align-items: end; min-width: 0; width: 100%; }
.nv-composer textarea { width: 100%; min-width: 0; resize: vertical; min-height: 44px; max-height: 120px; border-radius: 12px;
  border: 1px solid var(--line); background: var(--bg2); color: var(--ink); padding: 9px 12px; font: inherit; margin: 0; }
.nv-compose-row .nv-send { justify-self: end; height: 44px; padding: 0 14px; align-self: end; white-space: nowrap; flex-shrink: 0; }
.nv-send { background: var(--gold); color: #1a1208; border: 0; border-radius: 999px;
  padding: 8px 18px; font-weight: 700; cursor: pointer; }
.nv-ctx { color: var(--muted); font-size: 0.8rem; }
.nv-ctx summary { cursor: pointer; color: var(--gold2); }
.nv-ctx-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; margin-top: 6px; }
.nv-ctx-grid label { display: grid; gap: 2px; font-size: 0.72rem; }
.nv-ctx input, .nv-ctx select { width: 100%; border-radius: 8px; border: 1px solid var(--line); background: var(--bg2); color: var(--ink); padding: 5px 7px; }
.nv-ctx select { min-height: 30px; }
.nv-toast { position: fixed; bottom: 78px; left: 50%; transform: translateX(-50%); background: #2c1f14;
  color: var(--gold2); padding: 8px 14px; border-radius: 10px; border: 1px solid var(--gold); z-index: 40; }
.nv-balance { text-decoration: none; color: #123; background: #9adf8a; border-radius: 999px; padding: 5px 10px;
  font-weight: 700; font-size: 0.8rem; white-space: nowrap; }
.nv-account-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.nv-account-tile { display: grid; gap: 3px; background: var(--bg2); border: 1px solid var(--line);
  border-radius: 12px; padding: 12px; color: inherit; text-decoration: none; min-height: 78px; }
.nv-account-tile:hover { border-color: var(--gold); }
.nv-account-tile strong { font-family: Cinzel, serif; color: var(--gold); text-transform: uppercase; letter-spacing: .04em; font-size: 0.88rem; }
.nv-account-tile small { color: var(--muted); }
.nv-wallet-big { font-size: 1.8rem; font-family: Cinzel, serif; color: var(--gold); }
.nv-wallet-section {
  display: grid; gap: 8px; padding: 12px 0 14px;
  border-bottom: 1px solid var(--line);
}
.nv-wallet-section:last-of-type { border-bottom: 0; }
.nv-wallet-ops { margin-top: 4px; }
.nv-tx { list-style: none; margin: 0; padding: 0; }
.nv-tx li { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; padding: 8px 0; border-bottom: 1px solid var(--line); font-size: 0.85rem; }
.nv-tx li:last-child { border-bottom: 0; }
.nv-tx small { display: block; color: var(--muted); font-size: 0.72rem; font-weight: 400; }
.nv-tx-amt.plus { color: #9adf8a; }
.nv-tx-amt.minus { color: var(--gold2); }
.nv-mc { border: 1px solid var(--line); border-radius: 12px; padding: 12px; margin-top: 6px; background: var(--bg2); }
.nv-mc-stats { margin: 0; color: var(--gold); font-family: Cinzel, serif; font-size: 1.05rem; }
.nv-mc-amount { display: grid; gap: 4px; color: var(--muted); font-size: 0.78rem; }
.nv-mc-amount input { width: 100%; border-radius: 8px; border: 1px solid var(--line); background: var(--bg); color: var(--ink); padding: 8px 10px; font: inherit; }
.nv-mc-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.nv-mc-chips button { background: transparent; color: var(--gold2); border: 1px solid var(--line); border-radius: 999px; padding: 4px 10px; cursor: pointer; font: inherit; font-size: 0.78rem; }
.nv-mc-chips button:hover { border-color: var(--gold); color: var(--gold); }
.nv-pkg { display: grid; gap: 6px; }
.nv-pkg button { background: var(--bg2); color: var(--ink); border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; cursor: pointer; text-align: left; font: inherit; }
.nv-pkg button:hover { border-color: var(--gold); }
.nv-pkg button strong { display: block; color: var(--gold); font-family: Cinzel, serif; letter-spacing: .04em; }
.nv-pkg button small { color: var(--muted); }
.nv-file-list, .nv-report-list { display: grid; gap: 8px; }
.nv-file-list a, .nv-report-list a { color: var(--gold2); text-decoration: none; border: 1px solid var(--line); border-radius: 10px; padding: 8px 10px; background: var(--bg2); }
.nv-vault-hint { margin: 0; color: var(--muted); font-size: 0.82rem; line-height: 1.45; }
.nv-vault-meta {
  display: grid; gap: 4px; padding: 8px 10px; border: 1px solid var(--line);
  border-radius: 10px; background: var(--bg2); font-size: 0.78rem; color: var(--muted);
}
.nv-vault-meta code { color: var(--gold2); font-size: 0.74rem; word-break: break-all; }
.nv-vault-card {
  display: grid; gap: 6px; border: 1px solid var(--line); border-radius: 12px;
  padding: 10px 12px; background: var(--bg2);
}
.nv-vault-card strong { color: var(--gold2); font-weight: 600; word-break: break-word; }
.nv-vault-card small { color: var(--muted); font-size: 0.75rem; }
.nv-vault-kind {
  display: inline-block; font-size: 0.68rem; letter-spacing: .04em; text-transform: uppercase;
  color: var(--gold); border: 1px solid var(--line); border-radius: 999px; padding: 2px 8px;
}
.nv-vault-actions { display: flex; flex-wrap: wrap; gap: 6px; }
.nv-vault-actions a { border-radius: 8px; padding: 5px 9px; font-size: 0.78rem; }
.nv-vault-empty { text-align: center; }
.nv-matrix-card { width: 100%; max-width: none; }
.nv-mx-hero {
  display: grid; gap: 8px; padding: 4px 0 12px;
  border-bottom: 1px solid var(--line); margin-bottom: 4px;
}
.nv-mx-hero .nv-brand-lock {
  justify-self: start;
  gap: 10px;
  align-items: center;
}
.nv-mx-hero .nv-brand-lock .nv-mark {
  font-size: 1.45rem;
  filter: drop-shadow(0 0 8px rgba(212,168,83,.45));
}
.nv-mx-hero .nv-brand-lock strong {
  color: #f4ead4;
  font-size: 1.35rem;
  letter-spacing: .16em;
  text-shadow: 1px 0 0 rgba(210, 70, 64, .42), -1px 0 0 rgba(70, 180, 210, .38);
}
.nv-mx-hero .nv-brand-lock small {
  margin-top: 1px;
  color: #c4a574;
  font-family: "Source Sans 3", sans-serif;
  font-size: .82rem;
  letter-spacing: .04em;
  text-transform: none;
}
.nv-mx-hero h1 {
  text-align: left; line-height: 1.15; font-size: 1.15rem;
}
.nv-mx-hero h1 em {
  display: block; margin-top: 6px; font-style: normal; font-weight: 500;
  font-size: .62em; color: var(--gold2); letter-spacing: .16em;
}
.nv-mx-hero .nv-lead {
  text-align: left; max-width: 58ch; justify-self: start;
}
.nv-mx-toolbar {
  display: flex; flex-wrap: wrap; gap: 8px 12px; align-items: center;
  margin-top: 4px;
}
.nv-mx-toolbar .nv-mx-meta { flex: 1 1 200px; margin: 0; }
.nv-mx-toolbar .nv-balance { justify-self: start; }
.nv-mx { display: grid; gap: 6px; }
[hidden] { display: none !important; }
.nv-mx-meta { color: var(--muted); margin: 0; font-size: 0.78rem; }
.nv-mx-actions { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.nv-sync-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.nv-sync-row {
  display: grid; grid-template-columns: minmax(11rem, auto) minmax(0, 1fr) auto;
  gap: 6px 12px; align-items: center; padding: 7px 2px;
  border-bottom: 1px solid rgba(212,168,83,.12);
}
.nv-sync-row time { color: var(--gold2); font-size: .8rem; font-weight: 650; white-space: nowrap; }
.nv-sync-row p { margin: 0; color: var(--muted); font-size: .74rem; }
.nv-sync-empty { color: var(--muted); font-size: .82rem; }
.nv-mx-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.nv-mx-panel { background: var(--bg2); border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px; }
.nv-mx-panel h3 { margin: 0 0 4px; font-family: Cinzel, serif; color: var(--gold); font-size: 0.78rem;
  text-transform: uppercase; letter-spacing: .06em; }
.nv-mx-panel p, .nv-mx-panel li { color: var(--ink); font-size: 0.86rem; line-height: 1.4; margin: 0 0 4px; }
.nv-mx-panel p:last-child, .nv-mx-panel li:last-child { margin-bottom: 0; }
.nv-mx-panel ul { margin: 0; padding-left: 16px; }
.nv-mx-panel a.nv-home { display: inline-block; margin-top: 4px; }
.nv-check { display: flex !important; flex-direction: row !important; align-items: center; gap: 8px; }
.nv-check span, .nv-auth-form .nv-check { color: var(--ink); font-size: 0.82rem; font-weight: 700; letter-spacing: .03em; }
.nv-appnav {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 35;
  display: grid; grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 2px; padding: 4px 4px calc(6px + env(safe-area-inset-bottom, 0px));
  background: rgba(18, 12, 28, 0.96);
  border-top: 1px solid var(--line);
  backdrop-filter: blur(10px);
}
.nv-appnav a {
  display: grid; justify-items: center; align-content: center; gap: 2px;
  min-width: 0; padding: 5px 2px 4px; border-radius: 10px;
  color: var(--muted); text-decoration: none; font-size: 0.6rem; line-height: 1.1;
  letter-spacing: 0.01em;
}
.nv-appnav a span { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.nv-appnav svg { width: 20px; height: 20px; display: block; }
.nv-appnav a.on { color: var(--gold); background: rgba(212, 168, 83, 0.16); }
.nv-appnav a:hover { color: var(--gold2); }
.nv-live { display: grid; gap: 12px; margin: 4px 0 8px; }
.nv-live-h { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.nv-live-h h2 { margin: 0; }
.nv-live-badge {
  display: inline-flex; align-items: center; gap: 6px;
  border: 1px solid rgba(157, 223, 138, .45); color: #9adf8a;
  border-radius: 999px; padding: 3px 9px; font-size: .68rem; letter-spacing: .08em; font-weight: 700;
}
.nv-live-badge::before {
  content: ""; width: 7px; height: 7px; border-radius: 50%; background: #6fdc6f;
  box-shadow: 0 0 8px #6fdc6f; animation: nv-live-pulse 1.6s ease-in-out infinite;
}
@keyframes nv-live-pulse { 50% { opacity: .35; } }
.nv-live-clock { display: grid; gap: 2px; padding: 8px 0 4px; }
.nv-live-clock strong {
  font-family: Cinzel, serif; font-size: clamp(1.6rem, 5vw, 2.4rem); color: var(--gold);
  letter-spacing: .04em; line-height: 1;
}
.nv-live-clock span { color: var(--gold2); font-size: .95rem; }
.nv-live-cals, .nv-live-metrics { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.nv-live-cals small { display: block; color: var(--muted); font-size: .72rem; }
.nv-live-bar { height: 6px; border-radius: 99px; background: rgba(212,168,83,.12); overflow: hidden; margin: 4px 0 8px; }
.nv-live-bar span { display: block; height: 100%; background: linear-gradient(90deg, #d4a853, #f0d9a0); }
.nv-live-bar-season span { background: linear-gradient(90deg, #7a4b12, #d4a853); }
.nv-live-layers { display: flex; flex-wrap: wrap; gap: 6px; }
.nv-live-layers .nv-chip { padding: 6px 14px; font-size: 0.78rem; letter-spacing: .03em; }
.nv-live-layers .nv-chip[data-locked] { cursor: default; }
.nv-wheel-plate {
  margin-top: 8px;
  padding: 10px 8px 6px;
  background: #0c0812;
  border: 1px solid rgba(212, 168, 83, .38);
  border-radius: 18px;
  box-shadow: inset 0 0 0 1px rgba(240, 217, 160, .06);
}
.nv-wheel-wrap { display: grid; place-items: center; padding: 0; }
.nv-wheel { width: min(640px, 100%); height: auto; display: block; }
.nv-live-legend {
  display: flex; flex-wrap: wrap; justify-content: center; gap: 12px 16px;
  color: var(--muted); font-size: .72rem; letter-spacing: .04em;
  padding: 8px 4px 2px; margin: 0;
}
.nv-live-legend i { display: inline-block; width: 9px; height: 9px; border-radius: 50%; margin-right: 4px; vertical-align: -1px; }
.nv-decode {
  margin-top: 16px; padding: 8px 12px 10px;
  background: var(--bg2); border: 1px solid var(--line); border-radius: 14px;
}
.nv-decode > summary {
  cursor: pointer; list-style: none;
  font-family: Cinzel, serif; color: var(--gold); font-size: 0.95rem; letter-spacing: .06em;
  display: flex; align-items: center; justify-content: space-between; gap: 8px;
  padding: 4px 0;
}
.nv-decode > summary::-webkit-details-marker { display: none; }
.nv-decode > summary::after {
  content: "+"; font-family: "Source Sans 3", sans-serif; font-size: 1.15rem;
  color: var(--gold2); font-weight: 700; line-height: 1;
}
.nv-decode[open] > summary::after { content: "−"; }
.nv-decode-body { display: grid; gap: 10px; margin-top: 8px; }
.nv-decode > h3 {
  margin: 0; font-family: Cinzel, serif; color: var(--gold); font-size: 0.95rem; letter-spacing: .06em;
}
.nv-decode-h {
  margin: 8px 0 0; font-family: Cinzel, serif; color: var(--gold); font-size: 0.72rem;
  letter-spacing: .12em; text-transform: uppercase;
}
.nv-decode-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; }
.nv-decode-grid.signs { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.nv-decode-item {
  display: grid; grid-template-columns: 1.7em 1fr; gap: 8px; align-items: center;
  background: var(--bg2); border: 1px solid var(--line); border-radius: 10px; padding: 7px 9px;
}
.nv-decode-item .g { font-size: 1.2rem; text-align: center; line-height: 1; }
.nv-decode-item strong { display: block; font-size: 0.82rem; color: var(--ink); font-weight: 600; }
.nv-decode-item small { display: block; color: var(--muted); font-size: 0.72rem; line-height: 1.3; }
.nv-decode-note {
  margin: 0; color: var(--muted); font-size: 0.78rem; line-height: 1.45;
}
.nv-decode-note b { color: var(--gold2); font-weight: 600; }
.nv-facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin-top: 12px; }
.nv-fact-row {
  display: grid; grid-template-columns: 1.4em 1fr auto; gap: 8px; align-items: center;
  padding: 7px 2px; border-bottom: 1px solid rgba(212,168,83,.12);
}
.nv-fact-row:last-child { border-bottom: 0; }
.nv-fact-ico { color: var(--gold); font-size: 0.95rem; text-align: center; }
.nv-fact-label { color: var(--muted); font-size: 0.78rem; }
.nv-fact-val { color: var(--ink); font-size: 0.84rem; font-weight: 600; text-align: right; }
.nv-houses-cols { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2px 12px; margin-top: 6px; }
.nv-house-line {
  display: grid; grid-template-columns: 1.4em auto 1fr; gap: 6px; align-items: baseline;
  padding: 5px 0; border-bottom: 1px solid rgba(212,168,83,.10); font-size: 0.82rem;
}
.nv-house-line small { grid-column: 2 / -1; color: var(--muted); font-size: 0.68rem; }
.nv-house-num { color: var(--gold); font-weight: 700; font-variant-numeric: tabular-nums; }
.nv-house-line em { color: var(--gold2); font-style: normal; font-size: 0.68rem; letter-spacing: .08em; font-weight: 700; }
.nv-house-pos { color: var(--ink); }
.nv-core-calc {
  margin: 8px 0 10px; padding: 16px 14px 14px;
  background: linear-gradient(180deg, #2a1c12 0%, #160e1c 100%);
  border: 1px solid rgba(212,168,83,.45); border-radius: 16px;
  box-shadow: inset 0 0 0 1px rgba(240,217,160,.06);
}
.nv-core-calc-h { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 6px; }
.nv-core-calc-h span:first-child {
  font-family: Cinzel, serif; color: var(--gold); font-size: .72rem;
  letter-spacing: .14em; text-transform: uppercase;
}
.nv-core-calc strong {
  display: block; font-family: Cinzel, serif; font-size: clamp(1.8rem, 6vw, 2.6rem);
  color: var(--gold); letter-spacing: .04em; line-height: 1.05; margin: 4px 0 2px;
}
.nv-core-calc > p { margin: 0 0 4px; color: var(--gold2); }
.nv-core-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.nv-core-stat {
  font-family: Cinzel, serif; font-size: 1.8rem; color: var(--gold); line-height: 1; margin: 6px 0 2px;
}
.nv-core-stat-2 { color: var(--gold2); }
.nv-core-mini { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; margin: 8px 0; }
.nv-core-mini span {
  background: rgba(18,12,28,.55); border: 1px solid var(--line); border-radius: 10px;
  padding: 6px 7px; color: var(--muted); font-size: .68rem;
}
.nv-core-mini b { display: block; color: var(--ink); font-size: .9rem; font-weight: 700; }
.nv-field { margin-top: 8px; }
.nv-field-kicker {
  margin: 0 0 4px; color: var(--gold); font-size: .72rem; letter-spacing: .14em;
  text-transform: uppercase; font-family: Cinzel, serif;
}
.nv-field .nv-mx-meta strong { color: var(--gold2); }
.nv-field-box {
  margin: 10px 0; padding: 12px 12px 8px;
  background: #160e1c; border: 1px solid var(--line); border-radius: 16px;
}
.nv-field-box-h { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 8px; }
.nv-field-box-h h3 {
  margin: 0; font-family: Cinzel, serif; color: var(--gold); font-size: .78rem;
  letter-spacing: .06em; text-transform: uppercase;
}
.nv-field-row {
  display: grid; grid-template-columns: 1fr auto; gap: 4px 10px; align-items: end;
  padding: 10px 2px 8px; border-top: 1px solid rgba(212,168,83,.12);
}
.nv-field-row strong { display: block; font-size: .88rem; color: var(--ink); }
.nv-field-row small { display: block; color: var(--muted); font-size: .72rem; }
.nv-field-row > b { font-family: Cinzel, serif; font-size: 1.35rem; color: var(--gold); line-height: 1; }
.nv-field-row .nv-live-bar { grid-column: 1 / -1; margin: 4px 0 0; }
.nv-field-sum {
  margin-top: 8px; padding: 18px 14px; text-align: center;
  background: linear-gradient(180deg, #2a1c12 0%, #160e1c 100%);
  border: 1px solid rgba(212,168,83,.42); border-radius: 16px;
}
.nv-field-sum strong {
  display: block; font-family: Cinzel, serif; font-size: clamp(1.8rem, 6vw, 2.6rem);
  color: var(--gold); letter-spacing: .04em;
}
.nv-field-sum > p { margin: 4px 0 0; color: var(--gold2); }
.nv-birth-hero { display: grid; gap: 2px; padding: 4px 0 2px; }
.nv-birth-hero strong {
  font-family: Cinzel, serif; color: var(--gold); font-size: 1.35rem; letter-spacing: .04em;
}
.nv-birth-hero span { color: var(--muted); font-size: .82rem; }
.nv-birth-hero p { margin: 2px 0 0; color: var(--gold2); font-size: .86rem; }
.nv-birth-grid, .nv-cals-4 {
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px;
}
.nv-birth-grid .nv-mx-panel h3, .nv-cals-4 .nv-mx-panel h3 { font-size: .68rem; }
.nv-agrid-badges, .nv-agrid-legend { display: flex; flex-wrap: wrap; gap: 6px; margin: 4px 0 8px; }
.nv-agrid-pill {
  border: 1px solid var(--line); border-radius: 999px; padding: 3px 9px;
  color: var(--gold2); font-size: .72rem;
}
.nv-agrid { overflow-x: auto; margin: 4px 0 8px; }
.nv-agrid-table {
  display: grid; grid-template-columns: 1.7em repeat(10, minmax(1.55em, 1fr));
  gap: 3px; min-width: 340px;
}
.nv-agrid-h, .nv-agrid-p {
  display: grid; place-items: center; color: var(--gold); font-size: .95rem; height: 1.85em;
}
.nv-agrid-cell {
  display: grid; place-items: center; min-height: 1.85em; border-radius: 7px; font-size: .9rem;
  border: 1px solid transparent; background: transparent;
}
.nv-agrid-cell.on {
  border-color: currentColor; background: color-mix(in srgb, currentColor 16%, transparent);
}
.nv-agrid-cell.dim { opacity: .18; }
.nv-agrid-blank, .nv-agrid-empty { border: 0; }
.nv-agrid-leg {
  border: 1px solid color-mix(in srgb, var(--ak, var(--line)) 55%, transparent);
  background: transparent; color: var(--ak, var(--gold2));
  border-radius: 999px; padding: 4px 10px; font-size: .74rem; cursor: pointer;
}
.nv-agrid-leg.on { background: color-mix(in srgb, var(--ak) 18%, transparent); }
.nv-synth {
  display: grid; gap: 10px; margin-top: 4px; padding: 12px 14px;
  background: var(--bg2); border: 1px solid var(--line); border-radius: 14px;
}
.nv-synth-text { margin: 0; color: var(--ink); font-size: .92rem; line-height: 1.5; }
.nv-synth-q {
  margin: 0; color: var(--gold2); font-size: .86rem; line-height: 1.45; font-style: italic;
}
.nv-synth-src { margin: 2px 0 0; color: var(--muted); font-size: .72rem; }
.nv-live-pills { display: flex; flex-wrap: wrap; gap: 6px; }
.nv-live-pills span {
  border: 1px solid var(--line); border-radius: 999px; padding: 5px 11px;
  color: var(--gold2); font-size: .74rem; white-space: nowrap; line-height: 1.3;
}
.nv-live-status { color: var(--muted); margin: 0; }
.nv-daily { margin-top: 10px; padding-top: 4px; }
.nv-daily-board { display: grid; gap: 10px; }
.nv-daily-planets { display: flex; flex-wrap: wrap; gap: 6px; }
.nv-daily-planets span {
  border: 1px solid var(--line); border-radius: 999px; padding: 4px 9px;
  color: var(--gold2); font-size: .74rem;
}
.nv-daily-quote {
  margin: 0; color: var(--ink); font-size: .92rem; line-height: 1.45;
}
.nv-daily-quote em { font-style: normal; color: var(--gold); font-family: Cinzel, serif; }
.nv-daily details {
  border: 1px solid var(--line); border-radius: 12px; padding: 8px 12px; background: var(--bg2);
}
.nv-daily summary {
  cursor: pointer; color: var(--gold); font-size: .78rem; letter-spacing: .04em; font-weight: 700;
}
.nv-daily-md { color: var(--ink); font-size: .84rem; line-height: 1.5; }
.nv-daily-md h3, .nv-daily-md h4 {
  font-family: Cinzel, serif; color: var(--gold); font-size: .82rem; letter-spacing: .04em; margin: 14px 0 6px;
}
.nv-daily-md p { margin: 0 0 8px; }
.nv-daily-md ul, .nv-daily-md ol { margin: 0 0 8px; padding-left: 18px; }
.nv-daily-md strong { color: var(--gold2); font-weight: 600; }
.nv-yc-step {
  display: inline-grid; place-items: center;
  min-width: 1.6em; height: 1.6em; margin-right: 8px;
  border: 1px solid var(--line); border-radius: 6px;
  font-family: "Source Sans 3", sans-serif; font-size: .68rem; letter-spacing: .04em;
  color: var(--gold2); vertical-align: 1px;
}
.nv-yc-badge { border-color: rgba(212,168,83,.45); color: var(--gold2); }
.nv-yc-badge::before { background: var(--gold); box-shadow: 0 0 8px var(--gold); animation: none; }
.nv-yc-hero {
  display: grid; grid-template-columns: auto 1fr; gap: 16px; align-items: center;
  padding: 8px 0 4px;
}
.nv-yc-year {
  width: 96px; height: 96px; border-radius: 50%;
  display: grid; place-items: center; text-align: center; position: relative;
  background: conic-gradient(var(--gold) calc(var(--pct, 0) * 1%), rgba(212,168,83,.14) 0);
}
.nv-yc-year::before {
  content: ""; position: absolute; inset: 8px; border-radius: 50%; background: var(--card);
}
.nv-yc-year strong, .nv-yc-year span { position: relative; z-index: 1; }
.nv-yc-year strong {
  font-family: Cinzel, serif; font-size: 1.35rem; color: var(--gold); line-height: 1;
}
.nv-yc-year span { display: block; color: var(--muted); font-size: .62rem; letter-spacing: .08em; text-transform: uppercase; }
.nv-yc-title {
  font-family: Cinzel, serif; color: var(--gold); font-size: 1.05rem; letter-spacing: .04em;
}
.nv-yc-sum { margin: 4px 0 8px; color: var(--ink); font-size: .9rem; line-height: 1.45; }
.nv-yc-indices {
  display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 8px; margin: 8px 0 4px;
}
.nv-yc-index { display: grid; justify-items: center; gap: 4px; }
.nv-yc-gauge {
  width: 58px; height: 58px; border-radius: 50%;
  background: conic-gradient(#c9a24a calc(var(--pct) * 1%), rgba(212,168,83,.12) 0);
  display: grid; place-items: center;
}
.nv-yc-gauge span {
  width: 44px; height: 44px; border-radius: 50%; background: var(--card);
  display: grid; place-items: center; color: var(--gold2); font-weight: 700; font-size: .82rem;
}
.nv-yc-index small { color: var(--muted); font-size: .68rem; text-align: center; letter-spacing: .02em; }
.nv-yc-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 8px; }
.nv-yc-card {
  background: var(--bg2); border: 1px solid var(--line); border-radius: 14px; padding: 10px 12px;
}
.nv-yc-card h3 {
  margin: 0 0 8px; font-family: Cinzel, serif; color: var(--gold);
  font-size: .78rem; letter-spacing: .08em; text-transform: uppercase;
}
.nv-yc-text { margin: 0 0 8px; color: var(--ink); font-size: .86rem; line-height: 1.45; }
.nv-yc-hint {
  margin: 0 0 6px; color: #9adf8a; font-size: .8rem; line-height: 1.35;
}
.nv-yc-hint.warn { color: #e8a090; }
.nv-yc-house {
  display: grid; grid-template-columns: 32px 1fr; gap: 8px; align-items: start; margin: 0 0 8px;
}
.nv-yc-house b {
  width: 28px; height: 28px; border-radius: 50%; border: 1px solid var(--line);
  display: grid; place-items: center; color: var(--gold); font-size: .78rem;
}
.nv-yc-house p { margin: 0; color: var(--ink); font-size: .82rem; line-height: 1.35; }
.nv-yc-house small { display: block; color: var(--muted); font-size: .72rem; }
.nv-yc-hbar { height: 4px; border-radius: 99px; background: rgba(212,168,83,.12); overflow: hidden; margin: 4px 0; }
.nv-yc-hbar span { display: block; height: 100%; background: linear-gradient(90deg, #d4a853, #f0d9a0); }
.nv-live-pills [data-kind="conj"] { border-color: rgba(212,168,83,.55); color: #f0d9a0; }
.nv-live-pills [data-kind="tri"], .nv-live-pills [data-kind="sext"] { border-color: rgba(138,163,199,.55); color: #c5d4ea; }
.nv-live-pills [data-kind="sq"], .nv-live-pills [data-kind="opp"] { border-color: rgba(196,122,58,.6); color: #f0c4a0; }
.nv-yc-quarters {
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; margin: 6px 0 10px;
}
.nv-yc-q {
  background: var(--bg2); border: 1px solid var(--line); border-radius: 12px; padding: 8px 10px;
}
.nv-yc-q-h { display: flex; justify-content: space-between; gap: 6px; align-items: baseline; }
.nv-yc-q-h strong { color: var(--gold); font-size: .78rem; letter-spacing: .04em; }
.nv-yc-q-h span { color: var(--gold2); font-size: .78rem; font-weight: 700; }
.nv-yc-q small { display: block; color: var(--muted); font-size: .7rem; margin: 4px 0; }
.nv-yc-q p { margin: 0; color: var(--ink); font-size: .8rem; line-height: 1.35; }
.nv-num-strip { display: flex; flex-wrap: wrap; gap: 10px; margin: 6px 0; }
.nv-num-group { display: grid; gap: 6px; }
.nv-num-group span.label { color: var(--muted); font-size: .68rem; letter-spacing: .08em; text-transform: uppercase; }
.nv-num-digits { display: flex; flex-wrap: wrap; gap: 4px; }
.nv-num-digit {
  min-width: 28px; height: 28px; padding: 0 6px; border-radius: 8px;
  display: grid; place-items: center; font-weight: 700; font-size: .82rem;
  border: 1px solid var(--line); color: var(--gold2);
}
.nv-num-digit.active { background: rgba(212,168,83,.16); color: var(--gold); }
.nv-num-digit.gap { opacity: .55; }
.nv-num-digit.master { border-color: rgba(180,140,220,.55); color: #d9c4f0; background: rgba(140,90,200,.14); }
.nv-num-axes { display: grid; gap: 8px; }
.nv-num-axis {
  display: grid; grid-template-columns: 42px 1fr; gap: 8px; align-items: start;
}
.nv-num-axis strong {
  font-family: Cinzel, serif; font-size: 1.2rem; color: var(--gold); line-height: 1;
}
.nv-num-axis b { display: block; color: var(--gold2); font-size: .78rem; font-weight: 600; }
.nv-num-axis p { margin: 2px 0 0; color: var(--ink); font-size: .8rem; line-height: 1.35; }
.nv-num-axis small { display: block; color: #e8a090; font-size: .74rem; }
.nv-num-py { display: grid; gap: 6px; }
.nv-num-py .nv-num-py-n {
  font-family: Cinzel, serif; font-size: 2rem; color: var(--gold); line-height: 1;
}
.nv-num-themes { margin: 0; padding-left: 16px; color: var(--ink); font-size: .82rem; line-height: 1.4; }
@media (max-width: 860px) {
  .nv-mx-grid, .nv-account-grid, .nv-live-cals, .nv-live-metrics, .nv-facts, .nv-core-grid, .nv-birth-grid, .nv-cals-4, .nv-yc-layout, .nv-yc-quarters { grid-template-columns: 1fr 1fr; }
  .nv-yc-hero, .nv-yc-indices { grid-template-columns: 1fr 1fr; }
  .nv-decode-grid, .nv-decode-grid.signs, .nv-houses-cols { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .nv-main { grid-template-columns: minmax(0, 1fr); }
  .nv-top { z-index: 44; grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "left right" "langs langs"; }
  .nv-top-left { grid-area: left; }
  .nv-top-right { grid-area: right; }
  .nv-langs { grid-area: langs; justify-content: center; padding-top: 2px; }
  .nv-side-backdrop {
    display: block; position: fixed; inset: 0; z-index: 41;
    background: rgba(8, 4, 14, .55); opacity: 0; pointer-events: none;
    transition: opacity .2s ease;
  }
  .nv-side-backdrop.on { opacity: 1; pointer-events: auto; }
  .nv-side {
    display: flex; flex-direction: column;
    position: fixed; top: 0; left: 0; bottom: 0;
    width: min(304px, 88vw); max-height: none;
    z-index: 42; padding: 58px 10px calc(12px + env(safe-area-inset-bottom, 0px));
    background: var(--card);
    border-right: 1px solid var(--line); border-bottom: 0;
    transform: translateX(-105%);
    transition: transform .22s ease;
    box-shadow: 12px 0 40px rgba(0,0,0,.35);
    overflow: hidden;
  }
  .nv-side.open { transform: translateX(0); }
  .nv-side-close { display: grid; place-items: center; }
  .nv-thread-list { flex: 1; overflow: auto; }
  .nv-ctx-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .nv-persona small { display: none; }
}
@media (max-width: 560px) {
  .nv-yc-hero, .nv-yc-layout, .nv-yc-quarters, .nv-yc-indices { grid-template-columns: 1fr; }
  .nv-yc-year { justify-self: start; }
  .nv-top .nv-brand small { display: none; }
}
.nv-rtp .nv-yc-year strong { font-size: 1.15rem; }
#mxLayers[hidden], #mxLive[hidden] { display: none; }

body.nv-bill-page {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: #efe6d4;
}
body.nv-bill-page .nv-appnav { display: none; }
body.nv-bill-page > .nv-top {
  flex-shrink: 0;
  background: #120c1c;
  border: 0;
  border-bottom: 1px solid rgba(212,168,83,.28);
  border-radius: 0;
  margin: 0;
  padding: 8px 18px;
}
body.nv-bill-page > .nv-top .nv-icon { display: none; }
body.nv-bill-page > .nv-top .nv-flag {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background-size: cover;
}
.nv-bill {
  flex: 1;
  width: min(1240px, calc(100% - 28px));
  margin: 16px auto 24px;
  display: grid;
  grid-template-columns: minmax(300px, 1.02fr) minmax(320px, .98fr);
  gap: 18px;
  align-items: stretch;
}
.nv-bill-left {
  position: relative;
  isolation: isolate;
  color: #f4ead6;
  min-height: 640px;
  padding: 22px 20px 18px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  border-radius: 22px;
  overflow: hidden;
  box-shadow: 0 18px 50px rgba(18,12,28,.28);
  background: #120c1c url("../astrocore_hero_bg.jpg") 68% 22% / cover no-repeat;
}
.nv-bill-left::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(90deg, rgba(18,12,28,.62) 0%, rgba(18,12,28,.28) 42%, rgba(18,12,28,.08) 100%),
    linear-gradient(180deg, rgba(18,12,28,.18) 0%, rgba(12,8,18,.55) 100%);
}
.nv-bill-glass {
  max-width: 34rem;
  padding: 8px 4px 4px;
}
.nv-bill-kicker {
  margin: 0 0 8px;
  color: #e2b85f;
  font-size: 0.68rem;
  letter-spacing: .18em;
  text-transform: uppercase;
  font-weight: 600;
}
.nv-bill-left h1 {
  margin: 0;
  font-family: Cinzel, serif;
  font-size: clamp(1.55rem, 2.6vw, 2.35rem);
  font-weight: 700;
  color: #e2b85f;
  letter-spacing: .02em;
  line-height: 1.15;
  text-shadow: 0 8px 28px rgba(0,0,0,.35);
}
.nv-bill-amount {
  margin: 14px 0 10px;
  font-family: Cinzel, serif;
  font-size: clamp(2.4rem, 4.2vw, 3.35rem);
  color: #e2b85f;
  letter-spacing: .02em;
  font-weight: 700;
  text-shadow: 0 10px 30px rgba(0,0,0,.28);
}
.nv-bill-meta {
  margin: 4px 0 0;
  display: grid;
  gap: 0;
}
.nv-bill-meta div {
  border-top: 1px solid rgba(226,184,95,.32);
  padding: 11px 0 10px;
}
.nv-bill-meta dt {
  font-size: 0.64rem;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: #e2b85f;
  margin: 0 0 4px;
}
.nv-bill-meta dd {
  margin: 0;
  font-size: 1.02rem;
  color: #f7f1e4;
  word-break: break-word;
}
.nv-bill-back {
  margin-top: auto;
  color: rgba(247,241,228,.8);
  text-decoration: none;
  font-size: 0.8rem;
  border-bottom: 1px solid rgba(226,184,95,.35);
  width: max-content;
}
.nv-bill-back:hover { color: #e2b85f; }
.nv-bill-right {
  background: transparent;
  color: #1a1208;
  padding: 6px 2px 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.nv-bill-right-k {
  margin: 4px 2px 0;
  font-family: Cinzel, serif;
  color: #8a6a2a;
  letter-spacing: .16em;
  text-transform: uppercase;
  font-size: 0.72rem;
}
.nv-bill-sum {
  display: grid;
  grid-template-columns: 28px 1fr;
  gap: 2px 10px;
  align-items: center;
  background: #1a1228;
  color: #f4ead6;
  border: 1px solid rgba(226,184,95,.28);
  border-radius: 16px;
  padding: 16px 18px;
  box-shadow: 0 12px 28px rgba(18,12,28,.16);
}
.nv-bill-star {
  grid-row: 1 / span 2;
  color: #e2b85f;
  font-size: 1.15rem;
  line-height: 1;
}
.nv-bill-sum-amt {
  margin: 0;
  font-family: Cinzel, serif;
  font-size: 1.55rem;
  color: #e2b85f;
  letter-spacing: .03em;
}
.nv-bill-sum-line {
  margin: 0;
  color: #cbbba0;
  font-size: 0.78rem;
  line-height: 1.35;
}
.nv-bill-right .nv-lead { color: #6b6052; }
.nv-bill-paycard {
  background: #fff;
  border-radius: 18px;
  padding: 8px 10px 14px;
  box-shadow: 0 16px 40px rgba(40,24,12,.08);
  min-height: 360px;
}
.nv-bill-right #nvStripeMount { min-height: 320px; }
@media (max-width: 920px) {
  .nv-bill { grid-template-columns: 1fr; width: min(720px, calc(100% - 20px)); }
  .nv-bill-left {
    min-height: 520px;
    background-position: 70% 18%;
  }
  .nv-bill-amount { font-size: 2.2rem; }
}

.nv-adm { gap: 12px; }
.nv-adm-panel {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 16px 18px 18px;
}
.nv-adm-panel[hidden] { display: none !important; }
.nv-adm-panel h2 { margin-top: 18px; }
.nv-adm-kpis {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 10px;
}
.nv-adm-kpi {
  background: var(--bg2);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 12px 14px;
}
.nv-adm-kpi small {
  display: block;
  color: var(--muted);
  letter-spacing: .12em;
  text-transform: uppercase;
  font-size: 0.64rem;
  margin-bottom: 4px;
}
.nv-adm-kpi strong {
  font-family: Cinzel, serif;
  color: var(--gold);
  font-size: 1.25rem;
}
.nv-adm-search {
  display: flex;
  gap: 8px;
  margin-bottom: 10px;
}
.nv-adm-search input {
  flex: 1;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: var(--bg2);
  color: var(--ink);
  padding: 8px 10px;
  font: inherit;
}
.nv-adm-table-wrap { overflow: auto; }
.nv-adm-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.84rem;
}
.nv-adm-table th {
  text-align: left;
  color: var(--gold);
  font-size: 0.68rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  padding: 8px 8px 8px 0;
  border-bottom: 1px solid var(--line);
}
.nv-adm-table td {
  padding: 8px 8px 8px 0;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}
.nv-adm-table button {
  background: transparent;
  color: var(--gold2);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 3px 8px;
  cursor: pointer;
  font: inherit;
  font-size: 0.75rem;
}
.nv-adm-ok { color: #9adf8a; }
.nv-adm-wait { color: var(--gold2); }
