.project-switcher {
  align-items: center;
  display: flex;
  gap: 7px;
  margin-right: 24px;
}

.project-switcher select {
  width: 210px;
  height: 34px;
}

.project-dialog {
  width: min(500px, calc(100vw - 32px));
  padding: 0;
  background: var(--surface);
  border: 1px solid var(--line-strong);
  border-radius: 9px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.36);
  color: var(--text);
}

.project-dialog::backdrop {
  background: rgba(0, 0, 0, 0.68);
}

.project-fields {
  display: grid;
  gap: 16px;
}

.source-project {
  padding-bottom: 10px;
  color: var(--muted);
  font-size: 13px;
}

.source-project strong {
  color: var(--text);
}

.project-list-header,
.project-row {
  display: grid;
  grid-template-columns: minmax(240px, 1fr) 220px 120px 176px;
  align-items: center;
  gap: 16px;
}

.project-list-header {
  min-height: 38px;
  padding: 0 12px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  color: var(--faint);
  font-size: 12px;
}

.project-row {
  min-height: 68px;
  padding: 10px 12px;
  border-bottom: 1px solid var(--line);
}

.project-row:hover {
  background: var(--surface);
}

.project-name {
  overflow: hidden;
  font-weight: 650;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.project-description,
.project-counts,
.project-sources {
  color: var(--muted);
}

.project-description {
  margin-top: 3px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.project-open {
  min-height: 34px;
}

.project-row-actions {
  display: flex;
  justify-content: flex-end;
  gap: 6px;
}

.project-delete {
  min-height: 34px;
  color: #e7a0b3;
}

.danger-button {
  min-height: 38px;
  padding: 0 14px;
  background: #9f3853;
  border-radius: var(--radius);
  color: #fff;
  font-weight: 650;
}

.danger-button:hover {
  background: #b64261;
}

.delete-project-copy p {
  margin: 0 0 10px;
}

@media (max-width: 1050px) {
  .project-switcher {
    margin-right: 12px;
  }

  .project-switcher select {
    width: 170px;
  }

}

@media (max-width: 760px) {
  .project-switcher {
    order: 2;
    margin: 0 8px 0 auto;
  }

  .project-switcher select {
    width: min(42vw, 180px);
  }

  .header-button {
    order: 3;
  }

  .nav {
    order: 4;
    gap: 16px;
    overflow-x: auto;
  }

  .project-list-header {
    display: none;
  }

  .project-row {
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 8px 12px;
  }

  .project-main {
    grid-column: 1 / -1;
  }

  .project-sources {
    display: none;
  }
}

@media (max-width: 520px) {
  .app-title {
    display: none;
  }

  .project-switcher {
    margin-left: 0;
  }

  .project-switcher select {
    width: calc(100vw - 145px);
  }
}
