.projects-page {
  --project-ink: #18343d;
  --project-muted: #62747a;
  --project-line: #dce5e6;
  --project-accent: #087e8b;
  --project-accent-dark: #06636d;
  max-width: 1180px;
  margin: 0 auto;
  padding: 30px 34px 52px;
  color: var(--project-ink);
}

.projects-heading {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 20px;
  padding-bottom: 23px;
  border-bottom: 1px solid var(--project-line);
}

.projects-eyebrow {
  color: var(--project-accent);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 1px;
}

.projects-heading h1 {
  margin-top: 7px;
  font-size: 2rem;
  font-weight: 600;
}

.projects-heading p,
.project-section-heading p {
  margin-top: 6px;
  color: var(--project-muted);
  font-size: 0.94rem;
}

.project-form-section,
.project-list-section {
  padding-top: 27px;
}

.project-form-section {
  padding-bottom: 25px;
  border-bottom: 1px solid var(--project-line);
}

.project-section-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  margin-bottom: 18px;
}

.project-section-heading h2 {
  font-size: 1.15rem;
  font-weight: 600;
}

.project-form {
  display: grid;
  grid-template-columns: minmax(220px, 1.2fr) minmax(220px, 1fr) auto;
  align-items: end;
  gap: 16px;
}

.project-field {
  display: grid;
  gap: 7px;
  color: var(--project-ink);
  font-size: 0.88rem;
  font-weight: 500;
}

.project-field input,
.project-field select {
  width: 100%;
  min-height: 44px;
  padding: 10px 12px;
  border: 1px solid #bacacc;
  border-radius: 5px;
  background: #fff;
  color: var(--project-ink);
  font: inherit;
  font-weight: 400;
}

.project-field input::placeholder {
  color: #8a999d;
  opacity: 1;
}

.project-field input:focus,
.project-field select:focus {
  border-color: var(--project-accent);
  outline: 2px solid rgb(8 126 139 / 16%);
}

.project-field select:disabled {
  background: #f1f5f5;
  color: #7b898d;
}

.project-submit,
.project-refresh {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  border: 1px solid var(--project-accent);
  border-radius: 5px;
  background: var(--project-accent);
  color: #fff;
  cursor: pointer;
  font: inherit;
  font-weight: 600;
}

.project-submit {
  padding: 0 16px;
  white-space: nowrap;
}

.project-submit:hover:not(:disabled),
.project-refresh:hover {
  border-color: var(--project-accent-dark);
  background: var(--project-accent-dark);
}

.project-submit:disabled {
  border-color: #aebcbe;
  background: #aebcbe;
  cursor: not-allowed;
}

.project-submit ion-icon,
.project-refresh ion-icon {
  font-size: 1.15rem;
}

.project-message {
  min-height: 1.3em;
  margin-top: 10px;
  color: var(--project-muted);
  font-size: 0.9rem;
}

.project-message.is-error {
  color: #b42332;
}

.project-message.is-success {
  color: #18734b;
}

.project-list-heading {
  margin-bottom: 12px;
}

.project-refresh {
  width: 40px;
  min-height: 40px;
  padding: 0;
}

.project-table-wrap {
  overflow-x: auto;
  border-top: 1px solid var(--project-line);
  border-bottom: 1px solid var(--project-line);
}

.project-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
}

.project-table th,
.project-table td {
  padding: 13px 14px;
  border-bottom: 1px solid #e9eeee;
}

.project-table th {
  color: var(--project-muted);
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: uppercase;
}

.project-table td {
  font-size: 0.93rem;
}

.project-table tbody tr:last-child td {
  border-bottom: 0;
}

.project-table tbody tr:hover {
  background: #f3f8f7;
}

.project-table .project-empty {
  padding: 24px 14px;
  color: var(--project-muted);
  text-align: center;
}

@media (max-width: 760px) {
  .projects-page {
    padding: 24px 18px 40px;
  }

  .project-form {
    grid-template-columns: 1fr;
  }

  .project-submit {
    justify-self: start;
  }
}

@media (max-width: 480px) {
  .projects-page {
    padding-inline: 13px;
  }

  .projects-heading h1 {
    font-size: 1.7rem;
  }

  .project-table th,
  .project-table td {
    padding: 11px 9px;
  }
}