:root {
  color-scheme: light;
  background: #f3f5f2;
  color: #23322a;
  font: 1rem/1.5 system-ui, sans-serif;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }

body { margin: 0; }

main {
  width: min(45rem, calc(100% - 2rem));
  margin: clamp(2rem, 8vh, 5rem) auto;
  padding: clamp(1.25rem, 4vw, 2.5rem);
  border: 1px solid #d5ded6;
  border-radius: 0.8rem;
  background: #fff;
}

.project { color: #3b654d; font-weight: 700; }
header { margin-bottom: 1.5rem; }
h1, h2, h3, p { margin: 0 0 0.5rem; }
h1 { line-height: 1.2; }

#status {
  min-height: 1.5rem;
  margin: 1rem 0;
  color: #355242;
}

#status[data-error] { color: #883728; }

fieldset {
  display: grid;
  gap: 0.6rem;
  max-width: 22rem;
  margin: 0;
  padding: 1rem;
  border: 1px solid #d5ded6;
  border-radius: 0.6rem;
}

legend { font-weight: 700; }

button, input {
  min-height: 2.75rem;
  max-width: 100%;
  padding: 0.5rem 0.8rem;
  border: 1px solid #718478;
  border-radius: 0.35rem;
  font: inherit;
}

button {
  width: fit-content;
  color: white;
  background: #2c6045;
  cursor: pointer;
}

button:disabled { opacity: 0.6; cursor: default; }
.secondary { color: #234a35; background: #f3f5f2; }

.workspace-header, .attachments {
  display: flex;
  align-items: flex-start;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.75rem;
}

.attachments { justify-content: flex-start; }
.attachment { display: grid; align-content: start; gap: 0.5rem; }
.attachment a { color: #234a35; }
.attachment img { max-width: min(100%, 20rem); max-height: 14rem; object-fit: contain; }

#incidents {
  display: grid;
  gap: 0.75rem;
  padding: 0;
  list-style: none;
}

#incidents li {
  padding: 1rem;
  border: 1px solid #d5ded6;
  border-radius: 0.6rem;
  overflow-wrap: anywhere;
}
