/*!
 * Namma Payaṇa — "Canopy & Marigold — Neon" design system
 * Bootstrap 5.3 theme layer: glass surfaces, aurora backdrop, neon route accents.
 * Developed & Powered by Marian Anbu Juwan.
 */

/* ---------- Fonts (self-hosted) ---------- */
@font-face { font-family: "Space Grotesk"; font-weight: 500; font-display: swap; src: url("../fonts/space-grotesk-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "Space Grotesk"; font-weight: 600; font-display: swap; src: url("../fonts/space-grotesk-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "Space Grotesk"; font-weight: 700; font-display: swap; src: url("../fonts/space-grotesk-latin-700-normal.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-weight: 400; font-display: swap; src: url("../fonts/inter-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-weight: 500; font-display: swap; src: url("../fonts/inter-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-weight: 600; font-display: swap; src: url("../fonts/inter-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-weight: 700; font-display: swap; src: url("../fonts/inter-latin-700-normal.woff2") format("woff2"); }

/* ---------- Tokens ---------- */
:root {
  --np-cyan: #22c55e;
  --np-indigo: #84cc16;
  --np-violet: #facc15;
  --np-pink: #f59e0b;
  --np-lime: #a3e635;
  --np-amber: #fbbf24;
  --np-red: #fb7185;
  --np-grad: linear-gradient(135deg, #16a34a 0%, #84cc16 55%, #facc15 100%);
  --np-grad-soft: linear-gradient(135deg, rgba(34,197,94,.16), rgba(132,204,22,.13) 50%, rgba(250,204,21,.12));
  --np-radius: 1.1rem;
  --np-radius-sm: .7rem;
  --np-font-display: "Space Grotesk", "Inter", system-ui, sans-serif;
  --np-font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --np-sidebar: 264px;
  --np-ease: cubic-bezier(.2,.8,.2,1);
}

[data-bs-theme="dark"] {
  --np-bg: #03100a;
  --np-bg-2: #071a11;
  --np-surface: rgba(255,255,255,.035);
  --np-surface-2: rgba(255,255,255,.06);
  --np-surface-solid: #0a1d14;
  --np-border: rgba(148,163,184,.14);
  --np-border-strong: rgba(148,163,184,.26);
  --np-text: #e8f3ec;
  --np-muted: #8fa89a;
  --np-glow: 0 0 0 1px rgba(34,197,94,.25), 0 10px 40px -10px rgba(34,197,94,.35);
  --np-shadow: 0 20px 50px -20px rgba(0,0,0,.65);
  --bs-body-bg: var(--np-bg);
  --bs-body-color: var(--np-text);
  --bs-secondary-color: var(--np-muted);
  --bs-border-color: var(--np-border);
  --bs-tertiary-bg: var(--np-surface-2);
  --bs-emphasis-color: #fff;
  --bs-link-color: var(--np-cyan);
  --bs-link-hover-color: #86efac;
  --bs-link-color-rgb: 34,197,94;
  --bs-dropdown-bg: #0a1d14;
}

[data-bs-theme="light"] {
  --np-bg: #f4f8f3;
  --np-bg-2: #e8f1e6;
  --np-surface: rgba(255,255,255,.72);
  --np-surface-2: rgba(255,255,255,.92);
  --np-surface-solid: #ffffff;
  --np-border: rgba(15,23,42,.08);
  --np-border-strong: rgba(15,23,42,.16);
  --np-text: #10241a;
  --np-muted: #5d6f64;
  --np-glow: 0 0 0 1px rgba(21,128,61,.25), 0 10px 30px -12px rgba(21,128,61,.35);
  --np-shadow: 0 18px 40px -22px rgba(15,23,42,.25);
  --np-cyan: #15803d;
  --np-violet: #ca8a04;
  --bs-body-bg: var(--np-bg);
  --bs-body-color: var(--np-text);
  --bs-secondary-color: var(--np-muted);
  --bs-border-color: var(--np-border);
  --bs-link-color: #15803d;
  --bs-link-color-rgb: 21,128,61;
}

/* ---------- Base ---------- */
html { scroll-behavior: smooth; }
body {
  font-family: var(--np-font);
  background: var(--np-bg);
  color: var(--np-text);
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  font-feature-settings: "cv11", "ss01";
}
h1, h2, h3, h4, h5, h6, .np-display { font-family: var(--np-font-display); letter-spacing: -.02em; font-weight: 700; }
.text-muted, .text-secondary { color: var(--np-muted) !important; }
a { text-decoration: none; }
::selection { background: rgba(34,197,94,.35); color: #fff; }
:focus-visible { outline: 2px solid var(--np-cyan); outline-offset: 2px; }
.small-caps { font-size: .72rem; letter-spacing: .14em; text-transform: uppercase; color: var(--np-muted); font-weight: 600; }
.text-gradient { background: var(--np-grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.mono { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; }

/* ---------- Aurora backdrop ---------- */
.np-aurora { position: fixed; inset: 0; z-index: -2; overflow: hidden; pointer-events: none; }
.np-aurora::before, .np-aurora::after, .np-aurora span {
  content: ""; position: absolute; border-radius: 50%; filter: blur(90px); opacity: .55;
  animation: np-drift 24s var(--np-ease) infinite alternate;
}
.np-aurora::before { width: 46vw; height: 46vw; left: -12vw; top: -14vw; background: radial-gradient(circle, rgba(34,197,94,.38), transparent 65%); }
.np-aurora::after { width: 40vw; height: 40vw; right: -10vw; top: 10vh; background: radial-gradient(circle, rgba(250,204,21,.32), transparent 65%); animation-delay: -8s; }
.np-aurora span { width: 36vw; height: 36vw; left: 30vw; bottom: -18vw; background: radial-gradient(circle, rgba(245,158,11,.22), transparent 65%); animation-delay: -15s; }
[data-bs-theme="light"] .np-aurora::before, [data-bs-theme="light"] .np-aurora::after, [data-bs-theme="light"] .np-aurora span { opacity: .35; }
.np-grid {
  position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background-image: linear-gradient(var(--np-border) 1px, transparent 1px), linear-gradient(90deg, var(--np-border) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse at 50% 0%, #000 0%, transparent 70%);
  -webkit-mask-image: radial-gradient(ellipse at 50% 0%, #000 0%, transparent 70%);
  opacity: .5;
}
@keyframes np-drift { 0% { transform: translate(0,0) scale(1); } 50% { transform: translate(4vw,3vh) scale(1.08); } 100% { transform: translate(-3vw,5vh) scale(.95); } }

/* ---------- Glass surfaces ---------- */
.glass, .card {
  background: var(--np-surface);
  border: 1px solid var(--np-border);
  border-radius: var(--np-radius);
  backdrop-filter: blur(18px) saturate(140%);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
  box-shadow: var(--np-shadow);
  color: var(--np-text);
}
.card { --bs-card-bg: transparent; --bs-card-border-color: var(--np-border); --bs-card-cap-bg: transparent; }
.card-header { border-bottom: 1px solid var(--np-border); padding: 1rem 1.25rem; font-weight: 600; }
.card-body { padding: 1.25rem; }
.card-footer { border-top: 1px solid var(--np-border); background: transparent; }
.card-hover { transition: transform .35s var(--np-ease), box-shadow .35s var(--np-ease), border-color .35s; }
.card-hover:hover { transform: translateY(-3px); border-color: var(--np-border-strong); box-shadow: var(--np-glow); }
.glow-border { position: relative; }
.glow-border::before {
  content: ""; position: absolute; inset: -1px; border-radius: inherit; padding: 1px;
  background: var(--np-grad); -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude; opacity: .7; pointer-events: none;
}

/* ---------- Buttons ---------- */
.btn { border-radius: .8rem; font-weight: 600; padding: .6rem 1.1rem; transition: all .25s var(--np-ease); letter-spacing: .01em; }
.btn-sm { padding: .35rem .75rem; border-radius: .6rem; }
.btn-lg { padding: .85rem 1.5rem; border-radius: 1rem; }
.btn-primary, .btn-neon {
  --bs-btn-color: #052e16; --bs-btn-hover-color: #052e16; --bs-btn-active-color: #052e16;
  background: var(--np-grad); background-size: 160% 160%; border: 0; color: #052e16;
  box-shadow: 0 8px 26px -10px rgba(34,197,94,.7);
}
.btn-primary:hover, .btn-neon:hover { background-position: 100% 0; transform: translateY(-1px); box-shadow: 0 14px 34px -12px rgba(132,204,22,.8); color: #052e16; }
.btn-primary:disabled { opacity: .55; }
.btn-ghost { background: var(--np-surface-2); border: 1px solid var(--np-border); color: var(--np-text); }
.btn-ghost:hover { border-color: var(--np-border-strong); background: var(--np-surface-2); color: var(--np-text); box-shadow: var(--np-glow); }
.btn-outline-light { --bs-btn-color: var(--np-text); --bs-btn-border-color: var(--np-border-strong); --bs-btn-hover-bg: var(--np-surface-2); --bs-btn-hover-color: var(--np-text); --bs-btn-hover-border-color: var(--np-cyan); }
.btn-danger { background: linear-gradient(135deg,#fb7185,#e11d48); border: 0; }
.btn-success { background: linear-gradient(135deg,#a3e635,#22c55e); border: 0; color: #052e16; }
.btn-success:hover { color: #052e16; }
.btn-warning { background: linear-gradient(135deg,#fde047,#f59e0b); border: 0; color: #422006; }
.btn-icon { width: 2.4rem; height: 2.4rem; display: inline-grid; place-items: center; padding: 0; border-radius: .75rem; }

/* ---------- Forms ---------- */
.form-control, .form-select {
  background-color: var(--np-surface-2); border: 1px solid var(--np-border); color: var(--np-text);
  border-radius: .8rem; padding: .7rem .95rem; transition: border-color .2s, box-shadow .2s;
}
.form-control::placeholder { color: var(--np-muted); opacity: .7; }
.form-control:focus, .form-select:focus { background-color: var(--np-surface-2); color: var(--np-text); border-color: var(--np-cyan); box-shadow: 0 0 0 .22rem rgba(34,197,94,.18); }
.form-control-sm, .form-select-sm { padding: .4rem .7rem; border-radius: .6rem; }
.form-label { font-size: .84rem; font-weight: 600; color: var(--np-muted); margin-bottom: .35rem; }
.form-check-input { background-color: var(--np-surface-2); border-color: var(--np-border-strong); }
.form-check-input:checked { background-color: var(--np-cyan); border-color: var(--np-cyan); }
.form-switch .form-check-input { width: 2.6em; height: 1.35em; }
.form-check.form-switch { padding-left: 3.3em; }
.form-check.form-switch .form-check-input { margin-left: -3.3em; }
.form-check.form-switch.m-0 { padding-left: 2.7em; }
.form-check.form-switch.m-0 .form-check-input { margin-left: -2.7em; }
.input-group-text { background: var(--np-surface); border-color: var(--np-border); color: var(--np-muted); border-radius: .8rem; }
.invalid-feedback { color: var(--np-red); }
.form-control.is-invalid, .form-select.is-invalid { border-color: var(--np-red); }
.form-hint { font-size: .78rem; color: var(--np-muted); margin-top: .3rem; }
.pw-wrap { position: relative; }
.pw-wrap .pw-toggle { position: absolute; right: .55rem; top: 50%; transform: translateY(-50%); background: none; border: 0; color: var(--np-muted); padding: .3rem; }
.option-tile { display: block; cursor: pointer; }
.option-tile input { position: absolute; opacity: 0; }
.option-tile .tile { border: 1px solid var(--np-border); border-radius: .9rem; padding: .7rem; text-align: center; background: var(--np-surface-2); transition: all .2s; }
.option-tile input:checked + .tile { border-color: var(--np-cyan); box-shadow: var(--np-glow); }
.option-tile input:focus-visible + .tile { outline: 2px solid var(--np-cyan); }

/* ---------- Tables ---------- */
.table { --bs-table-bg: transparent; --bs-table-color: var(--np-text); --bs-table-border-color: var(--np-border); --bs-table-hover-bg: var(--np-surface-2); --bs-table-hover-color: var(--np-text); margin-bottom: 0; }
.table > thead th { font-size: .72rem; letter-spacing: .1em; text-transform: uppercase; color: var(--np-muted); font-weight: 600; border-bottom-color: var(--np-border-strong); white-space: nowrap; }
.table td, .table th { padding: .85rem 1rem; vertical-align: middle; }
.table-responsive { border-radius: var(--np-radius); }

/* ---------- Badges / pills ---------- */
.badge { font-weight: 600; letter-spacing: .02em; border-radius: 999px; padding: .38em .72em; }
.pill { display: inline-flex; align-items: center; gap: .35rem; font-size: .75rem; font-weight: 600; padding: .3rem .7rem; border-radius: 999px; border: 1px solid; }
.pill::before { content: ""; width: .45rem; height: .45rem; border-radius: 50%; background: currentColor; box-shadow: 0 0 10px currentColor; }
.pill-success { color: var(--np-lime); border-color: rgba(163,230,53,.35); background: rgba(163,230,53,.08); }
.pill-warning { color: var(--np-amber); border-color: rgba(251,191,36,.35); background: rgba(251,191,36,.08); }
.pill-danger { color: var(--np-red); border-color: rgba(251,113,133,.35); background: rgba(251,113,133,.08); }
.pill-info { color: var(--np-cyan); border-color: rgba(34,197,94,.35); background: rgba(34,197,94,.08); }
.pill-secondary { color: var(--np-muted); border-color: var(--np-border-strong); background: var(--np-surface); }
[data-bs-theme="light"] .pill-success { color: #4d7c0f; }
[data-bs-theme="light"] .pill-warning { color: #b45309; }
[data-bs-theme="light"] .pill-danger { color: #be123c; }
.chip { display: inline-flex; align-items: center; gap: .4rem; padding: .3rem .7rem; border-radius: 999px; background: var(--np-surface-2); border: 1px solid var(--np-border); font-size: .8rem; }

/* ---------- App shell ---------- */
.np-shell { display: flex; min-height: 100vh; }
.np-sidebar {
  width: var(--np-sidebar); flex-shrink: 0; position: sticky; top: 0; height: 100vh; overflow-y: auto;
  padding: 1.25rem .9rem; border-right: 1px solid var(--np-border);
  background: linear-gradient(180deg, rgba(7,26,17,.8), rgba(3,16,10,.65));
  backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
}
[data-bs-theme="light"] .np-sidebar { background: rgba(255,255,255,.7); }
.np-brand { display: flex; align-items: center; gap: .7rem; padding: .25rem .55rem 1.25rem; color: var(--np-text); }
.np-brand:hover { color: var(--np-text); }
.np-logo {
  width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; flex-shrink: 0;
  background: var(--np-grad); color: #052e16; font-family: var(--np-font-display); font-weight: 700; font-size: 1.05rem;
  box-shadow: 0 8px 24px -8px rgba(34,197,94,.8);
}
.np-brand b { font-family: var(--np-font-display); font-size: 1.12rem; display: block; line-height: 1.1; }
.np-brand small { color: var(--np-muted); font-size: .7rem; letter-spacing: .08em; text-transform: uppercase; }
.np-nav-label { font-size: .66rem; letter-spacing: .16em; text-transform: uppercase; color: var(--np-muted); padding: 1rem .8rem .4rem; font-weight: 600; }
.np-nav a {
  display: flex; align-items: center; gap: .75rem; padding: .62rem .8rem; border-radius: .8rem; color: var(--np-muted);
  font-weight: 500; font-size: .92rem; position: relative; transition: all .2s var(--np-ease);
}
.np-nav a i { font-size: 1.08rem; width: 1.2rem; text-align: center; }
.np-nav a:hover { color: var(--np-text); background: var(--np-surface-2); }
.np-nav a.active { color: var(--np-text); background: var(--np-grad-soft); box-shadow: inset 0 0 0 1px var(--np-border-strong); }
.np-nav a.active::before { content: ""; position: absolute; left: -.9rem; top: 22%; bottom: 22%; width: 3px; border-radius: 3px; background: var(--np-grad); box-shadow: 0 0 12px var(--np-cyan); }
.np-nav .count { margin-left: auto; font-size: .7rem; background: var(--np-pink); color: #fff; border-radius: 999px; padding: .1rem .5rem; font-weight: 700; }
.np-company {
  margin-top: 1.25rem; padding: .85rem; border-radius: .9rem; background: var(--np-surface); border: 1px solid var(--np-border);
  display: flex; align-items: center; gap: .7rem;
}
.np-company .co-logo { width: 36px; height: 36px; border-radius: 10px; object-fit: contain; background: #fff; display: grid; place-items: center; font-weight: 700; color: #052e16; font-size: .85rem; }

.np-main { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.np-topbar {
  position: sticky; top: 0; z-index: 1020; display: flex; align-items: center; gap: .75rem;
  padding: .85rem 1.75rem; border-bottom: 1px solid var(--np-border);
  background: rgba(3,16,10,.6); backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px);
}
[data-bs-theme="light"] .np-topbar { background: rgba(244,248,243,.75); }
.np-topbar h1 { font-size: 1.15rem; margin: 0; }
.np-topbar .crumb { color: var(--np-muted); font-size: .78rem; }
.np-content { padding: 1.75rem; flex: 1; width: 100%; max-width: 1440px; margin: 0 auto; }
.np-footer { padding: 1.25rem 1.75rem 5.5rem; color: var(--np-muted); font-size: .78rem; text-align: center; }
.np-footer .credit { background: var(--np-grad); -webkit-background-clip: text; background-clip: text; color: transparent; font-weight: 600; }

.avatar {
  width: 38px; height: 38px; border-radius: 50%; display: inline-grid; place-items: center; flex-shrink: 0; overflow: hidden;
  background: var(--np-grad); color: #052e16; font-weight: 700; font-size: .82rem; font-family: var(--np-font-display);
  box-shadow: 0 0 0 2px var(--np-bg), 0 0 0 3px var(--np-border-strong);
}
.avatar img { width: 100%; height: 100%; object-fit: cover; }
.avatar-lg { width: 96px; height: 96px; font-size: 1.8rem; }
.avatar-sm { width: 30px; height: 30px; font-size: .7rem; }

.dropdown-menu {
  --bs-dropdown-bg: var(--np-surface-solid); --bs-dropdown-border-color: var(--np-border-strong); --bs-dropdown-link-color: var(--np-text);
  --bs-dropdown-link-hover-bg: var(--np-surface-2); --bs-dropdown-link-hover-color: var(--np-text); --bs-dropdown-link-active-bg: var(--np-surface-2);
  border-radius: 1rem; padding: .45rem; box-shadow: var(--np-shadow);
}
.dropdown-item { border-radius: .6rem; padding: .5rem .75rem; }
.notif-menu { width: 360px; max-height: 470px; overflow-y: auto; }
.notif-item { display: flex; gap: .7rem; padding: .65rem; border-radius: .7rem; color: var(--np-text); }
.notif-item:hover { background: var(--np-surface-2); color: var(--np-text); }
.notif-item.unread { background: rgba(34,197,94,.06); }
.notif-dot { position: absolute; top: 6px; right: 6px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 999px; background: var(--np-pink); color: #fff; font-size: .65rem; font-weight: 700; display: grid; place-items: center; box-shadow: 0 0 12px var(--np-pink); }

/* Mobile bottom nav (PWA feel) */
.np-bottomnav { display: none; }
@media (max-width: 991.98px) {
  .np-sidebar { position: fixed; left: 0; top: 0; z-index: 1045; transform: translateX(-105%); transition: transform .35s var(--np-ease); box-shadow: var(--np-shadow); background: var(--np-surface-solid); }
  .np-sidebar.open { transform: none; }
  .np-backdrop { position: fixed; inset: 0; z-index: 1040; background: rgba(0,0,0,.5); display: none; }
  .np-backdrop.show { display: block; }
  .np-topbar { padding: .75rem 1rem; }
  .np-content { padding: 1.1rem; }
  .np-bottomnav {
    display: flex; position: fixed; left: .75rem; right: .75rem; bottom: .75rem; z-index: 1030; justify-content: space-around;
    padding: .5rem; border-radius: 1.2rem; background: rgba(10,29,20,.88); border: 1px solid var(--np-border-strong);
    backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px); box-shadow: var(--np-shadow);
    padding-bottom: calc(.5rem + env(safe-area-inset-bottom));
  }
  [data-bs-theme="light"] .np-bottomnav { background: rgba(255,255,255,.9); }
  .np-bottomnav a { display: flex; flex-direction: column; align-items: center; gap: .1rem; color: var(--np-muted); font-size: .66rem; font-weight: 600; padding: .3rem .6rem; border-radius: .8rem; }
  .np-bottomnav a i { font-size: 1.25rem; }
  .np-bottomnav a.active { color: var(--np-cyan); background: rgba(34,197,94,.1); }
}

/* ---------- Stats ---------- */
.stat { padding: 1.2rem 1.25rem; position: relative; overflow: hidden; }
.stat .label { font-size: .78rem; color: var(--np-muted); font-weight: 600; }
.stat .value { font-family: var(--np-font-display); font-size: 1.9rem; font-weight: 700; line-height: 1.15; margin-top: .25rem; }
.stat .icon { position: absolute; right: 1rem; top: 1rem; width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; font-size: 1.2rem; }
.stat .foot { font-size: .76rem; color: var(--np-muted); margin-top: .4rem; }
.tone-cyan { color: var(--np-cyan); background: rgba(34,197,94,.12); }
.tone-violet { color: var(--np-violet); background: rgba(250,204,21,.12); }
.tone-pink { color: var(--np-pink); background: rgba(245,158,11,.12); }
.tone-lime { color: var(--np-lime); background: rgba(163,230,53,.12); }
.tone-amber { color: var(--np-amber); background: rgba(251,191,36,.12); }
.tone-red { color: var(--np-red); background: rgba(251,113,133,.12); }

/* Readiness ring */
.ring { --p: 0; --size: 128px; width: var(--size); height: var(--size); border-radius: 50%; position: relative; display: grid; place-items: center;
  background: conic-gradient(from -90deg, var(--np-cyan), var(--np-violet) calc(var(--p) * 0.5%), var(--np-pink) calc(var(--p) * 1%), var(--np-surface-2) 0);
}
.ring::after { content: ""; position: absolute; inset: 10px; border-radius: 50%; background: var(--np-surface-solid); }
.ring b { position: relative; z-index: 1; font-family: var(--np-font-display); font-size: 1.7rem; }
.checklist { list-style: none; padding: 0; margin: 0; }
.checklist li a { display: flex; align-items: center; gap: .7rem; padding: .55rem .6rem; border-radius: .7rem; color: var(--np-text); }
.checklist li a:hover { background: var(--np-surface-2); }
.checklist .tick { width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; font-size: .85rem; border: 1px dashed var(--np-border-strong); color: var(--np-muted); }
.checklist .done .tick { border: 0; background: var(--np-lime); color: #052e16; box-shadow: 0 0 14px rgba(163,230,53,.5); }
.checklist .pending .tick { border: 0; background: rgba(251,191,36,.18); color: var(--np-amber); }

/* Bars (pure CSS/SVG charts) */
.bars { display: flex; align-items: flex-end; gap: .5rem; height: 120px; }
.bars .bar { flex: 1; display: flex; flex-direction: column; align-items: center; gap: .35rem; height: 100%; justify-content: flex-end; }
.bars .bar span { display: block; width: 100%; border-radius: .45rem .45rem .2rem .2rem; background: var(--np-grad); min-height: 4px; box-shadow: 0 0 18px -4px rgba(34,197,94,.6); }
.bars .bar small { color: var(--np-muted); font-size: .66rem; }
.meter { height: 8px; border-radius: 999px; background: var(--np-surface-2); overflow: hidden; }
.meter span { display: block; height: 100%; background: var(--np-grad); border-radius: 999px; }

/* ---------- Page header ---------- */
.page-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 1rem; margin-bottom: 1.5rem; }
.page-head h2 { margin: 0; font-size: 1.6rem; }
.page-head p { margin: .25rem 0 0; color: var(--np-muted); }

/* ---------- Tabs ---------- */
.np-tabs { display: inline-flex; gap: .25rem; padding: .3rem; border-radius: .95rem; background: var(--np-surface); border: 1px solid var(--np-border); flex-wrap: wrap; }
.np-tabs a { padding: .45rem .9rem; border-radius: .7rem; color: var(--np-muted); font-weight: 600; font-size: .86rem; display: inline-flex; gap: .4rem; align-items: center; }
.np-tabs a.active { background: var(--np-grad-soft); color: var(--np-text); box-shadow: inset 0 0 0 1px var(--np-border-strong); }
.np-tabs a .n { font-size: .7rem; background: var(--np-surface-2); border-radius: 999px; padding: .05rem .45rem; }

/* ---------- Empty state ---------- */
.empty { text-align: center; padding: 2.5rem 1rem; color: var(--np-muted); }
.empty .orb { width: 72px; height: 72px; margin: 0 auto 1rem; border-radius: 22px; display: grid; place-items: center; font-size: 1.8rem; background: var(--np-grad-soft); color: var(--np-cyan); box-shadow: inset 0 0 0 1px var(--np-border-strong); }

/* ---------- Toasts / alerts ---------- */
.np-toasts { position: fixed; top: 1rem; right: 1rem; z-index: 1090; display: flex; flex-direction: column; gap: .6rem; max-width: 380px; }
.np-toast { display: flex; gap: .7rem; align-items: flex-start; padding: .85rem 1rem; border-radius: 1rem; background: var(--np-surface-solid); border: 1px solid var(--np-border-strong); box-shadow: var(--np-shadow); animation: np-in .45s var(--np-ease); }
.np-toast i { font-size: 1.15rem; }
.np-toast.success i { color: var(--np-lime); } .np-toast.error i { color: var(--np-red); } .np-toast.warning i { color: var(--np-amber); } .np-toast.info i { color: var(--np-cyan); }
.np-toast .btn-close { margin-left: auto; filter: invert(.6); transform: scale(.8); }
@keyframes np-in { from { opacity: 0; transform: translateY(-10px) scale(.98); } to { opacity: 1; transform: none; } }
.alert { border-radius: 1rem; border: 1px solid var(--np-border-strong); background: var(--np-surface); color: var(--np-text); }
.alert-warning { border-color: rgba(251,191,36,.4); background: rgba(251,191,36,.08); }
.alert-danger { border-color: rgba(251,113,133,.4); background: rgba(251,113,133,.08); }
.alert-info { border-color: rgba(34,197,94,.4); background: rgba(34,197,94,.07); }
.alert-success { border-color: rgba(163,230,53,.4); background: rgba(163,230,53,.07); }

/* ---------- Modals ---------- */
.modal-content { background: var(--np-surface-solid); border: 1px solid var(--np-border-strong); border-radius: 1.3rem; box-shadow: var(--np-shadow); color: var(--np-text); }
.modal-header, .modal-footer { border-color: var(--np-border); }
.modal-backdrop.show { opacity: .7; }
[data-bs-theme="dark"] .btn-close { filter: invert(1) grayscale(100%) brightness(200%); }

/* ---------- Pagination ---------- */
.pagination { --bs-pagination-bg: var(--np-surface); --bs-pagination-border-color: var(--np-border); --bs-pagination-color: var(--np-text); --bs-pagination-hover-bg: var(--np-surface-2); --bs-pagination-hover-color: var(--np-text); --bs-pagination-active-bg: var(--np-cyan); --bs-pagination-active-border-color: var(--np-cyan); --bs-pagination-active-color: #052e16; --bs-pagination-disabled-bg: transparent; --bs-pagination-disabled-color: var(--np-muted); --bs-pagination-disabled-border-color: var(--np-border); --bs-pagination-focus-box-shadow: none; gap: .25rem; }
.page-link { border-radius: .6rem !important; }
nav[role="navigation"] p.small { color: var(--np-muted); }

/* ---------- Map ---------- */
.map-box { height: 320px; border-radius: var(--np-radius); overflow: hidden; border: 1px solid var(--np-border); }
.map-box.tall { height: 420px; }
.leaflet-container { background: var(--np-bg-2); font-family: var(--np-font); }
.leaflet-control-attribution { background: rgba(0,0,0,.45) !important; color: #aab !important; font-size: 10px; }
.leaflet-control-attribution a { color: #9cf !important; }
.leaflet-bar a { background: var(--np-surface-solid); color: var(--np-text); border-color: var(--np-border) !important; }
.np-pin { width: 22px; height: 22px; border-radius: 50%; background: var(--np-grad); border: 3px solid #fff; box-shadow: 0 0 0 6px rgba(34,197,94,.25), 0 0 22px rgba(34,197,94,.9); }
.np-pin.office { border-radius: 6px; background: linear-gradient(135deg,#facc15,#f59e0b); }
.geo-results { position: absolute; z-index: 1000; left: 0; right: 0; top: 100%; margin-top: .3rem; max-height: 240px; overflow: auto; }

/* ---------- Document / vehicle tiles ---------- */
.doc-tile { display: flex; gap: .9rem; align-items: center; padding: .9rem; border-radius: .9rem; border: 1px solid var(--np-border); background: var(--np-surface); }
.doc-tile .ico { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; font-size: 1.25rem; flex-shrink: 0; }
.doc-thumb { width: 100%; max-height: 300px; object-fit: contain; border-radius: .8rem; background: #000; }
.plate {
  font-family: ui-monospace, Menlo, monospace; font-weight: 700; letter-spacing: .12em; padding: .2rem .55rem; border-radius: .4rem;
  background: #fff; color: #111; border: 2px solid #111; font-size: .82rem; display: inline-block;
}
.plate.ev { background: #16a34a; color: #fff; border-color: #14532d; }
.vehicle-photo { width: 100%; height: 160px; object-fit: cover; border-radius: .9rem; }
.vehicle-ph { height: 160px; border-radius: .9rem; display: grid; place-items: center; font-size: 3rem; background: var(--np-grad-soft); color: var(--np-cyan); }

/* ---------- Timeline (audit) ---------- */
.timeline { list-style: none; margin: 0; padding: 0; position: relative; }
.timeline::before { content: ""; position: absolute; left: 15px; top: 6px; bottom: 6px; width: 2px; background: linear-gradient(var(--np-cyan), var(--np-violet), transparent); opacity: .5; }
.timeline li { position: relative; padding: 0 0 1rem 2.6rem; }
.timeline li::before { content: ""; position: absolute; left: 9px; top: 5px; width: 14px; height: 14px; border-radius: 50%; background: var(--np-surface-solid); border: 2px solid var(--np-cyan); box-shadow: 0 0 10px rgba(34,197,94,.6); }
.timeline .t { font-size: .74rem; color: var(--np-muted); }

/* ---------- Guest (auth) layout ---------- */
.auth-wrap { min-height: 100vh; display: grid; grid-template-columns: 1.05fr 1fr; }
.auth-visual { position: relative; padding: 3rem; display: flex; flex-direction: column; justify-content: space-between; overflow: hidden; border-right: 1px solid var(--np-border); }
.auth-visual h1 { font-size: clamp(2rem, 3.4vw, 3.2rem); line-height: 1.05; }
.auth-form { display: flex; align-items: center; justify-content: center; padding: 2.5rem 1.5rem; }
.auth-card { width: 100%; max-width: 460px; }
.auth-card.wide { max-width: 640px; }
@media (max-width: 991.98px) { .auth-wrap { grid-template-columns: 1fr; } .auth-visual { display: none; } }
.company-chip { display: flex; align-items: center; gap: .7rem; padding: .7rem .85rem; border-radius: .9rem; border: 1px solid var(--np-border-strong); background: var(--np-surface-2); animation: np-in .35s var(--np-ease); }
.company-chip .co { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; font-weight: 700; color: #052e16; overflow: hidden; }
.company-chip .co img { width: 100%; height: 100%; object-fit: cover; }

/* Animated route illustration */
.route-svg { width: 100%; max-width: 560px; }
.route-svg .road { fill: none; stroke: var(--np-border-strong); stroke-width: 18; stroke-linecap: round; }
.route-svg .lane { fill: none; stroke: rgba(255,255,255,.18); stroke-width: 2; stroke-dasharray: 10 14; stroke-linecap: round; animation: np-dash 1.6s linear infinite; }
.route-svg .glow { fill: none; stroke: url(#npg); stroke-width: 4; stroke-linecap: round; stroke-dasharray: 900; stroke-dashoffset: 900; animation: np-draw 4.5s var(--np-ease) infinite; filter: drop-shadow(0 0 8px rgba(34,197,94,.9)); }
.route-svg .node { fill: var(--np-bg); stroke: url(#npg); stroke-width: 4; }
.route-svg .pulse { fill: rgba(34,197,94,.3); transform-origin: center; transform-box: fill-box; animation: np-pulse 2.2s ease-out infinite; }
@keyframes np-dash { to { stroke-dashoffset: -48; } }
@keyframes np-draw { 0% { stroke-dashoffset: 900; } 60%, 100% { stroke-dashoffset: 0; } }
@keyframes np-pulse { 0% { transform: scale(.6); opacity: .9; } 100% { transform: scale(2.4); opacity: 0; } }
.floaty { animation: np-float 6s ease-in-out infinite; }
@keyframes np-float { 50% { transform: translateY(-10px); } }

/* ---------- Marketing ---------- */
.mk-nav { position: sticky; top: 0; z-index: 1030; padding: .9rem 0; background: rgba(3,16,10,.55); backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px); border-bottom: 1px solid var(--np-border); }
[data-bs-theme="light"] .mk-nav { background: rgba(244,248,243,.75); }
.mk-nav .nav-link { color: var(--np-muted); font-weight: 500; }
.mk-nav .nav-link:hover { color: var(--np-text); }
.hero { padding: 6rem 0 4rem; position: relative; }
.hero h1 { font-size: clamp(2.6rem, 6vw, 4.8rem); line-height: 1.02; }
.hero .lead { font-size: 1.2rem; color: var(--np-muted); max-width: 560px; }
.eyebrow { display: inline-flex; align-items: center; gap: .5rem; padding: .35rem .85rem; border-radius: 999px; border: 1px solid var(--np-border-strong); background: var(--np-surface); font-size: .8rem; font-weight: 600; }
.eyebrow b { background: var(--np-grad); color: #052e16; padding: .05rem .5rem; border-radius: 999px; font-size: .7rem; }
.section { padding: 5rem 0; }
.section-title { font-size: clamp(1.8rem, 3.4vw, 2.7rem); }
.feature { padding: 1.6rem; height: 100%; }
.feature .fi { width: 52px; height: 52px; border-radius: 16px; display: grid; place-items: center; font-size: 1.4rem; margin-bottom: 1rem; }
.feature h3 { font-size: 1.15rem; }
.feature p { color: var(--np-muted); margin: 0; font-size: .94rem; }
.hero-card { padding: 1.4rem; }
.hero-metric { font-family: var(--np-font-display); font-size: 2.2rem; font-weight: 700; }
.price-card { padding: 2rem 1.6rem; height: 100%; display: flex; flex-direction: column; }
.price-card.featured { box-shadow: var(--np-glow); }
.price-card .price { font-family: var(--np-font-display); font-size: 2.6rem; font-weight: 700; }
.price-card ul { list-style: none; padding: 0; margin: 1.25rem 0 1.5rem; flex: 1; }
.price-card li { padding: .35rem 0; display: flex; gap: .55rem; color: var(--np-muted); }
.price-card li i { color: var(--np-lime); }
.step-num { width: 44px; height: 44px; border-radius: 14px; display: grid; place-items: center; font-family: var(--np-font-display); font-weight: 700; background: var(--np-grad); color: #052e16; }
.accordion { --bs-accordion-bg: transparent; --bs-accordion-border-color: var(--np-border); --bs-accordion-btn-color: var(--np-text); --bs-accordion-active-bg: var(--np-surface-2); --bs-accordion-active-color: var(--np-text); --bs-accordion-btn-focus-box-shadow: none; --bs-accordion-color: var(--np-muted); }
.accordion-item { background: var(--np-surface); }
[data-bs-theme="dark"] .accordion-button::after { filter: invert(1); }
.cta-band { padding: 3.5rem; border-radius: 2rem; background: var(--np-grad-soft); border: 1px solid var(--np-border-strong); position: relative; overflow: hidden; }

/* ---------- Invoice (print) ---------- */
.invoice { max-width: 820px; margin: 2rem auto; background: #fff; color: #0f172a; border-radius: 1rem; padding: 2.5rem; box-shadow: 0 20px 60px -30px rgba(0,0,0,.6); }
.invoice table { width: 100%; border-collapse: collapse; }
.invoice th, .invoice td { padding: .6rem .5rem; border-bottom: 1px solid #e2e8f0; text-align: left; }
.invoice .r { text-align: right; }
.invoice .bar { height: 6px; border-radius: 6px; background: linear-gradient(90deg,#16a34a,#84cc16,#facc15); margin-bottom: 1.5rem; }
@media print {
  body { background: #fff !important; }
  .np-aurora, .np-grid, .no-print { display: none !important; }
  .invoice { box-shadow: none; margin: 0; padding: 0; }
}

/* ---------- Utilities ---------- */
.gap-row { row-gap: 1.25rem; }
.divider { height: 1px; background: var(--np-border); margin: 1.25rem 0; }
.hover-lift { transition: transform .25s var(--np-ease); } .hover-lift:hover { transform: translateY(-2px); }
.truncate { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.min-w-0 { min-width: 0; }
.cursor-pointer { cursor: pointer; }
.fade-up { animation: np-in .6s var(--np-ease) both; }
.fade-up.d1 { animation-delay: .08s; } .fade-up.d2 { animation-delay: .16s; } .fade-up.d3 { animation-delay: .24s; } .fade-up.d4 { animation-delay: .32s; }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } }

/* ---------- Fixes ---------- */
[hidden] { display: none !important; }
.form-select { padding-right: 2.4rem; background-position: right .85rem center; }
.form-select-sm { padding-right: 2rem; }
.stat .value.is-text { font-size: 1.2rem; line-height: 1.3; margin-top: .45rem; padding-right: 3rem; }

/* ---------- Brand seal ---------- */
.np-seal { width: 42px; height: 42px; flex-shrink: 0; border-radius: 12px; filter: drop-shadow(0 8px 18px rgba(34,197,94,.45)); transition: transform .4s var(--np-ease); }
.np-brand:hover .np-seal { transform: rotate(-6deg) scale(1.05); }

/* ---------- Dashboard hero (v2.1) ---------- */
.np-hero {
  position: relative; overflow: hidden; border-radius: 1.6rem; padding: 1.75rem; color: #fff;
  background:
    radial-gradient(circle at 85% 10%, rgba(250,204,21,.35), transparent 40%),
    radial-gradient(circle at 10% 110%, rgba(163,230,53,.25), transparent 45%),
    linear-gradient(125deg, #062d20 0%, #0b4a31 38%, #15803d 72%, #4d7c0f 100%);
  box-shadow: 0 30px 60px -30px rgba(21,128,61,.75), inset 0 0 0 1px rgba(255,255,255,.08);
}
.np-hero::after { content: ""; position: absolute; inset: 0; background-image: linear-gradient(rgba(255,255,255,.05) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.05) 1px, transparent 1px); background-size: 42px 42px; mask-image: linear-gradient(90deg, transparent, #000 60%); -webkit-mask-image: linear-gradient(90deg, transparent, #000 60%); pointer-events: none; }
.np-hero-shape { position: absolute; color: rgba(255,255,255,.07); font-size: 2.6rem; animation: np-float 9s ease-in-out infinite; pointer-events: none; }
.np-hero-shape.s1 { left: 38%; top: 10%; } .np-hero-shape.s2 { left: 30%; bottom: 8%; animation-delay: -3s; font-size: 2rem; }
.np-hero-shape.s3 { right: 3%; bottom: 30%; animation-delay: -5s; } .np-hero-shape.s4 { left: 46%; top: 58%; animation-delay: -7s; font-size: 1.6rem; }
.np-hero-logo { width: 56px; height: 56px; border-radius: 16px; background: #fff; display: grid; place-items: center; flex-shrink: 0; overflow: hidden; box-shadow: 0 10px 24px -10px rgba(0,0,0,.5); }
.np-hero-logo img { width: 100%; height: 100%; object-fit: cover; }
.np-hero-logo b { font-family: var(--np-font-display); font-size: 1.2rem; }
.np-hero-org { font-size: .74rem; letter-spacing: .16em; text-transform: uppercase; font-weight: 700; color: #d9f99d; }
.np-hero-greet { font-size: 1.55rem; margin: 0; color: #fff; }
.np-clock { font-family: var(--np-font-display); font-weight: 700; font-size: 3.4rem; line-height: 1; letter-spacing: -.03em; color: #fff; }
.np-clock small { font-size: 1rem; font-weight: 600; letter-spacing: 0; opacity: .8; margin-left: .2rem; }
.np-hero-date { color: rgba(255,255,255,.78); font-size: .92rem; margin-top: .3rem; }
.np-weather { display: flex; gap: .85rem; align-items: center; padding: .85rem 1rem; border-radius: 1.1rem; background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.16); backdrop-filter: blur(8px); max-width: 420px; }
.np-weather-ico { width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center; font-size: 1.5rem; background: rgba(250,204,21,.22); color: #fde047; flex-shrink: 0; }
.np-weather-temp { font-family: var(--np-font-display); font-size: 1.35rem; }
.np-weather-tip { font-size: .85rem; padding: .65rem .9rem; border-radius: .9rem; background: rgba(0,0,0,.22); max-width: 420px; }
.np-tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: .75rem; }
.np-tile { display: flex; flex-direction: column; gap: .1rem; padding: .85rem 1rem; border-radius: 1rem; color: #fff !important; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.14); transition: transform .25s var(--np-ease), background .25s; min-height: 98px; }
.np-tile:hover { transform: translateY(-3px); background: rgba(255,255,255,.14); }
.np-tile i { font-size: 1.05rem; opacity: .85; }
.np-tile b { font-family: var(--np-font-display); font-size: 1.6rem; line-height: 1.15; }
.np-tile span { font-size: .78rem; opacity: .85; }
.np-tile.alert { background: linear-gradient(135deg, rgba(250,204,21,.32), rgba(245,158,11,.22)); border-color: rgba(253,224,71,.55); box-shadow: 0 0 0 1px rgba(253,224,71,.2), 0 12px 26px -14px rgba(250,204,21,.8); }
.np-insight { padding: 1rem 1.1rem; border-radius: 1.1rem; background: rgba(0,0,0,.18); border: 1px solid rgba(255,255,255,.14); min-height: 132px; position: relative; }
.np-insight-tag { font-size: .7rem; letter-spacing: .14em; font-weight: 800; color: #fde047; }
.np-insight-all { color: #d9f99d; font-size: .8rem; font-weight: 600; }
.np-insight-item { animation: np-in .45s var(--np-ease); }
.np-insight-dots { display: flex; gap: .3rem; position: absolute; right: 1rem; bottom: .8rem; }
.np-insight-dots button { width: 7px; height: 7px; padding: 0; border: 0; border-radius: 999px; background: rgba(255,255,255,.35); transition: all .3s; }
.np-insight-dots button.on { width: 20px; background: #fde047; }
.tone-txt-danger { color: #fca5a5; } .tone-txt-warning { color: #fde047; } .tone-txt-success { color: #bef264; } .tone-txt-info { color: #86efac; }
.np-ticker { display: flex; align-items: center; border-radius: 999px; background: var(--np-surface); border: 1px solid var(--np-border); overflow: hidden; }
.np-live { display: inline-flex; align-items: center; gap: .4rem; padding: .55rem 1rem; background: linear-gradient(135deg,#16a34a,#65a30d); color: #fff; font-weight: 800; font-size: .74rem; letter-spacing: .1em; flex-shrink: 0; }
.np-live .dot { width: 8px; height: 8px; border-radius: 50%; background: #fde047; box-shadow: 0 0 0 0 rgba(253,224,71,.8); animation: np-blink 1.6s infinite; }
@keyframes np-blink { 0% { box-shadow: 0 0 0 0 rgba(253,224,71,.8); } 70% { box-shadow: 0 0 0 8px rgba(253,224,71,0); } 100% { box-shadow: 0 0 0 0 rgba(253,224,71,0); } }
.np-ticker-view { overflow: hidden; flex: 1; mask-image: linear-gradient(90deg, transparent, #000 4%, #000 96%, transparent); -webkit-mask-image: linear-gradient(90deg, transparent, #000 4%, #000 96%, transparent); }
.np-ticker-track { display: inline-flex; gap: 2.5rem; padding: .55rem 1rem; white-space: nowrap; animation: np-marquee 45s linear infinite; font-size: .86rem; }
.np-ticker-track i { color: var(--np-cyan); }
.np-ticker:hover .np-ticker-track { animation-play-state: paused; }
@keyframes np-marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }
.np-setup { display: flex; align-items: center; gap: 1rem; padding: .9rem 1.1rem; flex-wrap: wrap; }
.np-setup .ring::after { inset: 6px; }
@media (max-width: 991.98px) { .np-tiles { grid-template-columns: repeat(2, 1fr); } .np-clock { font-size: 2.6rem; } .np-hero { padding: 1.25rem; } }

/* ---------- Assistant ---------- */
.np-fab { position: fixed; right: 1.4rem; bottom: 1.4rem; z-index: 1035; width: 58px; height: 58px; border-radius: 18px; border: 0; color: #052e16; font-size: 1.45rem;
  background: var(--np-grad); box-shadow: 0 16px 34px -12px rgba(34,197,94,.9); transition: transform .25s var(--np-ease); }
.np-fab:hover { transform: translateY(-3px) rotate(-6deg); }
@media (max-width: 991.98px) { .np-fab { bottom: 6.2rem; right: 1rem; width: 52px; height: 52px; } }
.np-chat { --bs-offcanvas-width: 420px; background: var(--np-surface-solid); color: var(--np-text); border-left: 1px solid var(--np-border-strong); }
.np-chat .msgs { display: flex; flex-direction: column; gap: .7rem; }
.np-chat .msg { max-width: 88%; padding: .7rem .9rem; border-radius: 1rem; font-size: .9rem; line-height: 1.45; animation: np-in .35s var(--np-ease); }
.np-chat .msg.me { align-self: flex-end; background: var(--np-grad); color: #052e16; border-bottom-right-radius: .3rem; }
.np-chat .msg.bot { align-self: flex-start; background: var(--np-surface-2); border: 1px solid var(--np-border); border-bottom-left-radius: .3rem; }
.np-chat .msg .src { display: block; font-size: .68rem; opacity: .6; margin-top: .3rem; text-transform: uppercase; letter-spacing: .08em; }
.np-chat .chips { display: flex; flex-wrap: wrap; gap: .4rem; }
.np-chat .chips button { font-size: .78rem; }

/* ---------- System page ---------- */
.sys-list { list-style: none; margin: 0; padding: 0; }
.sys-list li { display: flex; align-items: center; justify-content: space-between; gap: .75rem; padding: .62rem 1.1rem; border-top: 1px solid var(--np-border); font-size: .88rem; }
.sys-list li:first-child { border-top: 0; }
.sys-ok { color: var(--np-cyan); } .sys-bad { color: var(--np-red); } .sys-warn { color: var(--np-amber); }
.storage-tile { padding: .8rem; border-radius: .9rem; background: var(--np-surface-2); border: 1px solid var(--np-border); }
.storage-tile i { color: var(--np-cyan); } .storage-tile b { display: block; font-family: var(--np-font-display); }
.upload-bar { height: 8px; border-radius: 999px; background: var(--np-surface-2); overflow: hidden; }
.upload-bar span { display: block; height: 100%; width: 0; background: var(--np-grad); transition: width .3s; }
.plan-pick input { position: absolute; opacity: 0; }
.plan-pick .tile { text-align: left; padding: 1rem; }
.plan-pick input:checked + .tile { border-color: var(--np-cyan); box-shadow: var(--np-glow); background: var(--np-grad-soft); }

/* ---------- Rides (v2.2) ---------- */
.ride-card { padding: 1.15rem 1.2rem; }
.ride-time b { font-family: var(--np-font-display); font-size: 1.6rem; line-height: 1; }
.ride-time small { font-weight: 600; margin-left: .15rem; color: var(--np-muted); }
.ride-price { font-family: var(--np-font-display); font-size: 1.35rem; font-weight: 700; background: var(--np-grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.ride-match b { font-size: .8rem; }
.ride-match::after { inset: 5px; }
.ride-route { position: relative; display: grid; gap: .55rem; }
.ride-route > div { display: flex; align-items: center; gap: .6rem; min-width: 0; font-weight: 500; }
.ride-route > div i { font-size: .8rem; flex-shrink: 0; }
.ride-route::before { content: ""; position: absolute; left: .34rem; top: 1rem; bottom: 1rem; width: 2px; background: repeating-linear-gradient(var(--np-border-strong) 0 4px, transparent 4px 8px); }
.ride-route.big > div { font-size: 1.1rem; }
.ride-route .via { padding-left: 0; }
.otp-big { font-family: var(--np-font-display); font-size: 3.2rem; font-weight: 700; letter-spacing: .4em; padding-left: .4em; margin: .4rem 0; background: var(--np-grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.booking-row { padding: .75rem 0; border-top: 1px solid var(--np-border); }
.booking-row:first-child { border-top: 0; padding-top: 0; }
.np-car { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: #facc15; color: #052e16; border: 3px solid #fff; box-shadow: 0 0 0 6px rgba(250,204,21,.3), 0 6px 18px rgba(0,0,0,.4); animation: np-blink 2s infinite; }
.stars { display: inline-flex; flex-direction: row-reverse; gap: .25rem; }
.stars input { display: none; }
.stars label { font-size: 2rem; color: var(--np-border-strong); cursor: pointer; transition: color .15s, transform .15s; }
.stars label:hover, .stars label:hover ~ label, .stars input:checked ~ label { color: #facc15; }
.stars label:hover { transform: scale(1.15); }

/* =====================================================================
 * P3 — Safety & comms (SOS, console, chat, replay, tracking)
 * Developed & Powered by Marian Anbu Juwan.
 * ===================================================================== */
.ico-lg { width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; font-size: 1.35rem; flex-shrink: 0; }
.ico-sm { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; font-size: 1rem; flex-shrink: 0; }
.pill-muted { background: var(--np-surface-2); color: var(--np-muted); border: 1px solid var(--np-border); }

/* Hold-to-SOS floating button */
.sos-fab-wrap { position: fixed; left: calc(var(--np-sidebar) + 1.4rem); bottom: 1.4rem; z-index: 1036; display: flex; align-items: center; gap: .6rem; margin: 0; }
.sos-fab { --p: 0; position: relative; width: 62px; height: 62px; border-radius: 50%; border: 0; padding: 0; cursor: pointer; touch-action: none; user-select: none; -webkit-user-select: none;
  background: radial-gradient(circle at 35% 30%, #fb7185, #e11d48 60%, #9f1239); color: #fff; box-shadow: 0 10px 30px rgba(225,29,72,.45), 0 0 0 4px rgba(225,29,72,.18); transition: transform .2s var(--np-ease); }
.sos-fab { flex: 0 0 auto; display: grid; place-items: center; }
.sos-fab .sos-ring { position: absolute; left: -7px; top: -7px; width: calc(100% + 14px); height: calc(100% + 14px); transform: rotate(-90deg); pointer-events: none; overflow: visible; }
.sos-fab .sos-ring circle { fill: none; stroke: #fde047; stroke-width: 4; stroke-linecap: round; stroke-dasharray: 100; stroke-dashoffset: calc(100 - var(--p)); transition: stroke-dashoffset .05s linear; opacity: 0; }
.sos-fab.holding .sos-ring circle, .sos-fab.fired .sos-ring circle { opacity: 1; }
.sos-fab .lbl { position: relative; font-family: var(--np-font-display); font-weight: 800; letter-spacing: .06em; font-size: 1rem; }
.sos-fab:focus-visible { outline: 3px solid #fde047; outline-offset: 4px; }
.sos-fab.holding { transform: scale(1.12); }
.sos-fab.fired { animation: np-sos-pulse 0.8s infinite; }
.sos-hint { font-size: .72rem; font-weight: 700; padding: .3rem .6rem; border-radius: 999px; background: var(--np-surface-solid); border: 1px solid var(--np-border-strong); color: var(--np-text); opacity: 0; transform: translateX(-6px); transition: all .25s var(--np-ease); pointer-events: none; white-space: nowrap; }
.sos-fab-wrap:hover .sos-hint, .sos-fab-wrap.nudge .sos-hint, .sos-fab.holding + .sos-hint, .sos-fab.fired + .sos-hint { opacity: 1; transform: none; }
.sos-fab-wrap.on-trip .sos-fab { animation: np-sos-breathe 2.4s infinite; }
.sos-fab-wrap.nudge { animation: np-shake .5s; }
@media (max-width: 991.98px) { .sos-fab-wrap { bottom: 6.2rem; left: 1rem; } .sos-fab { width: 54px; height: 54px; } }
@media print { .sos-fab-wrap { display: none; } }
@keyframes np-sos-pulse { 0%,100% { box-shadow: 0 0 0 0 rgba(251,113,133,.8); } 50% { box-shadow: 0 0 0 18px rgba(251,113,133,0); } }
@keyframes np-sos-breathe { 0%,100% { box-shadow: 0 10px 30px rgba(225,29,72,.45), 0 0 0 4px rgba(225,29,72,.18); } 50% { box-shadow: 0 10px 30px rgba(225,29,72,.6), 0 0 0 12px rgba(225,29,72,.06); } }
@keyframes np-shake { 0%,100% { transform: none; } 25% { transform: translateX(-4px); } 75% { transform: translateX(4px); } }

/* SOS banners + hero */
.sos-banner { display: flex; align-items: center; gap: .9rem; padding: .9rem 1.1rem; border-radius: var(--np-radius); color: #fff; text-decoration: none; font-size: .92rem;
  background: linear-gradient(135deg, #e11d48, #9f1239); box-shadow: 0 12px 30px rgba(225,29,72,.35); animation: np-in .4s var(--np-ease); }
.sos-banner > i:first-child { font-size: 1.6rem; }
.sos-banner:hover { color: #fff; filter: brightness(1.08); }
.sos-banner.desk { background: linear-gradient(135deg, #b45309, #e11d48); }
.sos-hero { border-radius: calc(var(--np-radius) + .2rem); padding: 1.5rem; color: #fff; background: linear-gradient(135deg, #be123c, #7f1d1d); box-shadow: 0 20px 50px rgba(190,18,60,.35); position: relative; overflow: hidden; }
.sos-hero::after { content: ""; position: absolute; right: -60px; top: -60px; width: 220px; height: 220px; border-radius: 50%; background: radial-gradient(circle, rgba(255,255,255,.18), transparent 70%); }
.sos-hero.live::before { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, transparent, rgba(255,255,255,.08), transparent); animation: np-sweep 2.4s infinite; }
.sos-hero.ack { background: linear-gradient(135deg, #b45309, #9a3412); }
.sos-hero.closed { background: linear-gradient(135deg, #15803d, #365314); box-shadow: 0 20px 50px rgba(21,128,61,.3); }
.sos-hero .btn-outline-light { --bs-btn-color: #fff; --bs-btn-border-color: rgba(255,255,255,.55); --bs-btn-hover-bg: rgba(255,255,255,.12); --bs-btn-hover-color: #fff; --bs-btn-hover-border-color: #fff; }
.sos-orb { width: 64px; height: 64px; border-radius: 50%; display: grid; place-items: center; font-size: 1.9rem; background: rgba(255,255,255,.16); flex-shrink: 0; }
.sos-hero.live .sos-orb { animation: np-sos-pulse 1.4s infinite; }
@keyframes np-sweep { from { transform: translateX(-100%); } to { transform: translateX(100%); } }
.sos-ladder { list-style: none; padding: 0; margin: 0; counter-reset: s; }
.sos-ladder li { position: relative; padding: .2rem 0 1rem 2.6rem; counter-increment: s; font-size: .9rem; }
.sos-ladder li::before { content: counter(s); position: absolute; left: 0; top: 0; width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; font-weight: 800; font-size: .8rem;
  border: 2px solid var(--np-border-strong); color: var(--np-muted); background: var(--np-surface-solid); }
.sos-ladder li.done::before { content: "✓"; background: #16a34a; border-color: #16a34a; color: #fff; }
.sos-ladder li.now::before { border-color: #fb7185; color: #fb7185; animation: np-sos-pulse 1.4s infinite; }

/* Console */
.sos-alarm { display: flex; align-items: center; gap: 1rem; padding: 1rem 1.2rem; border-radius: var(--np-radius); color: #fff; background: linear-gradient(135deg, #e11d48, #9f1239); animation: np-alarm 1s infinite alternate; }
.sos-alarm > i { font-size: 2rem; }
@keyframes np-alarm { from { box-shadow: 0 0 0 0 rgba(225,29,72,.6); } to { box-shadow: 0 0 0 10px rgba(225,29,72,0); } }
.sos-card { display: flex; align-items: center; gap: .8rem; padding: .8rem; border-radius: var(--np-radius-sm); border: 1px solid var(--np-border); background: var(--np-surface-2); color: var(--np-text); text-decoration: none; margin-bottom: .6rem; }
.sos-card:hover { color: var(--np-text); border-color: var(--np-border-strong); }
.sos-card.active { border-color: rgba(251,113,133,.6); box-shadow: inset 4px 0 0 #e11d48; }
.sos-card.acknowledged { box-shadow: inset 4px 0 0 #f59e0b; }
.np-sos-dot { width: 12px; height: 12px; border-radius: 50%; background: #e11d48; display: inline-block; flex-shrink: 0; animation: np-sos-pulse 1.2s infinite; }
.np-sos-dot.live { width: 8px; height: 8px; background: #22c55e; animation: none; box-shadow: 0 0 8px #22c55e; }
.sos-card.acknowledged .np-sos-dot { background: #f59e0b; }
.np-sos-pin { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; color: #fff; font-size: 1.3rem; background: #e11d48; border: 3px solid #fff; animation: np-sos-pulse 1.2s infinite; }
.np-alert-pin { width: 30px; height: 30px; border-radius: 10px; display: grid; place-items: center; color: #451a03; background: #fbbf24; border: 2px solid #fff; box-shadow: 0 4px 12px rgba(0,0,0,.3); }
.alert-row { display: flex; gap: .75rem; align-items: flex-start; padding: .7rem 0; border-bottom: 1px solid var(--np-border); }
.alert-row:last-child { border-bottom: 0; }
.timeline li.warn::before { border-color: #fb7185; box-shadow: 0 0 10px rgba(251,113,133,.6); }

/* Ride chat */
.ride-chat .chat-log { height: 300px; overflow-y: auto; display: flex; flex-direction: column; gap: .5rem; padding: .25rem; }
.chat-msg { max-width: 82%; padding: .55rem .8rem; border-radius: 1rem; font-size: .88rem; line-height: 1.4; animation: np-in .3s var(--np-ease); word-wrap: break-word; }
.chat-msg.me { align-self: flex-end; background: var(--np-grad); color: #052e16; border-bottom-right-radius: .3rem; }
.chat-msg.me a { color: #052e16; font-weight: 600; }
.chat-msg.them { align-self: flex-start; background: var(--np-surface-2); border: 1px solid var(--np-border); border-bottom-left-radius: .3rem; }
.chat-msg .who { font-size: .68rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--np-muted); margin-bottom: .1rem; }
.chat-msg .at { font-size: .64rem; opacity: .6; text-align: right; margin-top: .15rem; }
.chat-sys { align-self: center; font-size: .72rem; color: var(--np-muted); background: var(--np-surface); border: 1px dashed var(--np-border-strong); border-radius: 999px; padding: .2rem .7rem; text-align: center; }
.ride-chat .chips { display: flex; flex-wrap: wrap; gap: .35rem; }
.ride-chat .chips .btn { font-size: .74rem; padding: .2rem .55rem; }
.share-row { display: flex; align-items: center; gap: .4rem; padding: .5rem .6rem; border-radius: var(--np-radius-sm); background: var(--np-surface-2); border: 1px solid var(--np-border); }

/* Public tracking page */
.track-wrap { max-width: 760px; margin: 0 auto; padding: 1.25rem 1rem 2rem; position: relative; z-index: 1; }

/* =====================================================================
 * P4 — Ride money (wallet, payroll, payouts, AutoPay)
 * Developed & Powered by Marian Anbu Juwan.
 * ===================================================================== */
.wallet-hero { border-radius: calc(var(--np-radius) + .2rem); padding: 1.6rem; color: #fff; position: relative; overflow: hidden;
  background: linear-gradient(135deg, #15803d 0%, #4d7c0f 60%, #a16207 100%); box-shadow: 0 20px 50px rgba(21,128,61,.3); }
.wallet-hero::after { content: ""; position: absolute; right: -70px; top: -70px; width: 240px; height: 240px; border-radius: 50%; background: radial-gradient(circle, rgba(250,204,21,.35), transparent 70%); }
.wallet-hero.owe { background: linear-gradient(135deg, #9a3412 0%, #b45309 60%, #a16207 100%); }
.money-row { display: flex; justify-content: space-between; align-items: center; gap: .75rem; padding: .6rem 0; border-bottom: 1px solid var(--np-border); color: var(--np-text); text-decoration: none; }
.money-row:last-child { border-bottom: 0; }
a.money-row:hover { color: var(--np-text); background: var(--np-surface-2); border-radius: .5rem; }
.qr-box { display: inline-block; padding: .6rem; border-radius: 1rem; background: #fff; box-shadow: 0 8px 26px rgba(0,0,0,.18); }
.qr-box svg { display: block; width: 200px; height: 200px; }
img.qr-box { width: 220px; height: 220px; }
.pay-options .btn { font-weight: 600; }
.mix-bar { display: flex; height: 14px; border-radius: 999px; overflow: hidden; background: var(--np-surface-2); }
.mix-upi, .mix-dot-upi { background: #22c55e; color: #22c55e; }
.mix-online, .mix-dot-online { background: #facc15; color: #facc15; }
.mix-payroll, .mix-dot-payroll { background: #38bdf8; color: #38bdf8; }
.mix-unpaid, .mix-dot-unpaid { background: #fb7185; color: #fb7185; }
[class*="mix-dot-"] { background: none !important; }
.autopay-tile { padding: 1rem; border-radius: var(--np-radius-sm); border: 1px dashed var(--np-border-strong); background: var(--np-grad-soft); }
.je-first td { border-top: 2px solid var(--np-border-strong); }

/* ---------- v2.6 · SSO, assistant cards, ESG, health ---------- */
.sso-btn { display: flex; align-items: center; justify-content: center; gap: .6rem; font-weight: 600; }
.sso-btn .bi-microsoft { color: #00a4ef; } .sso-btn .bi-google { color: #ea4335; }
.np-or { display: flex; align-items: center; gap: .75rem; color: var(--np-muted); font-size: .78rem; text-transform: uppercase; letter-spacing: .08em; }
.np-or::before, .np-or::after { content: ""; flex: 1; height: 1px; background: var(--np-border); }
.np-chat .msg.bot { white-space: pre-line; }
.ai-cards { display: flex; flex-direction: column; gap: .55rem; align-self: stretch; max-width: 100%; animation: np-in .35s var(--np-ease); }
.ai-card { border: 1px solid var(--np-border); background: var(--np-surface); border-radius: .9rem; padding: .7rem .8rem; font-size: .85rem; }
.ai-card .t { font-weight: 600; line-height: 1.3; }
.ai-card .s { color: var(--np-muted); font-size: .78rem; }
.ai-card .meta { display: flex; flex-wrap: wrap; gap: .25rem .6rem; color: var(--np-muted); font-size: .75rem; margin-top: .3rem; }
.ai-card .badge-soft { font-size: .68rem; padding: .15rem .45rem; border-radius: 999px; background: rgba(132,204,22,.16); color: var(--np-text); border: 1px solid rgba(132,204,22,.35); }
.ai-card .otp { font-family: var(--np-font-display, inherit); font-weight: 700; letter-spacing: .25em; }
.ai-card .acts { display: flex; flex-wrap: wrap; gap: .4rem; margin-top: .55rem; }
.ai-card .acts .btn { font-size: .76rem; padding: .25rem .65rem; }
.ai-card .stats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .4rem; margin-top: .4rem; }
.ai-card .stats div { background: var(--np-surface-2); border-radius: .6rem; padding: .4rem .55rem; }
.ai-card .stats b { display: block; font-size: .95rem; }
.ai-card .stats span { color: var(--np-muted); font-size: .7rem; }
.assistant-page { display: grid; grid-template-columns: 280px minmax(0, 1fr); gap: 1.25rem; height: calc(100vh - 220px); min-height: 520px; }
.assistant-page > * { min-height: 0; }
.assistant-page .threads { overflow-y: auto; }
.assistant-page .threads a { display: block; padding: .55rem .7rem; border-radius: .7rem; color: var(--np-text); text-decoration: none; font-size: .85rem; }
.assistant-page .threads a.active, .assistant-page .threads a:hover { background: var(--np-surface-2); }
.assistant-page .np-chat { position: static; display: flex; flex-direction: column; height: 100%; border: 1px solid var(--np-border); border-radius: 1.2rem; padding: 1rem; background: var(--np-surface); }
@media (max-width: 991.98px) { .assistant-page { grid-template-columns: 1fr; height: calc(100vh - 260px); } .assistant-page .threads { display: none; } }
.esg-hero { background: linear-gradient(135deg, rgba(21,128,61,.18), rgba(132,204,22,.12) 60%, rgba(250,204,21,.12)); border: 1px solid rgba(132,204,22,.35); border-radius: 1.2rem; }
.esg-big { font-size: clamp(2rem, 4vw, 3rem); font-weight: 700; line-height: 1; }
.health-row { display: flex; gap: .75rem; align-items: flex-start; padding: .55rem 0; border-bottom: 1px dashed var(--np-border); }
.health-row:last-child { border-bottom: 0; }
.health-dot { width: .7rem; height: .7rem; border-radius: 50%; margin-top: .35rem; flex: none; }
.health-dot.ok { background: #22c55e; box-shadow: 0 0 10px rgba(34,197,94,.7); } .health-dot.warn { background: #facc15; box-shadow: 0 0 10px rgba(250,204,21,.7); } .health-dot.fail { background: #ef4444; box-shadow: 0 0 10px rgba(239,68,68,.7); }
/* Maps: one key-free light basemap; dark mode by filter (vector + raster) */
[data-bs-theme="dark"] .leaflet-gl-layer, [data-bs-theme="dark"] .leaflet-tile-pane { filter: invert(.92) hue-rotate(180deg) brightness(.95) contrast(.9) saturate(.6); }
.leaflet-gl-layer.maplibregl-map { z-index: 1; }

/* ---------- v2.7 · Co-pilot icon, prompt categories, trip history ---------- */
.np-fab svg { display: block; }
.np-copilot-ic .spark { animation: np-spark 2.8s ease-in-out infinite; transform-box: fill-box; transform-origin: center; } .np-copilot-ic .spark.s2 { animation-delay: -1.4s; }
@keyframes np-spark { 0%, 100% { transform: scale(1) rotate(0); opacity: 1; } 50% { transform: scale(.6) rotate(45deg); opacity: .6; } }
.np-nav a .np-copilot-ic { width: 1.1em; height: 1.1em; vertical-align: -.15em; }
.copilot-badge { width: 34px; height: 34px; flex: none; display: grid; place-items: center; border-radius: 11px; background: var(--np-grad); color: #052e16; box-shadow: 0 10px 24px -12px rgba(132,204,22,.8); }
.copilot-badge.lg { width: 48px; height: 48px; border-radius: 14px; }
.copilot-prompts { margin: .8rem 0; }
.copilot-prompts .chips:empty { display: none; }
.copilot-prompts .chips { margin-bottom: .5rem; }
.prompt-tabs { display: flex; gap: .25rem; overflow-x: auto; padding-bottom: .35rem; scrollbar-width: none; }
.prompt-tabs::-webkit-scrollbar { display: none; }
.prompt-tabs button { flex: none; border: 1px solid transparent; background: transparent; color: var(--np-muted); font-size: .76rem; padding: .25rem .6rem; border-radius: 999px; transition: all .2s; }
.prompt-tabs button:hover { color: var(--np-text); }
.prompt-tabs button.active { color: var(--np-text); background: var(--np-surface-2); border-color: var(--np-border-strong); }
.prompt-chips { display: flex; flex-wrap: wrap; gap: .35rem; animation: np-in .3s var(--np-ease); }
.prompt-chips .btn { font-size: .78rem; }
.history-row { transition: background .2s; }
.history-row:hover { background: var(--np-surface-2); }
.ra-list .list-group-item.active { background: var(--np-grad-soft); color: var(--np-text); border-color: var(--np-border-strong); }
.cause-card { border-color: rgba(251,113,133,.3) !important; background: radial-gradient(100% 120% at 0% 0%, rgba(251,113,133,.1), transparent 60%), var(--np-surface) !important; }

/* ---------- v2.7.2 · Urgent alert pop-up & help centre ---------- */
.np-alert-modal .modal-content { border-radius: 1.4rem; overflow: hidden; border: 1px solid rgba(239,68,68,.45); box-shadow: 0 30px 80px -20px rgba(239,68,68,.45); }
.np-alert-band { height: 86px; display: grid; place-items: center; background: radial-gradient(80% 140% at 50% 0%, rgba(239,68,68,.35), transparent 70%); }
.np-alert-ico { width: 64px; height: 64px; border-radius: 50%; display: grid; place-items: center; font-size: 1.8rem; color: #fff; background: linear-gradient(135deg, #ef4444, #f97316); animation: np-alert-pulse 1.4s ease-in-out infinite; }
@keyframes np-alert-pulse { 0%, 100% { box-shadow: 0 0 0 0 rgba(239,68,68,.6); } 60% { box-shadow: 0 0 0 18px rgba(239,68,68,0); } }
.np-alert-modal.ok .modal-content { border-color: rgba(34,197,94,.45); box-shadow: 0 30px 80px -20px rgba(34,197,94,.4); }
.np-alert-modal.ok .np-alert-ico { background: linear-gradient(135deg, #16a34a, #84cc16); animation: none; }
.np-alert-modal.ok [data-alert-label] { color: #16a34a !important; }
.help-search { max-width: 420px; }
.help-guide { scroll-margin-top: 90px; }
.help-guide .step { display: flex; gap: .8rem; padding: .7rem 0; border-top: 1px dashed var(--np-border); }
.help-guide .step:first-child { border-top: 0; }
.help-guide .step .n { width: 28px; height: 28px; flex: none; border-radius: 50%; display: grid; place-items: center; font-weight: 700; font-size: .8rem; background: var(--np-grad); color: #052e16; }
.help-toc a { display: flex; align-items: center; gap: .5rem; padding: .45rem .6rem; border-radius: .6rem; color: var(--np-text); text-decoration: none; font-size: .86rem; }
.help-toc a:hover { background: var(--np-surface-2); }
.setup-check li { display: flex; align-items: center; gap: .6rem; padding: .45rem 0; border-top: 1px solid var(--np-border); font-size: .88rem; }
.setup-check li:first-child { border-top: 0; }
.setup-check li i.done { color: #22c55e; } .setup-check li i.todo { color: var(--np-muted); }

/* ---------- v2.7.4 · key/value lists never overflow their card ---------- */
.kv-list { display: grid; grid-template-columns: max-content minmax(0, 1fr); gap: .55rem 1rem; margin: 0; }
.kv-list dt { font-weight: 400; color: var(--np-muted); }
.kv-list dd { margin: 0; text-align: right; overflow-wrap: anywhere; min-width: 0; }
.d-grid > .d-flex.justify-content-between > span:last-child { min-width: 0; overflow-wrap: anywhere; text-align: right; }
.d-grid > .d-flex.justify-content-between > span:first-child { flex: none; }
.d-grid > .d-flex.justify-content-between > .truncate { white-space: normal; }

/* Logo boxes: always contain the image inside the rounded box */
.np-logo { overflow: hidden; }
.np-logo > img { width: 100%; height: 100%; object-fit: contain; border-radius: inherit; display: block; }
.np-logo-xl { width: 96px; height: 96px; border-radius: 24px; font-size: 2rem; }

/* Company found chip: full width, name wraps instead of being cut off */
.company-found:empty { display: none; }
.company-chip .co-name { overflow-wrap: anywhere; line-height: 1.25; }
.company-chip .co { flex: none; }
