/* =============================================================
   Nyxion Vault - Bitwarden Lite theme
   8 palettes ported from nyxionsoftware.com (site.css)

   Injected by IIS. No application files are modified.

   How it works: Bitwarden resolves its semantic tokens
   (--color-bg-*, --color-fg-*, --color-border-*) down to two
   primitive ramps. Each palette sets nine --n-* source values;
   one mapping block below translates those into the ramps.
   Adding a palette = one small block, nothing else.
   ============================================================= */

@font-face {
  font-family: 'Manrope'; font-style: normal; font-weight: 200 800;
  font-display: swap; src: url('/brand/fonts/manrope.woff2') format('woff2');
}
@font-face {
  font-family: 'DM Mono'; font-style: normal; font-weight: 400;
  font-display: swap; src: url('/brand/fonts/dmmono.woff2') format('woff2');
}

/* ---------- 1. Palettes ------------------------------------- */
/* Defaults = teal. The --n-*-rgb triples are needed where
   Bitwarden wraps a token in rgb()/rgba(). */
html.theme_dark,
html.theme_dark[data-nyx-theme='teal'] {
  --n-bg:#071311; --n-surface:#0d1c19; --n-s2:#122420; --n-s3:#19302a;
  --n-text:#f4f8f7; --n-muted:#9db2ad; --n-accent:#2ee9c3; --n-accent2:#71f6dc;
  --n-bg-rgb:7 19 17; --n-s2-rgb:18 36 32; --n-s3-rgb:25 48 42;
  --n-accent-rgb:46 233 195; --n-accent2-rgb:113 246 220;
  --n-text-rgb:244 248 247; --n-muted-rgb:157 178 173;
}
html.theme_dark[data-nyx-theme='aurora'] {
  --n-bg:#0a0a18; --n-surface:#111128; --n-s2:#19183a; --n-s3:#212050;
  --n-text:#f7f5ff; --n-muted:#aaa6c7; --n-accent:#9a8cff; --n-accent2:#62d9ff;
  --n-bg-rgb:10 10 24; --n-s2-rgb:25 24 58; --n-s3-rgb:33 32 80;
  --n-accent-rgb:154 140 255; --n-accent2-rgb:98 217 255;
  --n-text-rgb:247 245 255; --n-muted-rgb:170 166 199;
}
html.theme_dark[data-nyx-theme='midnight'] {
  --n-bg:#060d1b; --n-surface:#0c172b; --n-s2:#12213b; --n-s3:#193057;
  --n-text:#f3f7ff; --n-muted:#9aabc8; --n-accent:#4fa5ff; --n-accent2:#8bd8ff;
  --n-bg-rgb:6 13 27; --n-s2-rgb:18 33 59; --n-s3-rgb:25 48 87;
  --n-accent-rgb:79 165 255; --n-accent2-rgb:139 216 255;
  --n-text-rgb:243 247 255; --n-muted-rgb:154 171 200;
}
html.theme_dark[data-nyx-theme='ember'] {
  --n-bg:#170b08; --n-surface:#24110d; --n-s2:#321914; --n-s3:#48251c;
  --n-text:#fff7f1; --n-muted:#c5a69a; --n-accent:#ff754c; --n-accent2:#ffc064;
  --n-bg-rgb:23 11 8; --n-s2-rgb:50 25 20; --n-s3-rgb:72 37 28;
  --n-accent-rgb:255 117 76; --n-accent2-rgb:255 192 100;
  --n-text-rgb:255 247 241; --n-muted-rgb:197 166 154;
}
html.theme_dark[data-nyx-theme='noir'] {
  --n-bg:#0b0c0e; --n-surface:#131519; --n-s2:#1a1d22; --n-s3:#25282e;
  --n-text:#f7f6f1; --n-muted:#aaa9a3; --n-accent:#d7b967; --n-accent2:#f1d98f;
  --n-bg-rgb:11 12 14; --n-s2-rgb:26 29 34; --n-s3-rgb:37 40 46;
  --n-accent-rgb:215 185 103; --n-accent2-rgb:241 217 143;
  --n-text-rgb:247 246 241; --n-muted-rgb:170 169 163;
}
/* Light palettes: the ramp is simply inverted. Bitwarden's dark
   theme references ramp POSITION, not lightness, so this works
   without touching the theme class. */
html.theme_dark[data-nyx-theme='light'] {
  --n-bg:#f3f5f3; --n-surface:#ffffff; --n-s2:#e8efec; --n-s3:#dbe8e3;
  --n-text:#12201d; --n-muted:#526661; --n-accent:#087f6b; --n-accent2:#065e51;
  --n-bg-rgb:243 245 243; --n-s2-rgb:232 239 236; --n-s3-rgb:219 232 227;
  --n-accent-rgb:8 127 107; --n-accent2-rgb:6 94 81;
  --n-text-rgb:18 32 29; --n-muted-rgb:82 102 97;
}
html.theme_dark[data-nyx-theme='sand'] {
  --n-bg:#f7f1e7; --n-surface:#fffaf2; --n-s2:#eee3d3; --n-s3:#e2d2bd;
  --n-text:#2b211b; --n-muted:#716157; --n-accent:#a74627; --n-accent2:#78301a;
  --n-bg-rgb:247 241 231; --n-s2-rgb:238 227 211; --n-s3-rgb:226 210 189;
  --n-accent-rgb:167 70 39; --n-accent2-rgb:120 48 26;
  --n-text-rgb:43 33 27; --n-muted-rgb:113 97 87;
}
html.theme_dark[data-nyx-theme='lavender'] {
  --n-bg:#f4f1fb; --n-surface:#fdfbff; --n-s2:#e9e3f5; --n-s3:#ddd3ef;
  --n-text:#251d35; --n-muted:#665d78; --n-accent:#6848b8; --n-accent2:#3b6cb7;
  --n-bg-rgb:244 241 251; --n-s2-rgb:233 227 245; --n-s3-rgb:221 211 239;
  --n-accent-rgb:104 72 184; --n-accent2-rgb:59 108 183;
  --n-text-rgb:37 29 53; --n-muted-rgb:102 93 120;
}

/* ---------- 2. Palette -> Bitwarden tokens (written once) ---- */
html.theme_dark {
  --color-gray-950: var(--n-bg);
  --color-gray-900: var(--n-surface);
  --color-gray-800: var(--n-s2);
  --color-gray-700: var(--n-s3);
  --color-gray-600: color-mix(in srgb, var(--n-s3) 62%, var(--n-muted));
  --color-gray-500: color-mix(in srgb, var(--n-s3) 28%, var(--n-muted));
  --color-gray-400: var(--n-muted);
  --color-gray-300: color-mix(in srgb, var(--n-muted) 62%, var(--n-text));
  --color-gray-200: color-mix(in srgb, var(--n-muted) 32%, var(--n-text));
  --color-gray-100: color-mix(in srgb, var(--n-muted) 12%, var(--n-text));
  --color-gray-050: var(--n-text);
  /* NOTE: do NOT map --color-*-rgb from the --n-*-rgb values.
     Bitwarden uses two conventions:
       --color-*      space-separated, read as rgb(var(--x) / a)
       --color-*-rgb  COMMA-separated, read as rgba(var(--x), a)
     Feeding a space-separated triple into the second form yields
     rgba(157 178 173, 0.2), which is invalid and computes to
     fully transparent. The tokens that consume those triples are
     overridden directly further down instead. */

  --color-brand-950: color-mix(in srgb, var(--n-accent)  8%, var(--n-bg));
  --color-brand-900: color-mix(in srgb, var(--n-accent) 16%, var(--n-bg));
  --color-brand-800: color-mix(in srgb, var(--n-accent) 28%, var(--n-bg));
  --color-brand-700: color-mix(in srgb, var(--n-accent) 45%, var(--n-bg));
  --color-brand-600: color-mix(in srgb, var(--n-accent) 68%, var(--n-bg));
  --color-brand-500: color-mix(in srgb, var(--n-accent) 86%, var(--n-bg));
  --color-brand-400: var(--n-accent);
  --color-brand-300: var(--n-accent2);
  --color-brand-200: var(--n-accent2);
  --color-brand-100: color-mix(in srgb, var(--n-accent2) 55%, var(--n-text));
  --color-brand-050: color-mix(in srgb, var(--n-accent2) 25%, var(--n-text));

  --color-teal-950: var(--color-brand-950); --color-teal-900: var(--color-brand-900);
  --color-teal-800: var(--color-brand-800); --color-teal-700: var(--color-brand-700);
  --color-teal-600: var(--color-brand-600); --color-teal-500: var(--color-brand-500);
  --color-teal-400: var(--color-brand-400); --color-teal-300: var(--color-brand-300);
  --color-teal-200: var(--color-brand-200); --color-teal-100: var(--color-brand-100);

  --color-border-focus: var(--n-accent);

  /* Navigation chrome. Bitwarden assumes the nav is ALWAYS dark, so
     it hardcodes white foregrounds while the background comes from
     the themed gray ramp -- white-on-white on light palettes.
     Point the foregrounds at the palette instead. */
  --color-nav-fg-body:      var(--n-text);
  --color-nav-fg-primary:   var(--n-text);
  --color-nav-fg-secondary: var(--n-text);
  --color-nav-fg-heading:   var(--n-muted);
  --color-nav-border:       color-mix(in srgb, var(--n-muted) 35%, transparent);
  --color-nav-border-focus:           var(--n-accent);
  --color-nav-border-primary-focus:   var(--n-accent);
  --color-nav-border-secondary-focus: var(--n-accent);

  /* Nav hover fills. Bitwarden writes these as rgba(<triple>, a);
     overriding the finished colour avoids the triple entirely. */
  --color-nav-bg-primary-hover:          color-mix(in srgb, var(--n-muted) 18%, transparent);
  --color-nav-bg-secondary-hover:        color-mix(in srgb, var(--n-muted) 18%, transparent);
  --color-nav-bg-primary-hover-strong:   color-mix(in srgb, var(--n-muted) 45%, transparent);
  --color-nav-bg-secondary-hover-strong: color-mix(in srgb, var(--n-muted) 45%, transparent);
  --color-nav-bg-brand-hover:            color-mix(in srgb, var(--n-s3) 70%, transparent);
  --color-nav-bg-admin-hover:            color-mix(in srgb, var(--n-s2) 70%, transparent);

  /* Same pattern: modal scrim and contrast hover */
  --color-bg-overlay:        color-mix(in srgb, var(--n-bg) 85%, transparent);
  --color-bg-hover-contrast: color-mix(in srgb, var(--n-bg)  8%, transparent);

  /* Hover washes are white overlays (invisible on light palettes)
     and one blue-tinted legacy value. Derive from the palette. */
  --color-bg-hover:          color-mix(in srgb, var(--n-text) 6%, transparent);
  --color-transparent-hover: color-mix(in srgb, var(--n-text) 3%, transparent);
  --color-hover-default:     color-mix(in srgb, var(--n-accent) 10%, transparent);

  /* legacy token layer - still drives the vault illustration */
  --color-background:      var(--n-s2-rgb);
  --color-background-alt:  var(--n-bg-rgb);
  --color-background-alt2: var(--n-s3-rgb);
  --color-background-alt3: var(--n-s3-rgb);
  --color-background-alt4: var(--n-bg-rgb);
  /* These four are the ones that leak Bitwarden navy into the
     authenticated vault (Upgrade banners, chips, hover fills).
     --color-primary-100 ships as "29 46 99" = #1d2e63. */
  --color-primary-100:     var(--n-s3-rgb);
  --color-primary-300:     var(--n-accent-rgb);
  --color-primary-600:     var(--n-accent-rgb);
  --color-primary-700:     var(--n-accent2-rgb);

  /* Grey-blue neutrals used by secondary buttons and menus */
  --color-secondary-100:   var(--n-s3-rgb);
  --color-secondary-300:   var(--n-s3-rgb);
  --color-secondary-500:   var(--n-muted-rgb);
  --color-secondary-600:   var(--n-muted-rgb);
  --color-secondary-700:   var(--n-text-rgb);

  /* Info callouts ship blue; success/warning/danger stay semantic */
  --color-info-100:        var(--n-s3-rgb);
  --color-info-600:        var(--n-accent-rgb);
  --color-info-700:        var(--n-text-rgb);
  --color-text-main:       var(--n-text-rgb);
  --color-text-muted:      var(--n-muted-rgb);
  --color-text-contrast:   var(--n-bg-rgb);
  /* Ships hardcoded white for the nav bar, which assumed a dark
     navy background. On light palettes that was white-on-white. */
  --color-text-alt2:       var(--n-text-rgb);
  --color-marketing-logo:  var(--n-accent-rgb);
  --color-bw-blue:         var(--n-accent-rgb);
  --color-illustration-outline:      var(--n-accent-rgb);
  --color-illustration-bg-primary:   var(--n-s3-rgb);
  --color-illustration-bg-secondary: var(--n-s2-rgb);
  --color-illustration-bg-tertiary:  var(--n-accent2-rgb);
  --color-illustration-tertiary:     var(--n-accent-rgb);
  --color-illustration-logo:         var(--n-bg-rgb);

  --font-sans: 'Manrope', 'Segoe UI', system-ui, sans-serif;
  --n-mono: 'DM Mono', ui-monospace, monospace;
  --n-line: color-mix(in srgb, var(--n-muted) 30%, transparent);
  --nyx-shield: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 40 40'%3E%3Cpath d='M20 4l13 5v11.5c0 8-5.7 13.4-13 16-7.3-2.6-13-8-13-16V9z' fill='%23000'/%3E%3C/svg%3E");
}

body { font-family: var(--font-sans); }

/* ---------- 3. Fix: 1px overflow -> phantom scrollbar --------
   Bitwarden's min-h-screen wrapper computes to 100vh plus a
   sub-pixel remainder, which rounds up to 901px in a 900px
   viewport and shows a scrollbar on repaint (e.g. when hovering
   a button). Reclaiming 2px removes the overflow; pages that are
   genuinely taller than the viewport still scroll normally. */
bit-landing-layout > div.tw-min-h-screen { min-height: calc(100vh - 2px) !important; }

/* The palette dock parks off the right edge, which would otherwise
   create horizontal overflow. `clip` (not `hidden`) suppresses it
   without turning the root into a scroll container. Mirrors the
   `overflow-x: hidden` already on the portfolio's body. */
html { overflow-x: clip; }

/* ---------- 4. Ambient glow --------------------------------- */
/* Painted straight onto the body background. An earlier version
   used a ::before overlay plus `body.layout_frontend > *
   { position: relative }` to stack content above it -- but that
   rule also hit Angular's CDK overlay container, which is a direct
   child of body and must stay `position: fixed`. Forcing it to
   relative made every modal render inline at the foot of the page.
   Using a background image needs no stacking rule at all. */
body.layout_frontend {
  background-image:
    radial-gradient(42rem 42rem at 78% 18%, color-mix(in srgb, var(--n-accent) 10%, transparent), transparent 62%),
    radial-gradient(34rem 34rem at 12% 88%, color-mix(in srgb, var(--n-accent)  7%, transparent), transparent 62%),
    radial-gradient(28rem 28rem at 46% 52%, color-mix(in srgb, var(--n-accent2) 5%, transparent), transparent 65%);
  background-attachment: fixed;
  background-repeat: no-repeat;
}

/* ---------- 5. Wordmark ------------------------------------- */
/* Matches EVERY Bitwarden logo, not just the login header:
   "Bitwarden logo", "Bitwarden Password Manager", etc. The vault's
   own nav/sidebar logo is a separate element from the login one. */
bit-svg[aria-label*="Bitwarden" i] svg,
bit-svg[aria-label*="password manager" i] svg { display: none !important; }

bit-svg[aria-label*="Bitwarden" i],
bit-svg[aria-label*="password manager" i] {
  display: flex !important; align-items: center; gap: .55rem;
}
bit-svg[aria-label*="Bitwarden" i]::before,
bit-svg[aria-label*="password manager" i]::before {
  content: ''; width: 28px; height: 28px; flex: 0 0 28px;
  background: var(--n-accent);
  -webkit-mask: var(--nyx-shield) center / 20px 20px no-repeat;
          mask: var(--nyx-shield) center / 20px 20px no-repeat;
}
bit-svg[aria-label*="Bitwarden" i]::after,
bit-svg[aria-label*="password manager" i]::after {
  content: 'nyxion vault'; font-weight: 700; font-size: 1.05rem;
  letter-spacing: -.03em; color: var(--n-text); line-height: 1;
  white-space: nowrap;
}

/* Authenticated vault: the product lockup is an anchor carrying the
   label itself -- <a aria-label="Password Manager"> -- with the mark
   nested inside, so the bit-svg selectors above never reach it.
   font-size:0 suppresses any stray text node; ::after uses rem, so
   it is unaffected by that. */
a[aria-label*="password manager" i] {
  display: inline-flex !important; align-items: center; gap: .55rem;
  font-size: 0 !important; text-decoration: none;
}
a[aria-label*="password manager" i] > * { display: none !important; }
a[aria-label*="password manager" i]::before {
  content: ''; width: 28px; height: 28px; flex: 0 0 28px;
  background: var(--n-accent);
  -webkit-mask: var(--nyx-shield) center / 20px 20px no-repeat;
          mask: var(--nyx-shield) center / 20px 20px no-repeat;
}
a[aria-label*="password manager" i]::after {
  content: 'nyxion vault'; font-size: 1.05rem; font-weight: 700;
  letter-spacing: -.03em; color: var(--n-text); line-height: 1;
  white-space: nowrap;
}

/* Login header keeps the larger two-tone treatment */
bit-landing-header header { background: transparent !important; }
bit-landing-header a[href="#/"] {
  display: flex !important; align-items: center; gap: .3rem;
  width: auto !important; text-decoration: none;
}
bit-landing-header bit-svg[aria-label*="Bitwarden" i] { gap: .6rem; }
bit-landing-header bit-svg[aria-label*="Bitwarden" i]::before {
  width: 34px; height: 34px; flex: 0 0 34px;
  -webkit-mask-size: 22px 22px; mask-size: 22px 22px;
}
bit-landing-header bit-svg[aria-label*="Bitwarden" i]::after {
  content: 'nyxion'; font-weight: 800; font-size: 1.35rem;
  letter-spacing: -.035em;
}
bit-landing-header a[href="#/"]::after {
  content: 'vault'; font-weight: 300; font-size: 1.35rem;
  letter-spacing: -.02em; color: var(--n-accent); line-height: 1;
}

/* ---------- 6. Heading -------------------------------------- */
/* Scoped to the anonymous landing layout. A bare h1[bittypography]
   also matches dialog titles, which replaced "Are you sure you want
   to log out?" with the branding block. */
bit-landing-layout h1[bittypography] { font-size: 0 !important; line-height: 0 !important; }
bit-landing-layout h1[bittypography]::before {
  content: 'SECURE ACCESS'; display: block;
  font-family: var(--n-mono); font-size: .7rem; letter-spacing: .22em;
  color: var(--n-accent); margin-bottom: .6rem; line-height: 1;
}
bit-landing-layout h1[bittypography]::after {
  content: 'Nyxion Vault'; display: block;
  font-size: 1.9rem; font-weight: 700; letter-spacing: -.03em;
  color: var(--n-text); line-height: 1.15;
}
@media (min-width: 640px) {
  bit-landing-layout h1[bittypography]::after { font-size: 2.15rem; }
}

/* Never brand a heading inside a modal, whatever its ancestry. */
bit-dialog h1, cdk-dialog-container h1,
[role="dialog"] h1, [role="alertdialog"] h1 {
  font-size: revert !important; line-height: revert !important;
}
bit-dialog h1::before, bit-dialog h1::after,
cdk-dialog-container h1::before, cdk-dialog-container h1::after,
[role="dialog"] h1::before, [role="dialog"] h1::after,
[role="alertdialog"] h1::before, [role="alertdialog"] h1::after { content: none !important; }

/* ---------- 7. Card and controls ---------------------------- */
bit-base-card {
  background: color-mix(in srgb, var(--n-surface) 84%, transparent) !important;
  border-color: var(--n-line) !important;
  backdrop-filter: blur(14px);
  box-shadow: 0 18px 50px -16px color-mix(in srgb, var(--n-bg) 80%, transparent);
}
bit-form-field:focus-within > div {
  border-color: var(--n-accent) !important;
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--n-accent) 18%, transparent);
}
button[buttontype="primary"], a[buttontype="primary"] {
  font-weight: 700 !important;
  transition: box-shadow .15s ease, background-color .15s ease;
}
button[buttontype="primary"]:hover, a[buttontype="primary"]:hover {
  box-shadow: 0 10px 26px -8px color-mix(in srgb, var(--n-accent) 50%, transparent);
}
button[buttontype="secondary"]:hover {
  border-color: var(--n-accent) !important;
  background: color-mix(in srgb, var(--n-accent) 8%, transparent) !important;
}
div.tw-text-center:has(a[routerlink="/signup"]) { display: none !important; }

/* ---------- 8. Palette dock (hidden at the right edge) ------- */
.nyx-dock {
  position: fixed; z-index: 9999; right: 0; top: 50%;
  display: flex; align-items: stretch;
  transform: translate(calc(100% - 18px), -50%);
  transition: transform .3s cubic-bezier(.4, 0, .2, 1);
  font-family: var(--n-mono);
}
.nyx-dock:hover, .nyx-dock:focus-within { transform: translate(0, -50%); }

.nyx-dock__handle {
  width: 18px; display: flex; align-items: center; justify-content: center;
  padding: 0; border: 1px solid var(--n-line); border-right: 0;
  border-radius: 12px 0 0 12px; cursor: pointer;
  background: color-mix(in srgb, var(--n-surface) 92%, transparent);
  backdrop-filter: blur(16px); color: var(--n-muted);
}
.nyx-dock__handle span {
  writing-mode: vertical-rl; text-orientation: mixed;
  font-size: 8px; letter-spacing: .18em; text-transform: uppercase;
}
.nyx-dock:hover .nyx-dock__handle, .nyx-dock:focus-within .nyx-dock__handle { color: var(--n-accent); }

.nyx-dock__panel {
  padding: 11px; display: flex; flex-direction: column; align-items: center; gap: 9px;
  border: 1px solid var(--n-line); border-right: 0;
  background: color-mix(in srgb, var(--n-surface) 88%, transparent);
  box-shadow: 0 12px 35px color-mix(in srgb, var(--n-bg) 70%, transparent);
  backdrop-filter: blur(16px);
}
.nyx-dock__panel > span {
  color: var(--n-muted); font-size: 9px; letter-spacing: .12em; text-transform: uppercase;
}
.nyx-grid { display: grid; grid-template-columns: repeat(2, 19px); gap: 10px; }
.nyx-swatch {
  width: 19px; height: 19px; padding: 0; border: 2px solid transparent;
  border-radius: 50%; cursor: pointer;
  box-shadow: 0 0 0 1px var(--n-line); transition: .2s;
}
.nyx-swatch:hover, .nyx-swatch.active {
  transform: scale(1.2);
  box-shadow: 0 0 0 2px var(--n-bg), 0 0 0 3px var(--n-accent);
}
.nyx-swatch:focus-visible { outline: 2px solid var(--n-accent); outline-offset: 3px; }

/* swatch faces - same gradients as the portfolio */
.nyx-swatch[data-t='teal']     { background: #2ee9c3; }
.nyx-swatch[data-t='aurora']   { background: linear-gradient(135deg, #9a8cff, #62d9ff); }
.nyx-swatch[data-t='midnight'] { background: linear-gradient(135deg, #1f5ea8, #8bd8ff); }
.nyx-swatch[data-t='ember']    { background: linear-gradient(135deg, #ff754c, #ffc064); }
.nyx-swatch[data-t='noir']     { background: linear-gradient(135deg, #25282e 45%, #d7b967 46%); }
.nyx-swatch[data-t='light']    { background: #f3f5f3; }
.nyx-swatch[data-t='sand']     { background: linear-gradient(135deg, #fffaf2, #a74627); }
.nyx-swatch[data-t='lavender'] { background: linear-gradient(135deg, #f4f1fb, #6848b8); }

/* touch / narrow: dock to the bottom-right, tap to open */
@media (max-width: 640px), (hover: none) {
  .nyx-dock { top: auto; bottom: 14px; right: 14px; transform: none; }
  .nyx-dock__handle { width: 34px; height: 34px; border-radius: 12px; border-right: 1px solid var(--n-line); }
  .nyx-dock__panel { display: none; }
  .nyx-dock.open .nyx-dock__panel {
    display: flex; position: absolute; right: 0; bottom: 42px;
    border-right: 1px solid var(--n-line); border-radius: 14px;
  }
  .nyx-grid { grid-template-columns: repeat(4, 19px); }
}

/* ---------- 9. "Go back" pill ------------------------------- */
/* Lives inside Bitwarden's real footer, next to the copyright,
   rather than floating over the page. */
footer { background: transparent !important; }

/* Belt-and-braces: never show the back link inside a modal, even
   if one slips in before the script prunes it. */
bit-dialog .nyx-back,
cdk-dialog-container .nyx-back,
[role="dialog"] .nyx-back,
[role="alertdialog"] .nyx-back { display: none !important; }

.nyx-back {
  display: inline-flex; align-items: center; gap: .45rem;
  margin-top: .6rem;
  padding: .45rem .9rem; border-radius: 999px;
  border: 1px solid var(--n-line);
  background: color-mix(in srgb, var(--n-surface) 80%, transparent);
  backdrop-filter: blur(12px);
  color: var(--n-muted); text-decoration: none;
  font-family: var(--n-mono); font-size: .68rem;
  letter-spacing: .14em; text-transform: uppercase;
  transition: color .18s, border-color .18s, background-color .18s;
}
.nyx-back:hover {
  color: var(--n-accent); border-color: var(--n-accent);
  background: color-mix(in srgb, var(--n-accent) 8%, transparent);
}
.nyx-back svg { width: 11px; height: 11px; fill: currentColor; }

@media (prefers-reduced-motion: reduce) {
  .nyx-dock, .nyx-swatch, .nyx-back { transition: none; }
}
