/* =============================================================================
   Nizam Energy UI kit · nizam-ui.css · v1.0
   -----------------------------------------------------------------------------
   Brand colours sampled from the Nizam Energy logo:
     green  #00A651   lime  #A8CE3B   indigo  #3C469D
   Rule of thumb: ~90% neutral surfaces, ~8% brand, ~2% status colour.
   Every class starts with "ne-" and every token with "--ne-" so this file can
   be added to an existing app without clashing with its current CSS.
   Fonts: Geist + Geist Mono (Google Fonts) — add in <head>:
   <link rel="stylesheet" href="https://fonts.googleapis.com/css2?family=Geist:wght@400;500;600;700&family=Geist+Mono:wght@400;500;600&display=swap">
   ========================================================================== */

/* Smooth page-to-page transitions for multi-page apps (Chrome/Edge 126+,
   Safari 18.2+). Browsers without support simply navigate normally. */
@view-transition { navigation: auto; }

/* ---------------------------------------------------------------------------
   1. Tokens — light theme on :root, dark theme in the two blocks below
   ------------------------------------------------------------------------ */
:root {
  --ne-green: #00A651;
  --ne-lime: #A8CE3B;
  --ne-indigo: #3C469D;

  --ne-font: "Geist", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --ne-font-mono: "Geist Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;

  --ne-r-xs: 6px;
  --ne-r-sm: 8px;
  --ne-r-md: 10px;
  --ne-r-lg: 14px;
  --ne-r-xl: 20px;
  --ne-r-full: 999px;

  /* motion: enter with ease-out, leave with ease-in, press/hover with spring */
  --ne-ease-out: cubic-bezier(.16, 1, .3, 1);
  --ne-ease-in: cubic-bezier(.4, 0, 1, 1);
  --ne-ease: cubic-bezier(.2, 0, 0, 1);
  --ne-ease-spring: cubic-bezier(.34, 1.56, .64, 1);
  --ne-dur-1: 80ms;    /* press */
  --ne-dur-2: 140ms;   /* hover colour */
  --ne-dur-3: 220ms;   /* small movement, menus */
  --ne-dur-4: 320ms;   /* page enter, drawers */
  --ne-dur-5: 520ms;   /* large reveals, theme change */
  --ne-dur-data: 900ms;/* count-ups, chart drawing */

  --ne-side-w: 252px;
  --ne-top-h: 64px;

  color-scheme: light;
  /* A light wash of the Nizam Energy green, not flat gray — cards stay pure
     white on top of it, so the canvas reads "branded" without going green. */
  --ne-bg: #F0F5EF;
  --ne-bg-sunken: #E7EFE5;
  --ne-surface: #FFFFFF;
  --ne-surface-2: #F8F9FB;
  --ne-surface-raised: #FFFFFF;
  --ne-hover: rgba(18, 22, 48, .045);
  --ne-press: rgba(18, 22, 48, .085);
  --ne-border: #E4E7EE;
  --ne-border-strong: #D3D8E3;
  --ne-text: #121624;
  --ne-text-2: #4F566E;
  --ne-text-3: #6B7289;

  --ne-accent: #3C469D;
  --ne-accent-hover: #313A84;
  --ne-accent-soft: rgba(60, 70, 157, .09);
  --ne-accent-text: #3C469D;
  --ne-on-accent: #FFFFFF;

  --ne-brand: #A8CE3B;
  --ne-brand-hover: #B5D84F;
  --ne-brand-press: #9AC030;
  --ne-brand-border: #93B82C;
  --ne-on-brand: #111A06;
  --ne-brand-soft: rgba(168, 206, 59, .18);
  --ne-brand-text: #5A7A12;
  --ne-brand-glow: rgba(141, 185, 30, .42);
  --ne-spot-inner: 6%;

  --ne-ok: #00A651;      --ne-ok-text: #007A3C;   --ne-ok-soft: rgba(0, 166, 81, .11);
  --ne-warn: #F5A524;    --ne-warn-text: #955800; --ne-warn-soft: rgba(245, 165, 36, .16);
  --ne-crit: #E5484D;    --ne-crit-text: #C0282E; --ne-crit-soft: rgba(229, 72, 77, .11);
  --ne-info: #3C469D;    --ne-info-text: #3C469D; --ne-info-soft: rgba(60, 70, 157, .09);

  --ne-data-1: #6E9A1E;                    /* actual generation */
  --ne-data-1-fill: rgba(168, 206, 59, .24);
  --ne-data-2: #4B55B4;                    /* forecast / expected */
  --ne-data-2-fill: rgba(75, 85, 180, .10);
  --ne-data-3: #00A651;
  --ne-grid: #EBEDF3;
  --ne-axis: #858CA3;

  --ne-side-bg: #00CE67;
  --ne-side-border: rgba(0, 0, 0, .1);
  --ne-side-text: #0F3D22;
  --ne-side-text-2: #1E5234;
  --ne-side-text-strong: #062A14;
  --ne-side-hover: rgba(0, 0, 0, .06);
  --ne-side-active: rgba(255, 255, 255, .32);

  --ne-shadow-1: 0 1px 2px rgba(16, 24, 40, .05), 0 1px 1px rgba(16, 24, 40, .02);
  --ne-shadow-2: 0 8px 20px -6px rgba(16, 24, 40, .12), 0 2px 5px -2px rgba(16, 24, 40, .06);
  --ne-shadow-3: 0 24px 56px -12px rgba(16, 24, 40, .24), 0 8px 18px -8px rgba(16, 24, 40, .12);
  --ne-highlight: inset 0 1px 0 rgba(255, 255, 255, .7);
  --ne-glass: rgba(244, 245, 248, .74);
  --ne-glass-strong: rgba(255, 255, 255, .9);
  --ne-skeleton: #E8EBF1;
  --ne-skeleton-shine: rgba(255, 255, 255, .8);
  --ne-scrim: rgba(9, 12, 21, .36);
  --ne-tip-bg: #0B0F1E;
  --ne-tip-fg: #F2F4FA;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    color-scheme: dark;
    --ne-bg: #080D0A;
    --ne-bg-sunken: #050904;
    --ne-surface: #0F1320;
    --ne-surface-2: #131827;
    --ne-surface-raised: #171C2D;
    --ne-hover: rgba(200, 210, 255, .055);
    --ne-press: rgba(200, 210, 255, .1);
    --ne-border: rgba(150, 162, 214, .13);
    --ne-border-strong: rgba(150, 162, 214, .22);
    --ne-text: #ECEEF6;
    --ne-text-2: #A6ACC3;
    --ne-text-3: #7F86A1;
    --ne-accent: #8E96F2;
    --ne-accent-hover: #A7ADF6;
    --ne-accent-soft: rgba(142, 150, 242, .15);
    --ne-accent-text: #A3AAF5;
    --ne-on-accent: #0B0F1E;
    --ne-brand: #B4DB4A;
    --ne-brand-hover: #C2E562;
    --ne-brand-press: #A6CE3B;
    --ne-brand-border: #C6E86A;
    --ne-on-brand: #0B1204;
    --ne-brand-soft: rgba(180, 219, 74, .14);
    --ne-brand-text: #C2E466;
    --ne-brand-glow: rgba(180, 219, 74, .38);
    --ne-spot-inner: 9%;
    --ne-ok: #2FCB7A;   --ne-ok-text: #55DC98;   --ne-ok-soft: rgba(47, 203, 122, .14);
    --ne-warn: #FFB340; --ne-warn-text: #FFC56E; --ne-warn-soft: rgba(255, 179, 64, .14);
    --ne-crit: #FF5A60; --ne-crit-text: #FF8589; --ne-crit-soft: rgba(255, 90, 96, .15);
    --ne-info: #8E96F2; --ne-info-text: #A3AAF5; --ne-info-soft: rgba(142, 150, 242, .15);
    --ne-data-1: #B4DB4A;
    --ne-data-1-fill: rgba(180, 219, 74, .17);
    --ne-data-2: #8E96F2;
    --ne-data-2-fill: rgba(142, 150, 242, .12);
    --ne-data-3: #2FCB7A;
    --ne-grid: rgba(150, 162, 214, .09);
    --ne-axis: #6F7693;
    --ne-side-bg: #00CE67;
    --ne-side-border: rgba(255, 255, 255, .07);
    --ne-side-active: rgba(180, 219, 74, .1);
    --ne-shadow-1: 0 1px 2px rgba(0, 0, 0, .45);
    --ne-shadow-2: 0 10px 24px -8px rgba(0, 0, 0, .6), 0 2px 6px -2px rgba(0, 0, 0, .45);
    --ne-shadow-3: 0 30px 60px -14px rgba(0, 0, 0, .75), 0 10px 22px -10px rgba(0, 0, 0, .55);
    --ne-highlight: inset 0 1px 0 rgba(255, 255, 255, .045);
    --ne-glass: rgba(8, 11, 20, .68);
    --ne-glass-strong: rgba(23, 28, 45, .9);
    --ne-skeleton: rgba(150, 162, 214, .1);
    --ne-skeleton-shine: rgba(200, 210, 255, .09);
    --ne-scrim: rgba(0, 0, 0, .55);
    --ne-tip-bg: #E9ECF6;
    --ne-tip-fg: #0B0F1E;
  }
}

:root[data-theme="dark"] {
  color-scheme: dark;
  --ne-bg: #080D0A;
  --ne-bg-sunken: #050904;
  --ne-surface: #0F1320;
  --ne-surface-2: #131827;
  --ne-surface-raised: #171C2D;
  --ne-hover: rgba(200, 210, 255, .055);
  --ne-press: rgba(200, 210, 255, .1);
  --ne-border: rgba(150, 162, 214, .13);
  --ne-border-strong: rgba(150, 162, 214, .22);
  --ne-text: #ECEEF6;
  --ne-text-2: #A6ACC3;
  --ne-text-3: #7F86A1;
  --ne-accent: #8E96F2;
  --ne-accent-hover: #A7ADF6;
  --ne-accent-soft: rgba(142, 150, 242, .15);
  --ne-accent-text: #A3AAF5;
  --ne-on-accent: #0B0F1E;
  --ne-brand: #B4DB4A;
  --ne-brand-hover: #C2E562;
  --ne-brand-press: #A6CE3B;
  --ne-brand-border: #C6E86A;
  --ne-on-brand: #0B1204;
  --ne-brand-soft: rgba(180, 219, 74, .14);
  --ne-brand-text: #C2E466;
  --ne-brand-glow: rgba(180, 219, 74, .38);
  --ne-spot-inner: 9%;
  --ne-ok: #2FCB7A;   --ne-ok-text: #55DC98;   --ne-ok-soft: rgba(47, 203, 122, .14);
  --ne-warn: #FFB340; --ne-warn-text: #FFC56E; --ne-warn-soft: rgba(255, 179, 64, .14);
  --ne-crit: #FF5A60; --ne-crit-text: #FF8589; --ne-crit-soft: rgba(255, 90, 96, .15);
  --ne-info: #8E96F2; --ne-info-text: #A3AAF5; --ne-info-soft: rgba(142, 150, 242, .15);
  --ne-data-1: #B4DB4A;
  --ne-data-1-fill: rgba(180, 219, 74, .17);
  --ne-data-2: #8E96F2;
  --ne-data-2-fill: rgba(142, 150, 242, .12);
  --ne-data-3: #2FCB7A;
  --ne-grid: rgba(150, 162, 214, .09);
  --ne-axis: #6F7693;
  --ne-side-bg: #00CE67;
  --ne-side-border: rgba(255, 255, 255, .07);
  --ne-side-active: rgba(180, 219, 74, .1);
  --ne-shadow-1: 0 1px 2px rgba(0, 0, 0, .45);
  --ne-shadow-2: 0 10px 24px -8px rgba(0, 0, 0, .6), 0 2px 6px -2px rgba(0, 0, 0, .45);
  --ne-shadow-3: 0 30px 60px -14px rgba(0, 0, 0, .75), 0 10px 22px -10px rgba(0, 0, 0, .55);
  --ne-highlight: inset 0 1px 0 rgba(255, 255, 255, .045);
  --ne-glass: rgba(8, 11, 20, .68);
  --ne-glass-strong: rgba(23, 28, 45, .9);
  --ne-skeleton: rgba(150, 162, 214, .1);
  --ne-skeleton-shine: rgba(200, 210, 255, .09);
  --ne-scrim: rgba(0, 0, 0, .55);
  --ne-tip-bg: #E9ECF6;
  --ne-tip-fg: #0B0F1E;
}

/* ---------------------------------------------------------------------------
   2. Base
   ------------------------------------------------------------------------ */
:where(*, *::before, *::after) { box-sizing: border-box; }
[hidden] { display: none !important; }
body {
  margin: 0;
  font-family: var(--ne-font);
  font-size: 14px;
  line-height: 1.45;
  color: var(--ne-text);
  background: var(--ne-bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}
:where(h1, h2, h3, h4) { text-wrap: balance; }
:where(button, input, select, textarea) { font: inherit; color: inherit; }
::selection { background: color-mix(in srgb, var(--ne-brand) 40%, transparent); }
* { scrollbar-width: thin; scrollbar-color: var(--ne-border-strong) transparent; }

:where(a, button, input, select, textarea, summary, [tabindex]):focus-visible {
  outline: 2px solid var(--ne-accent);
  outline-offset: 2px;
  box-shadow: 0 0 0 6px var(--ne-accent-soft);
}

.ne-num { font-variant-numeric: tabular-nums; font-feature-settings: "tnum" 1; }
.ne-mono { font-family: var(--ne-font-mono); font-size: .94em; font-variant-numeric: tabular-nums; }
.ne-muted { color: var(--ne-text-2); }
.ne-faint { color: var(--ne-text-3); }
.ne-sr { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.ne-i { width: 18px; height: 18px; flex-shrink: 0; fill: none; stroke: currentColor; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; }
.ne-row { display: flex; align-items: center; gap: 8px; }
.ne-grow { flex: 1 1 auto; min-width: 0; }

/* ---------------------------------------------------------------------------
   3. App shell: dark sidebar + glass top bar + scrolling page
   ------------------------------------------------------------------------ */
.ne-shell {
  position: relative;
  display: grid;
  grid-template-columns: var(--ne-side-w) minmax(0, 1fr);
  height: 100%;
  min-height: 0;
  transition: grid-template-columns var(--ne-dur-4) var(--ne-ease);
}
.ne-shell.is-collapsed { --ne-side-w: 64px; }
/* Collapsed is the default: a slim icon rail that the page content never
   reflows for. The rail itself is an overlay the whole time it's collapsed
   (not just on hover) — only its width changes — so hovering never snaps
   between layout modes, it just grows over the content and tucks back the
   instant the pointer leaves, Dock-style. Pinning it open (the collapse
   button) drops back to a normal in-flow sidebar with no hover needed. */
.ne-shell.is-collapsed .ne-side {
  position: absolute;
  top: 0; left: 0; bottom: 0;
  width: var(--ne-side-w);
  z-index: 60;
  transition: width var(--ne-dur-4) var(--ne-ease), box-shadow var(--ne-dur-4) var(--ne-ease);
}
.ne-shell.is-collapsed .ne-side:hover {
  width: 252px;
  box-shadow: var(--ne-shadow-3);
}
.ne-shell.is-collapsed .ne-side:hover .ne-nav-text,
.ne-shell.is-collapsed .ne-side:hover .ne-nav-label,
.ne-shell.is-collapsed .ne-side:hover .ne-brand-text,
.ne-shell.is-collapsed .ne-side:hover .ne-user-text,
.ne-shell.is-collapsed .ne-side:hover .ne-nav-badge { opacity: 1; pointer-events: auto; }
.ne-shell.is-collapsed .ne-side:hover .ne-nav-badge { position: static; margin-left: auto; }
/* The icon-only pop (Prompt 1's dock-hover) only makes sense when the label
   is hidden — once the rail's expanded on hover, the row's own hover is
   plenty of feedback, so don't also blow the icon up past the text. */
.ne-shell.is-collapsed .ne-side:hover .ne-nav:hover .ne-i { transform: none; }

/* The brand header is the one row that never minimizes, even at rest:
   logo + "Nizam Energy" + site name stay fully readable so there's always
   an anchor for where you are, while the nav rail below still collapses to
   icons. It floats wider than the narrow rail, so .ne-side can't clip it. */
/* 12 Nov 2026: the floating 228px brand row covered the top bar's search box and the first nav icon, and repeated
   the site name the "Switch site" button already shows. At rest the collapsed rail now shows the logo only; the
   name appears with the other labels when the rail expands on hover. */
.ne-shell.is-collapsed .ne-side { overflow: visible; }
.ne-shell.is-collapsed .ne-brand { justify-content: center; padding: 0; }
.ne-shell.is-collapsed .ne-side:hover .ne-brand { justify-content: flex-start; padding: 0 8px; }
.ne-shell.is-collapsed .ne-brand-text { opacity: 0; width: 0; overflow: hidden; pointer-events: none; transition: opacity var(--ne-dur-2); }
.ne-shell.is-collapsed .ne-side:hover .ne-brand-text { width: auto; overflow: visible; }

.ne-side {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 0;
  padding: 16px 12px 12px;
  background: var(--ne-side-bg);
  color: var(--ne-side-text);
  border-right: 1px solid var(--ne-side-border);
  overflow: hidden;
  view-transition-name: ne-side;
}
.ne-side-scroll { position: relative; flex: 1 1 auto; overflow: hidden auto; margin: 0 -4px; padding: 0 4px; scrollbar-width: none; }
.ne-brand { display: flex; align-items: center; gap: 12px; height: 44px; padding: 0 8px; margin-bottom: 14px; color: var(--ne-side-text-strong); text-decoration: none; white-space: nowrap; }
.ne-brand-mark { display: grid; place-items: center; width: 34px; height: 34px; flex-shrink: 0; border-radius: 10px; background: var(--ne-green); color: #fff; box-shadow: inset 0 1px 0 rgba(255, 255, 255, .25), 0 6px 16px -6px rgba(0, 166, 81, .6); }
.ne-brand-mark .ne-i { width: 18px; height: 18px; stroke-width: 2; }
.ne-brand-name { font-size: 15px; font-weight: 600; letter-spacing: -.01em; line-height: 1.15; }
.ne-brand-sub { display: block; font-size: 11.5px; font-weight: 500; color: var(--ne-side-text-2); letter-spacing: 0; }

.ne-nav-group + .ne-nav-group { margin-top: 18px; }
.ne-nav-sub { display: none; padding-left: 14px; }
.ne-nav-other.is-open > .ne-nav-sub { display: block; }
.ne-nav-chev { display: inline-flex; transition: transform var(--ne-dur-2) var(--ne-ease); }
.ne-nav-chev .ne-i { width: 16px; height: 16px; }
.ne-nav-other.is-open > .ne-nav-other-btn .ne-nav-chev { transform: rotate(180deg); }
.ne-shell.is-collapsed .ne-side:not(:hover) .ne-nav-chev { display: none; }
.ne-nav-label { height: 24px; padding: 0 12px; font-size: 11px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--ne-side-text-2); white-space: nowrap; transition: opacity var(--ne-dur-2); }
.ne-nav {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  height: 40px;
  padding: 0 12px;
  border: 0;
  border-radius: var(--ne-r-sm);
  background: transparent;
  color: var(--ne-side-text);
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition: color var(--ne-dur-2) var(--ne-ease), background-color var(--ne-dur-2) var(--ne-ease);
}
.ne-nav:hover { color: var(--ne-side-text-strong); background: var(--ne-side-hover); }
.ne-nav[aria-current="page"] { color: var(--ne-side-text-strong); background: transparent; }
.ne-nav .ne-i { transition: transform var(--ne-dur-3) var(--ne-ease-spring), color var(--ne-dur-2); }
.ne-nav:hover .ne-i { transform: scale(1.1); }
.ne-nav[aria-current="page"] .ne-i { color: var(--ne-side-text-strong); }
.ne-nav-text { flex: 1 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; transition: opacity var(--ne-dur-2); }
.ne-nav-badge { min-width: 20px; height: 20px; padding: 0 6px; border-radius: 10px; display: grid; place-items: center; font-size: 11px; font-weight: 600; font-variant-numeric: tabular-nums; background: var(--ne-crit); color: #fff; transition: transform var(--ne-dur-3) var(--ne-ease-spring); }
.ne-nav-badge.is-neutral { background: rgba(255, 255, 255, .1); color: var(--ne-side-text-strong); }
.ne-nav-badge.is-bump { animation: ne-bump 600ms var(--ne-ease-spring); }
.ne-nav-indicator {
  position: absolute;
  z-index: 0;
  left: 4px;
  right: 4px;
  top: 0;
  height: 40px;
  border-radius: var(--ne-r-sm);
  background: var(--ne-side-active);
  box-shadow: inset 0 0 0 1px rgba(180, 219, 74, .16);
  pointer-events: none;
  opacity: 0;
  transition: transform var(--ne-dur-4) var(--ne-ease-out), opacity var(--ne-dur-2);
}
.ne-nav-indicator::before {
  content: "";
  position: absolute;
  left: 5px;
  top: 50%;
  width: 3px;
  height: 16px;
  margin-top: -8px;
  border-radius: 3px;
  background: var(--ne-brand);
  box-shadow: 0 0 12px 1px var(--ne-brand-glow), 0 0 3px var(--ne-brand);
}
.ne-side-foot { display: flex; flex-direction: column; gap: 4px; padding-top: 10px; margin-top: 10px; border-top: 1px solid var(--ne-side-border); }
.ne-user { display: flex; align-items: center; gap: 10px; height: 48px; padding: 0 8px; border: 0; border-radius: var(--ne-r-md); background: transparent; color: var(--ne-side-text-strong); text-align: left; cursor: pointer; white-space: nowrap; transition: background-color var(--ne-dur-2); }
.ne-user:hover { background: var(--ne-side-hover); }
.ne-user small { display: block; color: var(--ne-side-text-2); font-size: 12px; }
.ne-shell.is-collapsed .ne-nav-text,
.ne-shell.is-collapsed .ne-nav-label,
.ne-shell.is-collapsed .ne-user-text,
.ne-shell.is-collapsed .ne-nav-badge { opacity: 0; pointer-events: none; }
.ne-shell.is-collapsed .ne-nav-badge { position: absolute; }
/* Collapsed rail: smaller at rest, a Dock-style pop on hover (icon only —
   the row itself stays put so neighbours don't shift), settling back the
   instant the pointer leaves via the same spring transition as .ne-i. */
.ne-shell.is-collapsed .ne-nav { height: 44px; justify-content: center; padding: 0; }
.ne-shell.is-collapsed .ne-nav .ne-i { width: 22px; height: 22px; }
.ne-shell.is-collapsed .ne-nav:hover .ne-i { transform: scale(1.3); }

/* grid-column pinned explicitly: once .ne-side becomes position:absolute
   (collapsed rail, see above) it drops out of grid auto-placement, and
   without this .ne-main would auto-place into column 1 instead of 2 —
   collapsing to the sidebar's own 76px track and rendering the entire
   page content invisible off in a sliver. Pinning it removes any
   dependency on .ne-side's flow state. */
/* No overscroll-behavior: contain here. The page scrolls the document, not #neMain (see app_shell.js), so
   #neMain is a scroll box with nothing to scroll; `contain` stopped the mouse wheel there and the white
   content area could not be scrolled at all — only the sidebar, whose wheel is forwarded in JS. */
.ne-main { grid-column: 2; position: relative; min-width: 0; min-height: 0; height: 100%; overflow: auto; }
.ne-top {
  position: sticky;
  top: 0;
  z-index: 30;
  display: flex;
  align-items: center;
  gap: 12px;
  height: var(--ne-top-h);
  padding: 0 28px;
  background: var(--ne-glass);
  -webkit-backdrop-filter: saturate(180%) blur(16px);
  backdrop-filter: saturate(180%) blur(16px);
  border-bottom: 1px solid transparent;
  transition: border-color var(--ne-dur-3) var(--ne-ease), box-shadow var(--ne-dur-3) var(--ne-ease);
  view-transition-name: ne-top;
}
.ne-top.is-scrolled { border-bottom-color: var(--ne-border); box-shadow: 0 10px 30px -22px rgba(16, 24, 40, .45); }
.ne-top-right { display: flex; align-items: center; gap: 6px; margin-left: auto; }

.ne-page {
  display: flex;
  flex-direction: column;
  gap: 20px;
  max-width: 1480px;
  margin: 0 auto;
  padding: 12px 28px 56px;
  view-transition-name: ne-page;
}
.ne-page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding-top: 12px; }
.ne-crumbs { display: flex; align-items: center; gap: 6px; font-size: 13px; color: var(--ne-text-3); }
.ne-crumbs a { color: inherit; text-decoration: none; border-radius: 4px; transition: color var(--ne-dur-2); }
.ne-crumbs a:hover { color: var(--ne-text); }
.ne-crumbs .ne-i { width: 14px; height: 14px; }
.ne-title { margin: 6px 0 0; font-size: 28px; line-height: 34px; font-weight: 600; letter-spacing: -.028em; }
.ne-subtitle { margin: 4px 0 0; color: var(--ne-text-2); font-size: 14px; }
.ne-actions { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }

.ne-grid { display: grid; gap: 16px; }
.ne-grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.ne-grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.ne-grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.ne-grid-21 { grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); }
.ne-grid-12 { grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); }

/* ---------------------------------------------------------------------------
   4. Surfaces
   ------------------------------------------------------------------------ */
.ne-card {
  position: relative;
  isolation: isolate;
  min-width: 0;
  background: var(--ne-surface);
  border: 1px solid var(--ne-border);
  border-radius: var(--ne-r-lg);
  box-shadow: var(--ne-shadow-1), var(--ne-highlight);
}
.ne-card-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 28px; padding: 18px 20px 0; }
.ne-card-title { margin: 0; font-size: 15px; line-height: 20px; font-weight: 600; letter-spacing: -.012em; }
.ne-card-sub { display: block; margin-top: 2px; font-size: 12.5px; font-weight: 400; color: var(--ne-text-3); letter-spacing: 0; }
.ne-card-body { padding: 16px 20px 20px; }
.ne-card-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 20px; border-top: 1px solid var(--ne-border); font-size: 13px; color: var(--ne-text-3); }
.ne-card.is-interactive { cursor: pointer; transition: transform var(--ne-dur-3) var(--ne-ease-out), box-shadow var(--ne-dur-3) var(--ne-ease-out), border-color var(--ne-dur-2); }
.ne-card.is-interactive:hover { transform: translateY(-2px); border-color: var(--ne-border-strong); box-shadow: var(--ne-shadow-2), var(--ne-highlight); }
.ne-card.is-interactive:active { transform: translateY(0) scale(.99); transition-duration: var(--ne-dur-1); }

/* Illumination: a soft light follows the pointer across the card and its border.
   The motion JS writes --ne-mx / --ne-my; without JS nothing shows. */
.ne-spot::before,
.ne-spot::after { content: ""; position: absolute; border-radius: inherit; pointer-events: none; opacity: 0; transition: opacity var(--ne-dur-4) var(--ne-ease); }
.ne-spot::before { inset: 0; z-index: -1; background: radial-gradient(520px circle at var(--ne-mx, 50%) var(--ne-my, 50%), color-mix(in srgb, var(--ne-brand) var(--ne-spot-inner), transparent), transparent 42%); }
.ne-spot::after {
  inset: -1px;
  padding: 1px;
  background: radial-gradient(300px circle at var(--ne-mx, 50%) var(--ne-my, 50%), color-mix(in srgb, var(--ne-brand) 75%, transparent), transparent 48%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
}
.ne-spot:hover::before,
.ne-spot:hover::after { opacity: 1; }

.ne-divider { height: 1px; background: var(--ne-border); border: 0; margin: 0; }

/* ---------------------------------------------------------------------------
   5. KPI tiles, deltas, meters
   ------------------------------------------------------------------------ */
.ne-kpi { display: flex; flex-direction: column; gap: 6px; padding: 18px 20px 16px; }
.ne-kpi-label { display: flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 500; color: var(--ne-text-2); }
.ne-kpi-label .ne-i { width: 16px; height: 16px; color: var(--ne-text-3); }
.ne-kpi-value { display: flex; align-items: baseline; gap: 4px; font-size: 32px; line-height: 38px; font-weight: 600; letter-spacing: -.032em; font-variant-numeric: tabular-nums; white-space: nowrap; }
.ne-kpi-unit { font-size: 15px; font-weight: 500; letter-spacing: -.01em; color: var(--ne-text-3); }
.ne-kpi-prefix { font-size: 15px; font-weight: 500; color: var(--ne-text-3); letter-spacing: 0; margin-right: 2px; }
.ne-kpi-foot { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; font-size: 12.5px; color: var(--ne-text-3); }
.ne-kpi-spark { display: block; width: 100%; height: 36px; margin-top: 4px; overflow: visible; }

.ne-delta { display: inline-flex; align-items: center; gap: 2px; height: 20px; padding: 0 7px; border-radius: var(--ne-r-full); font-size: 12px; font-weight: 600; font-variant-numeric: tabular-nums; background: var(--ne-hover); color: var(--ne-text-2); }
.ne-delta .ne-i { width: 13px; height: 13px; stroke-width: 2.2; }
.ne-delta.is-ok { background: var(--ne-ok-soft); color: var(--ne-ok-text); }
.ne-delta.is-warn { background: var(--ne-warn-soft); color: var(--ne-warn-text); }
.ne-delta.is-crit { background: var(--ne-crit-soft); color: var(--ne-crit-text); }

.ne-meter { position: relative; height: 6px; border-radius: 3px; background: var(--ne-bg-sunken); overflow: hidden; }
.ne-meter > i { position: absolute; inset: 0 auto 0 0; width: var(--v, 0%); border-radius: inherit; background: var(--ne-text-3); transition: width 1s var(--ne-ease-out); }
.ne-meter.is-brand > i { background: var(--ne-brand); }
.ne-meter.is-ok > i { background: var(--ne-ok); }
.ne-meter.is-warn > i { background: var(--ne-warn); }
.ne-meter.is-crit > i { background: var(--ne-crit); }
.ne-meter-target { position: absolute; top: -3px; bottom: -3px; width: 2px; border-radius: 1px; background: var(--ne-text); left: var(--t, 80%); }

.ne-flash { border-radius: 6px; animation: ne-flash 1.3s var(--ne-ease-out); }
@keyframes ne-flash { 0% { background-color: var(--ne-brand-soft); box-shadow: 0 0 0 4px var(--ne-brand-soft); } 100% { background-color: transparent; box-shadow: 0 0 0 4px transparent; } }

/* ---------------------------------------------------------------------------
   6. Buttons — hover lifts and grows 2%, press shrinks 3%, release springs back
   ------------------------------------------------------------------------ */
.ne-btn {
  --_bg: var(--ne-surface);
  --_fg: var(--ne-text);
  --_bd: var(--ne-border-strong);
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 38px;
  padding: 0 16px;
  border: 1px solid var(--_bd);
  border-radius: var(--ne-r-md);
  background: var(--_bg);
  color: var(--_fg);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: -.006em;
  line-height: 1;
  white-space: nowrap;
  text-decoration: none;
  cursor: pointer;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
  box-shadow: var(--ne-shadow-1), var(--ne-highlight);
  transition: transform var(--ne-dur-3) var(--ne-ease-spring), background-color var(--ne-dur-2) var(--ne-ease), border-color var(--ne-dur-2) var(--ne-ease), box-shadow var(--ne-dur-3) var(--ne-ease-out), color var(--ne-dur-2);
}
.ne-btn:hover { transform: translateY(-1px) scale(1.02); background: color-mix(in srgb, var(--_bg) 95%, var(--ne-text)); box-shadow: var(--ne-shadow-2), var(--ne-highlight); }
.ne-btn:active { transform: translateY(0) scale(.97); transition-duration: var(--ne-dur-1); box-shadow: var(--ne-shadow-1); }
.ne-btn .ne-i { width: 16px; height: 16px; transition: transform var(--ne-dur-3) var(--ne-ease-spring), opacity var(--ne-dur-2); }
.ne-btn:hover .ne-i-nudge { transform: translateX(3px); }
.ne-btn:hover .ne-i-spin { transform: rotate(-60deg); }

.ne-btn-primary { --_bg: var(--ne-brand); --_fg: var(--ne-on-brand); --_bd: var(--ne-brand-border); font-weight: 600; box-shadow: 0 1px 2px rgba(60, 90, 0, .2), inset 0 1px 0 rgba(255, 255, 255, .45); }
.ne-btn-primary:hover { background: var(--ne-brand-hover); box-shadow: 0 12px 26px -10px var(--ne-brand-glow), inset 0 1px 0 rgba(255, 255, 255, .5); }
.ne-btn-primary::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(105deg, transparent 30%, rgba(255, 255, 255, .5) 50%, transparent 70%); transform: translateX(-130%); pointer-events: none; }
.ne-btn-primary:hover::after { transform: translateX(130%); transition: transform 800ms var(--ne-ease-out); }
.ne-btn-accent { --_bg: var(--ne-accent); --_fg: var(--ne-on-accent); --_bd: transparent; }
.ne-btn-accent:hover { background: var(--ne-accent-hover); }
.ne-btn-ghost { --_bg: transparent; --_bd: transparent; box-shadow: none; }
.ne-btn-ghost:hover { background: var(--ne-hover); box-shadow: none; transform: none; }
.ne-btn-ghost:active { background: var(--ne-press); transform: scale(.97); }
.ne-btn-danger { --_fg: var(--ne-crit-text); }
.ne-btn-sm { height: 32px; padding: 0 12px; font-size: 13px; border-radius: var(--ne-r-sm); gap: 6px; }
.ne-btn-lg { height: 48px; padding: 0 22px; font-size: 15px; border-radius: 12px; }
.ne-btn-block { width: 100%; }
.ne-btn-icon { width: 38px; padding: 0; }
.ne-btn-sm.ne-btn-icon { width: 32px; }
.ne-btn[disabled], .ne-btn[aria-disabled="true"] { opacity: .5; pointer-events: none; }
.ne-btn.is-loading { pointer-events: none; color: transparent; }
.ne-btn.is-loading > :not(.ne-btn-spinner) { opacity: 0; }
.ne-btn-spinner { position: absolute; inset: 0; margin: auto; width: 16px; height: 16px; border-radius: 50%; border: 2px solid var(--_fg); border-right-color: transparent; animation: ne-spin 700ms linear infinite; }
.ne-btn.is-done { pointer-events: none; }

.ne-iconbtn {
  position: relative;
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  padding: 0;
  border: 0;
  border-radius: var(--ne-r-md);
  background: transparent;
  color: var(--ne-text-2);
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  transition: background-color var(--ne-dur-2), color var(--ne-dur-2), transform var(--ne-dur-3) var(--ne-ease-spring);
}
.ne-iconbtn:hover { background: var(--ne-hover); color: var(--ne-text); }
.ne-iconbtn:active { transform: scale(.9); background: var(--ne-press); transition-duration: var(--ne-dur-1); }
.ne-dotbadge { position: absolute; top: 7px; right: 7px; min-width: 16px; height: 16px; padding: 0 4px; border-radius: 8px; background: var(--ne-crit); color: #fff; font-size: 10px; font-weight: 700; line-height: 16px; text-align: center; box-shadow: 0 0 0 2px var(--ne-bg); }
.ne-dotbadge:empty { min-width: 8px; width: 8px; height: 8px; top: 9px; right: 9px; padding: 0; }
.is-ringing .ne-i { animation: ne-ring 900ms var(--ne-ease-out); transform-origin: 50% 3px; }

/* ---------------------------------------------------------------------------
   7. Badges, status dots, live indicator
   ------------------------------------------------------------------------ */
.ne-badge { display: inline-flex; align-items: center; gap: 6px; height: 22px; padding: 0 9px; border-radius: var(--ne-r-full); background: var(--ne-hover); color: var(--ne-text-2); font-size: 12px; font-weight: 500; white-space: nowrap; }
.ne-badge::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.ne-badge.no-dot::before { display: none; }
.ne-badge.is-ok { background: var(--ne-ok-soft); color: var(--ne-ok-text); }
.ne-badge.is-warn { background: var(--ne-warn-soft); color: var(--ne-warn-text); }
.ne-badge.is-crit { background: var(--ne-crit-soft); color: var(--ne-crit-text); }
.ne-badge.is-info { background: var(--ne-info-soft); color: var(--ne-info-text); }
.ne-badge.is-brand { background: var(--ne-brand-soft); color: var(--ne-brand-text); }
.ne-dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--ne-text-3); flex-shrink: 0; }
.ne-dot.is-ok { background: var(--ne-ok); }
.ne-dot.is-warn { background: var(--ne-warn); }
.ne-dot.is-crit { background: var(--ne-crit); }
.ne-live { position: relative; display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--ne-ok); flex-shrink: 0; }
.ne-live::after { content: ""; position: absolute; inset: -4px; border-radius: 50%; border: 2px solid currentColor; color: var(--ne-ok); opacity: 0; animation: ne-ping 2.4s var(--ne-ease-out) infinite; }
.ne-live.is-brand { background: var(--ne-brand); }
.ne-live.is-brand::after { color: var(--ne-brand); }
.ne-live.is-warn { background: var(--ne-warn); }
.ne-live.is-warn::after { color: var(--ne-warn); }
.ne-live.is-crit { background: var(--ne-crit); }
.ne-live.is-crit::after { color: var(--ne-crit); }
.ne-kbd { display: inline-flex; align-items: center; height: 20px; padding: 0 6px; border-radius: 5px; border: 1px solid var(--ne-border-strong); background: var(--ne-surface); color: var(--ne-text-3); font-family: var(--ne-font-mono); font-size: 11px; box-shadow: 0 1px 0 var(--ne-border-strong); }

/* ---------------------------------------------------------------------------
   8. Segmented control and tabs with sliding indicators
   ------------------------------------------------------------------------ */
.ne-seg { position: relative; isolation: isolate; display: inline-flex; gap: 2px; padding: 3px; border: 1px solid var(--ne-border); border-radius: var(--ne-r-md); background: var(--ne-bg-sunken); }
.ne-seg > button { position: relative; z-index: 1; display: inline-flex; align-items: center; gap: 6px; height: 30px; padding: 0 12px; border: 0; border-radius: 7px; background: transparent; color: var(--ne-text-2); font-size: 13px; font-weight: 500; white-space: nowrap; cursor: pointer; transition: color var(--ne-dur-2); }
.ne-seg > button:hover { color: var(--ne-text); }
.ne-seg > button[aria-pressed="true"] { color: var(--ne-text); }
.ne-seg .ne-count { font-size: 11.5px; color: var(--ne-text-3); font-variant-numeric: tabular-nums; }
.ne-seg-thumb { position: absolute; z-index: 0; top: 3px; bottom: 3px; left: 0; width: 0; border-radius: 7px; background: var(--ne-surface-raised); box-shadow: var(--ne-shadow-1), 0 0 0 1px var(--ne-border); pointer-events: none; transition: transform var(--ne-dur-4) var(--ne-ease-out), width var(--ne-dur-4) var(--ne-ease-out); }

.ne-tabs { position: relative; isolation: isolate; display: flex; gap: 2px; border-bottom: 1px solid var(--ne-border); }
.ne-tabs > button { position: relative; z-index: 1; display: inline-flex; align-items: center; gap: 8px; height: 42px; padding: 0 14px; border: 0; background: transparent; color: var(--ne-text-2); font-size: 14px; font-weight: 500; cursor: pointer; transition: color var(--ne-dur-2); }
.ne-tabs > button[aria-selected="true"] { color: var(--ne-text); }
.ne-tabs-hover { position: absolute; z-index: 0; top: 6px; left: 0; width: 0; height: 30px; border-radius: 8px; background: var(--ne-hover); opacity: 0; pointer-events: none; transition: transform var(--ne-dur-3) var(--ne-ease-out), width var(--ne-dur-3) var(--ne-ease-out), opacity var(--ne-dur-2); }
.ne-tabs-line { position: absolute; z-index: 2; bottom: -1px; left: 0; width: 0; height: 2px; border-radius: 2px; background: var(--ne-text); pointer-events: none; transition: transform var(--ne-dur-4) var(--ne-ease-out), width var(--ne-dur-4) var(--ne-ease-out); }

/* ---------------------------------------------------------------------------
   9. Tables
   ------------------------------------------------------------------------ */
.ne-table-wrap { overflow: auto; }
.ne-table { width: 100%; border-collapse: separate; border-spacing: 0; font-size: 13.5px; }
.ne-table th { position: sticky; top: 0; z-index: 1; padding: 10px 16px; background: var(--ne-surface); border-bottom: 1px solid var(--ne-border); color: var(--ne-text-3); font-size: 12.5px; font-weight: 500; text-align: left; white-space: nowrap; }
.ne-table th.is-sortable { cursor: pointer; user-select: none; transition: color var(--ne-dur-2); }
.ne-table th.is-sortable:hover { color: var(--ne-text); }
.ne-table th .ne-sort { display: inline-block; width: 13px; height: 13px; margin-left: 4px; vertical-align: -2px; opacity: 0; transition: opacity var(--ne-dur-2), transform var(--ne-dur-3) var(--ne-ease-spring); }
.ne-table th.is-sorted .ne-sort { opacity: 1; }
.ne-table th.is-desc .ne-sort { transform: rotate(180deg); }
.ne-table td { padding: 12px 16px; border-bottom: 1px solid var(--ne-border); vertical-align: middle; white-space: nowrap; transition: background-color var(--ne-dur-2) var(--ne-ease); }
.ne-table tbody tr:last-child td { border-bottom: 0; }
.ne-table tbody tr:hover td { background: var(--ne-hover); }
.ne-table tr.is-link { cursor: pointer; }
.ne-table .is-num { text-align: right; font-variant-numeric: tabular-nums; }
.ne-table tr.is-crit td:first-child { box-shadow: inset 3px 0 0 var(--ne-crit); }
.ne-table tr.is-warn td:first-child { box-shadow: inset 3px 0 0 var(--ne-warn); }
.ne-table tr.is-new td { animation: ne-row-new 2s var(--ne-ease-out); }
@keyframes ne-row-new { 0%, 20% { background-color: var(--ne-brand-soft); } 100% { background-color: transparent; } }

/* ---------------------------------------------------------------------------
   10. Form controls
   ------------------------------------------------------------------------ */
.ne-field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.ne-label { font-size: 13px; font-weight: 500; color: var(--ne-text); }
.ne-help { font-size: 12.5px; color: var(--ne-text-3); }
.ne-error { display: flex; align-items: center; gap: 6px; font-size: 12.5px; color: var(--ne-crit-text); }
.ne-input, .ne-select {
  width: 100%;
  height: 40px;
  padding: 0 12px;
  border: 1px solid var(--ne-border-strong);
  border-radius: var(--ne-r-sm);
  background: var(--ne-surface);
  color: var(--ne-text);
  font-size: 14px;
  box-shadow: var(--ne-shadow-1);
  box-sizing: border-box;
  transition: border-color var(--ne-dur-2), box-shadow var(--ne-dur-2), background-color var(--ne-dur-2);
}
.ne-input::placeholder { color: var(--ne-text-3); }
.ne-input:hover, .ne-select:hover { border-color: color-mix(in srgb, var(--ne-border-strong) 55%, var(--ne-text-3)); }
.ne-input:focus, .ne-select:focus { outline: none; border-color: var(--ne-accent); box-shadow: 0 0 0 4px var(--ne-accent-soft); }
.ne-input[aria-invalid="true"] { border-color: var(--ne-crit); box-shadow: 0 0 0 4px var(--ne-crit-soft); }
.ne-select { appearance: none; -webkit-appearance: none; padding-right: 36px; cursor: pointer; }
.ne-select-wrap { position: relative; }
.ne-select-wrap > .ne-i { position: absolute; right: 12px; top: 50%; width: 16px; height: 16px; margin-top: -8px; color: var(--ne-text-3); pointer-events: none; }
.ne-input-wrap { position: relative; }
.ne-input-wrap > .ne-i:first-child { position: absolute; left: 12px; top: 50%; width: 16px; height: 16px; margin-top: -8px; color: var(--ne-text-3); pointer-events: none; transition: color var(--ne-dur-2); }
.ne-input-wrap > .ne-i:first-child + .ne-input { padding-left: 38px; }
.ne-input-wrap:focus-within > .ne-i:first-child { color: var(--ne-accent); }
.ne-input-wrap > .ne-input-action { position: absolute; right: 4px; top: 4px; }
.ne-check { display: inline-flex; align-items: center; gap: 8px; font-size: 13.5px; cursor: pointer; }
.ne-check input { width: 16px; height: 16px; margin: 0; accent-color: var(--ne-green); cursor: pointer; }

.ne-switch { position: relative; display: inline-flex; flex-shrink: 0; width: 42px; height: 24px; }
.ne-switch input { position: absolute; inset: 0; z-index: 2; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
.ne-switch-track { position: absolute; inset: 0; border-radius: 12px; background: var(--ne-border-strong); transition: background-color var(--ne-dur-3) var(--ne-ease); }
.ne-switch-thumb { position: absolute; top: 3px; left: 3px; width: 18px; height: 18px; border-radius: 9px; background: #fff; box-shadow: 0 1px 3px rgba(0, 0, 0, .28), 0 0 0 .5px rgba(0, 0, 0, .04); transition: transform var(--ne-dur-4) var(--ne-ease-spring), width var(--ne-dur-2) var(--ne-ease); }
.ne-switch input:checked ~ .ne-switch-track { background: var(--ne-green); }
.ne-switch input:checked ~ .ne-switch-thumb { transform: translateX(18px); }
.ne-switch input:active ~ .ne-switch-thumb { width: 23px; }
.ne-switch input:checked:active ~ .ne-switch-thumb { transform: translateX(13px); }
.ne-switch input:focus-visible ~ .ne-switch-track { outline: 2px solid var(--ne-accent); outline-offset: 2px; }

/* ---------------------------------------------------------------------------
   11. Banners, tooltips, overlays
   ------------------------------------------------------------------------ */
.ne-banner { display: flex; align-items: flex-start; gap: 12px; padding: 14px 16px; border: 1px solid var(--ne-border); border-radius: var(--ne-r-lg); background: var(--ne-surface); font-size: 13.5px; line-height: 1.5; }
.ne-banner > .ne-i { margin-top: 1px; }
.ne-banner.is-warn { background: color-mix(in srgb, var(--ne-warn) 9%, var(--ne-surface)); border-color: color-mix(in srgb, var(--ne-warn) 38%, var(--ne-border)); }
.ne-banner.is-warn > .ne-i { color: var(--ne-warn-text); }
.ne-banner.is-info { background: color-mix(in srgb, var(--ne-accent) 6%, var(--ne-surface)); border-color: color-mix(in srgb, var(--ne-accent) 26%, var(--ne-border)); }
.ne-banner.is-info > .ne-i { color: var(--ne-accent-text); }
.ne-banner.is-crit { background: color-mix(in srgb, var(--ne-crit) 7%, var(--ne-surface)); border-color: color-mix(in srgb, var(--ne-crit) 30%, var(--ne-border)); }
.ne-collapse { display: grid; grid-template-rows: 1fr; transition: grid-template-rows var(--ne-dur-4) var(--ne-ease-out), opacity var(--ne-dur-3), margin var(--ne-dur-4) var(--ne-ease-out); }
.ne-collapse > * { min-height: 0; overflow: hidden; }
.ne-collapse.is-collapsed { grid-template-rows: 0fr; opacity: 0; }

:where([data-ne-tip]) { position: relative; }
[data-ne-tip]::after {
  content: attr(data-ne-tip);
  position: absolute;
  z-index: 95;
  left: 50%;
  bottom: calc(100% + 8px);
  padding: 6px 9px;
  border-radius: 7px;
  background: var(--ne-tip-bg);
  color: var(--ne-tip-fg);
  font-size: 12px;
  font-weight: 500;
  line-height: 1.3;
  white-space: nowrap;
  box-shadow: var(--ne-shadow-2);
  opacity: 0;
  transform: translate(-50%, 4px);
  pointer-events: none;
  transition: opacity var(--ne-dur-2) var(--ne-ease), transform var(--ne-dur-3) var(--ne-ease-out);
}
[data-ne-tip]:hover::after, [data-ne-tip]:focus-visible::after { opacity: 1; transform: translate(-50%, 0); transition-delay: 380ms; }
[data-ne-tip-side="right"]::after { left: calc(100% + 12px); bottom: auto; top: 50%; transform: translate(-4px, -50%); }
[data-ne-tip-side="right"]:hover::after { transform: translate(0, -50%); }
[data-ne-tip-side="bottom"]::after { bottom: auto; top: calc(100% + 8px); transform: translate(-50%, -4px); }
[data-ne-tip-side="bottom"]:hover::after { transform: translate(-50%, 0); }

.ne-pop {
  position: fixed;
  z-index: 70;
  min-width: 240px;
  padding: 6px;
  border: 1px solid var(--ne-border);
  border-radius: 14px;
  background: var(--ne-glass-strong);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  backdrop-filter: saturate(180%) blur(20px);
  box-shadow: var(--ne-shadow-3);
  transform-origin: var(--ne-origin, top right);
  animation: ne-pop-in var(--ne-dur-3) var(--ne-ease-out) both;
}
.ne-pop.is-leaving { animation: ne-pop-out 130ms var(--ne-ease-in) both; }
.ne-pop-title { padding: 8px 10px 6px; font-size: 12px; font-weight: 600; color: var(--ne-text-3); }
.ne-menu-item { display: flex; align-items: center; gap: 10px; width: 100%; min-height: 36px; padding: 6px 10px; border: 0; border-radius: 9px; background: transparent; color: var(--ne-text); font-size: 13.5px; text-align: left; cursor: pointer; transition: background-color var(--ne-dur-2); }
.ne-menu-item:hover, .ne-menu-item.is-active { background: var(--ne-hover); }
.ne-menu-item .ne-i { width: 16px; height: 16px; color: var(--ne-text-3); }
.ne-menu-item.is-danger { color: var(--ne-crit-text); }
.ne-menu-item.is-danger .ne-i { color: inherit; }
.ne-menu-sep { height: 1px; margin: 6px 4px; background: var(--ne-border); }

.ne-scrim { position: fixed; inset: 0; z-index: 80; background: var(--ne-scrim); -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); animation: ne-fade-in var(--ne-dur-3) var(--ne-ease-out) both; }
.ne-scrim.is-leaving { animation: ne-fade-out var(--ne-dur-3) var(--ne-ease-in) both; }
.ne-drawer {
  position: fixed;
  z-index: 81;
  top: 12px;
  right: 12px;
  bottom: 12px;
  display: flex;
  flex-direction: column;
  width: min(500px, calc(100vw - 24px));
  border: 1px solid var(--ne-border);
  border-radius: 20px;
  background: var(--ne-surface-raised);
  box-shadow: var(--ne-shadow-3);
  overflow: hidden;
  animation: ne-drawer-in var(--ne-dur-5) var(--ne-ease-out) both;
}
.ne-drawer.is-leaving { animation: ne-drawer-out var(--ne-dur-3) var(--ne-ease-in) both; }
.ne-drawer-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; padding: 20px 20px 16px; border-bottom: 1px solid var(--ne-border); }
.ne-drawer-body { flex: 1 1 auto; overflow: auto; padding: 20px; display: flex; flex-direction: column; gap: 18px; }
.ne-drawer-foot { display: flex; justify-content: flex-end; gap: 8px; padding: 14px 20px; border-top: 1px solid var(--ne-border); background: var(--ne-surface-2); }

/* ---------------------------------------------------------------------------
   12. Toasts
   ------------------------------------------------------------------------ */
.ne-toasts { position: fixed; z-index: 100; right: 20px; bottom: 20px; display: flex; flex-direction: column; width: min(390px, calc(100vw - 32px)); pointer-events: none; }
.ne-toast-slot { display: grid; grid-template-rows: 1fr; margin-top: 10px; transition: grid-template-rows var(--ne-dur-4) var(--ne-ease-out), margin-top var(--ne-dur-4) var(--ne-ease-out); }
.ne-toast-slot.is-gone { grid-template-rows: 0fr; margin-top: 0; }
.ne-toast-slot > .ne-toast { min-height: 0; }
.ne-toast {
  position: relative;
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 14px 14px 14px 16px;
  overflow: hidden;
  border: 1px solid var(--ne-border);
  border-radius: 16px;
  background: var(--ne-glass-strong);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  backdrop-filter: saturate(180%) blur(20px);
  box-shadow: var(--ne-shadow-3);
  pointer-events: auto;
  animation: ne-toast-in var(--ne-dur-5) var(--ne-ease-spring) both;
}
.ne-toast.is-leaving { animation: ne-toast-out var(--ne-dur-3) var(--ne-ease-in) both; }
.ne-toast-icon { display: grid; place-items: center; width: 30px; height: 30px; flex-shrink: 0; border-radius: 9px; background: var(--ne-info-soft); color: var(--ne-info-text); }
.ne-toast-icon .ne-i { width: 16px; height: 16px; }
.ne-toast.is-ok .ne-toast-icon { background: var(--ne-ok-soft); color: var(--ne-ok-text); }
.ne-toast.is-warn .ne-toast-icon { background: var(--ne-warn-soft); color: var(--ne-warn-text); }
.ne-toast.is-crit .ne-toast-icon { background: var(--ne-crit-soft); color: var(--ne-crit-text); }
.ne-toast-text { flex: 1 1 auto; min-width: 0; }
.ne-toast-title { font-size: 14px; font-weight: 600; letter-spacing: -.01em; }
.ne-toast-body { margin-top: 2px; font-size: 13px; color: var(--ne-text-2); line-height: 1.45; }
.ne-toast-action { margin-top: 8px; padding: 0; border: 0; background: none; color: var(--ne-accent-text); font-size: 13px; font-weight: 600; cursor: pointer; }
.ne-toast-action:hover { text-decoration: underline; }
.ne-toast-close { display: grid; place-items: center; width: 26px; height: 26px; margin: -4px -4px 0 0; padding: 0; border: 0; border-radius: 7px; background: transparent; color: var(--ne-text-3); cursor: pointer; transition: background-color var(--ne-dur-2), color var(--ne-dur-2); }
.ne-toast-close:hover { background: var(--ne-hover); color: var(--ne-text); }
.ne-toast-close .ne-i { width: 15px; height: 15px; }
.ne-toast-progress { position: absolute; left: 0; bottom: 0; height: 2px; width: 100%; background: currentColor; color: var(--ne-text-3); opacity: .35; transform-origin: left; animation: ne-toast-timer linear forwards; }
.ne-toast:hover .ne-toast-progress { animation-play-state: paused; }

/* ---------------------------------------------------------------------------
   13. Loading: skeletons and phased reveal
   Mark a container with data-ne-load="kpi|chart|table|list|block". The JS adds
   a skeleton overlay while data loads, then fades the real content in.
   ------------------------------------------------------------------------ */
.ne-skel { position: relative; display: block; overflow: hidden; border-radius: 6px; background: var(--ne-skeleton); }
.ne-skel::after { content: ""; position: absolute; inset: 0; transform: translateX(-100%); background: linear-gradient(90deg, transparent, var(--ne-skeleton-shine), transparent); animation: ne-shimmer 1.5s ease-in-out infinite; }
[data-ne-load] > :not(.ne-load-skel) { transition: opacity var(--ne-dur-4) var(--ne-ease-out), transform var(--ne-dur-4) var(--ne-ease-out), filter var(--ne-dur-4) var(--ne-ease-out); transition-delay: calc(var(--ne-i, 0) * 45ms); }
[data-ne-load].is-loading > :not(.ne-load-skel) { opacity: 0; transform: translateY(8px); filter: blur(3px); transition: none; }
[data-ne-load].is-loading .ne-meter > i { width: 0 !important; }
.ne-load-skel { position: absolute; inset: 0; z-index: 3; display: flex; flex-direction: column; gap: 10px; padding: 18px 20px; pointer-events: none; transition: opacity var(--ne-dur-3) var(--ne-ease); }
[data-ne-load]:not(.is-loading) > .ne-load-skel { opacity: 0; }

[data-ne-reveal] > * { animation: ne-rise var(--ne-dur-4) var(--ne-ease-out) both; }
[data-ne-reveal] > :nth-child(2) { animation-delay: 40ms; }
[data-ne-reveal] > :nth-child(3) { animation-delay: 80ms; }
[data-ne-reveal] > :nth-child(4) { animation-delay: 120ms; }
[data-ne-reveal] > :nth-child(5) { animation-delay: 160ms; }
[data-ne-reveal] > :nth-child(6) { animation-delay: 200ms; }
[data-ne-reveal] > :nth-child(7) { animation-delay: 240ms; }
[data-ne-reveal] > :nth-child(8) { animation-delay: 280ms; }
[data-ne-reveal] > :nth-child(n+9) { animation-delay: 320ms; }

.ne-scroll-reveal { opacity: 0; transform: translateY(28px); transition: opacity 800ms var(--ne-ease-out), transform 800ms var(--ne-ease-out); transition-delay: var(--ne-delay, 0ms); }
.ne-scroll-reveal.is-inview { opacity: 1; transform: none; }

/* ---------------------------------------------------------------------------
   14. Page transitions (View Transitions API)
   The sidebar and top bar stay perfectly still; only the page content moves.
   ------------------------------------------------------------------------ */
::view-transition-old(root),
::view-transition-new(root) { animation: none; mix-blend-mode: normal; }
::view-transition-group(ne-page) { animation-duration: var(--ne-dur-4); animation-timing-function: var(--ne-ease-out); }
::view-transition-old(ne-page) { animation: ne-page-out 170ms var(--ne-ease-in) both; }
::view-transition-new(ne-page) { animation: ne-page-in 380ms var(--ne-ease-out) 50ms both; }
html.ne-vt-drill::view-transition-new(ne-page) { animation-name: ne-drill-in; }
html.ne-vt-back::view-transition-new(ne-page) { animation-name: ne-back-in; }
::view-transition-group(ne-hero) { animation-duration: 460ms; animation-timing-function: var(--ne-ease-out); }
/* the shell shows its live state during a transition (no ghosting) */
::view-transition-old(ne-side), ::view-transition-old(ne-top) { animation: none; opacity: 0; }
::view-transition-new(ne-side), ::view-transition-new(ne-top) { animation: none; }
/* list re-order / filter: rows glide to their new place */
html.ne-vt-rows .ne-page { view-transition-name: none; }
html.ne-vt-rows [data-vt] { view-transition-name: var(--vt); }
::view-transition-group(*) { animation-timing-function: var(--ne-ease-out); }
/* theme change: circular reveal from the toggle (driven by JS) */
html.ne-vt-theme .ne-side, html.ne-vt-theme .ne-top, html.ne-vt-theme .ne-page,
html.ne-vt-enter .ne-side, html.ne-vt-enter .ne-top, html.ne-vt-enter .ne-page { view-transition-name: none; }
html.ne-vt-theme::view-transition-old(root) { animation: none; z-index: 0; }
html.ne-vt-theme::view-transition-new(root) { animation: none; z-index: 1; }
html.ne-vt-enter::view-transition-old(root) { animation: ne-auth-out 420ms var(--ne-ease-in) both; }
html.ne-vt-enter::view-transition-new(root) { animation: ne-app-in 700ms var(--ne-ease-out) 120ms both; }
html.ne-vt-exit::view-transition-old(root) { animation: ne-app-out 320ms var(--ne-ease-in) both; }
html.ne-vt-exit::view-transition-new(root) { animation: ne-fade-in 520ms var(--ne-ease-out) 80ms both; }

/* ---------------------------------------------------------------------------
   15. Keyframes
   ------------------------------------------------------------------------ */
@keyframes ne-spin { to { transform: rotate(360deg); } }
@keyframes ne-ping { 0% { transform: scale(.45); opacity: .75; } 70%, 100% { transform: scale(1.7); opacity: 0; } }
@keyframes ne-shimmer { to { transform: translateX(100%); } }
@keyframes ne-rise { from { opacity: 0; transform: translateY(10px); } }
@keyframes ne-fade-in { from { opacity: 0; } }
@keyframes ne-fade-out { to { opacity: 0; } }
@keyframes ne-pop-in { from { opacity: 0; transform: scale(.96) translateY(-4px); } }
@keyframes ne-pop-out { to { opacity: 0; transform: scale(.97); } }
@keyframes ne-drawer-in { from { transform: translateX(calc(100% + 32px)); } }
@keyframes ne-drawer-out { to { transform: translateX(calc(100% + 32px)); } }
@keyframes ne-toast-in { from { opacity: 0; transform: translateY(18px) scale(.95); } }
@keyframes ne-toast-out { to { opacity: 0; transform: translateX(28px) scale(.98); } }
@keyframes ne-toast-timer { from { transform: scaleX(1); } to { transform: scaleX(0); } }
@keyframes ne-page-out { to { opacity: 0; transform: translateY(-6px); filter: blur(2px); } }
@keyframes ne-page-in { from { opacity: 0; transform: translateY(14px); filter: blur(4px); } }
@keyframes ne-drill-in { from { opacity: 0; transform: translateX(24px); filter: blur(3px); } }
@keyframes ne-back-in { from { opacity: 0; transform: translateX(-24px); filter: blur(3px); } }
@keyframes ne-auth-out { to { opacity: 0; transform: scale(.96); filter: blur(6px); } }
@keyframes ne-app-in { from { opacity: 0; transform: scale(1.035); filter: blur(8px); } }
@keyframes ne-app-out { to { opacity: 0; transform: scale(.98); filter: blur(4px); } }
@keyframes ne-bump { 0% { transform: scale(1); } 30% { transform: scale(1.35); } 100% { transform: scale(1); } }
@keyframes ne-ring { 0% { transform: rotate(0); } 15% { transform: rotate(16deg); } 30% { transform: rotate(-14deg); } 45% { transform: rotate(10deg); } 60% { transform: rotate(-6deg); } 75% { transform: rotate(3deg); } 100% { transform: rotate(0); } }
@keyframes ne-shake { 0%, 100% { transform: translateX(0); } 20% { transform: translateX(-6px); } 40% { transform: translateX(5px); } 60% { transform: translateX(-3px); } 80% { transform: translateX(2px); } }
.ne-shake { animation: ne-shake 420ms var(--ne-ease-out); }

/* ---------------------------------------------------------------------------
   16. Small screens: sidebar becomes a bottom tab bar
   ------------------------------------------------------------------------ */
.ne-tabbar { display: none; }
@media (max-width: 1180px) {
  .ne-grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ne-grid-21, .ne-grid-12 { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 560px) {
  .ne-grid-4 { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 860px) {
  .ne-shell, .ne-shell.is-collapsed { grid-template-columns: minmax(0, 1fr); }
  .ne-side { display: none; }
  .ne-top { padding: 0 16px; --ne-top-h: 58px; }
  .ne-page { padding: 4px 16px 104px; gap: 16px; }
  .ne-title { font-size: 24px; line-height: 30px; }
  .ne-grid-3, .ne-grid-2 { grid-template-columns: minmax(0, 1fr); }
  .ne-kpi-value { font-size: 28px; line-height: 34px; }
  .ne-tabbar {
    position: fixed;
    z-index: 40;
    left: 0;
    right: 0;
    bottom: 0;
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    padding: 6px 8px calc(6px + env(safe-area-inset-bottom, 0px));
    border-top: 1px solid var(--ne-border);
    background: var(--ne-glass);
    -webkit-backdrop-filter: saturate(180%) blur(16px);
    backdrop-filter: saturate(180%) blur(16px);
  }
  .ne-tab { position: relative; display: flex; flex-direction: column; align-items: center; gap: 3px; min-height: 48px; justify-content: center; padding: 0; border: 0; background: transparent; color: var(--ne-text-3); font-size: 11px; font-weight: 500; cursor: pointer; -webkit-tap-highlight-color: transparent; transition: color var(--ne-dur-2); }
  .ne-tab .ne-i { width: 22px; height: 22px; transition: transform var(--ne-dur-3) var(--ne-ease-spring); }
  .ne-tab:active .ne-i { transform: scale(.86); }
  .ne-tab[aria-current="page"] { color: var(--ne-text); }
  .ne-tab[aria-current="page"]::before { content: ""; position: absolute; top: 2px; width: 18px; height: 3px; border-radius: 2px; background: var(--ne-brand); box-shadow: 0 0 10px var(--ne-brand-glow); }
  .ne-tab .ne-dotbadge { top: 2px; right: calc(50% - 20px); }
}

/* ---------------------------------------------------------------------------
   17. Reduced motion: keep fades, drop movement
   ------------------------------------------------------------------------ */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 1ms !important;
    animation-iteration-count: 1 !important;
    animation-delay: 0ms !important;
    transition-duration: 1ms !important;
    transition-delay: 0ms !important;
    scroll-behavior: auto !important;
  }
  ::view-transition-group(*), ::view-transition-old(*), ::view-transition-new(*) { animation: none !important; }
  .ne-scroll-reveal { opacity: 1; transform: none; }
}

/* ---------------------------------------------------------------------------
   18. Shell chrome added for the real app's top bar: site switcher, inline
   search, live pill, avatar button and the light/dark icon cross-fade.
   The prototype (reference/app.css) styles these as .pt-*; renamed to ne-*
   here so every class in the app stays on the same "ne-" convention.
   ------------------------------------------------------------------------ */
.ne-sitebtn { display: flex; align-items: center; gap: 10px; height: 40px; padding: 0 10px 0 6px; border: 1px solid var(--ne-border); border-radius: var(--ne-r-md); background: var(--ne-surface); color: var(--ne-text); cursor: pointer; box-shadow: var(--ne-shadow-1); flex-shrink: 0; transition: border-color var(--ne-dur-2), box-shadow var(--ne-dur-3), transform var(--ne-dur-3) var(--ne-ease-spring); }
.ne-sitebtn:hover { border-color: var(--ne-border-strong); box-shadow: var(--ne-shadow-2); }
.ne-sitebtn:active { transform: scale(.98); }
.ne-sitebtn-icon { display: grid; place-items: center; width: 26px; height: 26px; border-radius: 8px; background: var(--ne-brand-soft); color: var(--ne-brand-text); }
.ne-sitebtn-icon .ne-i { width: 14px; height: 14px; }
.ne-sitebtn-text { text-align: left; line-height: 1.2; }
.ne-sitebtn-text b { display: block; font-size: 13px; font-weight: 600; }
.ne-sitebtn-text small { display: block; font-size: 11px; color: var(--ne-text-3); }
.ne-sitebtn > .ne-i:last-child { width: 14px; height: 14px; color: var(--ne-text-3); }

/* Search sits first and is half its old width; the site switcher follows it, so the expanded sidebar brand never covers it. */
.ne-top > .ne-searchwrap { order: 1; }
.ne-top > #siteDrop { order: 2; }
.ne-top > .ne-top-right { order: 3; }
.ne-searchwrap .gs-results { left: 0; right: auto; width: 360px; max-width: 90vw; }
.ne-searchwrap.ne-searchwrap { position: relative; flex: 0 1 auto; width: min(180px, 14vw); height: 38px; padding: 0 10px 0 12px; border: 1px solid var(--ne-border); border-radius: var(--ne-r-md); background: var(--ne-surface); box-shadow: var(--ne-shadow-1); }
.ne-searchwrap.ne-searchwrap:focus-within { border-color: var(--ne-accent); box-shadow: 0 0 0 4px var(--ne-accent-soft); }
.ne-searchwrap.ne-searchwrap > .ne-i { color: var(--ne-text-3); }
.ne-searchwrap.ne-searchwrap input { width: auto; flex: 1 1 auto; padding: 0 0 0 10px; background: transparent; border: 0; color: var(--ne-text); }
.ne-searchwrap.ne-searchwrap input:focus { width: auto; background: transparent; border-color: transparent; }
.ne-searchwrap.ne-searchwrap input::placeholder { color: var(--ne-text-3); }
.ne-searchwrap .ne-kbd { flex-shrink: 0; }

.ne-livepill { display: flex; align-items: center; gap: 8px; height: 32px; padding: 0 12px; margin-right: 2px; border-radius: var(--ne-r-full); background: var(--ne-ok-soft); color: var(--ne-ok-text); font-size: 12.5px; font-weight: 600; white-space: nowrap; }
.ne-livepill-ago { color: var(--ne-text-2); font-weight: 500; font-variant-numeric: tabular-nums; }
.ne-livepill.off { background: var(--ne-crit-soft); color: var(--ne-crit-text); }
.ne-livepill.off .ne-live { background: var(--ne-crit); }
.ne-livepill.off .ne-live::after { color: var(--ne-crit); }

.ne-avatarbtn { padding: 2px; border: 0; border-radius: 50%; background: transparent; cursor: pointer; transition: transform var(--ne-dur-3) var(--ne-ease-spring), box-shadow var(--ne-dur-2); }
.ne-avatarbtn:hover { box-shadow: 0 0 0 3px var(--ne-hover); }
.ne-avatarbtn:active { transform: scale(.94); }
.ne-avatar-circle { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: var(--ne-accent); color: var(--ne-on-accent); font-size: 12.5px; font-weight: 600; flex-shrink: 0; }

.ne-themeicon { position: relative; display: inline-block; width: 18px; height: 18px; }
.ne-themeicon .ne-i { position: absolute; inset: 0; transition: transform var(--ne-dur-5) var(--ne-ease-spring), opacity var(--ne-dur-3); }
.ne-themeicon .is-sun { opacity: 0; transform: rotate(-90deg) scale(.4); }
:root[data-theme="dark"] .ne-themeicon .is-sun { opacity: 1; transform: none; }
:root[data-theme="dark"] .ne-themeicon .is-moon { opacity: 0; transform: rotate(90deg) scale(.4); }

.ne-mobilebrand { display: none; border-radius: 9px; background: var(--ne-green); color: #fff; }
.ne-shell.is-collapsed .ne-side-toggle .ne-i:first-child { transform: scaleX(-1); }
a.ne-tab { text-decoration: none; }
#moreDrop { display: flex; }
/* .bell-menu's default right:0 suits the bell/user popovers (their
   triggers sit at the top bar's right edge, so the panel hangs down-left
   and stays on screen). The site switcher sits at the left edge instead,
   so its panel needs to hang down-right or it spills under the sidebar. */
#siteMenu { right: auto; left: 0; }
/* design_system.css hides .nav-searchwrap below 1100px (it needed the room
   in the old single-row lime nav bar). The new top bar has its own room for
   search down to the 860px mobile breakpoint, so re-show it in between and
   let this file's own icon-only rule take over from 860px down. */
@media (max-width: 1100px) { .ne-searchwrap.ne-searchwrap { display: flex; } }

@media (max-width: 860px) {
  .ne-mobilebrand { display: grid; place-items: center; width: 30px; height: 30px; flex-shrink: 0; }
  .ne-sitebtn-text, .ne-livepill-ago, .ne-livepill-label { display: none; }
  .ne-livepill { padding: 0; width: 32px; height: 32px; justify-content: center; border-radius: 50%; }
  .ne-searchwrap.ne-searchwrap { width: 40px; padding: 0; justify-content: center; border-color: transparent; box-shadow: none; background: transparent; }
  .ne-searchwrap.ne-searchwrap input, .ne-searchwrap .ne-kbd { display: none; }
  .ne-sitebtn { padding: 0 8px; }
}
