/* 2026-07-08 Demo Project onboarding */
.projects-screen {
  min-height: calc(100vh - 92px);
  padding: 28px;
  background:
    radial-gradient(circle at top left, rgba(37, 99, 235, 0.08), transparent 34%),
    linear-gradient(180deg, #f8fbff 0%, #eef5ff 100%);
}

.demo-welcome-card,
.projects-page-head,
.project-card,
.projects-empty-card,
.projects-hidden-demo-card {
  border: 1px solid #cfe1ff;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.97);
  box-shadow: 0 18px 48px rgba(15, 23, 42, 0.08);
}

.demo-welcome-card {
  width: min(1180px, 100%);
  margin: 0 auto 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  padding: 24px;
}

.demo-welcome-card h2,
.projects-page-head h2 {
  margin: 2px 0 6px;
  color: #0f2f5f;
  font-size: clamp(1.45rem, 2vw, 2rem);
}

.demo-welcome-card p,
.projects-page-head p {
  margin: 0;
  color: #475569;
  font-size: 1rem;
  font-weight: 700;
}

.demo-welcome-actions,
.project-card-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.projects-page-head {
  width: min(1180px, 100%);
  margin: 0 auto 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 22px 24px;
}

.projects-list {
  width: min(1180px, 100%);
  margin: 0 auto;
  display: grid;
  gap: 16px;
}

.project-card {
  padding: 22px;
}

.project-card.is-demo {
  border-color: #93c5fd;
  box-shadow: 0 20px 52px rgba(37, 99, 235, 0.12);
}

.project-card-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  padding-bottom: 16px;
  border-bottom: 1px solid #dbeafe;
}

.project-card-eyebrow {
  margin: 0 0 6px;
  color: #2563eb;
  font-size: 0.75rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.project-card h3 {
  margin: 0;
  display: flex;
  align-items: center;
  gap: 10px;
  color: #0f172a;
  font-size: clamp(1.25rem, 2vw, 1.65rem);
}

.project-card-header p {
  margin: 8px 0 0;
  color: #475569;
  font-size: 1rem;
  font-weight: 750;
}

.project-folder-mark {
  width: 30px;
  height: 24px;
  display: inline-block;
  position: relative;
  border-radius: 7px;
  background: linear-gradient(135deg, #2563eb, #0f766e);
  box-shadow: 0 8px 16px rgba(37, 99, 235, 0.18);
}

.project-folder-mark::before {
  content: "";
  position: absolute;
  left: 3px;
  top: -5px;
  width: 14px;
  height: 8px;
  border-radius: 5px 5px 0 0;
  background: #60a5fa;
}

.demo-badge {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0 13px;
  border: 1px solid #bfdbfe;
  border-radius: 999px;
  background: #eff6ff;
  color: #1d4ed8;
  font-size: 0.78rem;
  font-weight: 950;
  letter-spacing: 0.1em;
}

.project-card-note {
  margin: 16px 0;
  padding: 12px 14px;
  border: 1px solid #dbeafe;
  border-radius: 12px;
  background: #f8fbff;
  color: #334155;
  font-weight: 750;
}

.demo-section-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin: 18px 0;
}

.demo-module-card {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 12px;
  min-height: 220px;
  padding: 16px;
  border: 1px solid #dbeafe;
  border-radius: 16px;
  background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
}

.demo-module-icon {
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  background: #0f2f5f;
  color: #fff;
  font-size: 0.74rem;
  font-weight: 950;
  box-shadow: 0 10px 22px rgba(15, 47, 95, 0.18);
}

.demo-module-card h4 {
  margin: 0 0 7px;
  color: #0f2f5f;
  font-size: 1.02rem;
}

.demo-module-card p {
  margin: 0 0 10px;
  color: #475569;
  font-size: 0.93rem;
  font-weight: 700;
  line-height: 1.45;
}

.demo-module-card ul {
  margin: 0 0 12px;
  padding-left: 18px;
  color: #334155;
  font-size: 0.9rem;
  font-weight: 700;
  line-height: 1.55;
}

.demo-module-link {
  min-height: 34px;
  border: 1px solid #bfdbfe;
  border-radius: 10px;
  padding: 0 10px;
  background: #eff6ff;
  color: #1d4ed8;
  font-weight: 900;
  cursor: pointer;
}

.demo-module-link:hover,
.demo-module-link:focus-visible {
  border-color: #2563eb;
  background: #dbeafe;
  outline: none;
}

.demo-sample-panel {
  margin: 18px 0;
  padding: 18px;
  border: 1px solid #bfdbfe;
  border-radius: 18px;
  background: linear-gradient(180deg, #f8fbff 0%, #ffffff 100%);
}

.demo-sample-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 14px;
  padding-bottom: 12px;
  border-bottom: 1px solid #dbeafe;
}

.demo-sample-head h4 {
  margin: 0;
  color: #0f2f5f;
  font-size: 1.18rem;
}

.demo-sample-head > span {
  flex: 0 0 auto;
  padding: 7px 11px;
  border: 1px solid #bfdbfe;
  border-radius: 999px;
  background: #eff6ff;
  color: #1d4ed8;
  font-size: 0.76rem;
  font-weight: 950;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.demo-sample-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.demo-sample-card {
  min-width: 0;
  padding: 16px;
  border: 1px solid #dbeafe;
  border-radius: 16px;
  background: #ffffff;
  box-shadow: 0 14px 32px rgba(15, 23, 42, 0.06);
}

.demo-sample-card-wide {
  grid-column: 1 / -1;
}

.demo-sample-card h5 {
  margin: 0 0 12px;
  color: #0f2f5f;
  font-size: 1.02rem;
}

.demo-sample-card p {
  margin: 10px 0 0;
  color: #475569;
  font-size: 0.92rem;
  font-weight: 700;
  line-height: 1.5;
}

.demo-subject-pill,
.demo-photo-folder,
.demo-comment-box {
  display: grid;
  gap: 5px;
  padding: 12px;
  border: 1px solid #bfdbfe;
  border-radius: 12px;
  background: #eff6ff;
}

.demo-subject-pill strong,
.demo-photo-folder strong,
.demo-comment-box span,
.demo-comment-box strong {
  color: #0f2f5f;
  font-weight: 950;
}

.demo-subject-pill span,
.demo-photo-folder span {
  color: #334155;
  font-weight: 800;
}

.demo-comp-table {
  display: grid;
  gap: 8px;
  margin-top: 10px;
}

.demo-comp-row {
  display: grid;
  grid-template-columns: 86px 1fr auto;
  gap: 10px;
  align-items: center;
  padding: 10px;
  border: 1px solid #e0ecff;
  border-radius: 12px;
  background: #ffffff;
}

.demo-comp-row strong {
  color: #075985;
}

.demo-comp-row span {
  color: #1e293b;
  font-weight: 800;
}

.demo-comp-row em {
  color: #64748b;
  font-size: 0.86rem;
  font-style: normal;
  font-weight: 800;
}

.demo-market-summary {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin: 0 0 12px;
}

.demo-market-summary div {
  padding: 10px;
  border-radius: 12px;
  background: #f8fbff;
}

.demo-market-summary dt {
  color: #64748b;
  font-size: 0.72rem;
  font-weight: 950;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.demo-market-summary dd {
  margin: 3px 0 0;
  color: #0f172a;
  font-weight: 950;
}

.demo-metric-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.demo-metric-pill {
  display: grid;
  gap: 3px;
  padding: 10px;
  border-radius: 12px;
  background: #f8fbff;
}

.demo-metric-pill span,
.demo-metric-pill small {
  color: #475569;
  font-size: 0.75rem;
  font-weight: 850;
}

.demo-metric-pill strong {
  color: #0f172a;
  font-size: 1.12rem;
  font-weight: 950;
}

.demo-metric-pill.is-positive strong {
  color: #1d4ed8;
}

.demo-metric-pill.is-negative strong {
  color: #dc2626;
}

.demo-file-chip {
  margin: 0 0 10px !important;
  padding: 9px 11px;
  border: 1px solid #bfdbfe;
  border-radius: 999px;
  background: #eff6ff;
  color: #1d4ed8 !important;
  font-weight: 950 !important;
}

.demo-check-list {
  margin: 0;
  padding-left: 19px;
  color: #334155;
  font-weight: 800;
  line-height: 1.55;
}

.demo-comment-box p {
  margin: 4px 0 0;
  color: #334155;
  font-weight: 760;
}

.demo-sketch-preview {
  display: grid;
  place-items: center;
  min-height: 135px;
  margin-bottom: 10px;
  border: 1px solid #dbeafe;
  border-radius: 14px;
  background-image:
    linear-gradient(#e6f0ff 1px, transparent 1px),
    linear-gradient(90deg, #e6f0ff 1px, transparent 1px);
  background-size: 18px 18px;
}

.demo-sketch-preview svg {
  width: min(260px, 100%);
  height: auto;
}

.demo-sketch-preview rect {
  fill: rgba(37, 99, 235, 0.12);
  stroke: #0f766e;
  stroke-width: 4;
}

.demo-sketch-preview line {
  stroke: #0f2f5f;
  stroke-width: 2;
}

.demo-sketch-preview text {
  fill: #0f2f5f;
  font-size: 14px;
  font-weight: 900;
  text-anchor: middle;
}

.demo-photo-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin-top: 10px;
}

.demo-photo-grid div {
  min-height: 96px;
  display: grid;
  align-content: center;
  justify-items: center;
  gap: 8px;
  padding: 10px;
  border: 1px solid #dbeafe;
  border-radius: 12px;
  background: #f8fbff;
  color: #334155;
  text-align: center;
  font-weight: 800;
}

.demo-photo-grid span {
  width: 34px;
  height: 28px;
  border-radius: 8px;
  background:
    linear-gradient(135deg, transparent 46%, #60a5fa 47% 55%, transparent 56%),
    linear-gradient(135deg, #dbeafe, #bfdbfe);
  border: 1px solid #93c5fd;
}

.project-card-actions {
  padding-top: 4px;
}

.project-card-actions .danger {
  color: #991b1b;
}

.projects-empty-card,
.projects-hidden-demo-card {
  padding: 22px;
}

.projects-empty-card h3,
.projects-hidden-demo-card strong {
  margin: 0;
  color: #0f2f5f;
  font-size: 1.1rem;
}

.projects-empty-card p,
.projects-hidden-demo-card p {
  margin: 8px 0 16px;
  color: #475569;
  font-weight: 700;
}

.projects-hidden-demo-card {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
  background: #f8fbff;
}

body.projects-active .workspace,
body.projects-active .results-panel {
  display: none !important;
}

@media (max-width: 900px) {
  .demo-section-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .demo-sample-grid {
    grid-template-columns: 1fr;
  }

  .demo-welcome-card,
  .projects-page-head,
  .projects-hidden-demo-card {
    align-items: stretch;
    flex-direction: column;
  }
}

@media (max-width: 620px) {
  .projects-screen {
    padding: 16px;
  }

  .demo-section-grid {
    grid-template-columns: 1fr;
  }

  .demo-sample-panel {
    padding: 14px;
  }

  .demo-sample-head,
  .demo-comp-row {
    align-items: stretch;
    grid-template-columns: 1fr;
  }

  .demo-sample-head {
    flex-direction: column;
  }

  .demo-market-summary,
  .demo-metric-grid,
  .demo-photo-grid {
    grid-template-columns: 1fr;
  }

  .project-card-header {
    flex-direction: column;
  }

  .demo-module-card {
    min-height: auto;
  }
}
