.project-page {
  position: relative;
  max-width: 1080px;
  margin: 0 auto;
  padding: calc(var(--nav-h) + 24px) 24px 56px;
}
.project-heading {
  padding: 0 0 16px 16px;
  margin-bottom: 16px;
  border-bottom: 1px solid var(--brd);
  background: var(--sunrise-stripe) left top / 3px calc(100% - 16px) no-repeat;
}
.project-page h1 { font-size: clamp(26px, 5vw, 36px); line-height: 1.2; }
#srvIP:not(:empty)::before { content: " · "; }
.project-description, #projectStatus, .project-host { color: var(--muted); }
.project-description { margin-top: 4px; font-size: 14px; }
#projectStatus { margin-block: 16px; }
#projectStatus:empty { margin: 0; }
.project-list {
  display: grid;
  gap: 10px;
}
.project-card, .project-editor, .project-empty {
  border: 1px solid var(--brd);
  background: var(--surf);
  border-radius: 6px;
  overflow-wrap: anywhere;
}
.project-card {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 16px;
  padding: 14px 16px;
}
.project-card-content { flex: 1 1 220px; min-width: 0; }
.project-card img {
  display: block;
  width: 88px;
  height: 62px;
  object-fit: contain;
  background: var(--bg);
  border-radius: 4px;
}
.project-card h2 { font-size: 17px; line-height: 1.25; }
.project-host { margin-top: 2px; font-size: 12px; }
.project-card-description { margin-top: 6px; font-size: 14px; white-space: pre-wrap; }
.project-empty { padding: 16px; color: var(--muted); }
.project-editor { margin-bottom: 14px; }
.project-editor[hidden] { display: none; }
.project-editor summary { padding: 12px 16px; cursor: pointer; font-weight: 700; }
.project-editor[open] summary { border-bottom: 1px solid var(--brd); }
.project-editor form { display: grid; gap: 12px; padding: 16px; }
.project-editor label { display: grid; gap: 4px; }
.project-editor input, .project-editor textarea, .project-page button, .project-open {
  color: var(--text);
  background: var(--bg);
  border: 1px solid var(--brdh);
  border-radius: 6px;
  padding: 8px 12px;
  font: inherit;
  max-width: 100%;
}
.project-page button { cursor: pointer; width: fit-content; }
.project-page button:hover, .project-open:hover { border-color: var(--orange); }
.project-open { text-decoration: none; font-weight: 700; }
.project-editor button[type="submit"] { background: var(--action-bg); color: var(--action-ink); }
.project-page button:disabled { cursor: wait; opacity: .65; }
.project-actions { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.project-card .project-actions { font-size: 13px; }
#projectDraft:empty { display: none; }

@media (max-width: 600px) {
  .project-page { padding-inline: 14px; }
  .project-card { align-items: flex-start; padding: 12px; }
  .project-card-content { flex-basis: 150px; }
  .project-card img { width: 56px; height: 48px; }
  .project-card .project-actions { flex-basis: 100%; }
}
