/* ============================================================
   NP Line Design — AI Form Intelligence Platform
   forms-intelligence.css  |  All classes prefixed npl-intel-
   Design system: Comfortaa font, #c2262b brand red, #f9f9f9 bg
   ============================================================ */

/* ----------------------------------------------------------
   ANIMATIONS
   ---------------------------------------------------------- */

@keyframes npl-intel-slide-up {
  from {
    opacity: 0;
    transform: translateY(100%);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes npl-intel-slide-down {
  from {
    opacity: 1;
    transform: translateY(0);
  }
  to {
    opacity: 0;
    transform: translateY(100%);
  }
}

@keyframes npl-intel-slide-in-right {
  from {
    opacity: 0;
    transform: translateX(100%);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes npl-intel-slide-out-right {
  from {
    opacity: 1;
    transform: translateX(0);
  }
  to {
    opacity: 0;
    transform: translateX(100%);
  }
}

@keyframes npl-intel-fade-in {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes npl-intel-pulse {
  0%, 100% {
    opacity: 1;
    transform: scale(1);
  }
  50% {
    opacity: 0.6;
    transform: scale(1.12);
  }
}

@keyframes npl-intel-pulse-ring {
  0% {
    box-shadow: 0 0 0 0 rgba(194, 38, 43, 0.45);
  }
  70% {
    box-shadow: 0 0 0 14px rgba(194, 38, 43, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(194, 38, 43, 0);
  }
}

@keyframes npl-intel-progress {
  from {
    background-position: 40px 0;
  }
  to {
    background-position: 0 0;
  }
}

@keyframes npl-intel-skeleton {
  0% {
    background-position: -400px 0;
  }
  100% {
    background-position: 400px 0;
  }
}

@keyframes npl-intel-spin {
  to {
    transform: rotate(360deg);
  }
}

@keyframes npl-intel-bounce-in {
  0% {
    opacity: 0;
    transform: scale(0.85);
  }
  60% {
    transform: scale(1.04);
  }
  100% {
    opacity: 1;
    transform: scale(1);
  }
}

/* Reduced-motion overrides — all animations collapse to simple fade */
@media (prefers-reduced-motion: reduce) {
  *[class*="npl-intel-"] {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* ----------------------------------------------------------
   1. CONSENT BANNER
   ---------------------------------------------------------- */

.npl-intel-consent-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
  z-index: 9000;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding: 0 16px 16px;
}

.npl-intel-consent-overlay.npl-intel-hidden {
  display: none;
}

.npl-intel-consent {
  background: #ffffff;
  border-radius: 16px;
  padding: 24px 24px 20px;
  max-width: 680px;
  width: 100%;
  box-shadow: 0 -4px 32px rgba(0, 0, 0, 0.18);
  animation: npl-intel-slide-up 0.32s cubic-bezier(0.34, 1.26, 0.64, 1) both;
}

.npl-intel-consent.npl-intel-dismissing {
  animation: npl-intel-slide-down 0.26s ease-in both;
}

.npl-intel-consent__icon {
  font-size: 1.5rem;
  margin-bottom: 8px;
}

.npl-intel-consent__title {
  font-family: 'Comfortaa', system-ui, sans-serif;
  font-size: 1rem;
  font-weight: 700;
  color: #1a1a1a;
  margin-bottom: 6px;
}

.npl-intel-consent__body {
  font-family: 'Comfortaa', system-ui, sans-serif;
  font-size: 0.82rem;
  color: #666;
  line-height: 1.55;
  margin-bottom: 18px;
}

.npl-intel-consent__body a {
  color: #c2262b;
  text-decoration: underline;
}

.npl-intel-consent__actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.npl-intel-btn-accept {
  flex: 1;
  min-width: 120px;
  height: 48px;
  background: #c2262b;
  color: #ffffff;
  border: none;
  border-radius: 12px;
  font-family: 'Comfortaa', system-ui, sans-serif;
  font-size: 0.875rem;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.18s ease, transform 0.12s ease;
}

.npl-intel-btn-accept:hover {
  background: #a81f24;
  transform: translateY(-1px);
}

.npl-intel-btn-accept:active {
  transform: translateY(0);
}

.npl-intel-btn-decline {
  flex: 1;
  min-width: 100px;
  height: 48px;
  background: transparent;
  color: #666;
  border: 1.5px solid #d1d5db;
  border-radius: 12px;
  font-family: 'Comfortaa', system-ui, sans-serif;
  font-size: 0.875rem;
  font-weight: 600;
  cursor: pointer;
  transition: border-color 0.18s ease, color 0.18s ease;
}

.npl-intel-btn-decline:hover {
  border-color: #9ca3af;
  color: #1a1a1a;
}

/* ----------------------------------------------------------
   2. CHAT SWAP PANEL
   ---------------------------------------------------------- */

/* Toggle button — floats at bottom of form wrapper */
.npl-intel-chat-toggle {
  display: flex;
  align-items: center;
  gap: 8px;
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 8500;
  height: 56px;
  padding: 0 20px;
  background: #c2262b;
  color: #ffffff;
  border: none;
  border-radius: 999px;
  font-family: 'Comfortaa', system-ui, sans-serif;
  font-size: 0.875rem;
  font-weight: 700;
  box-shadow: 0 4px 20px rgba(194, 38, 43, 0.40);
  cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.npl-intel-chat-toggle:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 28px rgba(194, 38, 43, 0.50);
}

.npl-intel-chat-toggle svg,
.npl-intel-chat-toggle__icon {
  width: 22px;
  height: 22px;
  flex-shrink: 0;
}

/* Chat panel — rendered inside form wrapper, toggled via JS display */
.npl-intel-chat-panel {
  width: 100%;
  background: #fafafa;
  border-radius: 12px;
  border: 1.5px solid #e0e0e0;
  flex-direction: column;
  min-height: 460px;
  box-shadow: 0 2px 16px rgba(0, 0, 0, 0.06);
}

.npl-intel-chat-panel__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 18px;
  background: #c2262b;
  border-radius: 12px 12px 0 0;
  flex-shrink: 0;
}

.npl-intel-chat-panel__title {
  font-family: 'Comfortaa', system-ui, sans-serif;
  font-size: 0.95rem;
  font-weight: 700;
  color: #fff;
}

.npl-intel-chat-panel__subtitle {
  font-size: 0.75rem;
  color: #666;
  margin-top: 2px;
}

.npl-intel-chat-close {
  width: 32px;
  height: 32px;
  border: none;
  background: rgba(255, 255, 255, 0.15);
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255, 255, 255, 0.8);
  font-size: 1rem;
  transition: background 0.15s ease, color 0.15s ease;
  flex-shrink: 0;
}

.npl-intel-chat-close:hover {
  background: rgba(255, 255, 255, 0.25);
  color: #fff;
}

/* Message list */
.npl-intel-chat-messages {
  flex: 1;
  overflow-y: auto;
  padding: 20px 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  scroll-behavior: smooth;
}

.npl-intel-msg {
  display: flex;
  align-items: flex-end;
  gap: 8px;
  max-width: 86%;
  animation: npl-intel-fade-in 0.22s ease both;
}

.npl-intel-msg--bot {
  align-self: flex-start;
}

.npl-intel-msg--user {
  align-self: flex-end;
  flex-direction: row-reverse;
}

.npl-intel-msg__avatar {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: #e5e7eb;
  flex-shrink: 0;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: 700;
  color: #666;
}

.npl-intel-msg--bot .npl-intel-msg__avatar {
  background: #fde8e9;
  color: #c2262b;
}

.npl-intel-msg__bubble {
  padding: 10px 14px;
  border-radius: 16px;
  font-family: 'Comfortaa', system-ui, sans-serif;
  font-size: 0.84rem;
  line-height: 1.55;
}

.npl-intel-msg--bot .npl-intel-msg__bubble {
  background: #f3f4f6;
  color: #1a1a1a;
  border-bottom-left-radius: 4px;
}

.npl-intel-msg--user .npl-intel-msg__bubble {
  background: #c2262b;
  color: #ffffff;
  border-bottom-right-radius: 4px;
}

.npl-intel-msg__time {
  font-size: 0.68rem;
  color: #aaa;
  margin-top: 4px;
  display: block;
}

/* Typing indicator */
.npl-intel-typing {
  display: flex;
  gap: 4px;
  align-items: center;
  padding: 10px 14px;
  background: #f3f4f6;
  border-radius: 16px;
  border-bottom-left-radius: 4px;
  width: fit-content;
}

.npl-intel-typing span {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #9ca3af;
  animation: npl-intel-pulse 1.2s ease-in-out infinite;
}

.npl-intel-typing span:nth-child(2) { animation-delay: 0.2s; }
.npl-intel-typing span:nth-child(3) { animation-delay: 0.4s; }

/* Input bar */
.npl-intel-chat-input-bar {
  padding: 12px 16px;
  border-top: 1px solid #f0f0f0;
  display: flex;
  align-items: flex-end;
  gap: 8px;
  flex-shrink: 0;
  background: #fff;
}

.npl-intel-chat-textarea {
  flex: 1;
  min-height: 44px;
  max-height: 120px;
  resize: none;
  border: 1.5px solid #e5e7eb;
  border-radius: 12px;
  padding: 10px 14px;
  font-family: 'Comfortaa', system-ui, sans-serif;
  font-size: 0.875rem;
  color: #1a1a1a;
  outline: none;
  transition: border-color 0.18s ease;
  overflow-y: auto;
}

.npl-intel-chat-textarea:focus {
  border-color: #c2262b;
}

.npl-intel-chat-textarea::placeholder {
  color: #bbb;
}

.npl-intel-chat-send,
.npl-intel-chat-mic {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: transform 0.14s ease, background 0.18s ease;
}

.npl-intel-chat-send {
  background: #c2262b;
  color: #ffffff;
}

.npl-intel-chat-send:hover {
  background: #a81f24;
  transform: scale(1.08);
}

.npl-intel-chat-mic {
  background: #f3f4f6;
  color: #666;
}

.npl-intel-chat-mic:hover {
  background: #e5e7eb;
  color: #1a1a1a;
}

.npl-intel-chat-mic.npl-intel-recording {
  background: #fde8e9;
  color: #c2262b;
  animation: npl-intel-pulse-ring 1.4s ease infinite;
}

/* ----------------------------------------------------------
   3. VISUAL SCOPER
   ---------------------------------------------------------- */

.npl-intel-scoper {
  margin: 20px 0;
}

/* Drop zone */
.npl-intel-dropzone {
  border: 2px dashed #d1d5db;
  border-radius: 12px;
  padding: 36px 24px;
  text-align: center;
  background: #fafafa;
  cursor: pointer;
  transition: border-color 0.2s ease, background 0.2s ease;
  position: relative;
}

.npl-intel-dropzone:hover,
.npl-intel-dropzone.npl-intel-drag-over {
  border-color: #c2262b;
  background: #fff8f8;
}

.npl-intel-dropzone__icon {
  font-size: 2rem;
  margin-bottom: 10px;
  display: block;
  color: #9ca3af;
}

.npl-intel-dropzone__text {
  font-family: 'Comfortaa', system-ui, sans-serif;
  font-size: 0.88rem;
  color: #666;
  line-height: 1.5;
}

.npl-intel-dropzone__text strong {
  color: #c2262b;
}

.npl-intel-dropzone__sub {
  font-size: 0.75rem;
  color: #aaa;
  margin-top: 4px;
}

.npl-intel-dropzone input[type="file"] {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
  width: 100%;
  height: 100%;
}

/* Thumbnail grid */
.npl-intel-thumb-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  margin-top: 14px;
}

.npl-intel-thumb {
  position: relative;
  aspect-ratio: 4 / 3;
  border-radius: 10px;
  overflow: hidden;
  background: #e5e7eb;
}

.npl-intel-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.npl-intel-thumb__remove {
  position: absolute;
  top: 6px;
  right: 6px;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.55);
  color: #fff;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  transition: background 0.15s ease;
}

.npl-intel-thumb__remove:hover {
  background: rgba(194, 38, 43, 0.85);
}

/* Scope card (result after analysis) */
.npl-intel-scope-result {
  margin-top: 16px;
  background: #ffffff;
  border: 1.5px solid #e5e7eb;
  border-left: 4px solid;
  border-radius: 12px;
  padding: 18px 20px;
  animation: npl-intel-fade-in 0.28s ease both;
}

.npl-intel-scope-result--green  { border-left-color: #16a34a; }
.npl-intel-scope-result--yellow { border-left-color: #d97706; }
.npl-intel-scope-result--red    { border-left-color: #c2262b; }

.npl-intel-scope-result__indicator {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
}

.npl-intel-indicator-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  flex-shrink: 0;
}

.npl-intel-indicator-dot--green  { background: #16a34a; }
.npl-intel-indicator-dot--yellow { background: #d97706; }
.npl-intel-indicator-dot--red    { background: #c2262b; }

.npl-intel-scope-result__label {
  font-family: 'Comfortaa', system-ui, sans-serif;
  font-size: 0.82rem;
  font-weight: 700;
  color: #1a1a1a;
}

.npl-intel-scope-result__text {
  font-family: 'Comfortaa', system-ui, sans-serif;
  font-size: 0.84rem;
  color: #444;
  line-height: 1.6;
}

/* Scoper loading spinner */
.npl-intel-scoper-loading {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 0;
  font-family: 'Comfortaa', system-ui, sans-serif;
  font-size: 0.84rem;
  color: #666;
}

/* ----------------------------------------------------------
   4. SMART VOICE BUTTON (one floating FAB per form)
   ---------------------------------------------------------- */

/* Floating Action Button — bottom-right of form wrapper */
.npl-intel-voice-fab {
  position: fixed;
  bottom: 24px;
  left: 24px;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  border: none;
  background: #1a1a1a;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  cursor: pointer;
  box-shadow: 0 4px 16px rgba(0,0,0,0.18), 0 1px 4px rgba(0,0,0,0.1);
  transition: all 0.2s ease;
  z-index: 9998;
  padding: 0;
  overflow: hidden;
}
.npl-intel-voice-fab:hover {
  background: #c2262b;
  transform: scale(1.08);
  box-shadow: 0 6px 24px rgba(194,38,43,0.3);
  width: auto;
  border-radius: 26px;
  padding: 0 18px;
  gap: 8px;
}
.npl-intel-voice-fab:hover .npl-intel-voice-fab-label {
  width: auto;
  opacity: 1;
  margin-left: 0;
}
.npl-intel-voice-fab-icon {
  width: 22px;
  height: 22px;
  flex-shrink: 0;
}
.npl-intel-voice-fab-label {
  font-family: 'Comfortaa', system-ui, sans-serif;
  font-size: 0.82rem;
  font-weight: 600;
  white-space: nowrap;
  width: 0;
  opacity: 0;
  overflow: hidden;
  transition: width 0.2s ease, opacity 0.2s ease;
}
.npl-intel-voice-fab:focus-visible {
  outline: 3px solid #c2262b;
  outline-offset: 3px;
}

/* Recording state — pulsing red ring */
.npl-intel-voice-fab--recording {
  background: #c2262b;
  width: auto;
  border-radius: 26px;
  padding: 0 18px;
  gap: 8px;
  animation: npl-intel-pulse-ring 1.4s ease infinite;
}
.npl-intel-voice-fab--recording .npl-intel-voice-fab-label {
  width: auto;
  opacity: 1;
}
.npl-intel-voice-fab--recording .npl-intel-voice-fab-icon {
  animation: npl-intel-pulse 1s ease-in-out infinite;
}

/* Voice overlay — slides up from bottom */
.npl-intel-voice-overlay {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 9999;
  pointer-events: none;
  opacity: 0;
  transform: translateY(100%);
  transition: opacity 0.25s ease, transform 0.25s ease;
}
.npl-intel-voice-overlay--active {
  pointer-events: auto;
  opacity: 1;
  transform: translateY(0);
}
.npl-intel-voice-overlay-inner {
  max-width: 400px;
  margin: 0 auto 90px;
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.15);
  padding: 20px 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
}

/* Waveform animation */
.npl-intel-voice-wave {
  display: flex;
  align-items: center;
  gap: 3px;
  height: 32px;
}
.npl-intel-voice-wave span {
  display: block;
  width: 4px;
  height: 8px;
  background: #c2262b;
  border-radius: 2px;
  animation: npl-intel-wave 0.8s ease-in-out infinite;
}
.npl-intel-voice-wave span:nth-child(2) { animation-delay: 0.1s; height: 16px; }
.npl-intel-voice-wave span:nth-child(3) { animation-delay: 0.2s; height: 24px; }
.npl-intel-voice-wave span:nth-child(4) { animation-delay: 0.3s; height: 16px; }
.npl-intel-voice-wave span:nth-child(5) { animation-delay: 0.4s; height: 8px; }

@keyframes npl-intel-wave {
  0%, 100% { transform: scaleY(0.4); }
  50% { transform: scaleY(1); }
}

/* Live transcript text */
.npl-intel-voice-live-text {
  font-family: 'Comfortaa', system-ui, sans-serif;
  font-size: 0.92rem;
  color: #1a1a1a;
  text-align: center;
  max-height: 80px;
  overflow-y: auto;
  line-height: 1.5;
}

/* Stop/Done button */
.npl-intel-voice-stop {
  font-family: 'Comfortaa', system-ui, sans-serif;
  font-size: 0.82rem;
  font-weight: 600;
  background: #c2262b;
  color: #fff;
  border: none;
  border-radius: 8px;
  padding: 10px 28px;
  cursor: pointer;
  transition: filter 0.15s;
}
.npl-intel-voice-stop:hover {
  filter: brightness(0.9);
}

/* Mobile: FAB at bottom-center, overlay full-width */
@media (max-width: 640px) {
  .npl-intel-voice-fab {
    bottom: 16px;
    left: 16px;
  }
  .npl-intel-voice-fab:hover {
    transform: scale(1.05);
  }
  .npl-intel-voice-overlay-inner {
    margin: 0 12px 80px;
    max-width: none;
  }
}

/* ----------------------------------------------------------
   5. FRICTION ORACLE (floating field helper)
   ---------------------------------------------------------- */

.npl-intel-friction {
  position: absolute;
  z-index: 7000;
  width: 260px;
  background: #ffffff;
  border-radius: 12px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.14);
  padding: 14px 16px 14px 14px;
  animation: npl-intel-slide-up 0.24s cubic-bezier(0.34, 1.26, 0.64, 1) both;
}

.npl-intel-friction::before {
  content: '';
  position: absolute;
  bottom: -8px;
  left: 24px;
  width: 16px;
  height: 16px;
  background: #ffffff;
  clip-path: polygon(0 0, 100% 0, 50% 100%);
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.08);
}

.npl-intel-friction--above::before {
  bottom: auto;
  top: -8px;
  clip-path: polygon(50% 0, 100% 100%, 0 100%);
}

.npl-intel-friction__header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 8px;
}

.npl-intel-friction__icon {
  font-size: 1.1rem;
  flex-shrink: 0;
  margin-top: 1px;
}

.npl-intel-friction__title {
  font-family: 'Comfortaa', system-ui, sans-serif;
  font-size: 0.82rem;
  font-weight: 700;
  color: #1a1a1a;
  flex: 1;
}

.npl-intel-friction__dismiss {
  width: 20px;
  height: 20px;
  border: none;
  background: none;
  cursor: pointer;
  color: #aaa;
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 4px;
  padding: 0;
  transition: color 0.15s ease, background 0.15s ease;
  flex-shrink: 0;
}

.npl-intel-friction__dismiss:hover {
  background: #f3f4f6;
  color: #1a1a1a;
}

.npl-intel-friction__body {
  font-family: 'Comfortaa', system-ui, sans-serif;
  font-size: 0.8rem;
  color: #444;
  line-height: 1.6;
}

.npl-intel-friction__body a {
  color: #c2262b;
  text-decoration: underline;
}

/* NP Line branding strip at bottom */
.npl-intel-friction__brand {
  margin-top: 8px;
  padding-top: 8px;
  border-top: 1px solid #f0f0f0;
  font-size: 0.68rem;
  color: #aaa;
  text-align: right;
  letter-spacing: 0.02em;
}

/* ----------------------------------------------------------
   6. SCOPE CARD / PROPOSAL PREVIEW
   ---------------------------------------------------------- */

.npl-intel-scope-card {
  background: #ffffff;
  border: 1.5px solid #e5e7eb;
  border-left: 4px solid #c2262b;
  border-radius: 12px;
  overflow: hidden;
  margin: 20px 0;
  animation: npl-intel-bounce-in 0.3s ease both;
}

.npl-intel-scope-card__header {
  padding: 16px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  user-select: none;
  border-bottom: 1px solid #f0f0f0;
  gap: 12px;
}

.npl-intel-scope-card__header-left {
  display: flex;
  align-items: center;
  gap: 10px;
}

.npl-intel-scope-card__icon {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: #fde8e9;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  flex-shrink: 0;
}

.npl-intel-scope-card__title {
  font-family: 'Comfortaa', system-ui, sans-serif;
  font-size: 0.92rem;
  font-weight: 700;
  color: #1a1a1a;
}

.npl-intel-scope-card__subtitle {
  font-size: 0.75rem;
  color: #666;
  margin-top: 2px;
}

.npl-intel-scope-card__toggle {
  color: #9ca3af;
  font-size: 1rem;
  transition: transform 0.22s ease;
  flex-shrink: 0;
}

.npl-intel-scope-card.npl-intel-expanded .npl-intel-scope-card__toggle {
  transform: rotate(180deg);
}

/* Collapsible body */
.npl-intel-scope-card__body {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

.npl-intel-scope-card.npl-intel-expanded .npl-intel-scope-card__body {
  max-height: 1000px;
}

.npl-intel-scope-card__content {
  padding: 18px 20px 20px;
}

.npl-intel-scope-section {
  margin-bottom: 16px;
}

.npl-intel-scope-section:last-child {
  margin-bottom: 0;
}

.npl-intel-scope-section__label {
  font-family: 'Comfortaa', system-ui, sans-serif;
  font-size: 0.72rem;
  font-weight: 700;
  color: #9ca3af;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 4px;
}

.npl-intel-scope-section__value {
  font-family: 'Comfortaa', system-ui, sans-serif;
  font-size: 0.88rem;
  color: #1a1a1a;
  line-height: 1.55;
}

/* Cost range — prominent display */
.npl-intel-cost-range {
  font-size: 1.4rem;
  font-weight: 700;
  color: #1a1a1a;
  letter-spacing: -0.02em;
}

.npl-intel-cost-range__qualifier {
  font-size: 0.75rem;
  font-weight: 400;
  color: #666;
  margin-left: 6px;
}

/* Feasibility badge */
.npl-intel-feasibility {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 12px;
  border-radius: 999px;
  font-family: 'Comfortaa', system-ui, sans-serif;
  font-size: 0.78rem;
  font-weight: 700;
}

.npl-intel-feasibility--high   { background: #dcfce7; color: #15803d; }
.npl-intel-feasibility--medium { background: #fef9c3; color: #a16207; }
.npl-intel-feasibility--low    { background: #fee2e2; color: #b91c1c; }

/* PDF button */
.npl-intel-btn-pdf {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  height: 48px;
  margin-top: 18px;
  background: #c2262b;
  color: #ffffff;
  border: none;
  border-radius: 12px;
  font-family: 'Comfortaa', system-ui, sans-serif;
  font-size: 0.875rem;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.18s ease, transform 0.12s ease;
}

.npl-intel-btn-pdf:hover {
  background: #a81f24;
  transform: translateY(-1px);
}

/* ----------------------------------------------------------
   7. GANTT VISUALIZER
   ---------------------------------------------------------- */

.npl-intel-gantt {
  margin: 20px 0;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.npl-intel-gantt__header {
  font-family: 'Comfortaa', system-ui, sans-serif;
  font-size: 0.88rem;
  font-weight: 700;
  color: #1a1a1a;
  margin-bottom: 12px;
}

/* Timeline grid */
.npl-intel-gantt__grid {
  min-width: 560px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.npl-intel-gantt__row {
  display: flex;
  align-items: center;
  gap: 10px;
}

.npl-intel-gantt__row-label {
  font-family: 'Comfortaa', system-ui, sans-serif;
  font-size: 0.78rem;
  color: #444;
  width: 110px;
  flex-shrink: 0;
  text-align: right;
}

.npl-intel-gantt__track {
  flex: 1;
  height: 32px;
  background: #f3f4f6;
  border-radius: 8px;
  position: relative;
  overflow: visible;
}

.npl-intel-gantt__bar {
  position: absolute;
  top: 0;
  height: 100%;
  border-radius: 8px;
  display: flex;
  align-items: center;
  padding: 0 10px;
  font-family: 'Comfortaa', system-ui, sans-serif;
  font-size: 0.72rem;
  font-weight: 700;
  color: #fff;
  white-space: nowrap;
  overflow: hidden;
  cursor: pointer;
  animation: npl-intel-progress 2s linear infinite;
  background-size: 40px 40px;
  transition: filter 0.15s ease;
}

.npl-intel-gantt__bar:hover {
  filter: brightness(1.08);
}

/* Phase color coding */
.npl-intel-gantt__bar--plans {
  background-color: #2563eb;
  background-image: repeating-linear-gradient(
    -45deg,
    rgba(255,255,255,0.08) 0,
    rgba(255,255,255,0.08) 4px,
    transparent 4px,
    transparent 8px
  );
}

.npl-intel-gantt__bar--permits {
  background-color: #d97706;
  background-image: repeating-linear-gradient(
    -45deg,
    rgba(255,255,255,0.08) 0,
    rgba(255,255,255,0.08) 4px,
    transparent 4px,
    transparent 8px
  );
}

.npl-intel-gantt__bar--build {
  background-color: #16a34a;
  background-image: repeating-linear-gradient(
    -45deg,
    rgba(255,255,255,0.08) 0,
    rgba(255,255,255,0.08) 4px,
    transparent 4px,
    transparent 8px
  );
}

.npl-intel-gantt__bar--finish {
  background-color: #7c3aed;
  background-image: repeating-linear-gradient(
    -45deg,
    rgba(255,255,255,0.08) 0,
    rgba(255,255,255,0.08) 4px,
    transparent 4px,
    transparent 8px
  );
}

/* Milestone dot */
.npl-intel-milestone {
  position: absolute;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: #fff;
  border: 2.5px solid #1a1a1a;
  cursor: pointer;
  z-index: 10;
  transition: transform 0.15s ease;
}

.npl-intel-milestone:hover {
  transform: translate(-50%, -50%) scale(1.3);
}

/* Milestone popover */
.npl-intel-milestone-popover {
  position: absolute;
  bottom: calc(100% + 10px);
  left: 50%;
  transform: translateX(-50%);
  background: #1a1a1a;
  color: #fff;
  border-radius: 8px;
  padding: 8px 12px;
  font-family: 'Comfortaa', system-ui, sans-serif;
  font-size: 0.75rem;
  white-space: nowrap;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.18s ease;
  z-index: 20;
}

.npl-intel-milestone-popover::after {
  content: '';
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  border: 6px solid transparent;
  border-top-color: #1a1a1a;
}

.npl-intel-milestone:hover .npl-intel-milestone-popover,
.npl-intel-milestone:focus .npl-intel-milestone-popover {
  opacity: 1;
}

/* Time axis */
.npl-intel-gantt__axis {
  display: flex;
  gap: 10px;
  margin-top: 6px;
  padding-left: 120px;
}

.npl-intel-gantt__axis-label {
  flex: 1;
  font-size: 0.68rem;
  color: #aaa;
  text-align: center;
}

/* Legend */
.npl-intel-gantt__legend {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 14px;
}

.npl-intel-gantt__legend-item {
  display: flex;
  align-items: center;
  gap: 6px;
  font-family: 'Comfortaa', system-ui, sans-serif;
  font-size: 0.72rem;
  color: #444;
}

.npl-intel-gantt__legend-dot {
  width: 10px;
  height: 10px;
  border-radius: 3px;
  flex-shrink: 0;
}

/* ----------------------------------------------------------
   8. PERMIT SIMULATOR
   ---------------------------------------------------------- */

.npl-intel-permit {
  background: #ffffff;
  border: 1.5px solid #e5e7eb;
  border-radius: 12px;
  padding: 20px;
  margin: 20px 0;
  animation: npl-intel-fade-in 0.28s ease both;
}

/* Traffic light indicator */
.npl-intel-traffic-light {
  display: flex;
  gap: 8px;
  align-items: center;
  margin-bottom: 14px;
}

.npl-intel-tl-dot {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  opacity: 0.25;
  transition: opacity 0.2s ease, box-shadow 0.2s ease;
}

.npl-intel-tl-dot--red    { background: #ef4444; }
.npl-intel-tl-dot--yellow { background: #f59e0b; }
.npl-intel-tl-dot--green  { background: #22c55e; }

.npl-intel-tl-dot.npl-intel-active {
  opacity: 1;
  box-shadow: 0 0 0 4px rgba(0,0,0,0.08);
}

.npl-intel-traffic-light__label {
  font-family: 'Comfortaa', system-ui, sans-serif;
  font-size: 0.88rem;
  font-weight: 700;
  color: #1a1a1a;
  margin-left: 6px;
}

/* Requirements checklist */
.npl-intel-permit-checklist {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 16px;
}

.npl-intel-permit-checklist li {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-family: 'Comfortaa', system-ui, sans-serif;
  font-size: 0.84rem;
  color: #444;
  line-height: 1.5;
}

.npl-intel-check-icon {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.65rem;
  font-weight: 700;
  flex-shrink: 0;
  margin-top: 1px;
}

.npl-intel-check-icon--pass { background: #dcfce7; color: #15803d; }
.npl-intel-check-icon--fail { background: #fee2e2; color: #b91c1c; }
.npl-intel-check-icon--warn { background: #fef9c3; color: #a16207; }

/* Self-cert badge */
.npl-intel-self-cert {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #dcfce7;
  color: #15803d;
  border-radius: 8px;
  padding: 6px 12px;
  font-family: 'Comfortaa', system-ui, sans-serif;
  font-size: 0.78rem;
  font-weight: 700;
  margin-bottom: 12px;
}

/* Expandable risk details */
.npl-intel-risk-toggle {
  background: none;
  border: none;
  color: #c2262b;
  font-family: 'Comfortaa', system-ui, sans-serif;
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  padding: 0;
  display: flex;
  align-items: center;
  gap: 4px;
  margin-top: 6px;
  transition: color 0.15s ease;
}

.npl-intel-risk-toggle:hover {
  color: #a81f24;
}

.npl-intel-risk-toggle__arrow {
  transition: transform 0.22s ease;
  font-size: 0.7rem;
}

.npl-intel-risk-toggle.npl-intel-open .npl-intel-risk-toggle__arrow {
  transform: rotate(180deg);
}

.npl-intel-risk-details {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
}

.npl-intel-risk-details.npl-intel-open {
  max-height: 400px;
}

.npl-intel-risk-details__content {
  padding-top: 12px;
  font-family: 'Comfortaa', system-ui, sans-serif;
  font-size: 0.82rem;
  color: #444;
  line-height: 1.6;
}

/* ----------------------------------------------------------
   9. ARV CALCULATOR
   ---------------------------------------------------------- */

.npl-intel-arv {
  background: #ffffff;
  border: 1.5px solid #e5e7eb;
  border-radius: 12px;
  padding: 20px;
  margin: 20px 0;
}

.npl-intel-arv__inputs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 16px;
}

.npl-intel-arv__field {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.npl-intel-arv__label {
  font-family: 'Comfortaa', system-ui, sans-serif;
  font-size: 0.75rem;
  font-weight: 600;
  color: #666;
}

.npl-intel-arv__input {
  height: 44px;
  border: 1.5px solid #e5e7eb;
  border-radius: 8px;
  padding: 0 12px;
  font-family: 'Comfortaa', system-ui, sans-serif;
  font-size: 0.875rem;
  color: #1a1a1a;
  outline: none;
  transition: border-color 0.18s ease;
  width: 100%;
}

.npl-intel-arv__input:focus {
  border-color: #c2262b;
}

/* Result card */
.npl-intel-arv-result {
  background: #f9f9f9;
  border-radius: 10px;
  padding: 14px 16px;
  animation: npl-intel-fade-in 0.22s ease both;
}

.npl-intel-arv-result__row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 6px;
}

.npl-intel-arv-result__key {
  font-family: 'Comfortaa', system-ui, sans-serif;
  font-size: 0.8rem;
  color: #666;
}

.npl-intel-arv-result__val {
  font-family: 'Comfortaa', system-ui, sans-serif;
  font-size: 0.92rem;
  font-weight: 700;
  color: #1a1a1a;
}

/* Viability gauge */
.npl-intel-viability {
  margin-top: 12px;
}

.npl-intel-viability__label {
  display: flex;
  justify-content: space-between;
  font-family: 'Comfortaa', system-ui, sans-serif;
  font-size: 0.75rem;
  color: #666;
  margin-bottom: 6px;
}

.npl-intel-viability__score {
  font-weight: 700;
  font-size: 0.9rem;
}

.npl-intel-viability__score--high   { color: #16a34a; }
.npl-intel-viability__score--medium { color: #d97706; }
.npl-intel-viability__score--low    { color: #c2262b; }

.npl-intel-viability__track {
  height: 8px;
  background: #e5e7eb;
  border-radius: 999px;
  overflow: hidden;
}

.npl-intel-viability__fill {
  height: 100%;
  border-radius: 999px;
  transition: width 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.npl-intel-viability__fill--high   { background: #16a34a; }
.npl-intel-viability__fill--medium { background: #d97706; }
.npl-intel-viability__fill--low    { background: #c2262b; }

/* ----------------------------------------------------------
   10. COLLABORATION HUB
   ---------------------------------------------------------- */

.npl-intel-collab {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  background: #f9f9f9;
  border: 1.5px solid #e5e7eb;
  border-radius: 10px;
  margin: 14px 0;
  flex-wrap: wrap;
}

.npl-intel-collab__avatars {
  display: flex;
  margin-right: 4px;
}

.npl-intel-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #c2262b;
  color: #ffffff;
  font-family: 'Comfortaa', system-ui, sans-serif;
  font-size: 0.72rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid #fff;
  margin-left: -8px;
  flex-shrink: 0;
}

.npl-intel-avatar:first-child {
  margin-left: 0;
}

.npl-intel-avatar--secondary {
  background: #2563eb;
}

.npl-intel-avatar--tertiary {
  background: #7c3aed;
}

.npl-intel-collab__status {
  font-family: 'Comfortaa', system-ui, sans-serif;
  font-size: 0.8rem;
  color: #444;
  flex: 1;
}

.npl-intel-collab__status strong {
  color: #1a1a1a;
}

.npl-intel-viewing-bar {
  display: flex;
  align-items: center;
  gap: 6px;
  font-family: 'Comfortaa', system-ui, sans-serif;
  font-size: 0.75rem;
  color: #16a34a;
  font-weight: 600;
}

.npl-intel-viewing-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #16a34a;
  animation: npl-intel-pulse 1.8s ease-in-out infinite;
}

.npl-intel-btn-invite {
  display: flex;
  align-items: center;
  gap: 6px;
  height: 34px;
  padding: 0 14px;
  background: #c2262b;
  color: #ffffff;
  border: none;
  border-radius: 8px;
  font-family: 'Comfortaa', system-ui, sans-serif;
  font-size: 0.78rem;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.18s ease;
  flex-shrink: 0;
}

.npl-intel-btn-invite:hover {
  background: #a81f24;
}

/* ----------------------------------------------------------
   11. ADAPTIVE MORPHING STATES
   ---------------------------------------------------------- */

/* Minimal mode — collapses non-required fields */
.npl-intel-morphed-minimal .npl-intel-optional-field {
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  margin: 0;
  padding-top: 0;
  padding-bottom: 0;
  transition: max-height 0.4s ease, opacity 0.3s ease, margin 0.3s ease;
  pointer-events: none;
}

.npl-intel-morphed-minimal .npl-intel-optional-field.npl-intel-expanding {
  max-height: 200px;
  opacity: 1;
  pointer-events: auto;
}

.npl-intel-minimal-hint {
  display: none;
  font-family: 'Comfortaa', system-ui, sans-serif;
  font-size: 0.8rem;
  color: #666;
  text-align: center;
  margin-bottom: 12px;
}

.npl-intel-morphed-minimal .npl-intel-minimal-hint {
  display: block;
}

/* Fast-track shortcut bar */
.npl-intel-morphed-fast-track .npl-intel-fast-track-bar {
  display: flex;
}

.npl-intel-fast-track-bar {
  display: none;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  background: #fde8e9;
  border: 1.5px solid #f4b8ba;
  border-radius: 10px;
  padding: 10px 16px;
  margin-bottom: 16px;
  animation: npl-intel-fade-in 0.28s ease both;
}

.npl-intel-fast-track-bar__text {
  font-family: 'Comfortaa', system-ui, sans-serif;
  font-size: 0.82rem;
  color: #1a1a1a;
  line-height: 1.45;
}

.npl-intel-fast-track-bar__text strong {
  color: #c2262b;
}

.npl-intel-btn-fast-track {
  display: flex;
  align-items: center;
  gap: 6px;
  height: 38px;
  padding: 0 16px;
  background: #c2262b;
  color: #ffffff;
  border: none;
  border-radius: 10px;
  font-family: 'Comfortaa', system-ui, sans-serif;
  font-size: 0.82rem;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
  flex-shrink: 0;
  transition: background 0.18s ease;
}

.npl-intel-btn-fast-track:hover {
  background: #a81f24;
}

/* Reassurance message card */
.npl-intel-morphed-reassurance .npl-intel-reassurance-card {
  display: block;
}

.npl-intel-reassurance-card {
  display: none;
  background: #fff8f8;
  border: 1.5px solid #fde8e9;
  border-radius: 12px;
  padding: 16px 18px;
  margin-bottom: 16px;
  animation: npl-intel-fade-in 0.28s ease both;
}

.npl-intel-reassurance-card__icon {
  font-size: 1.4rem;
  margin-bottom: 6px;
  display: block;
}

.npl-intel-reassurance-card__title {
  font-family: 'Comfortaa', system-ui, sans-serif;
  font-size: 0.88rem;
  font-weight: 700;
  color: #1a1a1a;
  margin-bottom: 4px;
}

.npl-intel-reassurance-card__text {
  font-family: 'Comfortaa', system-ui, sans-serif;
  font-size: 0.82rem;
  color: #444;
  line-height: 1.6;
}

/* ----------------------------------------------------------
   12. CROSS-FORM DNA BADGE
   ---------------------------------------------------------- */

.npl-intel-dna-badge {
  position: absolute;
  top: 16px;
  right: 16px;
  display: flex;
  align-items: center;
  gap: 6px;
  background: #ffffff;
  border: 1.5px solid #e5e7eb;
  border-radius: 999px;
  padding: 5px 12px 5px 8px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
  font-family: 'Comfortaa', system-ui, sans-serif;
  font-size: 0.72rem;
  font-weight: 700;
  color: #444;
  z-index: 100;
  animation: npl-intel-fade-in 0.3s ease 0.5s both;
  pointer-events: none;
}

.npl-intel-dna-badge__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #c2262b;
  flex-shrink: 0;
}

.npl-intel-dna-badge--returning .npl-intel-dna-badge__dot {
  background: #16a34a;
}

.npl-intel-dna-badge--multi .npl-intel-dna-badge__dot {
  background: #2563eb;
}

/* ----------------------------------------------------------
   13. LOADING / SKELETON STATES
   ---------------------------------------------------------- */

/* Pulsing skeleton placeholder */
.npl-intel-loading {
  background: linear-gradient(
    90deg,
    #f0f0f0 25%,
    #e0e0e0 50%,
    #f0f0f0 75%
  );
  background-size: 800px 100%;
  animation: npl-intel-skeleton 1.4s ease-in-out infinite;
  border-radius: 6px;
}

.npl-intel-skeleton-line {
  height: 14px;
  border-radius: 6px;
  margin-bottom: 10px;
}

.npl-intel-skeleton-line:last-child {
  margin-bottom: 0;
  width: 65%;
}

.npl-intel-skeleton-block {
  height: 80px;
  border-radius: 10px;
  margin-bottom: 10px;
}

.npl-intel-skeleton-thumb {
  aspect-ratio: 4 / 3;
  border-radius: 10px;
}

/* Spinner */
.npl-intel-spinner-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px 0;
}

.npl-intel-spinner {
  width: 36px;
  height: 36px;
  border: 3px solid #e5e7eb;
  border-top-color: #c2262b;
  border-radius: 50%;
  animation: npl-intel-spin 0.75s linear infinite;
}

.npl-intel-spinner--sm {
  width: 20px;
  height: 20px;
  border-width: 2px;
}

.npl-intel-spinner--lg {
  width: 52px;
  height: 52px;
  border-width: 4px;
}

/* Inline loading state for buttons */
.npl-intel-btn-loading {
  position: relative;
  color: transparent !important;
  pointer-events: none;
}

.npl-intel-btn-loading::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 20px;
  height: 20px;
  border: 2px solid rgba(255, 255, 255, 0.4);
  border-top-color: #ffffff;
  border-radius: 50%;
  animation: npl-intel-spin 0.75s linear infinite;
}

/* ----------------------------------------------------------
   MOBILE RESPONSIVE (max 640px)
   ---------------------------------------------------------- */

@media (max-width: 640px) {

  /* Consent */
  .npl-intel-consent {
    padding: 20px 18px 18px;
  }

  .npl-intel-consent__actions {
    flex-direction: column;
  }

  .npl-intel-btn-accept,
  .npl-intel-btn-decline {
    width: 100%;
    flex: none;
  }

  /* Chat toggle */
  .npl-intel-chat-toggle {
    right: 16px;
    bottom: 16px;
    height: 52px;
    padding: 0 16px;
    font-size: 0.82rem;
  }

  /* Chat panel: full-width on mobile */
  .npl-intel-chat-panel {
    width: 100%;
    border-radius: 12px;
    min-height: 400px;
  }

  /* Scoper: single-column thumbnails */
  .npl-intel-thumb-grid {
    grid-template-columns: 1fr;
  }

  .npl-intel-dropzone {
    padding: 28px 16px;
  }

  /* Voice: larger touch target */
  .npl-intel-mic-btn {
    width: 64px;
    height: 64px;
    min-width: 48px;
    min-height: 48px;
  }

  .npl-intel-chat-mic,
  .npl-intel-chat-send {
    width: 48px;
    height: 48px;
    min-width: 48px;
    min-height: 48px;
  }

  /* Friction oracle: bottom sheet on mobile */
  .npl-intel-friction {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    width: 100%;
    max-width: 100%;
    border-radius: 16px 16px 0 0;
    box-shadow: 0 -4px 24px rgba(0, 0, 0, 0.14);
    z-index: 7500;
  }

  .npl-intel-friction::before {
    display: none;
  }

  /* Scope card */
  .npl-intel-scope-card__header {
    padding: 14px 16px;
  }

  .npl-intel-scope-card__content {
    padding: 14px 16px 16px;
  }

  .npl-intel-cost-range {
    font-size: 1.2rem;
  }

  /* Gantt: vertical stack */
  .npl-intel-gantt {
    overflow-x: hidden;
  }

  .npl-intel-gantt__grid {
    min-width: unset;
    gap: 14px;
  }

  .npl-intel-gantt__row {
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
  }

  .npl-intel-gantt__row-label {
    width: auto;
    text-align: left;
    font-weight: 600;
    color: #1a1a1a;
  }

  .npl-intel-gantt__track {
    width: 100%;
  }

  .npl-intel-gantt__axis {
    display: none;
  }

  /* ARV inputs: single column */
  .npl-intel-arv__inputs {
    grid-template-columns: 1fr;
  }

  /* Collaboration hub */
  .npl-intel-collab {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }

  .npl-intel-btn-invite {
    width: 100%;
    justify-content: center;
  }

  /* DNA badge */
  .npl-intel-dna-badge {
    top: 10px;
    right: 10px;
    font-size: 0.68rem;
    padding: 4px 10px 4px 7px;
  }

  /* Permit */
  .npl-intel-permit {
    padding: 16px;
  }

  /* ARV */
  .npl-intel-arv {
    padding: 16px;
  }
}

/* ----------------------------------------------------------
   UTILITY HELPERS
   ---------------------------------------------------------- */

.npl-intel-hidden {
  display: none !important;
}

.npl-intel-sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.npl-intel-divider {
  height: 1px;
  background: #f0f0f0;
  margin: 20px 0;
  border: none;
}

.npl-intel-text-muted {
  color: #666;
  font-size: 0.82rem;
}

.npl-intel-text-brand {
  color: #c2262b;
}

/* Focus-visible ring consistent with brand */
[class*="npl-intel-"]:focus-visible {
  outline: 3px solid #c2262b;
  outline-offset: 2px;
}
