.projects-hero {
  position: relative;
  align-items: flex-start;
  gap: 18px;
  padding: 26px;
  border: 1px solid rgba(70, 122, 112, 0.18);
  border-radius: 24px;
  background:
    radial-gradient(circle at top right, rgba(57, 178, 149, 0.2), transparent 34%),
    linear-gradient(135deg, #ffffff 0%, #f3fbf8 58%, #fff7ea 100%);
  box-shadow: 0 18px 45px rgba(35, 48, 47, 0.09);
}

.projects-hero h1 {
  max-width: 760px;
  margin-bottom: 8px;
}

.projects-hero-copy {
  max-width: 720px;
  margin: 0;
  color: var(--muted);
  font-weight: 700;
  line-height: 1.55;
}

.pmp-monitor {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(280px, 0.75fr);
  gap: 18px;
  margin-top: 18px;
  padding: 22px;
  overflow: hidden;
  border: 1px solid rgba(70, 122, 112, 0.16);
  border-radius: 24px;
  background:
    radial-gradient(circle at 10% 20%, rgba(240, 166, 77, 0.18), transparent 30%),
    linear-gradient(135deg, #173331, #285f55 62%, #f0a64d 160%);
  color: #fff;
  box-shadow: 0 18px 42px rgba(35, 48, 47, 0.14);
}

.pmp-monitor .eyebrow,
.pmp-monitor-copy p {
  color: rgba(255, 255, 255, 0.78);
}

.pmp-monitor h2 {
  max-width: 720px;
  margin: 0 0 8px;
  font-family: Fraunces, serif;
  font-size: clamp(1.75rem, 4vw, 2.7rem);
  line-height: 1.02;
}

.pmp-monitor-copy p:not(.eyebrow) {
  max-width: 690px;
  margin: 0;
  font-weight: 800;
  line-height: 1.55;
}

.pmp-monitor-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.pmp-monitor-grid div {
  display: grid;
  gap: 5px;
  min-height: 94px;
  padding: 14px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(10px);
}

.pmp-monitor-grid strong {
  color: #ffe0ad;
  font-size: 1.45rem;
}

.pmp-monitor-grid span {
  font-weight: 900;
}

.pmp-process-section {
  margin-top: 18px;
  padding: 24px;
  border: 1px solid rgba(70, 122, 112, 0.14);
  border-radius: 24px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.94), rgba(248, 255, 253, 0.9)),
    repeating-linear-gradient(135deg, rgba(70, 122, 112, 0.08) 0 1px, transparent 1px 16px);
}

.pmp-process-header {
  display: grid;
  gap: 6px;
  max-width: 820px;
  margin-bottom: 18px;
}

.pmp-process-header h2 {
  margin: 0;
  font-family: Fraunces, serif;
  font-size: clamp(1.6rem, 3vw, 2.2rem);
}

.pmp-process-header p:not(.eyebrow) {
  margin: 0;
  color: var(--muted);
  font-weight: 800;
  line-height: 1.55;
}

.pmp-process-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.pmp-process-list li {
  display: grid;
  gap: 7px;
  padding: 16px;
  border: 1px solid rgba(70, 122, 112, 0.13);
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 10px 26px rgba(35, 48, 47, 0.07);
}

.pmp-process-list span {
  width: max-content;
  padding: 5px 9px;
  border-radius: 999px;
  color: #fff;
  background: #23302f;
  font-size: 0.74rem;
  font-weight: 900;
}

.pmp-process-list strong {
  color: #23302f;
  font-size: 1rem;
}

.pmp-process-list small {
  color: var(--muted);
  font-weight: 800;
  line-height: 1.45;
}

.project-hero-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  flex-wrap: wrap;
  min-width: min(100%, 320px);
}

.hero-action,
.project-card .small-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 36px;
  padding: 9px 14px;
  text-decoration: none;
}

.hero-action.primary,
.add-project-form .small-button {
  border: 0;
  color: #fff;
  background: linear-gradient(135deg, var(--accent), #0f7c72);
  box-shadow: 0 12px 24px rgba(15, 124, 114, 0.2);
}

.hero-action.dark {
  color: #fff;
  background: #23302f;
}

.project-launchpad {
  display: grid;
  grid-template-columns: minmax(280px, 0.85fr) minmax(0, 1.15fr);
  gap: 18px;
  margin-top: 18px;
}

.launchpad-create-card,
.workflow-smart-card {
  border: 1px solid rgba(70, 122, 112, 0.16);
  box-shadow: 0 16px 36px rgba(35, 48, 47, 0.09);
}

.launchpad-create-card {
  display: grid;
  align-content: start;
  gap: 12px;
  padding: 22px;
  border-radius: 24px;
  background:
    radial-gradient(circle at 90% 10%, rgba(240, 166, 77, 0.2), transparent 30%),
    linear-gradient(145deg, #ffffff, #effbf7);
}

.launchpad-create-card h2 {
  margin: 0;
  font-family: Fraunces, serif;
  font-size: clamp(1.55rem, 3vw, 2.1rem);
  line-height: 1.08;
}

.launchpad-create-card p:not(.eyebrow),
.workflow-smart-card p {
  margin: 0;
  color: var(--muted);
  font-weight: 800;
  line-height: 1.5;
}

.add-project-form {
  display: grid;
  gap: 8px;
  margin-top: 6px;
}

.field-label {
  color: #23302f;
  font-size: 0.82rem;
  font-weight: 900;
}

.add-project-row {
  display: flex;
  gap: 8px;
}

.add-project-row input {
  width: 100%;
  min-height: 42px;
  padding: 0 13px;
  border: 1px solid rgba(70, 122, 112, 0.18);
  border-radius: 14px;
  background: #fff;
  color: #23302f;
  font: inherit;
  font-weight: 800;
}

.add-project-row input:focus-visible {
  outline: 3px solid rgba(15, 124, 114, 0.16);
  border-color: var(--accent);
}

.add-project-form .form-message {
  min-height: 20px;
  margin: 0;
  color: #8a4c14;
  font-weight: 900;
}

.add-project-form .form-message.success {
  color: var(--accent-dark);
}

.workflow-smart-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.workflow-smart-card {
  position: relative;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 12px;
  min-height: 142px;
  padding: 18px;
  overflow: hidden;
  border-radius: 22px;
  background: #fff;
}

.workflow-smart-card::after {
  content: "";
  position: absolute;
  right: -46px;
  bottom: -58px;
  width: 130px;
  height: 130px;
  border-radius: 999px;
  opacity: 0.18;
  background: currentColor;
}

.workflow-smart-card h3 {
  margin: 0 0 6px;
  color: #23302f;
  font-size: 1.05rem;
}

.workflow-number {
  display: inline-grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 14px;
  color: #fff;
  background: currentColor;
  font-weight: 1000;
}

.workflow-card-link {
  grid-column: 2;
  width: max-content;
  align-self: end;
  padding: 7px 11px;
  border-radius: 999px;
  color: #23302f;
  background: #f4f8f6;
  font-size: 0.78rem;
  font-weight: 1000;
  text-decoration: none;
}

.workflow-card-link:hover,
.workflow-card-link:focus-visible {
  color: #fff;
  background: #23302f;
}

.accent-blue {
  color: #3478f6;
}

.accent-green {
  color: #0f9f7a;
}

.accent-orange {
  color: #f0a64d;
}

.accent-red {
  color: #d95c55;
}

.project-card-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-top: 18px;
}

.project-card {
  min-height: 300px;
  padding: 58px 20px 20px;
  overflow: hidden;
  border-radius: 22px;
  isolation: isolate;
  transition: transform 160ms ease, box-shadow 160ms ease, border-color 160ms ease;
}

.project-card::after {
  content: "";
  position: absolute;
  right: -42px;
  bottom: -42px;
  width: 140px;
  height: 140px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.32);
  z-index: -1;
}

.project-card h2 {
  color: #23302f;
}

.project-card p {
  color: rgba(35, 48, 47, 0.76);
  font-weight: 750;
  line-height: 1.48;
}

.project-card-icon {
  width: 38px;
  height: 38px;
  border-radius: 14px;
  font-size: 1.15rem;
}

.project-card:hover {
  transform: translateY(-3px);
  border-color: rgba(70, 122, 112, 0.26);
  box-shadow: 0 18px 42px rgba(35, 48, 47, 0.12);
}

.project-task-board {
  margin-top: 30px;
  padding: 24px;
  border: 1px solid rgba(70, 122, 112, 0.16);
  border-radius: 24px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.82), rgba(246, 250, 247, 0.92));
}

.project-board-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 20px;
}

.project-board-header h2 {
  margin: 0 0 6px;
  font-family: Fraunces, serif;
  font-size: clamp(1.7rem, 4vw, 2.35rem);
}

.project-board-header p:not(.eyebrow) {
  max-width: 680px;
  margin: 0;
  color: var(--muted);
  font-weight: 700;
  line-height: 1.55;
}

.project-summary {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  flex-wrap: wrap;
  min-width: 220px;
}

.project-summary-chip,
.project-metrics span {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 6px 12px;
  border: 1px solid rgba(70, 122, 112, 0.14);
  border-radius: 999px;
  color: var(--accent-dark);
  background: #e5f5f0;
  font-size: 0.78rem;
  font-weight: 900;
  white-space: nowrap;
}

.linked-project-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 16px;
}

.linked-project-card {
  position: relative;
  display: grid;
  gap: 14px;
  padding: 18px;
  overflow: hidden;
  border: 1px solid rgba(70, 122, 112, 0.14);
  border-radius: 20px;
  background: var(--surface);
  box-shadow: 0 14px 34px rgba(35, 48, 47, 0.09);
}

.linked-project-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 5px;
  background: linear-gradient(90deg, var(--accent), #f0a64d);
}

.linked-project-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  padding-top: 4px;
}

.linked-project-header h2 {
  margin: 0;
  font-family: Fraunces, serif;
  font-size: 1.55rem;
  overflow-wrap: anywhere;
}

.project-metrics {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.project-progress {
  display: grid;
  gap: 7px;
}

.project-progress-label {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 900;
}

.project-progress-track {
  height: 10px;
  overflow: hidden;
  border-radius: 999px;
  background: #edf2ef;
}

.project-progress-fill {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--accent), #f0a64d);
}

.project-next-action {
  margin: 0;
  padding: 12px;
  border: 1px solid rgba(240, 166, 77, 0.22);
  border-radius: 14px;
  color: #5b4630;
  background: #fff8ee;
  font-weight: 800;
  line-height: 1.45;
}

.project-linked-task-list {
  display: grid;
  gap: 8px;
  max-height: 260px;
  margin: 0;
  padding: 0;
  overflow: auto;
  list-style: none;
}

.project-linked-task {
  display: grid;
  gap: 4px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--paper);
}

.project-linked-task strong,
.project-task-link {
  overflow-wrap: anywhere;
}

.project-linked-task span {
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 800;
}

.project-task-link {
  color: var(--accent-dark);
  font-weight: 900;
  text-decoration: none;
}

.project-task-link:hover,
.project-task-link:focus-visible {
  text-decoration: underline;
}

.project-team-box {
  display: grid;
  gap: 4px;
  margin: 0;
  padding: 12px;
  border: 1px solid rgba(70, 122, 112, 0.16);
  border-radius: 14px;
  background: linear-gradient(135deg, #f8fffd, #fff8ee);
}

.project-team-box p {
  margin: 0;
  color: var(--accent-dark);
  font-weight: 900;
}

.project-team-box small {
  color: var(--muted);
  font-weight: 800;
  line-height: 1.4;
}

.project-action-row {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.project-action-row .small-button {
  min-height: 34px;
  padding: 8px 12px;
  border: 0;
  border-radius: 999px;
  background: var(--accent);
  color: #fff;
  font: inherit;
  font-size: 0.82rem;
  font-weight: 900;
  text-decoration: none;
  cursor: pointer;
}

.project-action-row .small-button:nth-child(2),
.project-action-row .small-button:nth-child(3) {
  background: #23302f;
}

.project-action-row .small-button:disabled {
  cursor: not-allowed;
  opacity: 0.45;
}

.compact-empty-state {
  grid-column: 1 / -1;
  padding: 28px;
  border: 1px dashed rgba(70, 122, 112, 0.32);
  border-radius: 18px;
  background: #fbfffd;
  text-align: center;
}

@media (max-width: 780px) {
  .projects-hero,
  .project-board-header,
  .linked-project-header {
    flex-direction: column;
  }

  .project-hero-actions {
    justify-content: flex-start;
  }

  .pmp-monitor,
  .project-launchpad {
    grid-template-columns: 1fr;
    padding: 18px;
  }

  .pmp-monitor-grid,
  .project-card-grid,
  .workflow-smart-grid {
    grid-template-columns: 1fr;
  }

  .add-project-row {
    flex-direction: column;
  }

  .pmp-process-section,
  .project-task-board {
    padding: 16px;
  }

  .project-summary {
    justify-content: flex-start;
    min-width: 0;
  }

  .linked-project-grid {
    grid-template-columns: 1fr;
  }
}
