@charset "UTF-8";
*, *::before, *::after {
  box-sizing: border-box;
}

html, body {
  margin: 0;
  padding: 0;
  font-family: system-ui, -apple-system, sans-serif;
  font-size: 1rem;
  background: #0f172a;
  color: #f9fafb;
  line-height: 1.6;
}

a {
  color: #6366f1;
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

h1, h2, h3, h4 {
  margin: 0 0 1rem;
  line-height: 1.2;
}

p {
  margin: 0 0 1rem;
}

.text-muted {
  color: #9ca3af;
}

.container {
  max-width: 720px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.main {
  padding-top: 64px;
  min-height: 100vh;
}

.hero {
  padding: 3rem 0;
}

.btn {
  display: inline-flex;
  align-items: center;
  padding: 0.5rem 1.5rem;
  border-radius: 6px;
  font-size: 1rem;
  font-weight: 500;
  cursor: pointer;
  border: none;
  transition: opacity 0.15s;
}
.btn:hover {
  opacity: 0.85;
  text-decoration: none;
}
.btn-primary {
  background: #6366f1;
  color: #fff;
}
.btn-ghost {
  background: transparent;
  color: #f9fafb;
  border: 1px solid #334155;
}

.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 56px;
  background: #1e293b;
  border-bottom: 1px solid #334155;
  z-index: 100;
}
.nav-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 1.5rem;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.nav-links {
  display: flex;
  gap: 1.5rem;
  align-items: center;
}
.nav-link {
  font-size: 0.875rem;
  color: #9ca3af;
  transition: color 0.15s;
}
.nav-link:hover {
  color: #f9fafb;
  text-decoration: none;
}
.nav-brand {
  font-weight: 600;
  font-size: 1.125rem;
  color: #f9fafb;
}
.nav-brand:hover {
  text-decoration: none;
}

.signal-widget {
  display: grid;
  grid-template-columns: 280px 1fr;
  min-height: calc(100vh - 56px);
  max-width: 1100px;
  margin: 0 auto;
  padding: 2rem;
  gap: 2rem;
}
@media (max-width: 768px) {
  .signal-widget {
    grid-template-columns: 1fr;
    padding: 1rem;
    gap: 1rem;
    min-height: auto;
  }
}

.signal-panel {
  background: #1e293b;
  border: 1px solid #334155;
  border-radius: 12px;
  overflow: hidden;
}
.signal-panel.signal-panel--score {
  border-color: rgba(196, 181, 253, 0.2);
}

@keyframes orb-float {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-6px);
  }
}
@keyframes orb-enter {
  0% {
    transform: scale(0.75);
    opacity: 0;
  }
  70% {
    transform: scale(1.06);
    opacity: 1;
  }
  100% {
    transform: scale(1);
    opacity: 1;
  }
}
@keyframes orb-pulse {
  0% {
    transform: scale(1);
  }
  40% {
    transform: scale(1.07);
  }
  100% {
    transform: scale(1);
  }
}
.signal-panel--score {
  display: flex;
  flex-direction: column;
  padding: 1.5rem;
  gap: 1rem;
}
@media (max-width: 768px) {
  .signal-panel--score {
    order: 2;
    padding: 1rem;
  }
}

.signal-score-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
}

.signal-score-label {
  font-size: 0.875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #c4b5fd;
}

.signal-confidence-label {
  font-size: 0.875rem;
  color: #9ca3af;
}

.signal-overall-wrap {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0.5rem 0;
}
.signal-overall-wrap.is-visible {
  animation: orb-enter 0.6s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}
.signal-overall-wrap.is-visible .signal-ring {
  animation: orb-float 3.5s ease-in-out infinite;
  animation-delay: 0.6s;
}
.signal-overall-wrap.is-pulsing {
  animation: orb-pulse 0.5s ease-out;
}

.signal-ring {
  width: 120px;
  height: 120px;
  transform: rotate(-90deg);
}
.signal-ring .signal-ring-track {
  fill: none;
  stroke: #334155;
  stroke-width: 8;
}
.signal-ring .signal-ring-fill {
  fill: none;
  stroke: #9d6ef5;
  stroke-width: 8;
  stroke-linecap: round;
  transition: stroke-dashoffset 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.signal-overall-score {
  position: absolute;
  font-size: 2rem;
  font-weight: 700;
  color: #c4b5fd;
  line-height: 1;
}

.signal-confidence-bar-wrap {
  height: 4px;
  background: #334155;
  border-radius: 2px;
  overflow: hidden;
}

.signal-confidence-bar {
  height: 100%;
  width: 0;
  background: #9d6ef5;
  border-radius: 2px;
  transition: width 0.5s ease;
}

.signal-dimensions {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-top: 0.5rem;
}

.signal-dimension-header {
  display: flex;
  justify-content: space-between;
  margin-bottom: 0.25rem;
}

.signal-dimension-name {
  font-size: 0.875rem;
  color: #9ca3af;
}

.signal-dimension-value {
  font-size: 0.875rem;
  font-weight: 600;
  color: #f9fafb;
}

.signal-bar-track {
  height: 6px;
  background: #334155;
  border-radius: 3px;
  overflow: hidden;
}

.signal-bar-fill {
  height: 100%;
  width: 0;
  background: #059669;
  border-radius: 3px;
  transition: width 0.8s ease;
}

#skills-bar {
  transition-delay: 0.1s;
}

#alignment-bar {
  transition-delay: 0.3s;
}

#personality-bar {
  transition-delay: 0.5s;
}

.signal-reason {
  font-size: 0.875rem;
  color: #9ca3af;
  line-height: 1.5;
  opacity: 0;
  transition: opacity 0.4s ease;
  min-height: 0;
}
.signal-reason.visible {
  opacity: 1;
}

.signal-score-footer {
  margin-top: auto;
}

.signal-score-footer-text {
  font-size: 0.75rem;
  color: #9ca3af;
  opacity: 0.6;
}

.signal-next-step {
  border-top: 1px solid #334155;
  padding-top: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.signal-next-step-heading {
  font-size: 0.875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #9ca3af;
}

.signal-next-step-label {
  font-size: 1rem;
  font-weight: 600;
  color: #f9fafb;
  line-height: 1.3;
}

.signal-next-step-actions {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.signal-next-btn {
  width: 100%;
  justify-content: center;
  font-size: 0.875rem;
  text-align: center;
}

.signal-lead-capture {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  margin-top: 0.25rem;
  padding-top: 0.5rem;
  border-top: 1px solid #334155;
}

.signal-lead-input {
  width: 100%;
  background: #0f172a;
  border: 1px solid #334155;
  border-radius: 6px;
  padding: 0.25rem 0.5rem;
  color: #f9fafb;
  font-size: 0.875rem;
  font-family: system-ui, -apple-system, sans-serif;
}
.signal-lead-input::placeholder {
  color: #9ca3af;
}
.signal-lead-input:focus {
  outline: none;
  border-color: #6366f1;
}

.signal-lead-btn {
  width: 100%;
  justify-content: center;
  font-size: 0.875rem;
}

.signal-lead-hint {
  font-size: 0.75rem;
  color: #9ca3af;
  margin: 0;
}

.signal-lead-sent {
  font-size: 0.875rem;
  color: #9ca3af;
  margin: 0;
}

.signal-score-bar-mobile {
  display: none;
  align-items: center;
  gap: 10px;
  padding: 8px 16px;
  background: #1e293b;
  border: 1px solid rgba(196, 181, 253, 0.2);
  border-radius: 10px;
  order: 0;
}
@media (max-width: 768px) {
  .signal-score-bar-mobile.is-visible {
    display: flex;
  }
}

.signal-score-bar-num {
  font-size: 22px;
  font-weight: 700;
  color: #c4b5fd;
  line-height: 1;
}

.signal-score-bar-label {
  font-size: 12px;
  color: #9ca3af;
}

.signal-panel--chat {
  display: flex;
  flex-direction: column;
  height: calc(100vh - 56px - 2 * 2rem);
  max-height: 800px;
}
@media (max-width: 768px) {
  .signal-panel--chat {
    order: 1;
    height: calc(100vh - 56px - 80px);
    max-height: none;
  }
}

@media (max-width: 768px) {
  .signal-form {
    position: sticky;
    bottom: 0;
    background: #0f172a;
    z-index: 1;
  }
}
.signal-persona-wrap {
  padding: 2rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.signal-persona-prompt {
  color: #9ca3af;
  font-size: 1rem;
  margin: 0;
}

.signal-persona-btns {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.signal-persona-btn {
  padding: 0.5rem 1.5rem;
  border-radius: 24px;
  background: transparent;
  border: 1px solid #334155;
  color: #f9fafb;
  font-size: 0.875rem;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s;
}
.signal-persona-btn:hover {
  background: rgba(99, 102, 241, 0.12);
  border-color: #6366f1;
}
.signal-persona-btn:active {
  background: rgba(99, 102, 241, 0.2);
}

.signal-messages {
  flex: 1;
  overflow-y: auto;
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  scroll-behavior: smooth;
}
.signal-messages:empty {
  display: none;
}

.signal-message {
  max-width: 85%;
  line-height: 1.55;
  font-size: 1rem;
  white-space: pre-wrap;
  word-break: break-word;
}
.signal-message--user {
  align-self: flex-end;
  background: #6366f1;
  color: #fff;
  padding: 0.5rem 1rem;
  border-radius: 18px 18px 4px 18px;
}
.signal-message--assistant {
  align-self: flex-start;
  color: #f9fafb;
  padding: 0.5rem 0;
}

.signal-thinking {
  display: flex;
  gap: 4px;
  padding: 0.5rem 0;
}
.signal-thinking span {
  width: 7px;
  height: 7px;
  background: #9ca3af;
  border-radius: 50%;
  animation: signal-bounce 1.2s infinite ease-in-out;
}
.signal-thinking span:nth-child(2) {
  animation-delay: 0.2s;
}
.signal-thinking span:nth-child(3) {
  animation-delay: 0.4s;
}

@keyframes signal-bounce {
  0%, 60%, 100% {
    transform: translateY(0);
    opacity: 0.4;
  }
  30% {
    transform: translateY(-6px);
    opacity: 1;
  }
}
.signal-form {
  display: flex;
  align-items: flex-end;
  gap: 0.5rem;
  padding: 1rem;
  border-top: 1px solid #334155;
}

.signal-input {
  flex: 1;
  background: transparent;
  border: 1px solid #334155;
  border-radius: 8px;
  padding: 0.5rem 1rem;
  color: #f9fafb;
  font-size: 1rem;
  font-family: system-ui, -apple-system, sans-serif;
  line-height: 1.5;
  resize: none;
  max-height: 160px;
  overflow-y: auto;
  transition: border-color 0.15s;
}
.signal-input::placeholder {
  color: #9ca3af;
}
.signal-input:focus {
  outline: none;
  border-color: #6366f1;
}
.signal-input:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

.signal-send {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #6366f1;
  color: #fff;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: opacity 0.15s;
}
.signal-send:hover {
  opacity: 0.85;
}
.signal-send:disabled {
  opacity: 0.35;
  cursor: not-allowed;
}

.signal-chat-footer {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  border-top: 1px solid #334155;
}

.signal-brand-logo {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}
.signal-brand-logo:hover {
  opacity: 0.8;
}

.signal-logo-img {
  height: 20px;
  width: auto;
  display: block;
}

.signal-brand-sub {
  font-size: 0.72rem;
  color: #9ca3af;
  line-height: 1.3;
}

.signal-reset-wrap {
  padding-bottom: 0.5rem;
  border-bottom: 1px solid #334155;
}

.signal-reset-btn {
  font-size: 0.875rem;
  color: #9ca3af;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  text-decoration: underline;
}
.signal-reset-btn:hover {
  color: #f9fafb;
}

@keyframes signal-float {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-10px);
  }
}
.signal-hero {
  max-width: 720px;
  margin: 0 auto;
  padding: 3rem 1.5rem 0;
}
@media (max-width: 768px) {
  .signal-hero {
    padding: 2rem 1.5rem 0;
  }
}

.signal-hero--home {
  text-align: center;
  padding-top: 3rem;
}
.signal-hero--home .signal-hero-sub {
  margin-left: auto;
  margin-right: auto;
}
.signal-hero--home .signal-cta-row {
  justify-content: center;
}

.signal-hero-eyebrow {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.25rem;
  font-size: 0.875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #6366f1;
  margin-bottom: 1rem;
}

.signal-hero-eyebrow-icon {
  width: 20px;
  height: 20px;
  object-fit: contain;
}

.signal-hero-headline {
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 700;
  line-height: 1.15;
  margin-bottom: 1.5rem;
  color: #f9fafb;
}

.signal-hero-sub {
  font-size: 1.125rem;
  color: #9ca3af;
  line-height: 1.6;
  max-width: 560px;
  margin-bottom: 2rem;
}

.signal-cta-row {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.signal-how {
  max-width: 720px;
  margin: 0 auto;
  padding: 3rem 1.5rem;
}

.signal-how-title {
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 1rem;
}

.signal-how-sub {
  font-size: 1rem;
  color: #9ca3af;
  line-height: 1.6;
  margin-bottom: 2rem;
}

.signal-steps {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.signal-step {
  display: grid;
  grid-template-columns: 32px 1fr;
  gap: 1rem;
  align-items: start;
}

.signal-step-num {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(99, 102, 241, 0.15);
  color: #6366f1;
  font-size: 0.875rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.signal-step-title {
  font-weight: 600;
  margin-bottom: 0.25rem;
}

.signal-step-desc {
  font-size: 0.875rem;
  color: #9ca3af;
  line-height: 1.6;
  margin: 0;
}

.signal-footer-cta {
  max-width: 720px;
  margin: 0 auto;
  padding: 3rem 1.5rem;
  border-top: 1px solid #334155;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.signal-footer-cta-text {
  font-size: 1rem;
  color: #9ca3af;
}

.signal-auth-wrap {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  padding: 3rem 1.5rem;
  min-height: calc(100vh - 56px);
}

.signal-auth-card {
  background: #1e293b;
  border: 1px solid #334155;
  border-radius: 16px;
  padding: 2rem;
  width: 100%;
  max-width: 480px;
}

.signal-auth-title {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.signal-auth-sub {
  color: #9ca3af;
  margin-bottom: 2rem;
  line-height: 1.6;
}

.signal-auth-form {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.signal-field {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.signal-label {
  font-size: 0.875rem;
  font-weight: 500;
  color: #f9fafb;
  display: flex;
  justify-content: space-between;
  align-items: baseline;
}

.signal-label-hint {
  font-size: 0.75rem;
  color: #9ca3af;
  font-weight: 400;
}

.signal-input-field {
  background: #0f172a;
  border: 1px solid #334155;
  border-radius: 8px;
  padding: 0.5rem 1rem;
  color: #f9fafb;
  font-size: 1rem;
  font-family: system-ui, -apple-system, sans-serif;
  width: 100%;
  transition: border-color 0.15s;
}
.signal-input-field::placeholder {
  color: #9ca3af;
}
.signal-input-field:focus {
  outline: none;
  border-color: #6366f1;
}

.signal-field-hint {
  font-size: 0.75rem;
  color: #9ca3af;
  margin: 0;
}

.signal-auth-btn {
  width: 100%;
  justify-content: center;
}

.signal-error {
  font-size: 0.875rem;
  color: #f87171;
  margin: 0;
}

.signal-code-input {
  font-size: 1.5rem;
  font-family: monospace;
  letter-spacing: 0.2em;
  text-align: center;
}

.signal-back-btn {
  background: none;
  border: none;
  color: #9ca3af;
  font-size: 0.875rem;
  cursor: pointer;
  padding: 0;
  text-align: left;
}
.signal-back-btn:hover {
  color: #f9fafb;
}

.dash-wrap {
  max-width: 760px;
  margin: 0 auto;
  padding: 2rem 1.5rem 3rem;
}

.dash-loading {
  padding: 3rem;
  text-align: center;
}

.dash-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 2rem;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.dash-title {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 0.25rem;
}

.dash-signal-id {
  font-size: 0.875rem;
  margin: 0;
}

.dash-sections {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.dash-section {
  background: #1e293b;
  border: 1px solid #334155;
  border-radius: 12px;
  padding: 1.5rem;
}

.dash-section-title {
  font-size: 1.125rem;
  font-weight: 600;
  margin-bottom: 0.25rem;
}

.dash-section-desc {
  font-size: 0.875rem;
  color: #9ca3af;
  margin-bottom: 1.5rem;
  line-height: 1.6;
}

.dash-embed-wrap {
  position: relative;
  background: #0f172a;
  border: 1px solid #334155;
  border-radius: 8px;
  padding: 1rem;
  padding-right: 5rem;
}

.dash-embed-code {
  font-family: monospace;
  font-size: 0.875rem;
  color: #f9fafb;
  word-break: break-all;
  white-space: pre-wrap;
  display: block;
}

.dash-copy-btn {
  position: absolute;
  top: 0.5rem;
  right: 0.5rem;
  padding: 0.25rem 0.5rem;
  background: #334155;
  border: none;
  border-radius: 6px;
  color: #f9fafb;
  font-size: 0.875rem;
  cursor: pointer;
  transition: background 0.15s;
}
.dash-copy-btn:hover {
  background: rgb(70.125, 89.375, 116.875);
}

.dash-textarea {
  width: 100%;
  background: #0f172a;
  border: 1px solid #334155;
  border-radius: 8px;
  padding: 0.5rem 1rem;
  color: #f9fafb;
  font-size: 0.875rem;
  font-family: system-ui, -apple-system, sans-serif;
  line-height: 1.6;
  resize: vertical;
  min-height: 160px;
}
.dash-textarea::placeholder {
  color: #9ca3af;
}
.dash-textarea:focus {
  outline: none;
  border-color: #6366f1;
}

.dash-personas-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-bottom: 1rem;
}

.dash-persona-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 0.5rem;
  background: #0f172a;
  border: 1px solid #334155;
  border-radius: 8px;
  padding: 1rem;
}

.dash-persona-fields {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.dash-persona-remove {
  background: none;
  border: none;
  color: #9ca3af;
  font-size: 1.125rem;
  cursor: pointer;
  padding: 0 0.25rem;
  align-self: flex-start;
}
.dash-persona-remove:hover {
  color: #f87171;
}

.dash-persona-opener {
  resize: vertical;
  min-height: 60px;
  font-family: system-ui, -apple-system, sans-serif;
  font-size: 0.875rem;
}

.dash-add-persona-btn {
  font-size: 0.875rem;
}

.dash-apikey-row {
  display: flex;
  gap: 0.5rem;
  align-items: flex-start;
  margin-bottom: 0.5rem;
}

.dash-apikey-input {
  flex: 1;
}

.dash-form-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-top: 1rem;
}

.dash-save-status {
  font-size: 0.875rem;
  color: #9ca3af;
}

.dash-upload-label {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 1rem 1.5rem;
  background: #0f172a;
  border: 1px dashed #334155;
  border-radius: 8px;
  cursor: pointer;
  font-size: 0.875rem;
  color: #9ca3af;
  transition: border-color 0.15s, color 0.15s;
}
.dash-upload-label:hover {
  border-color: #6366f1;
  color: #f9fafb;
}
.dash-upload-label.has-file {
  border-color: #6366f1;
  color: #f9fafb;
  border-style: solid;
}

.dash-upload-input {
  display: none;
}

.dash-upload-icon {
  font-size: 1.2rem;
}

.dash-upload-hint {
  margin-top: 0.5rem;
  font-size: 0.875rem;
  color: #9ca3af;
  line-height: 1.6;
}
.dash-upload-hint strong {
  color: #f9fafb;
  font-weight: 600;
}
.dash-upload-hint code {
  font-family: monospace;
  background: #0f172a;
  padding: 0 4px;
  border-radius: 3px;
  font-size: 0.85em;
}

.dash-progress-wrap {
  margin-top: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.dash-progress-label {
  font-size: 0.875rem;
  color: #9ca3af;
}

.dash-progress-track {
  height: 6px;
  background: #0f172a;
  border: 1px solid #334155;
  border-radius: 3px;
  overflow: hidden;
}

.dash-progress-fill {
  height: 100%;
  background: #6366f1;
  border-radius: 3px;
  transition: width 0.4s ease;
  width: 0%;
}

.dash-context-stats {
  background: #0f172a;
  border: 1px solid #334155;
  border-radius: 8px;
  padding: 1rem;
  margin-bottom: 1rem;
  font-size: 0.875rem;
}

.dash-context-stat-row {
  display: flex;
  justify-content: space-between;
  color: #9ca3af;
  margin-bottom: 0.25rem;
}
.dash-context-stat-row:last-child {
  margin-bottom: 0;
}
.dash-context-stat-row strong {
  color: #f9fafb;
}

.dash-completeness-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 0.5rem;
  margin-top: 1rem;
}
@media (max-width: 640px) {
  .dash-completeness-grid {
    grid-template-columns: 1fr;
  }
}

.dash-completeness-card {
  background: #0f172a;
  border: 1px solid #334155;
  border-radius: 8px;
  padding: 0.5rem 1rem;
}

.dash-completeness-label {
  font-size: 0.875rem;
  font-weight: 600;
  margin-bottom: 0.25rem;
}

.dash-completeness-bar-track {
  height: 4px;
  background: #334155;
  border-radius: 2px;
  overflow: hidden;
  margin-bottom: 0.25rem;
}

.dash-completeness-bar-fill {
  height: 100%;
  background: #6366f1;
  border-radius: 2px;
  transition: width 0.4s ease;
}

.dash-completeness-pct {
  font-size: 0.75rem;
  color: #9ca3af;
}

.dash-gap-card {
  background: rgba(99, 102, 241, 0.08);
  border: 1px solid rgba(99, 102, 241, 0.25);
  border-radius: 8px;
  padding: 1rem 1.5rem;
  margin-top: 1rem;
}

.dash-gap-title {
  font-size: 0.875rem;
  font-weight: 600;
  color: #6366f1;
  margin-bottom: 0.25rem;
}

.dash-gap-desc {
  font-size: 0.875rem;
  color: #9ca3af;
  margin-bottom: 1rem;
  line-height: 1.5;
}

.dash-gap-fields {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.dash-gap-field label {
  display: block;
  font-size: 0.875rem;
  color: #9ca3af;
  margin-bottom: 0.25rem;
}

.dash-gap-input {
  width: 100%;
  background: #0f172a;
  border: 1px solid #334155;
  border-radius: 6px;
  padding: 0.25rem 0.5rem;
  color: #f9fafb;
  font-size: 0.875rem;
  font-family: system-ui, -apple-system, sans-serif;
}
.dash-gap-input:focus {
  outline: none;
  border-color: #6366f1;
}
.dash-gap-input::placeholder {
  color: #9ca3af;
}

.dash-links-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.5rem;
}
@media (max-width: 640px) {
  .dash-links-grid {
    grid-template-columns: 1fr;
  }
}

.dash-leads-list {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.dash-lead-row {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 1rem;
  align-items: center;
  background: #0f172a;
  border: 1px solid #334155;
  border-radius: 8px;
  padding: 0.5rem 1rem;
}

.dash-lead-score {
  font-size: 1.25rem;
  font-weight: 700;
  min-width: 2rem;
  text-align: center;
}
.dash-lead-score.score-high {
  color: #4ade80;
}
.dash-lead-score.score-mid {
  color: #6366f1;
}
.dash-lead-score.score-low {
  color: #9ca3af;
}

.dash-lead-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.dash-lead-name {
  font-size: 0.875rem;
  font-weight: 600;
  truncate: ellipsis;
  white-space: nowrap;
  overflow: hidden;
}

.dash-lead-meta {
  font-size: 0.75rem;
  color: #9ca3af;
}

.dash-lead-reason {
  font-size: 0.75rem;
  color: #9ca3af;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.dash-lead-action {
  font-size: 0.875rem;
  color: #6366f1;
  white-space: nowrap;
}

.dash-no-leads {
  font-size: 0.875rem;
  color: #9ca3af;
  text-align: center;
  padding: 1.5rem;
}

.dash-delete-btn {
  color: #f87171;
  border-color: #f87171;
}
.dash-delete-btn:hover {
  background: rgba(248, 113, 113, 0.1);
}

.eval-result-panel {
  margin-top: 1.5rem;
  padding: 1.5rem;
  background: #0f172a;
  border: 1px solid #334155;
  border-radius: 10px;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.eval-score-row {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.eval-overall-score {
  font-size: 2.5rem;
  font-weight: 800;
  line-height: 1;
}
.eval-overall-score .eval-score-denom {
  font-size: 1rem;
  font-weight: 400;
  color: #9ca3af;
  margin-left: 2px;
}
.eval-overall-score.score-high {
  color: #4ade80;
}
.eval-overall-score.score-mid {
  color: #6366f1;
}
.eval-overall-score.score-low {
  color: #9ca3af;
}

.eval-score-dims {
  display: flex;
  gap: 1.5rem;
}

.eval-score-dim {
  font-size: 0.875rem;
  color: #9ca3af;
}
.eval-score-dim strong {
  color: #f9fafb;
  margin-left: 4px;
}

.eval-recommendation {
  font-size: 0.875rem;
  font-weight: 600;
  color: #f9fafb;
  margin-left: auto;
}
@media (max-width: 640px) {
  .eval-recommendation {
    margin-left: 0;
  }
}

.eval-summary {
  font-size: 0.875rem;
  color: #9ca3af;
  line-height: 1.6;
  margin: 0;
}

.eval-items-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.eval-strength-item {
  font-size: 0.875rem;
  color: #4ade80;
}

.eval-gap-item {
  font-size: 0.875rem;
  color: #9ca3af;
}
.eval-gap-item.eval-gap-mod {
  color: #fbbf24;
}
.eval-gap-item.eval-gap-high {
  color: #f87171;
}

.eval-gap-frame {
  color: #9ca3af;
  font-style: italic;
}

.eval-evidence-note {
  font-size: 0.75rem;
  color: #9ca3af;
}

.eval-actions {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  align-items: center;
  margin-top: 0.25rem;
}

.eval-generated-panel {
  margin-top: 1rem;
  padding: 1rem;
  background: #0f172a;
  border: 1px solid #334155;
  border-radius: 8px;
}

.eval-generated-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.5rem;
  font-size: 0.875rem;
}

.eval-copy-btn {
  font-size: 0.75rem;
  padding: 2px 10px;
}

.eval-generated-text {
  font-family: inherit;
  font-size: 0.875rem;
  color: #9ca3af;
  white-space: pre-wrap;
  word-break: break-word;
  margin: 0;
  line-height: 1.6;
}

.eval-history-title {
  font-size: 1rem;
  font-weight: 600;
  margin: 1.5rem 0 0.5rem;
}

.eval-history-list {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.eval-history-row {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1rem;
  align-items: center;
  background: #0f172a;
  border: 1px solid #334155;
  border-radius: 8px;
  padding: 0.5rem 1rem;
}

.eval-history-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.eval-history-title-text {
  font-size: 0.875rem;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.signal-qualify-block {
  background: #1e293b;
  border: 1px solid #334155;
  border-radius: 12px;
  padding: 1.5rem;
  margin: 2rem 0;
  text-align: left;
}

.signal-qualify-heading {
  font-size: 0.875rem;
  font-weight: 600;
  color: #9ca3af;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 1rem;
}

.signal-qualify-list {
  list-style: none;
  padding: 0;
  margin: 0 0 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.signal-qualify-list li {
  padding-left: 1.25em;
  position: relative;
  color: #f9fafb;
  font-size: 1rem;
}
.signal-qualify-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: #6366f1;
  font-weight: 700;
}

.signal-qualify-note {
  font-size: 0.875rem;
  color: #9ca3af;
  margin: 0;
}

.signal-waitlist-form {
  display: flex;
  gap: 0.5rem;
  margin-top: 1.5rem;
  flex-wrap: wrap;
}

.signal-waitlist-input {
  flex: 1 1 220px;
  padding: 0.625rem 1rem;
  font-size: 1rem;
  border: 1px solid #334155;
  border-radius: 8px;
  background: #1e293b;
  color: #f9fafb;
  outline: none;
  transition: border-color 0.15s;
}
.signal-waitlist-input:focus {
  border-color: #6366f1;
}
.signal-waitlist-input::placeholder {
  color: #9ca3af;
}

.signal-waitlist-error {
  color: #e74c3c;
  font-size: 0.875rem;
  margin-top: 0.5rem;
}

.signal-waitlist-success {
  background: rgba(99, 102, 241, 0.08);
  border: 1px solid #6366f1;
  border-radius: 12px;
  padding: 1.5rem;
  margin-top: 1.5rem;
}

.signal-waitlist-success-msg {
  margin: 0;
  color: #f9fafb;
  font-size: 1rem;
}

.signal-waitlist-demo-link {
  margin-top: 1.5rem;
  font-size: 0.875rem;
  color: #9ca3af;
}
.signal-waitlist-demo-link a {
  color: #6366f1;
  text-decoration: none;
}
.signal-waitlist-demo-link a:hover {
  text-decoration: underline;
}

.signal-footer {
  text-align: center;
  padding: 2rem 1.5rem;
  border-top: 1px solid #334155;
  margin-top: auto;
}

.signal-footer-link {
  font-size: 0.875rem;
  color: #9ca3af;
  text-decoration: none;
  transition: color 0.15s;
}
.signal-footer-link:hover {
  color: #f9fafb;
}