/* ============================================================================
   7TH BREED — NEO DESIGN LAYER (2026-10-04)
   Final cascade layer: loaded after every earlier patch sheet so these rules
   win. Goals from the owner:
     • Insanely good, modern, professional look for the whole dashboard
     • Generous sizing — never shrink or compress content to fit
     • Cinematic, animated login screen
     • Buttery-smooth transitions; effortless tab/page navigation
   JS hooks preserved: #login-view/#login-form/#login-btn/#login-error,
   #email-input/#password-input/#secret-input, #user-login/#secret-login,
   .login-tab[data-login-mode], .hidden toggles. Purely presentational.
   ============================================================================ */

/* ----------------------------------------------------------------------------
   1) DESIGN TOKENS + SELF-HOSTED FONTS (CSP: font-src 'self')
   ---------------------------------------------------------------------------- */
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("/admin/fonts/inter-var-latin.woff2") format("woff2");
}
@font-face {
  font-family: "Manrope";
  font-style: normal;
  font-weight: 500 800;
  font-display: swap;
  src: url("/admin/fonts/manrope-var-latin.woff2") format("woff2");
}

html body #dashboard-view,
html body #login-view {
  --neo-brand: #3d63f2;
  --neo-brand-2: #6a5cf5;
  --neo-cyan: #19c2d8;
  --neo-ink: #101b33;
  --neo-ink-2: #33415e;
  --neo-muted: #5d6b85;
  --neo-page: #f2f5fa;
  --neo-page-2: #eef2f9;
  --neo-card: #ffffff;
  --neo-card-2: #f7f9fd;
  --neo-line: #e4e9f2;
  --neo-line-strong: #d4dceb;
  --neo-success: #16a34a;
  --neo-warn: #d97706;
  --neo-danger: #dc2626;
  --neo-donut-empty: #e5e7eb;
  --neo-violet: #7c5cf0;
  --neo-r-lg: 20px;
  --neo-r-md: 14px;
  --neo-r-sm: 10px;
  --neo-shadow-sm: 0 1px 2px rgba(16, 27, 51, 0.05), 0 4px 14px rgba(16, 27, 51, 0.05);
  --neo-shadow: 0 2px 4px rgba(16, 27, 51, 0.04), 0 12px 32px rgba(16, 27, 51, 0.08);
  --neo-shadow-lg: 0 4px 10px rgba(16, 27, 51, 0.06), 0 28px 64px rgba(16, 27, 51, 0.14);
  --neo-ring: 0 0 0 4px rgba(61, 99, 242, 0.16);
  --neo-ease: cubic-bezier(0.22, 1, 0.36, 1);
  --neo-ease-2: cubic-bezier(0.34, 1.4, 0.44, 1);
  color: var(--neo-ink);
  font-family: Inter, "Segoe UI", system-ui, -apple-system, sans-serif;
  font-feature-settings: "cv02", "cv03", "cv04";
}
html.dark body #dashboard-view,
html.dark body #login-view {
  --neo-ink: #e9effc;
  --neo-ink-2: #c3cee6;
  --neo-muted: #aab8d8;
  --neo-page: #070c18;
  --neo-page-2: #0a1122;
  --neo-card: #0f1930;
  --neo-card-2: #14203c;
  --neo-line: #223354;
  --neo-line-strong: #2c4066;
  --neo-shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.4), 0 4px 14px rgba(0, 0, 0, 0.35);
  --neo-shadow: 0 2px 4px rgba(0, 0, 0, 0.4), 0 14px 36px rgba(0, 0, 0, 0.45);
  --neo-shadow-lg: 0 4px 10px rgba(0, 0, 0, 0.5), 0 30px 70px rgba(0, 0, 0, 0.6);
  --neo-ring: 0 0 0 4px rgba(106, 132, 255, 0.22);
  --neo-donut-empty: #1e2a42;
}

/* ============================================================================
   2) LOGIN — CINEMATIC EDITION
   ============================================================================ */
#login-view.centered:not(.hidden) {
  display: block !important;
  min-height: 100vh !important;
  min-height: 100dvh !important;
  padding: 0 !important;
  background: #060b18 !important;
  overflow: hidden;
  position: relative;
  isolation: isolate;
}
/* Must beat the ID-scoped display rules above when admin.js hides the view. */
#login-view.centered.hidden { display: none !important; }
#login-view.centered:not(.hidden) { animation: neoLoginIn 0.55s var(--neo-ease) both; }
@keyframes neoLoginIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

/* --- Scene: aurora + constellation canvas + perspective grid --- */
.neo-login-scene {
  position: fixed;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  background:
    radial-gradient(120% 90% at 78% 8%, #17265c 0%, transparent 55%),
    radial-gradient(110% 80% at 12% 88%, #101a3a 0%, transparent 60%),
    linear-gradient(158deg, #060b18 0%, #0a1330 46%, #071026 100%);
}
#neo-login-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  opacity: 0.9;
}
.neo-aurora {
  position: absolute;
  border-radius: 50%;
  filter: blur(70px);
  opacity: 0.5;
  will-change: transform;
  transform: translate3d(calc(var(--px, 0) * 1px), calc(var(--py, 0) * 1px), 0);
  transition: transform 0.9s var(--neo-ease);
}
.neo-aurora-1 {
  width: 46vw; height: 46vw; left: -10vw; top: -14vw;
  background: radial-gradient(circle at 34% 34%, rgba(88, 118, 255, 0.55), rgba(88, 118, 255, 0) 68%);
  animation: neoAuroraA 14s ease-in-out infinite alternate;
}
.neo-aurora-2 {
  width: 40vw; height: 40vw; right: -8vw; top: 16vh;
  background: radial-gradient(circle at 60% 40%, rgba(34, 201, 214, 0.4), rgba(34, 201, 214, 0) 66%);
  animation: neoAuroraB 17s ease-in-out infinite alternate;
}
.neo-aurora-3 {
  width: 34vw; height: 34vw; left: 30vw; bottom: -18vw;
  background: radial-gradient(circle at 50% 50%, rgba(124, 92, 240, 0.42), rgba(124, 92, 240, 0) 68%);
  animation: neoAuroraC 20s ease-in-out infinite alternate;
}
@keyframes neoAuroraA {
  0% { transform: translate3d(0, 0, 0) scale(1); }
  50% { transform: translate3d(4vw, 3vh, 0) scale(1.12); }
  100% { transform: translate3d(-2vw, 5vh, 0) scale(0.95); }
}
@keyframes neoAuroraB {
  0% { transform: translate3d(0, 0, 0) scale(1); }
  50% { transform: translate3d(-5vw, -4vh, 0) scale(1.08); }
  100% { transform: translate3d(2vw, 6vh, 0) scale(1.15); }
}
@keyframes neoAuroraC {
  0% { transform: translate3d(0, 0, 0) scale(0.95); }
  50% { transform: translate3d(3vw, -5vh, 0) scale(1.1); }
  100% { transform: translate3d(-4vw, -2vh, 0) scale(1); }
}
.neo-login-grid {
  position: absolute;
  inset: auto -20% -34% -20%;
  height: 62%;
  background-image:
    linear-gradient(rgba(122, 152, 255, 0.14) 1px, transparent 1px),
    linear-gradient(90deg, rgba(122, 152, 255, 0.14) 1px, transparent 1px);
  background-size: 52px 52px;
  transform: perspective(760px) rotateX(62deg);
  transform-origin: center top;
  -webkit-mask-image: linear-gradient(to top, rgba(0,0,0,0.85) 12%, transparent 86%);
          mask-image: linear-gradient(to top, rgba(0,0,0,0.85) 12%, transparent 86%);
  animation: neoGridDrift 26s linear infinite;
  opacity: 0.75;
}
@keyframes neoGridDrift {
  from { background-position: 0 0, 0 0; }
  to { background-position: 0 52px, 52px 0; }
}

/* --- Layout: showcase left, card right --- */
.neo-login-layout {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  min-height: 100dvh;
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(460px, 0.88fr);
  align-items: stretch;
  animation: neoLayoutIn 0.7s var(--neo-ease) 0.1s both;
}
@keyframes neoLayoutIn {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: none; }
}

/* --- Showcase (left) --- */
.neo-showcase {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 40px;
  padding: 52px 8% 46px;
  color: #fff;
  overflow: hidden;
}
.neo-showcase-brand {
  display: flex;
  align-items: center;
  gap: 14px;
  font: 800 20px/1 Manrope, "Segoe UI", sans-serif;
  letter-spacing: 0.06em;
  animation: neoRise 0.7s var(--neo-ease) 0.25s both;
}
.neo-showcase-logo {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 15px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 10px 30px rgba(61, 99, 242, 0.45), inset 0 0 0 1px rgba(255, 255, 255, 0.4);
  animation: neoLogoFloat 6s ease-in-out infinite;
}
.neo-showcase-logo img { width: 54px; height: 54px; object-fit: cover; border-radius: 12px; }
@keyframes neoLogoFloat {
  0%, 100% { transform: translateY(0); box-shadow: 0 10px 30px rgba(61, 99, 242, 0.45); }
  50% { transform: translateY(-6px); box-shadow: 0 22px 44px rgba(61, 99, 242, 0.6); }
}
.neo-showcase-hero { position: relative; z-index: 2; max-width: 560px; }
.neo-showcase-kicker {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0;
  padding: 9px 16px;
  border: 1px solid rgba(146, 168, 255, 0.32);
  border-radius: 999px;
  background: rgba(93, 122, 255, 0.14);
  backdrop-filter: blur(8px);
  color: #c9d6ff;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.2em;
  animation: neoRise 0.7s var(--neo-ease) 0.35s both;
}
.neo-pulse-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: #4ade80;
  box-shadow: 0 0 0 0 rgba(74, 222, 128, 0.6);
  animation: neoPulse 2.2s ease-out infinite;
}
@keyframes neoPulse {
  0% { box-shadow: 0 0 0 0 rgba(74, 222, 128, 0.55); }
  70% { box-shadow: 0 0 0 9px rgba(74, 222, 128, 0); }
  100% { box-shadow: 0 0 0 0 rgba(74, 222, 128, 0); }
}
.neo-showcase-title {
  margin: 26px 0 20px;
  font: 800 clamp(42px, 4.6vw, 72px)/1.08 Manrope, "Segoe UI", sans-serif;
  letter-spacing: -0.045em;
  color: #fff;
  animation: neoRise 0.8s var(--neo-ease) 0.45s both;
}
.neo-gradient-text {
  background: linear-gradient(92deg, #7ea2ff 0%, #22c9d8 34%, #a78bfa 68%, #7ea2ff 100%);
  background-size: 220% 100%;
  -webkit-background-clip: text;
          background-clip: text;
  color: transparent;
  animation: neoGradientFlow 7s ease-in-out infinite;
}
@keyframes neoGradientFlow {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}
.neo-showcase-sub {
  margin: 0;
  max-width: 480px;
  color: #b8c6ea;
  font-size: 16.5px;
  line-height: 1.75;
  animation: neoRise 0.8s var(--neo-ease) 0.55s both;
}
.neo-showcase-points {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 30px 0 0;
  padding: 0;
  animation: neoRise 0.8s var(--neo-ease) 0.65s both;
}
.neo-showcase-points li {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 10px 16px;
  border: 1px solid rgba(146, 168, 255, 0.24);
  border-radius: 999px;
  background: rgba(13, 22, 48, 0.55);
  backdrop-filter: blur(10px);
  color: #dbe4ff;
  font-size: 13px;
  font-weight: 600;
  transition: transform 0.3s var(--neo-ease-2), border-color 0.3s ease, background 0.3s ease;
}
.neo-showcase-points li:hover {
  transform: translateY(-3px);
  border-color: rgba(126, 162, 255, 0.6);
  background: rgba(30, 45, 90, 0.6);
}
.neo-showcase-points i {
  font-style: normal;
  font-size: 9px;
  color: var(--neo-cyan, #22c9d8);
  filter: drop-shadow(0 0 6px rgba(34, 201, 216, 0.8));
}
.neo-showcase-glass {
  position: relative;
  z-index: 2;
  display: grid;
  gap: 14px;
  max-width: 470px;
  padding: 22px;
  border: 1px solid rgba(146, 168, 255, 0.22);
  border-radius: 22px;
  background: linear-gradient(150deg, rgba(20, 32, 68, 0.66), rgba(11, 18, 40, 0.6));
  backdrop-filter: blur(16px);
  box-shadow: 0 30px 70px rgba(3, 8, 24, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.08);
  animation: neoRise 0.8s var(--neo-ease) 0.75s both;
}
.neo-glass-row {
  display: flex;
  align-items: flex-start;
  gap: 14px;
}
.neo-glass-ico {
  display: grid;
  place-items: center;
  flex: 0 0 40px;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: linear-gradient(140deg, rgba(61, 99, 242, 0.55), rgba(124, 92, 240, 0.45));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.22), 0 8px 18px rgba(61, 99, 242, 0.3);
  font-size: 17px;
}
.neo-glass-row strong { display: block; color: #f2f5ff; font-size: 14px; font-weight: 700; letter-spacing: -0.01em; }
.neo-glass-row small { display: block; margin-top: 3px; color: #a6b4d8; font-size: 12.5px; line-height: 1.5; }
@keyframes neoRise {
  from { opacity: 0; transform: translateY(26px); }
  to { opacity: 1; transform: none; }
}

/* Orbiting emblem */
.neo-orbit {
  position: absolute;
  right: -12%;
  top: 50%;
  translate: 0 -50%;
  border: 1px dashed rgba(146, 168, 255, 0.28);
  border-radius: 50%;
  pointer-events: none;
}
.neo-orbit-1 { width: 620px; height: 620px; animation: neoOrbitSpin 34s linear infinite; }
.neo-orbit-2 {
  width: 460px; height: 460px; right: -4%;
  border-style: solid;
  border-color: rgba(146, 168, 255, 0.16);
  animation: neoOrbitSpin 24s linear infinite reverse;
}
.neo-orbit-1::before,
.neo-orbit-2::before {
  content: "";
  position: absolute;
  top: -5px; left: 50%;
  width: 10px; height: 10px;
  border-radius: 50%;
  background: #7ea2ff;
  box-shadow: 0 0 16px 3px rgba(126, 162, 255, 0.75);
}
.neo-orbit-2::before { background: #22c9d8; box-shadow: 0 0 16px 3px rgba(34, 201, 216, 0.75); }
@keyframes neoOrbitSpin { to { transform: rotate(360deg); } }
.neo-orbit-core {
  position: absolute;
  right: 6%;
  top: 50%;
  translate: 0 -50%;
  display: grid;
  place-items: center;
  width: 120px;
  height: 120px;
  border-radius: 34px;
  background: linear-gradient(150deg, rgba(61, 99, 242, 0.34), rgba(124, 92, 240, 0.26));
  border: 1px solid rgba(170, 190, 255, 0.4);
  box-shadow: 0 24px 60px rgba(61, 99, 242, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.28);
  backdrop-filter: blur(12px);
  animation: neoCoreBreath 5s ease-in-out infinite;
  pointer-events: none;
}
.neo-orbit-core img { width: 78px; height: 78px; object-fit: cover; border-radius: 20px; filter: drop-shadow(0 10px 22px rgba(4, 10, 30, 0.55)); }
@keyframes neoCoreBreath {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.05); }
}

/* --- Card (right) --- */
.neo-login-side {
  position: relative;
  display: grid;
  place-items: center;
  padding: 48px clamp(24px, 6vw, 96px);
  perspective: 1200px;
}
.neo-login-card {
  position: relative;
  width: min(100%, 440px);
  padding: 42px 40px 34px;
  border: 1px solid rgba(150, 172, 255, 0.22);
  border-radius: 26px;
  background: linear-gradient(158deg, rgba(19, 30, 62, 0.82), rgba(10, 16, 36, 0.86));
  backdrop-filter: blur(22px);
  box-shadow: 0 40px 90px rgba(2, 6, 20, 0.6), inset 0 1px 0 rgba(255, 255, 255, 0.1);
  color: #eef2ff;
  transform-style: preserve-3d;
  transition: transform 0.25s var(--neo-ease), box-shadow 0.35s ease;
  animation: neoCardIn 0.85s var(--neo-ease-2) 0.3s both;
}
@keyframes neoCardIn {
  from { opacity: 0; transform: translateY(34px) scale(0.96) rotateX(6deg); }
  to { opacity: 1; transform: none; }
}
.neo-card-glow {
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(140deg, rgba(126, 162, 255, 0.65), rgba(34, 201, 216, 0.35) 40%, rgba(124, 92, 240, 0.5) 75%, rgba(126, 162, 255, 0.65));
  background-size: 260% 260%;
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
          mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
          mask-composite: exclude;
  animation: neoGradientFlow 9s ease-in-out infinite;
  pointer-events: none;
}
/* Staggered entrance for card children */
.neo-login-card .login-form-inner > * {
  animation: neoRise 0.65s var(--neo-ease) both;
}
.neo-login-card .login-form-inner > :nth-child(1) { animation-delay: 0.42s; }
.neo-login-card .login-form-inner > :nth-child(2) { animation-delay: 0.5s; }
.neo-login-card .login-form-inner > :nth-child(3) { animation-delay: 0.56s; }
.neo-login-card .login-form-inner > :nth-child(4) { animation-delay: 0.62s; }
.neo-login-card .login-form-inner > :nth-child(5) { animation-delay: 0.68s; }
.neo-login-card .login-form-inner > :nth-child(6) { animation-delay: 0.74s; }
.neo-login-card .login-form-inner > :nth-child(7) { animation-delay: 0.8s; }
.neo-login-card .login-form-inner > :nth-child(8) { animation-delay: 0.86s; }
.neo-login-card .login-form-inner > :nth-child(9) { animation-delay: 0.92s; }
.neo-login-card .login-form-inner > :nth-child(10) { animation-delay: 0.98s; }
.neo-login-card .login-form-inner > :nth-child(11) { animation-delay: 1.04s; }
.neo-login-card .login-form-inner > :nth-child(12) { animation-delay: 1.1s; }

.neo-card-emblem {
  display: grid;
  place-items: center;
  width: 64px;
  height: 64px;
  margin: 0 auto 20px;
  border-radius: 20px;
  background: linear-gradient(145deg, rgba(61, 99, 242, 0.4), rgba(124, 92, 240, 0.3));
  border: 1px solid rgba(170, 190, 255, 0.35);
  box-shadow: 0 18px 40px rgba(61, 99, 242, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.25);
}
.neo-card-emblem img { width: 52px; height: 52px; object-fit: cover; border-radius: 14px; }
#login-view .neo-card-eyebrow {
  margin: 0;
  color: #8ea5e8 !important;
  font-size: 10.5px !important;
  font-weight: 800 !important;
  letter-spacing: 0.22em !important;
  text-align: center;
}
#login-view .neo-card-title {
  margin: 12px 0 8px !important;
  color: #f4f7ff !important;
  font: 800 28px/1.22 Manrope, "Segoe UI", sans-serif !important;
  letter-spacing: -0.04em !important;
  text-align: center;
  white-space: normal !important;
  overflow-wrap: normal !important;
}
#login-view .login-intro { margin: 0 0 24px; color: #9fb0d8; font-size: 13.5px; text-align: center; }
#login-view .mobile-login-brand { display: none; }
#login-view .login-logo { background: #fff; border-radius: 10px; overflow: hidden; }
#login-view .login-logo .logo-dark { display: none; }

/* Mode tabs with sliding indicator */
.neo-mode-tabs {
  position: relative;
  display: grid !important;
  grid-template-columns: 1fr 1fr !important;
  gap: 0 !important;
  margin: 0 0 20px !important;
  padding: 5px !important;
  border: 1px solid rgba(150, 172, 255, 0.2) !important;
  border-radius: 14px !important;
  background: rgba(8, 13, 30, 0.6) !important;
}
.neo-mode-indicator {
  position: absolute;
  top: 5px;
  bottom: 5px;
  left: 5px;
  width: calc(50% - 10px);
  border-radius: 10px;
  background: linear-gradient(135deg, #3d63f2, #6a5cf5);
  box-shadow: 0 8px 22px rgba(61, 99, 242, 0.45);
  transition: transform 0.4s var(--neo-ease-2), width 0.4s var(--neo-ease-2);
  z-index: 0;
}
.neo-mode-tabs .login-tab {
  position: relative;
  z-index: 1;
  min-height: 40px !important;
  margin: 0 !important;
  padding: 0 10px !important;
  border: 0 !important;
  border-radius: 10px !important;
  background: transparent !important;
  box-shadow: none !important;
  color: #93a5d4 !important;
  font-size: 12.5px !important;
  font-weight: 700 !important;
  letter-spacing: 0.01em;
  transition: color 0.3s ease, transform 0.3s var(--neo-ease-2);
}
.neo-mode-tabs .login-tab:hover { color: #cdd9ff !important; transform: translateY(-1px); }
.neo-mode-tabs .login-tab.active { color: #fff !important; }

/* Fields */
#login-view .form-grid { gap: 16px !important; }
#login-view .label { gap: 9px !important; margin: 0 !important; }
#login-view .label .muted {
  color: #aebadd !important;
  font-size: 11.5px !important;
  font-weight: 700 !important;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
#login-view .field {
  width: 100% !important;
  min-height: 50px !important;
  padding: 13px 16px !important;
  border: 1px solid rgba(150, 172, 255, 0.24) !important;
  border-radius: 13px !important;
  background: rgba(8, 13, 30, 0.55) !important;
  color: #f2f5ff !important;
  box-shadow: inset 0 2px 6px rgba(2, 6, 20, 0.45) !important;
  font-size: 14px !important;
  transition: border-color 0.3s ease, box-shadow 0.3s ease, background 0.3s ease, transform 0.3s var(--neo-ease-2);
}
#login-view .field::placeholder { color: #63769f !important; opacity: 1 !important; -webkit-text-fill-color: #63769f !important; }
#login-view .field:hover { border-color: rgba(160, 182, 255, 0.45) !important; }
#login-view .field:focus {
  border-color: #7ea2ff !important;
  background: rgba(12, 20, 44, 0.75) !important;
  box-shadow: 0 0 0 4px rgba(94, 124, 255, 0.22), inset 0 2px 6px rgba(2, 6, 20, 0.3) !important;
  outline: 0 !important;
  transform: translateY(-1px);
}
/* Primary CTA with sheen + loading state */
#login-view .neo-login-btn {
  position: relative;
  overflow: hidden;
  min-height: 52px !important;
  margin-top: 22px !important;
  border: 0 !important;
  border-radius: 15px !important;
  background: linear-gradient(135deg, #3d63f2 0%, #6a5cf5 55%, #3d63f2 100%) !important;
  background-size: 200% 100%;
  color: #fff !important;
  box-shadow: 0 16px 38px rgba(61, 99, 242, 0.42), inset 0 1px 0 rgba(255, 255, 255, 0.25) !important;
  font-size: 14.5px !important;
  font-weight: 800 !important;
  letter-spacing: 0.02em;
  cursor: pointer;
  transition: transform 0.3s var(--neo-ease-2), box-shadow 0.3s ease, background-position 0.6s ease, filter 0.3s ease;
}
#login-view .neo-login-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 22px 48px rgba(61, 99, 242, 0.55), inset 0 1px 0 rgba(255, 255, 255, 0.25) !important;
  background-position: 100% 0;
}
#login-view .neo-login-btn:active { transform: translateY(0) scale(0.985); }
.neo-btn-shine {
  position: absolute;
  top: 0;
  left: -80%;
  width: 55%;
  height: 100%;
  background: linear-gradient(105deg, transparent, rgba(255, 255, 255, 0.35), transparent);
  transform: skewX(-20deg);
  animation: neoShine 3.4s ease-in-out infinite;
  pointer-events: none;
}
@keyframes neoShine {
  0%, 55% { left: -80%; }
  85%, 100% { left: 130%; }
}
#login-view .neo-login-btn:disabled { cursor: wait; filter: saturate(0.75); }
#login-view .neo-login-btn:disabled .neo-btn-label { opacity: 0; }
#login-view .neo-login-btn:disabled::before {
  content: "Signing in…";
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: #fff;
  font-size: 14.5px;
  font-weight: 800;
  letter-spacing: 0.02em;
}
#login-view .neo-login-btn:disabled::after {
  content: "";
  position: absolute;
  top: 50%;
  right: 22px;
  width: 18px;
  height: 18px;
  margin-top: -9px;
  border: 2.5px solid rgba(255, 255, 255, 0.35);
  border-top-color: #fff;
  border-radius: 50%;
  animation: neoSpin 0.8s linear infinite;
}
@keyframes neoSpin { to { transform: rotate(360deg); } }

/* Error banner */
#login-view #login-error {
  margin: 0 0 4px !important;
  padding: 12px 14px !important;
  border: 1px solid rgba(248, 113, 113, 0.35);
  border-radius: 12px !important;
  background: rgba(190, 40, 60, 0.18) !important;
  color: #ffb4b4 !important;
  font-size: 12.5px !important;
  font-weight: 600;
  animation: neoShake 0.5s var(--neo-ease);
}
@keyframes neoShake {
  0%, 100% { transform: translateX(0); }
  18% { transform: translateX(-7px); }
  36% { transform: translateX(6px); }
  54% { transform: translateX(-4px); }
  72% { transform: translateX(3px); }
}
.neo-card-foot {
  margin: 22px 0 0;
  color: #6d7ea9;
  font-size: 11.5px;
  text-align: center;
  letter-spacing: 0.04em;
}

/* --- ID-specificity overrides: admin-polish.css sets #login-view-scoped
   !important rules (white card, white fields, #login-btn two-ID rules) that
   beat class selectors. Re-assert the NEO skin at equal/higher specificity. --- */
#login-view .login-card.neo-login-card {
  background: linear-gradient(158deg, rgba(19, 30, 62, 0.86), rgba(10, 16, 36, 0.9)) !important;
  border: 1px solid rgba(150, 172, 255, 0.22) !important;
  border-radius: 26px !important;
  box-shadow: 0 40px 90px rgba(2, 6, 20, 0.6), inset 0 1px 0 rgba(255, 255, 255, 0.1) !important;
  color: #eef2ff !important;
  padding: 42px 40px 34px !important;
}
#login-view .field,
#login-view .field:placeholder-shown {
  background: rgba(8, 13, 30, 0.55) !important;
  border: 1px solid rgba(150, 172, 255, 0.24) !important;
  color: #f2f5ff !important;
  -webkit-text-fill-color: #f2f5ff !important;
  box-shadow: inset 0 2px 6px rgba(2, 6, 20, 0.45) !important;
  animation: none !important;
}
#login-view .field:placeholder-shown { box-shadow: inset 0 2px 6px rgba(2, 6, 20, 0.45), 0 0 0 1px rgba(150, 172, 255, 0.1) !important; }
#login-view .field:focus {
  border-color: #7ea2ff !important;
  background: rgba(12, 20, 44, 0.78) !important;
  box-shadow: 0 0 0 4px rgba(94, 124, 255, 0.22), inset 0 2px 6px rgba(2, 6, 20, 0.3) !important;
}
#login-view .neo-mode-tabs { background: rgba(8, 13, 30, 0.6) !important; border-color: rgba(150, 172, 255, 0.2) !important; }
#login-view .neo-mode-tabs .login-tab { background: transparent !important; box-shadow: none !important; color: #93a5d4 !important; }
#login-view .neo-mode-tabs .login-tab.active { color: #fff !important; }
#login-view .neo-mode-tabs .login-tab:hover { color: #cdd9ff !important; }
#login-view .login-intro { color: #9fb0d8 !important; }
#login-view .label .muted { color: #aebadd !important; }
#login-view .eyebrow.neo-card-eyebrow { color: #8ea5e8 !important; }
#login-view h1.neo-card-title { color: #f4f7ff !important; }
#login-view #login-btn {
  min-height: 52px !important;
  border-radius: 15px !important;
  background: linear-gradient(135deg, #3d63f2 0%, #6a5cf5 55%, #3d63f2 100%) !important;
  background-size: 200% 100% !important;
  color: #fff !important;
  box-shadow: 0 16px 38px rgba(61, 99, 242, 0.42), inset 0 1px 0 rgba(255, 255, 255, 0.25) !important;
  font-size: 14.5px !important;
  font-weight: 800 !important;
}
#login-view #login-btn:hover {
  background: linear-gradient(135deg, #4d70ff 0%, #7a6bff 55%, #4d70ff 100%) !important;
  box-shadow: 0 22px 48px rgba(61, 99, 242, 0.55), inset 0 1px 0 rgba(255, 255, 255, 0.25) !important;
}
#login-view #login-error:not(.hidden) { background: rgba(190, 40, 60, 0.2) !important; color: #ffb4b4 !important; }

/* Login responsive */
@media (max-width: 1080px) {
  .neo-login-layout { grid-template-columns: minmax(0, 1fr); }
  .neo-showcase { display: none; }
  .neo-login-side { padding: 40px 22px; }
  #login-view .mobile-login-brand {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin: 0 0 22px;
    color: #eef2ff;
    font: 800 17px Manrope, "Segoe UI", sans-serif;
    letter-spacing: 0.05em;
  }
}

/* ============================================================================
   3) DASHBOARD SHELL
   ============================================================================ */
html body #dashboard-view.shell:not(.hidden) {
  grid-template-columns: 276px minmax(0, 1fr) !important;
  animation: none !important;
  transform: none !important;
}
@keyframes neoDashIn {
  from { opacity: 0; transform: translateY(10px) scale(0.995); }
  to { opacity: 1; transform: none; }
}
html body #dashboard-view.shell.sidebar-collapsed:not(.hidden) {
  grid-template-columns: 0 minmax(0, 1fr) !important;
}
html body #dashboard-view .main,
html body #dashboard-view .main-inner {
  background:
    radial-gradient(60% 40% at 88% 0%, rgba(61, 99, 242, 0.06), transparent 60%),
    radial-gradient(50% 36% at 4% 8%, rgba(124, 92, 240, 0.05), transparent 55%),
    var(--neo-page) !important;
  min-width: 0 !important;
}
html body #dashboard-view .main-inner {
  max-width: 1600px !important;
  margin: 0 auto !important;
  padding: 34px 40px 72px !important;
}

/* --- Sidebar --- */
html body #dashboard-view .sidebar {
  position: sticky !important;
  top: 0;
  width: 276px !important;
  min-width: 276px !important;
  height: 100vh;
  padding: 26px 18px 20px !important;
  border-right: 1px solid var(--neo-line) !important;
  background: linear-gradient(180deg, var(--neo-card) 0%, var(--neo-card-2) 100%) !important;
  box-shadow: 1px 0 0 rgba(16, 27, 51, 0.02), 18px 0 44px rgba(16, 27, 51, 0.03) !important;
  transition: transform 0.4s var(--neo-ease), opacity 0.3s ease;
}
html body #dashboard-view .sidebar-brand {
  display: flex;
  align-items: center;
  gap: 13px;
  min-height: 52px !important;
  margin: 0 0 26px !important;
  padding: 0 10px !important;
}
html body #dashboard-view .sidebar-brand img {
  width: 46px !important;
  height: 46px !important;
  min-width: 46px !important;
  flex: 0 0 46px !important;
  border-radius: 14px !important;
  object-fit: cover;
  box-shadow: 0 10px 24px rgba(61, 99, 242, 0.22);
}
html.dark body #dashboard-view #sidebar-logo {
  content: url("/assets/7thbreed-logo-on-dark.png") !important;
  background: #05080f !important;
  border: 1px solid rgba(157, 180, 255, .22) !important;
}
html body #dashboard-view .sidebar-brand-name {
  flex: 1 1 auto !important;
  min-width: 0 !important;
  white-space: nowrap !important;
  color: var(--neo-ink) !important;
  font: 800 19px Manrope, "Segoe UI", sans-serif !important;
  letter-spacing: 0.02em !important;
}
html body #dashboard-view .sidebar-nav {
  position: relative;
  gap: 4px !important;
  overflow-y: auto;
  overflow-x: hidden;
  scrollbar-width: thin;
  scrollbar-color: var(--neo-line-strong) transparent;
  padding: 2px;
}
/* Sliding active indicator (moved by admin-neo.js) */
.neo-nav-glider {
  position: absolute;
  left: 2px;
  right: 2px;
  width: auto;
  border-radius: 13px;
  background: linear-gradient(100deg, rgba(61, 99, 242, 0.14), rgba(106, 92, 245, 0.1) 60%, rgba(25, 194, 216, 0.08));
  box-shadow: inset 0 0 0 1px rgba(61, 99, 242, 0.16), 0 8px 20px rgba(61, 99, 242, 0.1);
  opacity: 0;
  transition: top 0.45s var(--neo-ease-2), height 0.45s var(--neo-ease-2), opacity 0.3s ease;
  pointer-events: none;
  z-index: 0;
}
html body #dashboard-view .nav-group-title {
  position: relative;
  z-index: 1;
  margin: 0 !important;
  padding: 20px 12px 8px !important;
  color: var(--neo-muted) !important;
  font-size: 10px !important;
  font-weight: 800 !important;
  letter-spacing: 0.16em !important;
  text-transform: uppercase;
}
html body #dashboard-view .nav-group-title:first-child { padding-top: 2px !important; }
html body #dashboard-view .sidebar .nav-item {
  position: relative;
  z-index: 1;
  min-height: 46px !important;
  margin: 0 !important;
  padding: 11px 14px !important;
  border: 0 !important;
  border-radius: 13px !important;
  background: transparent !important;
  color: var(--neo-muted) !important;
  box-shadow: none !important;
  font-size: 13.5px !important;
  font-weight: 650 !important;
  gap: 13px !important;
  transform: none !important;
  cursor: pointer;
  transition: color 0.25s ease, background 0.25s ease, transform 0.3s var(--neo-ease-2), box-shadow 0.25s ease !important;
}
html body #dashboard-view .sidebar .nav-item::after,
html body #dashboard-view .sidebar .nav-item::before { display: none !important; }
html body #dashboard-view .sidebar .nav-item:hover {
  background: color-mix(in srgb, var(--neo-brand) 7%, transparent) !important;
  color: var(--neo-brand) !important;
  transform: translateX(3px) !important;
}
html body #dashboard-view .sidebar .nav-item.active {
  background: transparent !important;
  color: var(--neo-brand) !important;
  font-weight: 750 !important;
  box-shadow: none !important;
}
html body #dashboard-view .sidebar .nav-item.active .nav-icon { filter: drop-shadow(0 4px 8px rgba(61, 99, 242, 0.35)); }
html body #dashboard-view .sidebar .nav-icon {
  width: 20px !important;
  height: 20px !important;
  flex: 0 0 20px !important;
  stroke-width: 1.9 !important;
  transition: transform 0.3s var(--neo-ease-2);
}
html body #dashboard-view .sidebar .nav-item:hover .nav-icon { transform: scale(1.12); }
html body #dashboard-view .sidebar .nav-item .notification-count {
  margin-left: auto !important;
  background: linear-gradient(135deg, #ef4444, #f97316) !important;
  box-shadow: 0 4px 10px rgba(239, 68, 68, 0.4) !important;
}
html body #dashboard-view .sidebar-footer {
  margin-top: auto !important;
  padding: 16px 0 0 !important;
  border-top: 1px solid var(--neo-line) !important;
  display: flex;
  flex-direction: column;
  gap: 6px !important;
}
html body #dashboard-view .sidebar-footer .nav-item {
  display: flex;
  align-items: center;
  min-height: 44px !important;
  border: 1px solid transparent !important;
  border-radius: 12px !important;
  background: transparent !important;
  color: var(--neo-muted) !important;
  font-size: 13px !important;
  font-weight: 650 !important;
}
html body #dashboard-view .sidebar-footer .nav-item:hover {
  border-color: var(--neo-line) !important;
  background: var(--neo-card) !important;
  color: var(--neo-ink) !important;
  transform: none !important;
}
html body #dashboard-view #refresh-btn::before { content: "⟳"; margin-right: 11px; font-size: 15px; color: var(--neo-brand); }
html body #dashboard-view #logout-btn::before { content: "⏻"; margin-right: 11px; font-size: 14px; color: var(--neo-danger); }
html body #dashboard-view #logout-btn:hover { color: var(--neo-danger) !important; border-color: color-mix(in srgb, var(--neo-danger) 30%, transparent) !important; background: color-mix(in srgb, var(--neo-danger) 7%, transparent) !important; }

/* --- Topbar --- */
html body #dashboard-view .topbar {
  position: sticky !important;
  top: 0;
  z-index: 60;
  min-height: 76px !important;
  border-bottom: 1px solid var(--neo-line) !important;
  background: color-mix(in srgb, var(--neo-card) 82%, transparent) !important;
  backdrop-filter: blur(18px) saturate(1.4);
  -webkit-backdrop-filter: blur(18px) saturate(1.4);
  box-shadow: 0 1px 0 rgba(16, 27, 51, 0.03), 0 12px 32px rgba(16, 27, 51, 0.04) !important;
}
html body #dashboard-view .topbar-inner {
  width: 100% !important;
  max-width: 1600px !important;
  margin: 0 auto !important;
  min-height: 76px !important;
  padding: 16px 40px !important;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}
html body #dashboard-view .topbar .eyebrow { color: var(--neo-brand) !important; letter-spacing: 0.18em !important; }
html body #dashboard-view .topbar h1 {
  color: var(--neo-ink) !important;
  font: 800 19px Manrope, "Segoe UI", sans-serif !important;
  letter-spacing: -0.03em !important;
  margin: 3px 0 0 !important;
}
html body #dashboard-view .admin-search {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: min(320px, 30vw);
  height: 46px;
  padding: 0 16px;
  border: 1px solid var(--neo-line) !important;
  border-radius: 14px !important;
  background: var(--neo-card-2) !important;
  box-shadow: var(--neo-shadow-sm) !important;
  transition: border-color 0.25s ease, box-shadow 0.25s ease, background 0.25s ease, transform 0.25s var(--neo-ease-2);
}
html body #dashboard-view .admin-search:hover { border-color: var(--neo-line-strong) !important; transform: translateY(-1px); }
html body #dashboard-view .admin-search:focus-within {
  border-color: var(--neo-brand) !important;
  box-shadow: var(--neo-ring) !important;
  background: var(--neo-card) !important;
}
html body #dashboard-view .admin-search svg { width: 18px; height: 18px; fill: none; stroke: var(--neo-muted); stroke-width: 2; }
html body #dashboard-view .admin-search input {
  border: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  color: var(--neo-ink) !important;
  font-size: 13.5px !important;
  min-height: 0 !important;
  height: 100%;
}
html body #dashboard-view .admin-search input:focus { outline: 0 !important; box-shadow: none !important; }
html body #dashboard-view .admin-search input::placeholder { color: var(--neo-muted) !important; -webkit-text-fill-color: var(--neo-muted) !important; }
html body #dashboard-view .theme-topbar-switch,
html body #dashboard-view .notification-bell,
html body #dashboard-view .profile-chip {
  border: 1px solid var(--neo-line) !important;
  background: var(--neo-card) !important;
  box-shadow: var(--neo-shadow-sm) !important;
  transition: border-color 0.25s ease, box-shadow 0.25s ease, transform 0.25s var(--neo-ease-2) !important;
}
html body #dashboard-view .theme-topbar-switch:hover,
html body #dashboard-view .notification-bell:hover,
html body #dashboard-view .profile-chip:hover {
  border-color: var(--neo-line-strong) !important;
  transform: translateY(-2px);
  box-shadow: var(--neo-shadow) !important;
}
html body #dashboard-view .notification-bell { position: relative; }
html body #dashboard-view .notification-bell svg { width: 19px; height: 19px; fill: none; stroke: var(--neo-ink-2); stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
html body #dashboard-view .notification-count {
  background: linear-gradient(135deg, #ef4444, #f97316) !important;
  box-shadow: 0 4px 12px rgba(239, 68, 68, 0.45) !important;
  animation: neoBadgePing 2.6s ease-out infinite;
}
@keyframes neoBadgePing {
  0% { box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.5), 0 4px 12px rgba(239, 68, 68, 0.45); }
  70% { box-shadow: 0 0 0 8px rgba(239, 68, 68, 0), 0 4px 12px rgba(239, 68, 68, 0.45); }
  100% { box-shadow: 0 0 0 0 rgba(239, 68, 68, 0), 0 4px 12px rgba(239, 68, 68, 0.45); }
}
html body #dashboard-view .notification-popover {
  border: 1px solid var(--neo-line) !important;
  border-radius: 18px !important;
  background: var(--neo-card) !important;
  box-shadow: var(--neo-shadow-lg) !important;
  animation: neoPop 0.32s var(--neo-ease-2) both;
}
@keyframes neoPop {
  from { opacity: 0; transform: translateY(-8px) scale(0.97); }
  to { opacity: 1; transform: none; }
}
html body #dashboard-view .profile-chip {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 7px 14px 7px 7px !important;
  border-radius: 999px !important;
  cursor: default;
}
html body #dashboard-view .profile-avatar {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: linear-gradient(135deg, #3d63f2, #7c5cf0);
  color: #fff;
  font-size: 13px;
  font-weight: 800;
  box-shadow: 0 6px 16px rgba(61, 99, 242, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.3);
}
html body #dashboard-view .profile-name { color: var(--neo-ink); font-size: 13px; font-weight: 750; }
html body #dashboard-view .profile-role { color: var(--neo-muted); font-size: 11px; }
html body #dashboard-view .mobile-toggle {
  display: none;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 1px solid var(--neo-line);
  border-radius: 12px;
  background: var(--neo-card);
  color: var(--neo-ink);
  font-size: 18px;
  cursor: pointer;
  box-shadow: var(--neo-shadow-sm);
}
@media (min-width: 901px) {
  html body #dashboard-view .mobile-toggle { display: none !important; }
}

/* ============================================================================
   4) HOME / OVERVIEW
   ============================================================================ */
html body #dashboard-view #tab-home:not(.hidden) { display: block !important; }
html body #dashboard-view .dashboard-overview-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  margin: 0 0 26px !important;
  max-width: none !important;
}
html body #dashboard-view .overview-title,
html body #dashboard-view .section-heading h2 {
  color: var(--neo-ink) !important;
  font: 800 clamp(26px, 2.4vw, 34px)/1.15 Manrope, "Segoe UI", sans-serif !important;
  letter-spacing: -0.045em !important;
}
html body #dashboard-view #overview-message { margin-top: 8px !important; color: var(--neo-muted) !important; font-size: 14px !important; }
html body #dashboard-view #overview-kicker { color: var(--neo-brand) !important; letter-spacing: 0.18em !important; }
html body #dashboard-view #overview-updated {
  border: 1px solid var(--neo-line) !important;
  border-radius: 999px !important;
  background: var(--neo-card) !important;
  color: var(--neo-muted) !important;
  box-shadow: var(--neo-shadow-sm) !important;
}
html body #dashboard-view #tab-home > .stats {
  display: grid !important;
  grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
  gap: 18px !important;
  margin: 0 0 20px !important;
}
html body #dashboard-view #tab-home .stat,
html body #dashboard-view #tab-hr .stat {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  min-height: 150px !important;
  margin: 0 !important;
  padding: 22px 24px !important;
  border: 1px solid var(--neo-line) !important;
  border-radius: var(--neo-r-lg) !important;
  background: var(--neo-card) !important;
  color: var(--neo-ink) !important;
  box-shadow: var(--neo-shadow-sm) !important;
  transform: none !important;
  transition: transform 0.35s var(--neo-ease-2), box-shadow 0.35s ease, border-color 0.35s ease !important;
}
html body #dashboard-view #tab-home .stat:hover,
html body #dashboard-view #tab-hr .stat:hover {
  transform: translateY(-4px) !important;
  border-color: color-mix(in srgb, var(--neo-brand) 30%, var(--neo-line)) !important;
  box-shadow: var(--neo-shadow) !important;
}
html body #dashboard-view #tab-home .stat::before,
html body #dashboard-view #tab-hr .stat::before { display: none !important; }
html body #dashboard-view #tab-home .stat::after,
html body #dashboard-view #tab-hr .stat::after {
  content: "" !important;
  display: block !important;
  position: absolute !important;
  z-index: -1 !important;
  right: -34px !important;
  bottom: -44px !important;
  width: 120px !important;
  height: 120px !important;
  border-radius: 50% !important;
  background: radial-gradient(circle, rgba(61, 99, 242, 0.12), transparent 68%) !important;
  transition: transform 0.4s var(--neo-ease-2);
}
html body #dashboard-view #tab-home .stat:hover::after { transform: scale(1.5); }
html body #dashboard-view #tab-home .stat-label,
html body #dashboard-view #tab-hr .stat-label {
  color: var(--neo-muted) !important;
  font-size: 11.5px !important;
  font-weight: 750 !important;
  letter-spacing: 0.07em !important;
  text-transform: uppercase;
}
html body #dashboard-view #tab-home .stat-value,
html body #dashboard-view #tab-hr .stat-value {
  margin-top: 16px !important;
  color: var(--neo-ink) !important;
  font: 800 clamp(26px, 2.2vw, 34px)/1.1 Manrope, "Segoe UI", sans-serif !important;
  letter-spacing: -0.04em !important;
  font-variant-numeric: tabular-nums;
}
html body #dashboard-view #tab-home .stat-icon,
html body #dashboard-view #tab-hr .stat-icon {
  top: 20px !important;
  right: 20px !important;
  display: grid;
  place-items: center;
  width: 42px !important;
  height: 42px !important;
  border: 0 !important;
  border-radius: 13px !important;
  background: linear-gradient(135deg, rgba(61, 99, 242, 0.12), rgba(124, 92, 240, 0.1)) !important;
  color: var(--neo-brand) !important;
  box-shadow: none !important;
}
html body #dashboard-view #tab-home .stat-icon svg { width: 21px; height: 21px; fill: none; stroke: currentColor; stroke-width: 1.8; }
/* Hero stat */
html:not(.dark) body #dashboard-view #tab-home .stat.stat-total,
html:not(.dark) body #dashboard-view #tab-hr .stat.stat-total,
html body #dashboard-view #tab-home .stat-total,
html body #dashboard-view #tab-hr .stat-total {
  background: linear-gradient(132deg, #2f55e8 0%, #3d63f2 42%, #6a5cf5 100%) !important;
  background-color: #3d63f2 !important;
  border: 0 !important;
  color: #fff !important;
  box-shadow: 0 20px 48px rgba(61, 99, 242, 0.35) !important;
}
html body #dashboard-view #tab-home .stat-total .stat-label,
html body #dashboard-view #tab-hr .stat-total .stat-label { color: rgba(255, 255, 255, 0.78) !important; }
html body #dashboard-view #tab-home .stat-total .stat-value,
html body #dashboard-view #tab-hr .stat-total .stat-value { color: #fff !important; font-size: clamp(30px, 2.6vw, 40px) !important; }
html body #dashboard-view #tab-home .stat-total .stat-icon,
html body #dashboard-view #tab-hr .stat-total .stat-icon { background: rgba(255, 255, 255, 0.16) !important; color: #fff !important; }
html body #dashboard-view #tab-home .stat-total::after {
  width: 220px !important;
  height: 220px !important;
  right: -70px !important;
  bottom: -110px !important;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.25), transparent 64%) !important;
}
html body #dashboard-view #tab-home .stat-total::before {
  content: "" !important;
  display: block !important;
  position: absolute !important;
  inset: 0 !important;
  z-index: 0 !important;
  background: linear-gradient(115deg, transparent 30%, rgba(255, 255, 255, 0.14) 46%, transparent 60%);
  background-size: 250% 100%;
  animation: neoHeroSheen 5.5s ease-in-out infinite;
  pointer-events: none;
}
@keyframes neoHeroSheen {
  0%, 55% { background-position: 130% 0; }
  100% { background-position: -60% 0; }
}

html body #dashboard-view #tab-home > .attention-panel,
html body #dashboard-view #tab-home > .pending-transactions-panel {
  width: 100% !important;
  max-width: none !important;
  margin: 0 0 20px !important;
  padding: 22px 24px !important;
}
html body #dashboard-view #tab-home > .analytics-grid {
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  gap: 20px !important;
  margin: 0 0 20px !important;
}
html body #dashboard-view #tab-home > .home-grid {
  display: grid !important;
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  gap: 20px !important;
}
html body #dashboard-view #tab-home > .home-grid > .activity-panel { grid-column: span 2; }
html body #dashboard-view .chart-panel {
  min-height: 280px !important;
  padding: 24px !important;
  transition: transform 0.35s var(--neo-ease-2), box-shadow 0.35s ease, border-color 0.35s ease !important;
}
html body #dashboard-view .chart-panel-wide { grid-column: 1 / -1 !important; min-height: 340px !important; }
html body #dashboard-view .chart-panel:hover { transform: translateY(-3px) !important; }
html body #dashboard-view .chart-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 14px; }
html body #dashboard-view .chart-heading h2 {
  color: var(--neo-ink) !important;
  font: 750 17px/1.3 Manrope, "Segoe UI", sans-serif !important;
  letter-spacing: -0.02em !important;
}
html body #dashboard-view .chart-heading .eyebrow { color: var(--neo-brand) !important; font-size: 9.5px !important; letter-spacing: 0.16em !important; }
html body #dashboard-view .chart-caption {
  border: 1px solid var(--neo-line);
  border-radius: 999px;
  padding: 5px 12px;
  background: var(--neo-card-2);
  color: var(--neo-muted) !important;
  font-size: 11px !important;
  font-weight: 650;
  white-space: nowrap;
}
html body #dashboard-view .chart-legend span,
html body #dashboard-view .chart-legend div { color: var(--neo-ink-2) !important; }
html body #dashboard-view .svg-chart .trend-line { stroke: url(#neo-trend) !important; }
html body #dashboard-view .service-donut { filter: drop-shadow(0 12px 20px rgba(61, 99, 242, 0.16)); }
html body #dashboard-view .pipeline-chart, html body #dashboard-view .service-bars { color: var(--neo-ink-2); }

/* ============================================================================
   5) COMPONENTS — panels, headings, toolbars, controls
   ============================================================================ */
html body #dashboard-view .panel,
html body #dashboard-view .ui-card,
html body #dashboard-view .quote-card,
html body #dashboard-view .card {
  border: 1px solid var(--neo-line) !important;
  border-radius: var(--neo-r-lg) !important;
  background: var(--neo-card) !important;
  box-shadow: var(--neo-shadow-sm) !important;
  transition: transform 0.35s var(--neo-ease-2), box-shadow 0.35s ease, border-color 0.35s ease !important;
}
html body #dashboard-view .panel,
html body #dashboard-view .ui-card { padding: 24px !important; }
html body #dashboard-view .panel:hover,
html body #dashboard-view .ui-card:hover {
  border-color: color-mix(in srgb, var(--neo-brand) 22%, var(--neo-line)) !important;
  box-shadow: var(--neo-shadow) !important;
}
html body #dashboard-view .tab-panel:not(#tab-home) > .section-heading {
  display: flex !important;
  align-items: center;
  gap: 16px !important;
  border-bottom: 0 !important;
  padding: 0 !important;
  margin: 0 0 26px !important;
}
html body #dashboard-view .section-heading .section-heading-icon {
  display: grid;
  place-items: center;
  flex: 0 0 52px;
  width: 52px !important;
  height: 52px !important;
  border-radius: 16px !important;
  background: linear-gradient(135deg, rgba(61, 99, 242, 0.14), rgba(124, 92, 240, 0.12)) !important;
  color: var(--neo-brand) !important;
  box-shadow: inset 0 0 0 1px rgba(61, 99, 242, 0.14), 0 10px 24px rgba(61, 99, 242, 0.12) !important;
}
html body #dashboard-view .section-heading .section-heading-icon svg {
  width: 25px !important;
  height: 25px !important;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}
html body #dashboard-view .section-heading h2 { margin: 0 !important; }
html body #dashboard-view .section-heading p { margin: 5px 0 0 !important; color: var(--neo-muted) !important; font-size: 13.5px !important; }
html body #dashboard-view .muted { color: var(--neo-muted) !important; }
html body #dashboard-view .eyebrow { color: var(--neo-brand) !important; font-weight: 800; letter-spacing: 0.18em; }

/* Toolbars & filters */
html body #dashboard-view .quotes-toolbar {
  border: 1px solid var(--neo-line) !important;
  border-radius: var(--neo-r-lg) !important;
  background: var(--neo-card) !important;
  box-shadow: var(--neo-shadow-sm) !important;
  padding: 20px !important;
  margin: 0 0 20px !important;
  display: grid;
  gap: 16px;
}
html body #dashboard-view .toolbar-row { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 16px; }
html body #dashboard-view .toolbar-group { display: grid; gap: 8px; min-width: 0; }
html body #dashboard-view .toolbar-group-label {
  color: var(--neo-muted) !important;
  font-size: 10px !important;
  font-weight: 800 !important;
  letter-spacing: 0.14em !important;
  text-transform: uppercase;
}
html body #dashboard-view .toolbar-cluster { display: flex; flex-wrap: wrap; align-items: center; gap: 9px; }
html body #dashboard-view .toolbar-divider { width: 1px; height: 24px; background: var(--neo-line-strong); }
html body #dashboard-view .toolbar { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; }
html body #dashboard-view .filters { display: flex; flex-wrap: wrap; gap: 8px; }
html body #dashboard-view .filter-btn {
  min-height: 40px;
  padding: 9px 18px;
  border: 1px solid var(--neo-line) !important;
  border-radius: 999px !important;
  background: var(--neo-card) !important;
  color: var(--neo-ink-2) !important;
  font-size: 12.5px !important;
  font-weight: 700 !important;
  cursor: pointer;
  transition: all 0.25s var(--neo-ease-2);
}
html body #dashboard-view .filter-btn:hover {
  border-color: color-mix(in srgb, var(--neo-brand) 40%, var(--neo-line)) !important;
  color: var(--neo-brand) !important;
  transform: translateY(-2px);
  box-shadow: 0 8px 18px rgba(61, 99, 242, 0.14);
}
html body #dashboard-view .filter-btn.active {
  border-color: transparent !important;
  background: linear-gradient(135deg, #3d63f2, #6a5cf5) !important;
  background-color: #4c5ff0 !important;
  color: #fff !important;
  box-shadow: 0 10px 24px rgba(61, 99, 242, 0.35) !important;
}
html body #dashboard-view .filters + .toolbar-group { margin-left: auto; }
html body #dashboard-view .crm-search-row {
  display: flex !important;
  align-items: center;
  gap: 12px !important;
  padding: 12px 16px !important;
  border: 1px solid var(--neo-line) !important;
  border-radius: 16px !important;
  background: var(--neo-card-2) !important;
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
}
html body #dashboard-view .crm-search-row:focus-within {
  border-color: var(--neo-brand) !important;
  box-shadow: var(--neo-ring) !important;
  background: var(--neo-card) !important;
}
html body #dashboard-view .crm-search-icon { color: var(--neo-muted); font-size: 18px; }
html body #dashboard-view .crm-search-field { font-size: 14px !important; }

/* Buttons */
html body #dashboard-view .btn,
#login-view .btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 10px 20px;
  border: 1px solid transparent;
  border-radius: 13px !important;
  font-size: 13.5px !important;
  font-weight: 750 !important;
  letter-spacing: 0.01em;
  cursor: pointer;
  overflow: hidden;
  transition: transform 0.25s var(--neo-ease-2), box-shadow 0.25s ease, border-color 0.25s ease, background 0.25s ease, color 0.25s ease, filter 0.25s ease;
}
html body #dashboard-view .btn:hover { transform: translateY(-2px); }
html body #dashboard-view .btn:active { transform: translateY(0) scale(0.97); }
html body #dashboard-view .btn:disabled { opacity: 0.55; cursor: not-allowed; transform: none !important; }
html body #dashboard-view .btn-primary {
  border-color: transparent !important;
  background: linear-gradient(135deg, #3d63f2 0%, #6a5cf5 100%) !important;
  color: #fff !important;
  box-shadow: 0 12px 28px rgba(61, 99, 242, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.22) !important;
}
html body #dashboard-view .btn-primary:hover {
  box-shadow: 0 18px 38px rgba(61, 99, 242, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.22) !important;
  filter: brightness(1.06);
}
html body #dashboard-view .btn-ghost {
  border-color: var(--neo-line-strong) !important;
  background: var(--neo-card) !important;
  color: var(--neo-ink-2) !important;
  box-shadow: var(--neo-shadow-sm) !important;
}
html body #dashboard-view .btn-ghost:hover {
  border-color: color-mix(in srgb, var(--neo-brand) 45%, var(--neo-line)) !important;
  color: var(--neo-brand) !important;
  box-shadow: 0 10px 24px rgba(61, 99, 242, 0.16) !important;
}
html body #dashboard-view .btn-danger {
  border-color: color-mix(in srgb, var(--neo-danger) 28%, transparent) !important;
  background: color-mix(in srgb, var(--neo-danger) 9%, var(--neo-card)) !important;
  color: var(--neo-danger) !important;
}
html body #dashboard-view .btn-danger:hover {
  background: color-mix(in srgb, var(--neo-danger) 16%, var(--neo-card)) !important;
  box-shadow: 0 12px 26px rgba(220, 38, 38, 0.22) !important;
}
html body #dashboard-view .btn-warning {
  border-color: color-mix(in srgb, #d97706 30%, transparent) !important;
  background: color-mix(in srgb, #d97706 10%, var(--neo-card)) !important;
  color: #b45309 !important;
}
html.dark body #dashboard-view .btn-warning { color: #fbbf24 !important; }
/* Ripple (spawned by admin-neo.js) */
.neo-ripple {
  position: absolute;
  border-radius: 50%;
  background: currentColor;
  opacity: 0.22;
  transform: scale(0);
  animation: neoRipple 0.6s ease-out forwards;
  pointer-events: none;
}
@keyframes neoRipple { to { transform: scale(2.6); opacity: 0; } }

/* Fields & controls */
html body #dashboard-view .field,
html body #dashboard-view .textarea,
html body #dashboard-view .status-select,
html body #dashboard-view select,
html body #dashboard-view textarea {
  min-height: 46px;
  padding: 11px 15px !important;
  border: 1px solid var(--neo-line-strong) !important;
  border-radius: 12px !important;
  background: var(--neo-card-2) !important;
  color: var(--neo-ink) !important;
  -webkit-text-fill-color: var(--neo-ink) !important;
  box-shadow: inset 0 1px 2px rgba(16, 27, 51, 0.03) !important;
  font-size: 13.5px !important;
  transition: border-color 0.25s ease, box-shadow 0.25s ease, background 0.25s ease, transform 0.25s var(--neo-ease-2);
}
html body #dashboard-view .field:hover,
html body #dashboard-view .textarea:hover,
html body #dashboard-view select:hover { border-color: var(--neo-brand) !important; }
html body #dashboard-view .field:focus,
html body #dashboard-view .textarea:focus,
html body #dashboard-view .status-select:focus,
html body #dashboard-view select:focus,
html body #dashboard-view textarea:focus {
  border-color: var(--neo-brand) !important;
  background: var(--neo-card) !important;
  box-shadow: var(--neo-ring) !important;
  outline: 0 !important;
}
html body #dashboard-view .field::placeholder,
html body #dashboard-view textarea::placeholder { color: var(--neo-muted) !important; opacity: 1 !important; -webkit-text-fill-color: var(--neo-muted) !important; }
html body #dashboard-view select {
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5 6 6.5 11 1.5' fill='none' stroke='%235d6b85' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 38px !important;
  cursor: pointer;
}
html body #dashboard-view input[type="checkbox"],
html body #dashboard-view input[type="radio"] {
  width: 17px;
  height: 17px;
  accent-color: var(--neo-brand);
  cursor: pointer;
}
html body #dashboard-view .label { display: grid; gap: 8px; }
html body #dashboard-view .label > span { color: var(--neo-ink-2) !important; font-size: 12.5px !important; font-weight: 700 !important; }
html body #dashboard-view .form-grid { gap: 16px; }

/* Badges & status pills */
html body #dashboard-view .badge,
html body #dashboard-view .status-badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 5px 12px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-size: 11.5px !important;
  font-weight: 750 !important;
  letter-spacing: 0.02em;
  white-space: nowrap;
  transition: transform 0.25s var(--neo-ease-2);
}
html body #dashboard-view .badge::before,
html body #dashboard-view .status-badge::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
  box-shadow: 0 0 6px currentColor;
}
html body #dashboard-view .badge:hover { transform: translateY(-1px); }
html body #dashboard-view [data-status="new"],
html body #dashboard-view [data-status="sent"] { background: rgba(61, 99, 242, 0.1); color: #2f55e8; border-color: rgba(61, 99, 242, 0.25); }
html body #dashboard-view [data-status="contacted"] { background: rgba(124, 92, 240, 0.1); color: #6a4de0; border-color: rgba(124, 92, 240, 0.28); }
html body #dashboard-view [data-status="quoted"],
html body #dashboard-view [data-status="draft"] { background: rgba(14, 165, 233, 0.1); color: #0284c7; border-color: rgba(14, 165, 233, 0.26); }
html body #dashboard-view [data-status="negotiating"],
html body #dashboard-view [data-status="pending"] { background: rgba(217, 119, 6, 0.12); color: #b45309; border-color: rgba(217, 119, 6, 0.3); }
html body #dashboard-view [data-status="won"],
html body #dashboard-view [data-status="accepted"],
html body #dashboard-view [data-status="paid"] { background: rgba(22, 163, 74, 0.12); color: #15803d; border-color: rgba(22, 163, 74, 0.3); }
html body #dashboard-view [data-status="lost"],
html body #dashboard-view [data-status="failed"],
html body #dashboard-view [data-status="cancelled"],
html body #dashboard-view [data-status="declined"] { background: rgba(220, 38, 38, 0.1); color: #b91c1c; border-color: rgba(220, 38, 38, 0.28); }
html body #dashboard-view [data-status="archived"],
html body #dashboard-view [data-status="closed"],
html body #dashboard-view [data-status="all"] { background: rgba(93, 107, 133, 0.12); color: #52607a; border-color: rgba(93, 107, 133, 0.26); }
html.dark body #dashboard-view [data-status="new"], html.dark body #dashboard-view [data-status="sent"] { color: #9db4ff; }
html.dark body #dashboard-view [data-status="contacted"] { color: #c4b5fd; }
html.dark body #dashboard-view [data-status="quoted"] { color: #7dd3fc; }
html.dark body #dashboard-view [data-status="draft"] { color: #7dd3fc; }
html.dark body #dashboard-view [data-status="negotiating"], html.dark body #dashboard-view [data-status="pending"] { color: #fcd34d; }
html.dark body #dashboard-view [data-status="won"], html.dark body #dashboard-view [data-status="accepted"], html.dark body #dashboard-view [data-status="paid"] { color: #6ee7a0; }
html.dark body #dashboard-view [data-status="lost"], html.dark body #dashboard-view [data-status="failed"], html.dark body #dashboard-view [data-status="cancelled"], html.dark body #dashboard-view [data-status="declined"] { color: #fca5a5; }
html.dark body #dashboard-view [data-status="archived"], html.dark body #dashboard-view [data-status="closed"] { color: #a9b7d3; }
html body #dashboard-view .badge-success { background: rgba(22, 163, 74, 0.12); color: #15803d; border-color: rgba(22, 163, 74, 0.3); }
html body #dashboard-view .badge-warning { background: rgba(217, 119, 6, 0.12) !important; color: #b45309 !important; border-color: rgba(217, 119, 6, 0.3) !important; }

/* Tables */
html body #dashboard-view .table-wrap,
html body #dashboard-view .ui-table-wrap {
  border: 1px solid var(--neo-line) !important;
  border-radius: 16px !important;
  background: var(--neo-card) !important;
  box-shadow: var(--neo-shadow-sm);
  overflow: auto;
  -webkit-overflow-scrolling: touch;
}
html body #dashboard-view table {
  width: 100%;
  min-width: 640px;
  border-collapse: separate;
  border-spacing: 0;
}
html body #dashboard-view thead th {
  position: sticky;
  top: 0;
  z-index: 2;
  padding: 14px 16px !important;
  background: linear-gradient(180deg, var(--neo-card-2), color-mix(in srgb, var(--neo-card-2) 88%, var(--neo-brand))) !important;
  color: var(--neo-muted) !important;
  font-size: 10.5px !important;
  font-weight: 800 !important;
  letter-spacing: 0.09em !important;
  text-transform: uppercase;
  text-align: left;
  white-space: nowrap;
  border-bottom: 1px solid var(--neo-line) !important;
}
html body #dashboard-view tbody td {
  padding: 14px 16px !important;
  border-bottom: 1px solid color-mix(in srgb, var(--neo-line) 64%, transparent) !important;
  color: var(--neo-ink) !important;
  font-size: 13.5px !important;
  vertical-align: middle;
  transition: background 0.2s ease;
}
html body #dashboard-view tbody tr { transition: background 0.2s ease, box-shadow 0.2s ease; }
html body #dashboard-view tbody tr:hover { background: color-mix(in srgb, var(--neo-brand) 4%, transparent) !important; }
html body #dashboard-view tbody tr:last-child td { border-bottom: 0 !important; }
html body #dashboard-view tbody td code {
  padding: 3px 8px;
  border-radius: 7px;
  background: var(--neo-card-2);
  border: 1px solid var(--neo-line);
  font-size: 11.5px;
  color: var(--neo-ink-2);
}

/* Quote cards & lists */
html body #dashboard-view .quote-list { display: grid; gap: 16px; }
html body #dashboard-view .quote-card { padding: 22px 24px !important; }
html body #dashboard-view .quote-card:hover {
  transform: translateY(-3px) !important;
  border-color: color-mix(in srgb, var(--neo-brand) 26%, var(--neo-line)) !important;
  box-shadow: var(--neo-shadow) !important;
}
html body #dashboard-view .quote-card h2 { color: var(--neo-ink) !important; font: 750 17.5px/1.3 Manrope, "Segoe UI", sans-serif !important; letter-spacing: -0.02em; }
html body #dashboard-view .quote-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; }
html body #dashboard-view .quote-summary {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin: 16px 0 0;
}
html body #dashboard-view .quote-summary span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 13px;
  border: 1px solid var(--neo-line);
  border-radius: 10px;
  background: var(--neo-card-2);
  color: var(--neo-ink-2) !important;
  font-size: 12.5px;
}
html body #dashboard-view .quote-summary strong { color: var(--neo-muted); font-size: 10.5px; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; }
html body #dashboard-view details.quote-details > summary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 16px;
  padding: 9px 16px;
  border: 1px solid var(--neo-line);
  border-radius: 999px;
  background: var(--neo-card-2);
  color: var(--neo-brand) !important;
  font-size: 12.5px;
  font-weight: 750;
  cursor: pointer;
  transition: all 0.25s var(--neo-ease-2);
  list-style: none;
}
html body #dashboard-view details.quote-details > summary::-webkit-details-marker { display: none; }
html body #dashboard-view details.quote-details > summary::before { content: "▸"; transition: transform 0.3s var(--neo-ease-2); }
html body #dashboard-view details.quote-details[open] > summary::before { transform: rotate(90deg); }
html body #dashboard-view details.quote-details > summary:hover { border-color: color-mix(in srgb, var(--neo-brand) 40%, var(--neo-line)); transform: translateY(-1px); box-shadow: 0 8px 18px rgba(61, 99, 242, 0.12); }
html body #dashboard-view .quote-details-body { margin-top: 16px; }
html body #dashboard-view .detail-table th { color: var(--neo-muted) !important; font-weight: 700; white-space: nowrap; }
html body #dashboard-view .editable-field {
  border-bottom: 1px dashed var(--neo-line-strong);
  cursor: text;
  transition: border-color 0.2s ease, color 0.2s ease;
}
html body #dashboard-view .editable-field:hover { border-color: var(--neo-brand); color: var(--neo-brand); }
html body #dashboard-view .activity li,
html body #dashboard-view .attention-list > *,
html body #dashboard-view .pending-orders-list > *,
html body #dashboard-view .recent-activity-list > * {
  transition: background 0.2s ease, transform 0.2s var(--neo-ease-2);
}
html body #dashboard-view .activity li:hover,
html body #dashboard-view .attention-list > *:hover { background: color-mix(in srgb, var(--neo-brand) 4%, transparent); }

/* HR directory */
html body #dashboard-view .hr-view-tabs { display: flex; flex-wrap: wrap; gap: 10px; margin: 0 0 22px; }
html body #dashboard-view .hr-view-tab {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  padding: 10px 20px;
  border: 1px solid var(--neo-line) !important;
  border-radius: 13px;
  background: var(--neo-card) !important;
  color: var(--neo-ink-2) !important;
  font-size: 13px !important;
  font-weight: 700 !important;
  cursor: pointer;
  transition: all 0.25s var(--neo-ease-2);
}
html body #dashboard-view .hr-view-tab:hover { border-color: color-mix(in srgb, var(--neo-brand) 40%, var(--neo-line)) !important; color: var(--neo-brand) !important; transform: translateY(-2px); }
html body #dashboard-view .hr-view-tab.active {
  border-color: transparent !important;
  background: linear-gradient(135deg, #3d63f2, #6a5cf5) !important;
  background-color: #4c5ff0 !important;
  color: #fff !important;
  box-shadow: 0 12px 26px rgba(61, 99, 242, 0.32) !important;
}
html body #dashboard-view .hr-tab-icon svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 1.8; }
html body #dashboard-view .hr-dir-avatar {
  background: linear-gradient(135deg, rgba(61, 99, 242, 0.14), rgba(124, 92, 240, 0.12)) !important;
  color: var(--neo-brand) !important;
  box-shadow: inset 0 0 0 1px rgba(61, 99, 242, 0.14);
}

/* Modals & drawers */
.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 30001;
  display: grid;
  place-items: center;
  padding: 18px;
  background: rgba(6, 11, 24, 0.5) !important;
  backdrop-filter: blur(12px) saturate(1.12);
  -webkit-backdrop-filter: blur(12px) saturate(1.12);
  animation: neoFade 0.25s ease both;
  overflow-y: auto;
}
@keyframes neoFade { from { opacity: 0; } to { opacity: 1; } }
.modal-backdrop .modal,
.modal-backdrop .card.modal {
  box-sizing: border-box;
  width: min(500px, calc(100vw - 36px));
  max-height: min(84vh, 720px);
  overflow: auto;
  border: 1px solid var(--neo-line) !important;
  border-radius: 15px !important;
  background: var(--neo-card) !important;
  box-shadow: 0 20px 54px rgba(3, 8, 24, 0.3) !important;
  animation: neoModalIn 0.28s var(--neo-ease-2) both;
}
@keyframes neoModalIn {
  from { opacity: 0; transform: translateY(26px) scale(0.96); }
  to { opacity: 1; transform: none; }
}
.modal-backdrop .modal h2,
.modal-backdrop .modal h3 { color: var(--neo-ink) !important; }
.modal-backdrop .modal:not(.quotation-workspace):not(.customer-quote-mockup) {
  padding: 20px !important;
}

/* Compact dialogs are the default. Document editors opt into their own
   larger inline/class widths instead of making every prompt feel like a page. */
.modal-backdrop .app-dialog {
  width: min(360px, calc(100vw - 36px)) !important;
  padding: 16px !important;
  border-radius: 14px !important;
}
.modal-backdrop .app-dialog h2 {
  font-size: 0.95rem !important;
  line-height: 1.35;
}
.modal-backdrop .app-dialog p {
  color: var(--neo-muted);
  font-size: 0.84rem;
  line-height: 1.5;
}
.modal-backdrop .app-dialog .field { min-height: 40px !important; }
.modal-backdrop .app-dialog .row {
  justify-content: flex-end !important;
  gap: 7px !important;
  margin-top: 14px !important;
}
.modal-backdrop .app-dialog .btn {
  min-height: 35px !important;
  padding: 7px 12px !important;
  border-radius: 9px !important;
  font-size: 0.78rem !important;
}
#modal-root .modal-backdrop .app-dialog {
  width: min(360px, calc(100vw - 36px)) !important;
  padding: 16px !important;
}
#edit-user-form #edit-user-permissions {
  grid-column: 1 / -1;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-self: start;
  padding: 14px;
  border: 1px solid var(--neo-line);
  border-radius: 12px;
  background: var(--neo-soft);
}
#edit-user-form #edit-user-permissions > p { grid-column: 1 / -1; }
#modal-root .hr-profile-modal {
  width: min(680px, calc(100vw - 36px)) !important;
  max-height: min(86dvh, 760px) !important;
}
#modal-root .member-session-modal { width: min(460px, calc(100vw - 36px)) !important; }
#modal-root #edit-user-form,
#modal-root #calendar-schedule-form,
#modal-root #user-followup-form,
#modal-root #email-form,
#modal-root #variant-email-form,
#modal-root #variant-reply-form { width: min(500px, calc(100vw - 36px)) !important; }
#modal-root #transfer-work-form,
#modal-root #product-quote-picker-form { width: min(460px, calc(100vw - 36px)) !important; }
#modal-root #crm-quote-form { width: min(540px, calc(100vw - 36px)) !important; }

@media (max-width: 640px) {
  .modal-backdrop { padding: 12px !important; }
  .modal-backdrop .modal,
  .modal-backdrop .card.modal {
    width: min(100%, calc(100vw - 24px)) !important;
    max-height: calc(100dvh - 24px) !important;
    padding: 16px !important;
    border-radius: 15px !important;
  }
  .modal-backdrop .app-dialog {
    width: min(340px, calc(100vw - 32px)) !important;
    max-height: calc(100dvh - 32px) !important;
    padding: 15px !important;
    border-radius: 13px !important;
  }
  #modal-root .modal-backdrop .app-dialog {
    width: min(340px, calc(100vw - 32px)) !important;
    padding: 15px !important;
  }
  #edit-user-form #edit-user-permissions { grid-template-columns: 1fr; }
  #edit-user-form #edit-user-permissions > p { grid-column: auto; }
}
.customer-activity-drawer {
  animation: neoDrawerIn 0.45s var(--neo-ease-2) both;
}
@keyframes neoDrawerIn {
  from { opacity: 0; transform: translateX(40px); }
  to { opacity: 1; transform: none; }
}

/* Toast (admin-neo.js) */
.neo-toast {
  position: fixed;
  left: 50%;
  bottom: 30px;
  z-index: 40000;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 13px 20px;
  border: 1px solid var(--neo-line);
  border-radius: 14px;
  background: var(--neo-card);
  color: var(--neo-ink);
  box-shadow: var(--neo-shadow-lg);
  font-size: 13px;
  font-weight: 700;
  animation: neoToastIn 0.4s var(--neo-ease-2) both;
  pointer-events: none;
}
.neo-toast kbd {
  padding: 3px 8px;
  border: 1px solid var(--neo-line-strong);
  border-bottom-width: 2px;
  border-radius: 6px;
  background: var(--neo-card-2);
  color: var(--neo-muted);
  font: 700 11px ui-monospace, monospace;
}
.neo-toast.neo-toast-out { animation: neoToastOut 0.35s var(--neo-ease) both; }
@keyframes neoToastIn {
  from { opacity: 0; transform: translate(-50%, 16px) scale(0.96); }
  to { opacity: 1; transform: translate(-50%, 0) scale(1); }
}
@keyframes neoToastOut {
  from { opacity: 1; transform: translate(-50%, 0) scale(1); }
  to { opacity: 0; transform: translate(-50%, 10px) scale(0.97); }
}

/* ============================================================================
   6) MOTION — tab transitions, reveals, focus, scrollbars
   ============================================================================ */
html body #dashboard-view .tab-panel:not(.hidden) {
  display: block !important;
  visibility: visible !important;
  opacity: 1 !important;
  animation: neoTabIn 0.5s var(--neo-ease) both !important;
}
@keyframes neoTabIn {
  from { opacity: 0; transform: translateY(16px) scale(0.996); }
  to { opacity: 1; transform: none; }
}
/* Staggered child reveal (classes added by admin-neo.js) */
.neo-reveal { animation: neoReveal 0.55s var(--neo-ease) both !important; animation-delay: var(--neo-d, 0s) !important; }
@keyframes neoReveal {
  from { opacity: 0; transform: translateY(18px) scale(0.99); }
  to { opacity: 1; transform: none; }
}
html { scroll-behavior: smooth; }
#dashboard-view .main, #dashboard-view .main-inner { scroll-behavior: smooth; }

::selection { background: rgba(61, 99, 242, 0.22); }
html body #dashboard-view :is(a, button, input, select, textarea, summary):focus-visible {
  outline: 2px solid var(--neo-brand) !important;
  outline-offset: 2px !important;
  border-radius: 8px;
}
html body #dashboard-view :is(.btn, .nav-item, .filter-btn, .tab-btn):focus-visible { border-radius: 13px; }

/* Scrollbars */
::-webkit-scrollbar { width: 11px; height: 11px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb {
  border: 3px solid transparent;
  border-radius: 999px;
  background: color-mix(in srgb, var(--neo-muted, #5d6b85) 42%, transparent);
  background-clip: padding-box;
}
::-webkit-scrollbar-thumb:hover { background: color-mix(in srgb, var(--neo-muted, #5d6b85) 70%, transparent); background-clip: padding-box; }
* { scrollbar-width: thin; scrollbar-color: color-mix(in srgb, #5d6b85 42%, transparent) transparent; }

/* ============================================================================
   7) DARK MODE
   ============================================================================ */
html.dark body { background: #070c18 !important; color: #e9effc !important; }
html.dark body #dashboard-view .sidebar {
  background: linear-gradient(180deg, #0f1930 0%, #0c1526 100%) !important;
  border-right-color: #223354 !important;
  box-shadow: 18px 0 44px rgba(0, 0, 0, 0.35) !important;
}
html.dark body #dashboard-view .sidebar .nav-item.active { color: #9db4ff !important; }
html.dark .neo-nav-glider {
  background: linear-gradient(100deg, rgba(106, 132, 255, 0.16), rgba(124, 92, 240, 0.12) 60%, rgba(25, 194, 216, 0.08));
  box-shadow: inset 0 0 0 1px rgba(126, 162, 255, 0.2), 0 8px 20px rgba(0, 0, 0, 0.3);
}
html.dark body #dashboard-view .topbar { background: color-mix(in srgb, #0f1930 80%, transparent) !important; border-bottom-color: #223354 !important; }
html.dark body #dashboard-view .admin-search { background: #0c1526 !important; }
html.dark body #dashboard-view .admin-search input { color: #e9effc !important; }
html.dark body #dashboard-view .admin-search input::placeholder { color: #94a3c2 !important; -webkit-text-fill-color: #94a3c2 !important; }
html.dark body #dashboard-view .stat-icon { background: linear-gradient(135deg, rgba(106, 132, 255, 0.16), rgba(124, 92, 240, 0.14)) !important; color: #9db4ff !important; }
html.dark body #dashboard-view .field,
html.dark body #dashboard-view .textarea,
html.dark body #dashboard-view .status-select,
html.dark body #dashboard-view select,
html.dark body #dashboard-view textarea {
  background: #0c1526 !important;
  color: #e9effc !important;
  -webkit-text-fill-color: #e9effc !important;
  border-color: #2c4066 !important;
}
html.dark body #dashboard-view .field::placeholder,
html.dark body #dashboard-view textarea::placeholder { color: #7484a6 !important; -webkit-text-fill-color: #7484a6 !important; }
html.dark body #dashboard-view select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5 6 6.5 11 1.5' fill='none' stroke='%2394a3c2' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E");
}
html.dark body #dashboard-view select:disabled,
html.dark body #dashboard-view input:disabled,
html.dark body #dashboard-view textarea:disabled { background: #0a1220 !important; color: #7484a6 !important; -webkit-text-fill-color: #7484a6 !important; }
html.dark body #dashboard-view thead th { background: linear-gradient(180deg, #13203c, #101b31) !important; color: #94a3c2 !important; border-bottom-color: #223354 !important; }
html.dark body #dashboard-view tbody td { border-bottom-color: rgba(34, 51, 84, 0.6) !important; color: #e9effc !important; }
html.dark body #dashboard-view tbody tr:hover { background: rgba(106, 132, 255, 0.07) !important; }
html.dark body #dashboard-view tbody td code { background: #0c1526; border-color: #223354; color: #c3cee6; }
html.dark body #dashboard-view .quote-summary span { background: #0c1526; border-color: #223354; color: #c3cee6 !important; }
html.dark body #dashboard-view details.quote-details > summary { background: #0c1526; border-color: #223354; color: #9db4ff !important; }
html.dark body #dashboard-view .chart-caption { background: #0c1526; border-color: #223354; }
html.dark body #dashboard-view .toolbar-divider { background: #223354; }
html.dark body #dashboard-view .crm-search-row { background: #0c1526 !important; }
html.dark body #dashboard-view .filter-btn { background: #0f1930 !important; color: #c3cee6 !important; border-color: #2c4066 !important; }
html.dark body #dashboard-view .hr-view-tab { background: #0f1930 !important; color: #c3cee6 !important; border-color: #2c4066 !important; }
html.dark body #dashboard-view .btn-ghost { background: #0f1930 !important; color: #c3cee6 !important; }
html.dark body #dashboard-view .btn-ghost:hover { color: #9db4ff !important; }
html.dark body #dashboard-view .btn-danger { color: #fca5a5 !important; }
html.dark body #dashboard-view .btn-danger:hover { color: #fecaca !important; }
html.dark body #dashboard-view .mobile-toggle { background: #0f1930; border-color: #2c4066; color: #e9effc; }
html.dark .neo-toast { background: #0f1930; border-color: #223354; color: #e9effc; }
html.dark .neo-toast kbd { background: #0c1526; border-color: #2c4066; color: #94a3c2; }
html.dark body #dashboard-view .sidebar-footer .nav-item:hover { background: #0c1526 !important; border-color: #2c4066 !important; }
html.dark body #dashboard-view ::-webkit-scrollbar-thumb { background: rgba(148, 163, 194, 0.3); background-clip: padding-box; }

/* ============================================================================
   8) RESPONSIVE — roomy at every size, never compressed
   ============================================================================ */
@media (max-width: 1360px) {
  html body #dashboard-view #tab-home > .stats { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; }
  html body #dashboard-view .stat-total { grid-column: 1 / -1 !important; }
}
@media (max-width: 1100px) {
  html body #dashboard-view .main-inner { padding: 28px 26px 56px !important; }
  html body #dashboard-view .topbar-inner { padding: 14px 26px !important; }
  html body #dashboard-view #tab-home > .analytics-grid,
  html body #dashboard-view #tab-home > .home-grid { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; }
  html body #dashboard-view #tab-home > .home-grid > .activity-panel { grid-column: 1 / -1; }
}
@media (max-width: 900px) {
  html body #dashboard-view.shell:not(.hidden) { grid-template-columns: minmax(0, 1fr) !important; display: block !important; }
  html body #dashboard-view .main { padding-top: 68px !important; }
  html body #dashboard-view .topbar {
    position: fixed !important;
    inset: 0 0 auto 0 !important;
    width: 100% !important;
  }
  html:not(.dark) body #dashboard-view .topbar h1 { color: #334155 !important; }
  html body #dashboard-view .sidebar { display: none !important; }
  html body #dashboard-view .sidebar.open {
    display: flex !important;
    position: fixed !important;
    inset: 0 auto 0 0 !important;
    z-index: 200 !important;
    width: min(310px, 88vw) !important;
    min-width: 0 !important;
    box-shadow: 30px 0 80px rgba(3, 8, 24, 0.45) !important;
    animation: neoSidebarIn 0.4s var(--neo-ease-2) both;
  }
  @keyframes neoSidebarIn {
    from { opacity: 0; transform: translateX(-30px); }
    to { opacity: 1; transform: none; }
  }
  html body #dashboard-view .mobile-toggle { display: grid !important; }
  html body #dashboard-view .admin-search { display: none; }
}
@media (max-width: 760px) {
  html body #dashboard-view .main-inner { padding: 20px 16px 44px !important; }
  html body #dashboard-view .topbar-inner { padding: 12px 16px !important; }
  html body #dashboard-view #tab-home > .stats,
  html body #dashboard-view #tab-home > .analytics-grid,
  html body #dashboard-view #tab-home > .home-grid { grid-template-columns: minmax(0, 1fr) !important; }
  html body #dashboard-view #tab-home .stat { min-height: 120px !important; padding: 18px !important; }
  html body #dashboard-view #tab-home .stat-value { font-size: 26px !important; white-space: normal !important; overflow-wrap: anywhere !important; }
  html body #dashboard-view .stat-icon { width: 36px !important; height: 36px !important; top: 16px !important; right: 16px !important; }
  html body #dashboard-view .panel, html body #dashboard-view .ui-card { padding: 18px !important; }
  html body #dashboard-view .chart-panel { padding: 18px !important; }
  html body #dashboard-view .quotes-toolbar { padding: 16px !important; }
  html body #dashboard-view .profile-chip .profile-copy { display: none; }
  html body #dashboard-view .profile-chip { padding: 6px !important; }
  .neo-login-card { padding: 34px 26px 28px; }
}
@media (max-width: 480px) {
  html body #dashboard-view #tab-home .stat { padding: 16px 38px 16px 16px !important; }
  html body #dashboard-view .topbar h1 { font-size: 16px !important; }
}

/* ============================================================================
   9) REDUCED MOTION
   ============================================================================ */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  #login-view *, #login-view *::before, #login-view *::after,
  #dashboard-view *, #dashboard-view *::before, #dashboard-view *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .neo-login-scene { display: none; }
  #login-view.centered { background: linear-gradient(160deg, #0a1330, #060b18) !important; }
  .neo-login-layout { animation: none !important; }
}

/* ============================================================================
   10) COHESION PASS — operational density, settings, and small screens
   ============================================================================ */

/* Keep every destination reachable without letting the footer cover the nav. */
html body #dashboard-view .sidebar {
  flex-direction: column !important;
  overflow: hidden !important;
}
html body #dashboard-view .sidebar-nav {
  flex: 1 1 auto !important;
  min-height: 0 !important;
  padding: 2px 4px 16px 2px !important;
  overscroll-behavior: contain;
}
html body #dashboard-view .sidebar-footer { flex: 0 0 auto !important; }
html body #dashboard-view #refresh-btn::before { content: "\21BB"; }
html body #dashboard-view #logout-btn::before { content: "\23FB"; }

/* Home is an operations overview: keep alerts together and remove empty voids. */
html body #dashboard-view #tab-home:not(.hidden) {
  display: grid !important;
  grid-template-columns: repeat(12, minmax(0, 1fr)) !important;
  gap: 20px !important;
}
html body #dashboard-view #tab-home > .dashboard-overview-heading,
html body #dashboard-view #tab-home > .stats,
html body #dashboard-view #tab-home > .analytics-grid,
html body #dashboard-view #tab-home > .home-grid {
  grid-column: 1 / -1 !important;
  margin: 0 !important;
}
html body #dashboard-view #tab-home > .attention-panel {
  grid-column: 1 / span 6 !important;
  margin: 0 !important;
}
html body #dashboard-view #tab-home > .pending-transactions-panel {
  grid-column: 7 / -1 !important;
  margin: 0 !important;
}
html body #dashboard-view #tab-home > .attention-panel,
html body #dashboard-view #tab-home > .pending-transactions-panel {
  align-self: stretch !important;
  height: auto !important;
  min-height: 190px !important;
}
html body #dashboard-view #tab-home .attention-list,
html body #dashboard-view #tab-home .pending-orders-list { min-height: 56px !important; }

/* Quote tools read as purposeful groups instead of one long control pile. */
html body #dashboard-view #tab-quotes .quotes-toolbar > .toolbar-row:first-child {
  display: grid !important;
  grid-template-columns: minmax(420px, 1.15fr) minmax(360px, .85fr) !important;
  align-items: end !important;
}
html body #dashboard-view #tab-quotes .search-grid {
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  gap: 10px !important;
  width: 100% !important;
}
html body #dashboard-view #tab-quotes .toolbar-row:last-child {
  align-items: flex-end !important;
  padding-top: 16px !important;
  border-top: 1px solid var(--neo-line) !important;
}
html body #dashboard-view #tab-quotes .filters {
  flex: 1 1 520px !important;
  min-width: 0 !important;
  flex-wrap: wrap !important;
  overflow: visible !important;
}
html body #dashboard-view #tab-quotes .filters + .toolbar-group {
  flex: 0 1 auto !important;
  margin-left: auto !important;
}
html body #dashboard-view #tab-quotes .toolbar-cluster label.muted {
  display: inline-flex !important;
  align-items: center !important;
  gap: 7px !important;
  min-height: 40px !important;
  padding: 8px 10px !important;
  border-radius: 10px !important;
}

/* A legacy #settings-form rule collapsed the save bar to its content width. */
html body #dashboard-view #tab-settings .settings-layout {
  grid-template-columns: 220px minmax(0, 1fr) !important;
  gap: 22px !important;
}
html body #dashboard-view #settings-form.settings-content {
  align-items: stretch !important;
  width: 100% !important;
}
html body #dashboard-view #settings-form .settings-savebar {
  width: 100% !important;
  box-sizing: border-box !important;
  margin-top: 2px !important;
  padding: 14px 16px !important;
  background: color-mix(in srgb, var(--neo-card) 94%, transparent) !important;
  border-color: color-mix(in srgb, var(--neo-brand) 22%, var(--neo-line)) !important;
  box-shadow: 0 -10px 30px rgba(16, 27, 51, 0.12) !important;
  backdrop-filter: blur(16px) saturate(1.25);
  -webkit-backdrop-filter: blur(16px) saturate(1.25);
}
html body #dashboard-view #tab-settings .settings-nav-link.active {
  background-color: #2f61df !important;
  background-image: none !important;
  color: #fff !important;
}

@media (max-width: 1100px) {
  html body #dashboard-view #tab-home > .attention-panel,
  html body #dashboard-view #tab-home > .pending-transactions-panel {
    grid-column: 1 / -1 !important;
    min-height: 0 !important;
  }
  html body #dashboard-view #tab-quotes .quotes-toolbar > .toolbar-row:first-child {
    grid-template-columns: minmax(0, 1fr) !important;
  }
  html body #dashboard-view #tab-quotes .filters + .toolbar-group {
    flex: 1 1 100% !important;
    margin-left: 0 !important;
  }
}

@media (max-width: 900px) {
  html body #dashboard-view #tab-settings .settings-layout {
    grid-template-columns: minmax(0, 1fr) !important;
  }
  html body #dashboard-view #tab-settings .settings-nav {
    position: static !important;
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: wrap !important;
    gap: 6px !important;
  }
  html body #dashboard-view #tab-settings .settings-nav-title { flex-basis: 100%; }
}

@media (max-width: 600px) {
  html body #dashboard-view #tab-home:not(.hidden) { gap: 14px !important; }
  html body #dashboard-view #tab-home > .attention-panel,
  html body #dashboard-view #tab-home > .pending-transactions-panel { padding: 17px !important; }
  html body #dashboard-view #tab-home > .pending-transactions-panel .toolbar { align-items: flex-start !important; }
  html body #dashboard-view #tab-home > .pending-transactions-panel .toolbar > .row {
    width: 100% !important;
    justify-content: space-between !important;
  }
  html body #dashboard-view #tab-quotes .quotes-toolbar { gap: 18px !important; }
  html body #dashboard-view #tab-quotes .quotes-toolbar > .toolbar-row:last-child {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) !important;
    align-items: start !important;
  }
  html body #dashboard-view #tab-quotes .search-grid { grid-template-columns: minmax(0, 1fr) !important; }
  html body #dashboard-view #tab-quotes .toolbar-row,
  html body #dashboard-view #tab-quotes .toolbar-group,
  html body #dashboard-view #tab-quotes .toolbar-cluster,
  html body #dashboard-view #tab-quotes .filters {
    width: 100% !important;
    max-width: 100% !important;
  }
  html body #dashboard-view #tab-quotes .toolbar-cluster,
  html body #dashboard-view #tab-quotes .filters {
    gap: 8px !important;
    flex-wrap: wrap !important;
  }
  html body #dashboard-view #tab-quotes .toolbar-divider { display: none !important; }
  html body #dashboard-view #tab-quotes .filter-btn { flex: 0 0 auto !important; }
  html body #dashboard-view #tab-quotes .filters,
  html body #dashboard-view #tab-quotes .filters + .toolbar-group {
    flex: none !important;
    margin-left: 0 !important;
  }
  html body #dashboard-view #tab-quotes .btn,
  html body #dashboard-view #tab-quotes label.btn { min-height: 42px !important; }
  html body #dashboard-view #tab-quotes #list-meta {
    flex: 1 0 100% !important;
    padding-top: 3px !important;
  }
  html body #dashboard-view #tab-settings .settings-nav { padding: 12px !important; }
  html body #dashboard-view #tab-settings .settings-nav-link {
    flex: 1 1 auto !important;
    text-align: center !important;
    border: 1px solid var(--neo-line) !important;
  }
  html body #dashboard-view #settings-form .settings-savebar {
    position: static !important;
    flex-direction: column !important;
    align-items: stretch !important;
  }
  html body #dashboard-view #settings-form .settings-savebar .btn { width: 100% !important; }
  html body #dashboard-view .notification-popover {
    position: fixed !important;
    top: 76px !important;
    right: 16px !important;
    left: 16px !important;
    width: auto !important;
    max-width: none !important;
    max-height: calc(100dvh - 92px) !important;
    overflow: hidden !important;
  }
  html body #dashboard-view .notification-popover .notification-list {
    max-height: calc(100dvh - 170px) !important;
    overscroll-behavior: contain;
  }
}

/* ============================================================================
   11) LIVE-SITE AUTH PARITY — calm grid, centered card, restrained motion
   ============================================================================ */
#login-view.centered:not(.hidden) {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) !important;
  grid-template-rows: minmax(100%, auto) !important;
  place-items: center !important;
  padding: 28px 16px !important;
  background: #f5f8fe !important;
  overflow: auto !important;
}
#login-view .neo-login-scene {
  background:
    radial-gradient(circle at 5% 5%, rgba(64, 111, 232, .17), transparent 25%),
    radial-gradient(circle at 77% 35%, rgba(32, 199, 218, .11), transparent 24%),
    radial-gradient(circle at 92% 94%, rgba(63, 104, 214, .13), transparent 24%),
    linear-gradient(180deg, #f6f9ff 0%, #f4f7fd 100%) !important;
}
#login-view #neo-login-canvas { opacity: .2 !important; }
#login-view .neo-login-grid {
  inset: 0 !important;
  width: 100% !important;
  height: 100% !important;
  background-image:
    linear-gradient(rgba(65, 103, 184, .055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(65, 103, 184, .055) 1px, transparent 1px) !important;
  background-size: 64px 64px !important;
  transform: none !important;
  -webkit-mask-image: radial-gradient(ellipse at center, #000 8%, transparent 78%) !important;
  mask-image: radial-gradient(ellipse at center, #000 8%, transparent 78%) !important;
  opacity: .75 !important;
  animation: liveGridDrift 22s linear infinite !important;
}
@keyframes liveGridDrift {
  from { background-position: 0 0, 0 0; }
  to { background-position: 0 64px, 64px 0; }
}
#login-view .neo-aurora {
  filter: blur(90px) !important;
  opacity: .34 !important;
}
#login-view .neo-aurora-1 { background: rgba(68, 110, 235, .22) !important; }
#login-view .neo-aurora-2 { background: rgba(25, 194, 216, .18) !important; }
#login-view .neo-aurora-3 { background: rgba(99, 125, 226, .14) !important; }
#login-view .neo-login-layout {
  grid-column: 1 / -1 !important;
  grid-row: 1 !important;
  width: 100% !important;
  min-height: 0 !important;
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) !important;
  place-items: center !important;
}
#login-view .neo-showcase { display: none !important; }
#login-view .neo-login-side {
  width: 100% !important;
  min-width: 0 !important;
  padding: 0 !important;
  perspective: none !important;
}
#login-view .login-card.neo-login-card {
  width: min(100%, 422px) !important;
  min-height: 0 !important;
  height: auto !important;
  padding: 28px 28px 22px !important;
  border: 1px solid #dce5f3 !important;
  border-radius: 22px !important;
  background: rgba(255, 255, 255, .96) !important;
  color: #111827 !important;
  box-shadow: 0 22px 70px rgba(40, 73, 140, .13), 0 2px 8px rgba(36, 63, 115, .05) !important;
  backdrop-filter: blur(18px) saturate(1.15) !important;
  -webkit-backdrop-filter: blur(18px) saturate(1.15) !important;
  transform-style: flat !important;
  animation: liveCardIn .56s cubic-bezier(.22, 1, .36, 1) both !important;
}
@keyframes liveCardIn {
  from { opacity: 0; transform: translateY(18px) scale(.975); }
  to { opacity: 1; transform: none; }
}
#login-view .neo-card-glow,
#login-view .mobile-login-brand,
#login-view .neo-card-eyebrow { display: none !important; }
#login-view .neo-card-emblem {
  width: 58px !important;
  height: 58px !important;
  margin: 0 auto 14px !important;
  border: 8px solid #edf3ff !important;
  border-radius: 17px !important;
  background: #2867d8 !important;
  box-shadow: 0 10px 26px rgba(40, 103, 216, .22) !important;
  animation: liveLogoIn .52s cubic-bezier(.34, 1.56, .64, 1) .08s both !important;
}
@keyframes liveLogoIn {
  from { opacity: 0; transform: translateY(8px) scale(.82); }
  to { opacity: 1; transform: none; }
}
#login-view .neo-card-emblem img {
  width: 42px !important;
  height: 42px !important;
  border-radius: 8px !important;
}
#login-view h1.neo-card-title {
  margin: 0 0 4px !important;
  color: #111827 !important;
  font: 800 28px/1.2 Manrope, Inter, sans-serif !important;
  letter-spacing: -.035em !important;
}
#login-view h1.neo-card-title .neo-gradient-text {
  background: none !important;
  color: inherit !important;
  animation: none !important;
}
#login-view .login-intro {
  margin: 0 0 20px !important;
  color: #475b78 !important;
  font-size: 14px !important;
}
#login-view .neo-mode-tabs {
  position: relative !important;
  margin: 0 0 18px !important;
  padding: 0 4px !important;
  border: 0 !important;
  border-bottom: 1px solid #ccd6e4 !important;
  border-radius: 0 !important;
  background: transparent !important;
}
#login-view .neo-mode-indicator {
  top: auto !important;
  bottom: -1px !important;
  left: 5px !important;
  height: 2px !important;
  border-radius: 999px 999px 0 0 !important;
  background: #2867e8 !important;
  box-shadow: none !important;
  transition: transform .28s cubic-bezier(.22, 1, .36, 1), width .28s cubic-bezier(.22, 1, .36, 1) !important;
}
#login-view .neo-mode-tabs .login-tab,
#login-view .neo-mode-tabs .login-tab:hover {
  min-height: 42px !important;
  color: #43526a !important;
  transform: none !important;
}
#login-view .neo-mode-tabs .login-tab.active { color: #2563eb !important; }
#login-view .label { gap: 6px !important; }
#login-view .label .muted {
  color: #172033 !important;
  font-size: 12px !important;
  font-weight: 750 !important;
  letter-spacing: 0 !important;
  text-transform: none !important;
}
#login-view .field,
#login-view .field:placeholder-shown {
  min-height: 44px !important;
  padding: 10px 14px !important;
  border: 1px solid #cad5e3 !important;
  border-radius: 13px !important;
  background: #fbfdff !important;
  color: #172033 !important;
  -webkit-text-fill-color: #172033 !important;
  box-shadow: none !important;
  font-size: 14px !important;
  transition: border-color .2s ease, box-shadow .2s ease, background-color .2s ease, transform .2s ease !important;
}
#login-view .field::placeholder {
  color: #93a4bd !important;
  -webkit-text-fill-color: #93a4bd !important;
}
#login-view .field:hover { border-color: #9eb2cf !important; }
#login-view .field:focus {
  border-color: #3272e6 !important;
  background: #fff !important;
  box-shadow: 0 0 0 4px rgba(50, 114, 230, .12) !important;
  transform: none !important;
}
#login-view #login-btn {
  min-height: 46px !important;
  margin-top: 18px !important;
  border-radius: 999px !important;
  background: linear-gradient(105deg, #3478ed, #2161ca) !important;
  background-color: #2867d8 !important;
  box-shadow: 0 12px 24px rgba(37, 99, 220, .22) !important;
  font-size: 14px !important;
  transition: transform .2s ease, box-shadow .2s ease, filter .2s ease !important;
}
#login-view #login-btn:hover {
  background: linear-gradient(105deg, #3f82f2, #2869d6) !important;
  box-shadow: 0 15px 30px rgba(37, 99, 220, .28) !important;
  transform: translateY(-1px) !important;
}
#login-view #login-btn:active { transform: translateY(0) scale(.99) !important; }
#login-view .neo-btn-shine { display: none !important; }
#login-view .neo-card-foot {
  margin: 17px 0 0 !important;
  color: #66758e !important;
  font-size: 11px !important;
}
#login-view #login-error:not(.hidden) {
  margin: 2px 0 0 !important;
  border-color: #fecaca !important;
  background: #fff1f2 !important;
  color: #b42336 !important;
}

@media (max-width: 480px) {
  #login-view.centered:not(.hidden) { padding: 14px !important; }
  #login-view .login-card.neo-login-card { padding: 24px 20px 20px !important; border-radius: 20px !important; }
  #login-view h1.neo-card-title { font-size: 25px !important; }
}

@media (prefers-reduced-motion: reduce) {
  #login-view .neo-login-grid,
  #login-view .neo-aurora,
  #login-view .neo-card-emblem,
  #login-view .login-card.neo-login-card,
  #login-view .login-form-inner > * { animation: none !important; }
}

/* Theme changes must never revive the hidden auth view above the dashboard. */
html body #login-view.centered.hidden,
html.dark body #login-view.centered.hidden { display: none !important; min-height: 0 !important; }
html.dark body #dashboard-view .sidebar .nav-item { color: #b7c4df !important; }

/* Dark-theme completion for the live-site auth design and brand artwork. */
html.dark body #login-view.centered:not(.hidden) {
  background: #070c18 !important;
}
html.dark body #login-view .neo-login-scene {
  background:
    radial-gradient(circle at 5% 5%, rgba(64, 111, 232, .22), transparent 27%),
    radial-gradient(circle at 77% 35%, rgba(32, 199, 218, .13), transparent 26%),
    radial-gradient(circle at 92% 94%, rgba(99, 125, 226, .17), transparent 27%),
    linear-gradient(180deg, #070c18 0%, #0a1122 100%) !important;
}
html.dark body #login-view .neo-login-grid {
  background-image:
    linear-gradient(rgba(126, 162, 255, .075) 1px, transparent 1px),
    linear-gradient(90deg, rgba(126, 162, 255, .075) 1px, transparent 1px) !important;
}
html.dark body #login-view #neo-login-canvas { opacity: .34 !important; }
html.dark body #login-view .login-card.neo-login-card {
  border-color: #263754 !important;
  background: rgba(15, 25, 48, .95) !important;
  color: #e9effc !important;
  box-shadow: 0 26px 80px rgba(0, 0, 0, .48), 0 2px 10px rgba(0, 0, 0, .28) !important;
}
html.dark body #login-view .neo-card-emblem {
  border-color: #1d2a45 !important;
  background: #14203c !important;
}
html.dark body #login-view .neo-card-emblem img,
html.dark body #login-view .login-logo img,
html.dark body #dashboard-view #sidebar-logo {
  content: url("/assets/7thbreed-logo-on-dark.png") !important;
}
html.dark body #dashboard-view #sidebar-logo {
  background: #0f1930 !important;
  border-color: #263754 !important;
}
html.dark body #login-view h1.neo-card-title,
html.dark body #login-view .label .muted { color: #f4f7ff !important; }
html.dark body #login-view .login-intro { color: #aab8d8 !important; }
html.dark body #login-view .neo-mode-tabs { border-bottom-color: #2c4066 !important; }
html.dark body #login-view .neo-mode-tabs .login-tab,
html.dark body #login-view .neo-mode-tabs .login-tab:hover { color: #aab8d8 !important; }
html.dark body #login-view .neo-mode-tabs .login-tab.active { color: #93b4ff !important; }
html.dark body #login-view .field,
html.dark body #login-view .field:placeholder-shown {
  border-color: #2c4066 !important;
  background: #0a1327 !important;
  color: #edf3ff !important;
  -webkit-text-fill-color: #edf3ff !important;
}
html.dark body #login-view .field:hover { border-color: #49658f !important; }
html.dark body #login-view .field:focus {
  border-color: #6d8eff !important;
  background: #0d1830 !important;
  box-shadow: 0 0 0 4px rgba(106, 132, 255, .2) !important;
}
html.dark body #login-view .field::placeholder {
  color: #7181a4 !important;
  -webkit-text-fill-color: #7181a4 !important;
}
html.dark body #login-view .neo-card-foot { color: #8796b7 !important; }
html.dark body #login-view #login-error:not(.hidden) {
  border-color: rgba(248, 113, 113, .34) !important;
  background: rgba(127, 29, 29, .24) !important;
  color: #fecaca !important;
}

/* Customer quotation history stays in ordinary document flow. */
.customer-quote-history{display:grid;grid-column:1 / -1;gap:14px;padding:18px;border:1px solid var(--line,var(--border));border-radius:16px;background:color-mix(in srgb,var(--surface-raised,var(--surface)) 94%,var(--primary) 6%)}
.customer-quote-history-head{display:flex;justify-content:space-between;align-items:flex-start;gap:16px}
.customer-quote-history-head .eyebrow{margin:0 0 4px;color:var(--primary);font-size:.68rem;font-weight:850;letter-spacing:.1em;text-transform:uppercase}
.customer-quote-history-head h3{margin:0;font-size:1rem}.customer-quote-history-head .muted{margin:5px 0 0;font-size:.78rem}
.customer-quote-history-count{flex:0 0 auto;padding:6px 10px;border:1px solid #93c5fd;border-radius:999px;background:#dbeafe;color:#1e3a8a;font-size:.72rem;font-weight:800}
.customer-quote-history-list{display:grid;gap:9px}
.customer-quote-history-item{display:grid;grid-template-columns:minmax(0,1fr) auto auto;align-items:center;gap:12px;padding:12px 13px;border:1px solid var(--line,var(--border));border-radius:13px;background:var(--surface-raised,var(--surface))}
.customer-quote-history-main{min-width:0}.customer-quote-history-title{display:flex;align-items:center;gap:8px;flex-wrap:wrap}.customer-quote-history-title strong,.customer-quote-history-main p{overflow-wrap:anywhere}.customer-quote-history-main p{margin:5px 0 0;font-size:.75rem}
.customer-quote-history-actions{display:flex;gap:7px;flex-wrap:wrap;justify-content:flex-end}.customer-quote-history-actions .btn{min-height:34px;padding:7px 11px}
.customer-quote-history-empty{display:grid;gap:4px;padding:15px;border:1px dashed var(--line,var(--border));border-radius:13px}.customer-quote-history-all{justify-self:start}
html.dark .customer-quote-history{background:color-mix(in srgb,var(--surface) 92%,var(--primary) 8%)}
html.dark .customer-quote-history-count{border-color:#3b5ba9;background:#172554;color:#dbeafe}
.customer-quotation-head-actions{display:flex;align-items:center;gap:9px;flex-wrap:wrap;justify-content:flex-end}
.customer-quotation-item{display:block;padding:0;overflow:hidden;transition:border-color .18s ease,box-shadow .18s ease}
.customer-quotation-item[open]{border-color:color-mix(in srgb,var(--primary) 50%,var(--line,var(--border)));box-shadow:0 12px 28px rgba(15,23,42,.08)}
.customer-quotation-summary{display:grid;grid-template-columns:34px minmax(0,1fr) auto 20px;align-items:center;gap:10px;padding:12px 14px;cursor:pointer;list-style:none}
.customer-quotation-summary::-webkit-details-marker{display:none}
.customer-quotation-summary:focus-visible{outline:3px solid color-mix(in srgb,var(--primary) 28%,transparent);outline-offset:-3px}
.customer-quotation-serial{display:flex;flex-direction:column;align-items:center;justify-content:center;align-self:center;width:32px;height:34px;min-width:32px;border:1px solid color-mix(in srgb,var(--primary) 20%,var(--line,var(--border)));border-radius:8px;background:color-mix(in srgb,var(--primary) 4%,var(--surface));line-height:1}
.customer-quotation-serial small{color:var(--muted);font-size:.5rem;font-weight:800;letter-spacing:.05em}.customer-quotation-serial strong{margin-top:2px;color:var(--primary);font-size:.86rem}
.customer-quotation-summary>.badge{justify-self:end;white-space:nowrap}
.customer-quote-history-main{min-width:0}
.customer-quote-history-title{min-width:0}
.customer-quote-history-title>strong{min-width:0;overflow-wrap:anywhere}
.customer-quote-history-main p{white-space:normal;overflow-wrap:anywhere}
.customer-quotation-chevron{justify-self:end}
.customer-quotation-chevron{font-size:1.15rem;color:var(--muted);transition:transform .18s ease}
.customer-quotation-item[open] .customer-quotation-chevron{transform:rotate(180deg)}
.customer-quotation-body{display:grid;gap:13px;padding:0 14px 14px;border-top:1px solid var(--line,var(--border))}
.customer-quotation-workflow{margin:0;padding:14px 0 0;grid-template-columns:repeat(2,minmax(0,1fr))}
.customer-quotation-workflow .label{min-width:0}
.customer-quotation-note{grid-column:1/-1}
.customer-quote-history-actions{padding-top:12px;border-top:1px solid var(--line,var(--border));justify-content:flex-start}
.customer-quote-history-actions .btn{flex:0 1 auto}
.customer-global-help{margin:0 0 4px;padding:10px 11px;border-radius:10px;background:color-mix(in srgb,var(--primary) 8%,var(--surface));font-size:.76rem;line-height:1.45}
.customer-global-profile .field[readonly]{background:color-mix(in srgb,var(--surface) 92%,var(--muted) 8%);color:var(--neo-ink);cursor:default}
.quote-card .quote-footer>label{display:none}
.customer-profile-footer{justify-content:flex-end}
html.dark body #dashboard-view .btn.btn-warning{border-color:#c2410c!important;background:#7c2d12!important;color:#ffedd5!important}
html body #dashboard-view .quote-card:has(> .quote-details[open]){transform:none!important;animation:none!important}
@media(max-width:720px){.customer-quote-history-head{align-items:flex-start;flex-direction:column}.customer-quotation-head-actions{width:100%;justify-content:space-between}.customer-quotation-summary{grid-template-columns:28px minmax(0,1fr) 18px;gap:8px;padding:11px 10px}.customer-quotation-serial{width:28px;height:28px;min-width:28px;border-radius:7px}.customer-quotation-serial small{display:none}.customer-quotation-serial strong{margin:0;font-size:.8rem}.customer-quotation-summary>.badge{grid-column:2;grid-row:2;justify-self:start;margin-top:2px}.customer-quotation-chevron{grid-column:3;grid-row:1 / span 2;align-self:center}.customer-quote-history-title{gap:6px}.customer-quote-history-title .badge{font-size:.58rem}.customer-quote-history-main p{font-size:.7rem;line-height:1.45}.customer-quotation-workflow{grid-template-columns:1fr}.customer-quotation-note{grid-column:auto}.customer-quote-history-actions{grid-column:1/-1;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));justify-content:stretch}.customer-quote-history-actions .btn{width:100%;min-width:0;white-space:normal}.customer-quote-history-all{width:100%}}


/* 2026-10-06 — CRM customer quotation workspace refinement */
.customer-quote-history{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:16px;
  align-items:stretch;
}
.customer-quote-history-card{
  height:100%;
  min-width:0;
  border-radius:16px;
  overflow:hidden;
}
.customer-quote-history-head{
  grid-column:1/-1;
  margin-bottom:0;
}
.customer-quote-history-head h3{
  margin:0;
  font-size:1.12rem;
  letter-spacing:-.02em;
}
.customer-quote-history-head p{
  margin:.22rem 0 0;
  color:var(--muted);
}
.customer-quotation-head-actions{
  gap:8px;
}
.customer-quotation-head-actions .btn{
  min-height:38px;
  border-radius:10px;
}
.customer-quotation-summary{
  min-height:76px;
  padding:13px 14px;
  background:var(--surface);
}
.customer-quote-history-main{
  display:flex;
  flex-direction:column;
  justify-content:center;
  gap:4px;
}
.customer-quote-history-title{
  display:flex;
  align-items:center;
  gap:8px;
}
.customer-quote-history-title>strong{
  font-size:.9rem;
  line-height:1.25;
}
.customer-quote-history-main p{
  margin:0;
  line-height:1.45;
}
.customer-quote-history-actions{
  gap:8px;
  padding:12px 14px 14px;
}
.customer-quote-history-actions .btn{
  min-height:36px;
  border-radius:9px;
}
.customer-quotation-workflow{
  padding:0 14px 14px;
}

/* Keep the customer identity visually primary above all quotations. */
.crm-customer-card,
.crm-card,
.customer-card{
  min-width:0;
}
.crm-customer-card .customer-meta,
.crm-card .customer-meta,
.customer-card .customer-meta{
  overflow-wrap:anywhere;
}

@media(min-width:1080px){
  .customer-quote-history{
    grid-template-columns:repeat(2,minmax(0,1fr));
  }
}
@media(max-width:900px){
  .customer-quote-history{
    grid-template-columns:1fr;
  }
}
@media(max-width:720px){
  .customer-quote-history{
    gap:12px;
  }
  .customer-quote-history-head{
    gap:12px;
  }
  .customer-quotation-head-actions{
    display:grid;
    grid-template-columns:1fr 1fr;
    width:100%;
  }
  .customer-quotation-head-actions .btn{
    width:100%;
    justify-content:center;
  }
  .customer-quote-history-card{
    border-radius:14px;
  }
  .customer-quotation-summary{
    min-height:0;
    padding:12px;
  }
  .customer-quote-history-actions{
    padding:10px 12px 12px;
  }
}


/* 2026-10-06 — dedicated full-page quotation workspace */
body.quotation-workspace-open{overflow:hidden}
.customer-quotation-row{cursor:pointer;transition:border-color .16s ease,background .16s ease,transform .16s ease}
.customer-quotation-row:hover{border-color:color-mix(in srgb,var(--primary) 38%,var(--line,var(--border)));background:color-mix(in srgb,var(--primary) 2%,var(--surface))}
.customer-quotation-row:focus-visible{outline:3px solid color-mix(in srgb,var(--primary) 28%,transparent);outline-offset:2px}
.customer-quotation-row .customer-quotation-summary{grid-template-columns:34px minmax(0,1fr) auto auto}
.customer-quotation-open{min-width:70px;justify-content:center}

.quotation-workspace-root{position:fixed;inset:0;z-index:1150;overflow:auto;background:var(--bg,#f5f7fb);color:var(--text);overscroll-behavior:contain}
.quotation-workspace-root.hidden{display:none}
.quotation-workspace-page{min-height:100vh;background:var(--bg,#f5f7fb)}
.quotation-workspace-topbar{position:sticky;top:0;z-index:5;display:flex;align-items:center;justify-content:space-between;gap:20px;padding:14px clamp(18px,4vw,54px);border-bottom:1px solid var(--line,var(--border));background:color-mix(in srgb,var(--surface) 94%,transparent);backdrop-filter:blur(16px)}
.quotation-workspace-back{white-space:nowrap}
.quotation-workspace-breadcrumb{min-width:0;color:var(--muted);font-size:.78rem;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.quotation-workspace-breadcrumb span{padding:0 6px;color:var(--primary)}
.quotation-workspace-shell{width:min(1240px,calc(100% - 36px));margin:0 auto;padding:22px 0 44px}
.quotation-workspace-hero{display:flex;align-items:center;justify-content:space-between;gap:24px;padding:20px;border:1px solid var(--line,var(--border));border-radius:16px;background:var(--surface);box-shadow:0 10px 28px rgba(15,23,42,.05)}
.quotation-workspace-heading{display:flex;align-items:center;gap:14px;min-width:0}
.quotation-workspace-icon{display:grid;place-items:center;flex:0 0 44px;width:44px;height:44px;border-radius:13px;background:color-mix(in srgb,var(--primary) 12%,var(--surface));color:var(--primary);font-size:1.1rem;font-weight:900}
.quotation-workspace-title-line{display:flex;align-items:center;gap:10px;flex-wrap:wrap}
.quotation-workspace-title-line h1{margin:0;font-size:1.45rem;letter-spacing:-.03em}
.quotation-workspace-heading p{margin:4px 0 0;color:var(--muted)}
.quotation-workspace-primary-actions{display:flex;align-items:center;justify-content:flex-end;gap:8px;flex-wrap:wrap}
.quotation-workspace-primary-actions .btn{min-height:38px;border-radius:10px}
.quotation-workspace-tabs{display:flex;gap:6px;margin:14px 0;padding:6px;border:1px solid var(--line,var(--border));border-radius:12px;background:var(--surface);overflow-x:auto}
.quotation-workspace-tabs a{flex:0 0 auto;padding:9px 12px;border-radius:8px;color:var(--muted);font-size:.78rem;font-weight:700;text-decoration:none}
.quotation-workspace-tabs a:first-child,.quotation-workspace-tabs a:hover{background:color-mix(in srgb,var(--primary) 9%,var(--surface));color:var(--primary)}
.quotation-workspace-grid{display:grid;grid-template-columns:minmax(0,1.55fr) minmax(300px,.75fr);gap:14px;align-items:start}
.quotation-workspace-panel{min-width:0;padding:18px;border:1px solid var(--line,var(--border));border-radius:15px;background:var(--surface)}
.quotation-workspace-panel-head{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:14px}
.quotation-workspace-panel-head h2{margin:0;font-size:.98rem}
.quotation-workspace-panel-head .btn{min-height:34px}
.quotation-workspace-facts{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:0;margin:0}
.quotation-workspace-facts>div{padding:11px 0;border-bottom:1px solid var(--line,var(--border))}
.quotation-workspace-facts>div:nth-child(odd){padding-right:18px}
.quotation-workspace-facts dt{margin-bottom:4px;color:var(--muted);font-size:.7rem;font-weight:700}
.quotation-workspace-facts dd{margin:0;font-size:.86rem;font-weight:650;overflow-wrap:anywhere}
.quotation-workspace-fact-wide{grid-column:1/-1}
.quotation-workspace-customer{display:flex;align-items:center;gap:11px;padding-bottom:14px;border-bottom:1px solid var(--line,var(--border))}
.quotation-workspace-avatar{display:grid;place-items:center;width:42px;height:42px;border-radius:50%;background:var(--primary);color:#fff;font-weight:800}
.quotation-workspace-customer strong,.quotation-workspace-customer small{display:block}
.quotation-workspace-customer small{margin-top:3px;color:var(--muted)}
.quotation-workspace-contact{display:grid;gap:9px;padding-top:14px;font-size:.8rem}
.quotation-workspace-contact span{overflow-wrap:anywhere}
.quotation-workspace-items-panel{grid-column:1}
.quotation-workspace-items{display:grid}
.quotation-workspace-item{display:grid;grid-template-columns:26px minmax(0,1fr) auto;align-items:center;gap:10px;padding:11px 0;border-bottom:1px solid var(--line,var(--border))}
.quotation-workspace-item-no{display:grid;place-items:center;width:24px;height:24px;border-radius:7px;background:color-mix(in srgb,var(--primary) 9%,var(--surface));color:var(--primary);font-size:.68rem;font-weight:800}
.quotation-workspace-item strong{font-size:.82rem}
.quotation-workspace-item small{display:block;margin-top:3px;color:var(--muted)}
.quotation-workspace-empty{padding:22px;border:1px dashed var(--line,var(--border));border-radius:10px;color:var(--muted);text-align:center}
.quotation-workspace-totals{width:min(420px,100%);margin:14px 0 0 auto}
.quotation-workspace-totals>div{display:flex;justify-content:space-between;gap:20px;padding:7px 10px;font-size:.78rem}
.quotation-workspace-totals .total{margin-top:4px;border-radius:9px;background:color-mix(in srgb,var(--primary) 9%,var(--surface));color:var(--primary);font-size:.92rem}
.quotation-workspace-actions{grid-column:2;grid-row:2}
.quotation-workspace-actions>.btn{display:flex;width:100%;justify-content:flex-start;margin-top:7px;min-height:38px;border-radius:9px}

@media(max-width:900px){
  .quotation-workspace-topbar{align-items:flex-start;flex-direction:column;gap:6px}
  .quotation-workspace-shell{width:min(100% - 24px,760px);padding-top:14px}
  .quotation-workspace-hero{align-items:flex-start;flex-direction:column}
  .quotation-workspace-primary-actions{width:100%;justify-content:flex-start}
  .quotation-workspace-grid{grid-template-columns:1fr}
  .quotation-workspace-items-panel,.quotation-workspace-actions{grid-column:1;grid-row:auto}
}
@media(max-width:620px){
  .customer-quotation-row .customer-quotation-summary{grid-template-columns:28px minmax(0,1fr) auto}
  .customer-quotation-row .customer-quotation-summary>.badge{grid-column:2;grid-row:2;justify-self:start}
  .customer-quotation-open{grid-column:3;grid-row:1 / span 2;min-width:54px;padding-inline:8px}
  .quotation-workspace-topbar{padding:10px 12px}
  .quotation-workspace-breadcrumb{width:100%}
  .quotation-workspace-shell{width:calc(100% - 16px);padding-bottom:24px}
  .quotation-workspace-hero{padding:14px;border-radius:13px}
  .quotation-workspace-heading{align-items:flex-start}
  .quotation-workspace-title-line h1{font-size:1.2rem}
  .quotation-workspace-primary-actions{display:grid;grid-template-columns:1fr 1fr}
  .quotation-workspace-primary-actions .btn{width:100%;justify-content:center;white-space:normal}
  .quotation-workspace-tabs{margin:10px 0}
  .quotation-workspace-panel{padding:14px;border-radius:12px}
  .quotation-workspace-facts{grid-template-columns:1fr}
  .quotation-workspace-facts>div:nth-child(odd){padding-right:0}
  .quotation-workspace-fact-wide{grid-column:auto}
  .quotation-workspace-item{grid-template-columns:24px minmax(0,1fr)}
  .quotation-workspace-item>strong:last-child{grid-column:2}
}


/* 2026-10-06 — HR staff photo/delete reliability */
.hr-dir-photo-wrap{position:relative;display:grid;place-items:center;flex:0 0 auto;width:40px;height:40px}
.hr-dir-photo-wrap .hr-dir-photo,.hr-dir-photo-wrap .hr-dir-avatar{grid-area:1/1;width:40px;height:40px}
.hr-dir-photo-wrap .hr-dir-photo{display:block;object-fit:cover;border-radius:50%}
.hr-dir-photo-wrap .hr-dir-photo.hidden{display:none}
.hr-profile-foot{justify-content:space-between}
.hr-profile-foot-danger{display:flex;align-items:center}
@media(max-width:620px){
  .hr-profile-foot{align-items:stretch;flex-direction:column-reverse;gap:10px}
  .hr-profile-foot-danger,.hr-profile-foot>.row{width:100%}
  .hr-profile-foot-danger .btn,.hr-profile-foot>.row .btn{flex:1}
}


/* 2026-10-06 — quotation financial lifecycle */
.quotation-workspace-payments{grid-column:1/-1}
.quotation-payment-kpis{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px;margin-bottom:12px}
.quotation-payment-kpis>div{padding:13px;border:1px solid var(--line,var(--border));border-radius:10px;background:color-mix(in srgb,var(--surface) 96%,var(--primary) 4%)}
.quotation-payment-kpis small,.quotation-payment-kpis strong{display:block}
.quotation-payment-kpis small{margin-bottom:5px;color:var(--muted);font-size:.7rem}
.quotation-payment-kpis strong{font-size:.95rem}
.quotation-payment-progress{height:7px;margin:2px 0 14px;border-radius:999px;background:color-mix(in srgb,var(--muted) 16%,transparent);overflow:hidden}
.quotation-payment-progress>span{display:block;height:100%;border-radius:inherit;background:var(--primary)}
.quotation-payment-history{display:grid;border-top:1px solid var(--line,var(--border))}
.quotation-payment-row{display:grid;grid-template-columns:28px minmax(0,1fr) minmax(140px,.6fr);align-items:center;gap:10px;padding:11px 2px;border-bottom:1px solid var(--line,var(--border))}
.quotation-payment-row>span{display:grid;place-items:center;width:24px;height:24px;border-radius:7px;background:color-mix(in srgb,var(--primary) 9%,var(--surface));color:var(--primary);font-size:.7rem;font-weight:800}
.quotation-payment-row strong,.quotation-payment-row small{display:block}
.quotation-payment-row small{margin-top:3px;color:var(--muted)}
.quotation-payment-modal{width:min(100%,650px)}
@media(max-width:620px){
 .quotation-payment-kpis{grid-template-columns:1fr 1fr}
 .quotation-payment-row{grid-template-columns:24px minmax(0,1fr)}
 .quotation-payment-row>div:last-child{grid-column:2}
}


/* 2026-10-06 — approved CRM/customer workspace; legacy quote-card UI superseded */
.crm-customer-workspace{padding:0;overflow:hidden;border-radius:16px}
.crm-customer-identity{display:grid;grid-template-columns:minmax(280px,1.1fr) minmax(240px,.9fr) minmax(420px,1.4fr);align-items:center;gap:18px;padding:18px;border-bottom:1px solid var(--line,var(--border));background:var(--surface)}
.crm-customer-person{display:flex;align-items:center;gap:12px;min-width:0}
.crm-customer-avatar{display:grid;place-items:center;flex:0 0 48px;width:48px;height:48px;border-radius:50%;background:var(--primary);color:#fff;font-weight:850}
.crm-customer-name-line{display:flex;align-items:center;gap:8px;flex-wrap:wrap}
.crm-customer-name-line h2{margin:0;font-size:1.05rem;letter-spacing:-.02em}
.crm-customer-person p{margin:3px 0 0;color:var(--muted);font-size:.74rem}
.crm-customer-contact{display:grid;grid-template-columns:1fr 1fr;gap:7px 12px;min-width:0;font-size:.75rem}
.crm-customer-contact span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.crm-customer-kpis{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));border:1px solid var(--line,var(--border));border-radius:11px;overflow:hidden}
.crm-customer-kpis>div{min-width:0;padding:10px;border-right:1px solid var(--line,var(--border))}
.crm-customer-kpis>div:last-child{border-right:0}
.crm-customer-kpis small,.crm-customer-kpis strong{display:block}
.crm-customer-kpis small{color:var(--muted);font-size:.64rem}
.crm-customer-kpis strong{margin-top:4px;font-size:.78rem;overflow-wrap:anywhere}
.crm-customer-tabs{display:flex;gap:4px;padding:8px 12px;border-bottom:1px solid var(--line,var(--border));background:var(--surface);overflow-x:auto}
.crm-customer-tabs button,.crm-customer-tabs span{flex:0 0 auto;padding:8px 10px;border:0;border-radius:8px;background:transparent;color:var(--muted);font:inherit;font-size:.72rem;font-weight:700}
.crm-customer-tabs .is-active{background:color-mix(in srgb,var(--primary) 10%,var(--surface));color:var(--primary)}
.crm-customer-workspace>.customer-quote-history{padding:16px;margin:0;border:0;border-radius:0;background:var(--surface)}
/* Hard-disable obsolete nested details presentation if stale markup is ever injected. */
.crm-customer-workspace>.quote-details,.crm-customer-workspace .customer-quotation-body{display:none!important}

@media(max-width:1100px){
 .crm-customer-identity{grid-template-columns:1fr 1fr}
 .crm-customer-kpis{grid-column:1/-1}
}
@media(max-width:720px){
 .crm-customer-identity{grid-template-columns:1fr;padding:14px}
 .crm-customer-contact{grid-template-columns:1fr 1fr}
 .crm-customer-kpis{grid-column:auto;grid-template-columns:1fr 1fr}
 .crm-customer-kpis>div:nth-child(2){border-right:0}
 .crm-customer-kpis>div:nth-child(-n+2){border-bottom:1px solid var(--line,var(--border))}
 .crm-customer-tabs{padding-inline:8px}
 .crm-customer-workspace>.customer-quote-history{padding:12px}
}


/* 2026-10-06 — final compact dialog system */
#modal-root .modal-backdrop{
  display:grid!important;
  place-items:center!important;
  padding:18px!important;
  background:rgba(2,6,23,.52)!important;
  backdrop-filter:blur(5px);
}
#modal-root .modal-backdrop>.modal,
#modal-root .modal-backdrop>.card.modal{
  width:min(480px,calc(100vw - 36px))!important;
  max-height:min(82dvh,680px)!important;
  margin:0!important;
  padding:18px!important;
  border-radius:14px!important;
  overflow:auto;
}
#modal-root .modal-backdrop>.modal h2,
#modal-root .modal-backdrop>.card.modal h2{
  margin:0 0 5px!important;
  font-size:1rem!important;
  letter-spacing:-.02em;
}
#modal-root .modal-backdrop>.modal>p.muted,
#modal-root .modal-backdrop>.card.modal>p.muted{
  margin:0 0 14px!important;
  font-size:.78rem!important;
  line-height:1.45;
}
#modal-root .modal-backdrop .label{font-size:.72rem}
#modal-root .modal-backdrop .field,
#modal-root .modal-backdrop .textarea,
#modal-root .modal-backdrop select{
  min-height:39px!important;
  border-radius:9px!important;
  font-size:.8rem!important;
}
#modal-root .modal-backdrop .textarea{min-height:76px!important}
#modal-root .modal-backdrop .btn{
  min-height:35px!important;
  padding:7px 12px!important;
  border-radius:9px!important;
  font-size:.77rem!important;
}
#modal-root .modal-backdrop>.app-dialog{
  width:min(350px,calc(100vw - 36px))!important;
  max-height:min(76dvh,520px)!important;
  padding:16px!important;
  border-radius:13px!important;
}
/* Forms that genuinely need more room remain moderate, never page-sized. */
#modal-root #workspace-transfer-form,
#modal-root #record-quote-payment-form,
#modal-root .quotation-payment-modal{width:min(500px,calc(100vw - 36px))!important}
#modal-root #crm-quote-form{width:min(540px,calc(100vw - 36px))!important}
@media(max-width:620px){
 #modal-root .modal-backdrop{padding:10px!important;align-items:end!important}
 #modal-root .modal-backdrop>.modal,
 #modal-root .modal-backdrop>.card.modal{
   width:100%!important;
   max-height:88dvh!important;
   padding:15px!important;
   border-radius:15px 15px 11px 11px!important;
 }
 #modal-root .modal-backdrop>.app-dialog{
   width:min(350px,100%)!important;
   margin:auto!important;
   border-radius:13px!important;
 }
}


/* 2026-10-06 — unified admin design baseline from approved mockups */
#dashboard-view{--admin-radius:12px;--admin-gap:14px}
#dashboard-view .main{background:var(--neo-bg)}
#dashboard-view .topbar{border-bottom:1px solid var(--neo-line);box-shadow:none}
#dashboard-view .topbar-inner{min-height:62px}
#dashboard-view .tab-panel{max-width:1440px;margin:0 auto;padding:18px 20px 34px}
#dashboard-view .section-heading,
#dashboard-view .dashboard-overview-heading{margin:0 0 16px;padding:0;align-items:center}
#dashboard-view .section-heading-icon{display:none}
#dashboard-view .section-heading h2,
#dashboard-view .overview-title{font-size:1.28rem!important;letter-spacing:-.03em;margin:0}
#dashboard-view .section-heading p,
#dashboard-view .dashboard-overview-heading .muted{margin-top:4px;font-size:.76rem}
#dashboard-view .panel,
#dashboard-view .ui-card{border:1px solid var(--neo-line)!important;border-radius:var(--admin-radius)!important;box-shadow:none!important;background:var(--neo-card)!important}
#dashboard-view .stats{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:var(--admin-gap);margin-bottom:14px}
#dashboard-view .stat-card,
#dashboard-view .stats>.card,
#dashboard-view .stats>.panel{min-height:112px;padding:15px!important;border-radius:var(--admin-radius)!important}
#dashboard-view .analytics-grid{gap:var(--admin-gap)}
#dashboard-view .chart-panel{padding:15px!important;border-radius:var(--admin-radius)!important}
#dashboard-view .ui-card-head,
#dashboard-view .toolbar{padding:13px 14px!important;gap:12px;border-bottom:1px solid var(--neo-line)!important}
#dashboard-view .ui-card-head h3,
#dashboard-view .toolbar h2{font-size:.9rem!important}
#dashboard-view .quotes-toolbar{padding:13px!important;margin-bottom:14px;border:1px solid var(--neo-line);border-radius:var(--admin-radius);background:var(--neo-card)}
#dashboard-view .toolbar-group-label{font-size:.65rem;text-transform:none;letter-spacing:0;color:var(--neo-muted)}
#dashboard-view .field{min-height:38px;border-radius:8px;font-size:.77rem}
#dashboard-view .btn{min-height:35px;border-radius:8px;padding:7px 11px;font-size:.75rem}
#dashboard-view table{width:100%;border-collapse:collapse}
#dashboard-view thead th{padding:10px 11px!important;background:color-mix(in srgb,var(--neo-card) 92%,var(--neo-ink) 8%);color:var(--neo-muted);font-size:.66rem!important;text-transform:none;letter-spacing:0;border-bottom:1px solid var(--neo-line)}
#dashboard-view tbody td{padding:10px 11px!important;font-size:.74rem!important;border-bottom:1px solid var(--neo-line);vertical-align:middle}
#dashboard-view tbody tr:last-child td{border-bottom:0}
#dashboard-view tbody tr:hover{background:color-mix(in srgb,var(--neo-primary) 4%,transparent)}
#dashboard-view .badge{padding:5px 8px;border-radius:7px;font-size:.65rem;font-weight:750}
#dashboard-view .ui-table-wrap{overflow:auto;border-radius:0 0 var(--admin-radius) var(--admin-radius)}
#dashboard-view .hr-view-tabs{display:flex;gap:5px;margin:0 0 12px;padding:5px;border:1px solid var(--neo-line);border-radius:10px;background:var(--neo-card);width:max-content;max-width:100%;overflow:auto}
#dashboard-view .hr-view-tab{min-height:34px;padding:7px 11px;border-radius:7px;font-size:.72rem}
#dashboard-view .hr-pane{padding:14px!important}
#dashboard-view .hr-directory-filters{display:grid;grid-template-columns:minmax(240px,1.6fr) repeat(2,minmax(150px,.7fr));gap:10px;width:100%}
#dashboard-view .hr-catalog-grid{gap:12px}
#dashboard-view .calendar-shell{gap:14px}
#dashboard-view .calendar-main,#dashboard-view .calendar-agenda{padding:15px!important}
#dashboard-view .calendar-day{min-height:92px;border-color:var(--neo-line)!important}
#dashboard-view .sidebar{border-right:1px solid var(--neo-line)}
#dashboard-view .sidebar-brand{min-height:62px}
#dashboard-view .nav-group-title{display:none}
#dashboard-view .sidebar-nav{padding-top:8px}
#dashboard-view .nav-item{min-height:39px;margin:2px 8px;border-radius:8px;font-size:.76rem}
#dashboard-view .nav-item.active{box-shadow:none}
#dashboard-view .attention-panel,
#dashboard-view .pending-transactions-panel{max-width:none!important;margin:0 0 14px!important}
#dashboard-view .customer-quote-history{grid-template-columns:1fr!important}
@media(max-width:1180px){
 #dashboard-view .stats{grid-template-columns:repeat(3,minmax(0,1fr))}
}
@media(max-width:800px){
 #dashboard-view .tab-panel{padding:14px 12px 28px}
 #dashboard-view .stats{grid-template-columns:1fr 1fr}
 #dashboard-view .hr-directory-filters{grid-template-columns:1fr}
 #dashboard-view .toolbar-row{align-items:stretch}
}
@media(max-width:520px){
 #dashboard-view .stats{grid-template-columns:1fr 1fr;gap:9px}
 #dashboard-view .stat-card,#dashboard-view .stats>.card,#dashboard-view .stats>.panel{min-height:96px;padding:12px!important}
 #dashboard-view .section-heading h2,#dashboard-view .overview-title{font-size:1.12rem!important}
}


/* Legacy dashboard presentation neutralization */
#dashboard-view.quote-drawer-open{overflow:auto!important}
#dashboard-view .quote-card:has(> .quote-details[open]){transform:none!important}
#dashboard-view .quote-details{position:static}


/* 2026-10-06 — animated admin login experience */
#login-view.centered{position:relative;isolation:isolate;overflow:hidden;min-height:100dvh}
#login-view .neo-login-scene{position:absolute;inset:0;z-index:-2;overflow:hidden;background:
 radial-gradient(circle at 18% 22%,rgba(20,106,255,.18),transparent 34%),
 radial-gradient(circle at 78% 72%,rgba(62,214,173,.12),transparent 31%),
 linear-gradient(135deg,#06101f 0%,#08172a 48%,#050b15 100%)}
#neo-login-canvas{position:absolute;inset:0;width:100%;height:100%;opacity:.72}
#login-view .neo-login-grid{position:absolute;inset:-25%;background-image:linear-gradient(rgba(83,146,255,.055) 1px,transparent 1px),linear-gradient(90deg,rgba(83,146,255,.055) 1px,transparent 1px);background-size:46px 46px;transform:perspective(700px) rotateX(62deg) translateY(18%);transform-origin:center bottom;animation:loginGridDrift 16s linear infinite}
#login-view .neo-aurora{position:absolute;width:44vw;height:44vw;min-width:440px;min-height:440px;border-radius:50%;filter:blur(80px);opacity:.19;will-change:transform}
#login-view .neo-aurora-1{left:-13%;top:-22%;background:#0878ff;animation:loginAuroraOne 13s ease-in-out infinite alternate}
#login-view .neo-aurora-2{right:-17%;bottom:-25%;background:#15d6a1;animation:loginAuroraTwo 16s ease-in-out infinite alternate}
#login-view .neo-aurora-3{left:37%;top:34%;background:#714cff;opacity:.11;animation:loginAuroraThree 18s ease-in-out infinite alternate}
#login-view .neo-login-layout{position:relative;z-index:2;animation:loginStageIn .7s cubic-bezier(.2,.8,.2,1) both}
#login-view .neo-showcase-brand{animation:loginReveal .7s .08s both}
#login-view .neo-showcase-kicker{animation:loginReveal .65s .16s both}
#login-view .neo-showcase-title{animation:loginReveal .72s .23s both}
#login-view .neo-showcase-sub{animation:loginReveal .7s .31s both}
#login-view .neo-showcase-points li{opacity:0;animation:loginReveal .55s forwards}
#login-view .neo-showcase-points li:nth-child(1){animation-delay:.39s}
#login-view .neo-showcase-points li:nth-child(2){animation-delay:.47s}
#login-view .neo-showcase-points li:nth-child(3){animation-delay:.55s}
#login-view .neo-showcase-glass{animation:loginReveal .7s .6s both,loginGlassFloat 5.5s 1.3s ease-in-out infinite}
#login-view .neo-login-card{position:relative;overflow:hidden;animation:loginCardIn .78s .18s cubic-bezier(.16,1,.3,1) both;transition:transform .25s ease,border-color .25s ease,box-shadow .25s ease}
#login-view .neo-login-card:focus-within{transform:translateY(-3px);border-color:rgba(57,133,255,.52)!important;box-shadow:0 28px 80px rgba(0,0,0,.38),0 0 0 1px rgba(42,122,255,.12)!important}
#login-view .neo-card-glow{position:absolute;width:220px;height:220px;right:-110px;top:-115px;border-radius:50%;background:radial-gradient(circle,rgba(31,126,255,.28),transparent 68%);animation:loginGlowPulse 4.8s ease-in-out infinite;pointer-events:none}
#login-view .neo-card-emblem{animation:loginEmblem 6s ease-in-out infinite}
#login-view .neo-gradient-text{background-size:220% 100%!important;animation:loginGradient 5s linear infinite}
#login-view .neo-pulse-dot{animation:loginPulse 1.7s ease-in-out infinite}
#login-view .neo-orbit{animation:loginOrbit 15s linear infinite}
#login-view .neo-orbit-2{animation-direction:reverse;animation-duration:21s}
#login-view .neo-orbit-core{animation:loginCoreFloat 4.4s ease-in-out infinite}
#login-view .neo-login-btn{position:relative;overflow:hidden;transition:transform .18s ease,box-shadow .18s ease}
#login-view .neo-login-btn:hover{transform:translateY(-2px);box-shadow:0 10px 28px rgba(16,105,255,.3)}
#login-view .neo-btn-shine{position:absolute;inset:-2px auto -2px -45%;width:35%;transform:skewX(-20deg);background:linear-gradient(90deg,transparent,rgba(255,255,255,.38),transparent);animation:loginButtonShine 3.6s 1.2s ease-in-out infinite}
#login-view .field{transition:border-color .18s ease,box-shadow .18s ease,transform .18s ease}
#login-view .field:focus{transform:translateY(-1px);box-shadow:0 0 0 3px rgba(26,116,255,.12)!important}
#login-view .neo-mode-indicator{transition:transform .28s cubic-bezier(.2,.8,.2,1),width .28s ease}
@keyframes loginStageIn{from{opacity:0;transform:scale(.985)}to{opacity:1;transform:none}}
@keyframes loginReveal{from{opacity:0;transform:translateY(16px)}to{opacity:1;transform:none}}
@keyframes loginCardIn{from{opacity:0;transform:translateX(28px) scale(.97)}to{opacity:1;transform:none}}
@keyframes loginGridDrift{to{background-position:0 46px,46px 0}}
@keyframes loginAuroraOne{to{transform:translate(18%,12%) scale(1.13)}}
@keyframes loginAuroraTwo{to{transform:translate(-16%,-11%) scale(1.08)}}
@keyframes loginAuroraThree{to{transform:translate(11%,-16%) scale(1.2)}}
@keyframes loginGlassFloat{50%{transform:translateY(-6px)}}
@keyframes loginGlowPulse{50%{opacity:.6;transform:scale(1.15)}}
@keyframes loginEmblem{50%{transform:translateY(-4px) rotate(2deg)}}
@keyframes loginGradient{to{background-position:220% 0}}
@keyframes loginPulse{50%{transform:scale(1.45);box-shadow:0 0 0 6px rgba(45,213,159,0)}}
@keyframes loginOrbit{to{transform:rotate(360deg)}}
@keyframes loginCoreFloat{50%{transform:translateY(-8px) scale(1.04)}}
@keyframes loginButtonShine{0%,62%{left:-45%}82%,100%{left:125%}}
@media(max-width:850px){
 #login-view .neo-login-layout{animation-name:loginStageIn}
 #login-view .neo-login-card{animation-name:loginReveal}
 #login-view .neo-login-grid{opacity:.45}
}
@media(prefers-reduced-motion:reduce){
 #login-view *,#login-view *::before,#login-view *::after{animation-duration:.01ms!important;animation-iteration-count:1!important;scroll-behavior:auto!important}
}
