/* Projects Dashboard — unique colors + clear labels. */

.mode-b-shell[data-mode-b="projects"] .mode-b-nav,
.mode-b-shell[data-mode-b="tasks"] .mode-b-nav {
  display: grid !important;
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
}

.mode-b-shell[data-mode-b="projects"] .mode-b-nav .mode-b-nav-item[href="/app/projects/dashboard"],
.mode-b-shell[data-mode-b="tasks"] .mode-b-nav .mode-b-nav-item[href="/app/projects/dashboard"] {
  color: #1d4ed8 !important;
  font-weight: 800 !important;
}

.mode-b-shell[data-mode-b="projects"] .mode-b-nav .mode-b-nav-item[href="/app/projects/dashboard"]:before,
.mode-b-shell[data-mode-b="tasks"] .mode-b-nav .mode-b-nav-item[href="/app/projects/dashboard"]:before {
  width: 2.05rem !important;
  height: 2.05rem !important;
  border-radius: 0.7rem !important;
  background-color: #dbeafe !important;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231d4ed8' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='3' width='7' height='9' rx='1.5'/%3E%3Crect x='14' y='3' width='7' height='5' rx='1.5'/%3E%3Crect x='14' y='12' width='7' height='9' rx='1.5'/%3E%3Crect x='3' y='16' width='7' height='5' rx='1.5'/%3E%3C/svg%3E") !important;
  background-repeat: no-repeat !important;
  background-position: center !important;
  background-size: 1.05rem 1.05rem !important;
}

/* Match header + bottom nav width (mode-b core column). */
.mode-b-shell:has([data-screen="projects-dashboard"]) main,
.mode-b-shell:has([data-screen="projects-dashboard"]) #main,
.mode-b-shell:has([data-screen="projects-dashboard"]) .page-container,
.mode-b-shell #main:has([data-screen="projects-dashboard"]) > *,
.mode-b-shell main:has([data-screen="projects-dashboard"]) > * {
  width: 100% !important;
  max-width: none !important;
  margin-inline: 0 !important;
  padding-left: 0 !important;
  padding-right: 0 !important;
}

.proj-dash {
  width: min(100%, var(--mode-b-core-width, 40rem)) !important;
  max-width: var(--mode-b-core-width, 40rem) !important;
  margin-inline: auto !important;
  box-sizing: border-box;
  padding: 0.9rem var(--mode-b-core-pad, 1rem) 5.7rem !important;
}

.proj-dash-head {
  margin: 0 0 1rem;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem;
}

.proj-dash-head-text {
  min-width: 0;
  flex: 1 1 auto;
}

.proj-dash-head h1 {
  margin: 0;
  font-size: 1.4rem;
  letter-spacing: -0.03em;
  color: #0f172a;
}

.proj-dash-head p {
  margin: 0.28rem 0 0;
  color: #475569;
  font-size: 0.92rem;
  line-height: 1.4;
}

.proj-dash-zudo-btn {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.45rem 0.8rem;
  border-radius: 0.55rem;
  border: 1px solid #93c5fd;
  background: #eff6ff;
  color: #1d4ed8;
  text-decoration: none;
  font-size: 0.85rem;
  font-weight: 700;
  white-space: nowrap;
}

.proj-dash-zudo-btn:hover {
  background: #dbeafe;
}

.proj-dash-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.7rem;
  margin-bottom: 1.1rem;
}

@media (min-width: 40rem) {
  .proj-dash-cards {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

.proj-dash-card {
  display: flex;
  flex-direction: column;
  gap: 0.08rem;
  min-height: 6.4rem;
  padding: 0.85rem 0.9rem 0.9rem;
  border-radius: 1.05rem;
  text-decoration: none;
  border: 1px solid transparent;
}

.proj-dash-card strong {
  font-size: 1.7rem;
  letter-spacing: -0.04em;
  line-height: 1.1;
}

.proj-dash-card b {
  font-size: 0.92rem;
  font-weight: 800;
}

.proj-dash-card span {
  margin-top: auto;
  font-size: 0.78rem;
  line-height: 1.3;
  opacity: 0.9;
}

.proj-dash-card.is-inbox {
  color: #5b21b6;
  background: linear-gradient(180deg, #f5f3ff, #fff);
  border-color: #ddd6fe;
}
.proj-dash-card.is-live {
  color: #1d4ed8;
  background: linear-gradient(180deg, #eff6ff, #fff);
  border-color: #bfdbfe;
}
.proj-dash-card.is-tasks {
  color: #0f766e;
  background: linear-gradient(180deg, #f0fdfa, #fff);
  border-color: #99f6e4;
}
.proj-dash-card.is-archive {
  color: #c2410c;
  background: linear-gradient(180deg, #fff7ed, #fff);
  border-color: #fed7aa;
}

.proj-dash-board {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 1.1rem;
  overflow: hidden;
}

.proj-dash-board > header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.6rem;
  padding: 0.8rem 0.95rem;
  background: #f8fafc;
  border-bottom: 1px solid #e2e8f0;
}

.proj-dash-board > header h2 {
  margin: 0;
  font-size: 0.95rem;
  color: #0f172a;
}

.proj-dash-board > header a {
  font-size: 0.8rem;
  font-weight: 750;
  color: #2563eb;
  text-decoration: none;
  white-space: nowrap;
}

.proj-dash-list { display: flex; flex-direction: column; }

.proj-dash-row {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 0.65rem;
  align-items: center;
  padding: 0.78rem 0.95rem;
  text-decoration: none;
  color: inherit;
  border-top: 1px solid #f1f5f9;
}

.proj-dash-list .proj-dash-row:first-child { border-top: 0; }

.proj-dash-kind {
  font-size: 0.65rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 0.22rem 0.42rem;
  border-radius: 0.45rem;
}

.proj-dash-kind.is-draft {
  color: #5b21b6;
  background: #ede9fe;
}

.proj-dash-kind.is-live {
  color: #1d4ed8;
  background: #dbeafe;
}

.proj-dash-row-main {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
}

.proj-dash-row-main strong {
  font-size: 0.92rem;
  color: #0f172a;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.proj-dash-row-main em {
  font-style: normal;
  font-size: 0.75rem;
  color: #64748b;
}

.proj-dash-tag {
  font-size: 0.68rem;
  font-weight: 750;
  border-radius: 999px;
  padding: 0.16rem 0.48rem;
  text-transform: capitalize;
  background: #f1f5f9;
  color: #334155;
}

.proj-dash-tag.is-sales { background: #ede9fe; color: #6d28d9; }
.proj-dash-tag.is-support { background: #d1fae5; color: #047857; }

.proj-dash-empty {
  margin: 0;
  padding: 1.5rem 1rem;
  text-align: center;
  color: #64748b;
  font-size: 0.9rem;
  line-height: 1.45;
}
