:root {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: #263b35;
  background: #f4f3ee;
  color-scheme: light;
  font-size: 16px;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
}
main {
  max-width: 780px;
  margin: auto;
  padding: 52px 24px 28px;
}
header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.eyebrow {
  font-size: 12px;
  letter-spacing: 0.2em;
  color: #647c73;
  font-weight: 700;
}
h1 {
  font-size: clamp(26px, 5vw, 36px);
  letter-spacing: -0.04em;
  margin: 14px 0;
}
h2 {
  font-size: 22px;
  margin: 0 0 14px;
}
p {
  line-height: 1.6;
}
header p,
.muted,
small,
footer {
  color: #65766e;
}
.card {
  background: #fff;
  border: 1px solid #e2e6dc;
  border-radius: 20px;
  padding: 24px;
  margin: 16px 0;
}
button {
  background: #285d49;
  color: white;
  border: 0;
  border-radius: 12px;
  padding: 12px 18px;
  font: inherit;
  font-weight: 600;
  cursor: pointer;
  min-height: 44px;
}
button:disabled {
  opacity: 0.5;
  cursor: wait;
}
button.secondary,
.tabs button,
header button {
  background: #e9ece4;
  color: #304f41;
}
.link {
  background: transparent;
  color: #476b5a;
  padding: 8px;
  font-size: 14px;
}
label {
  display: block;
  margin: 16px 0;
  font-weight: 600;
}
input,
textarea {
  display: block;
  width: 100%;
  margin-top: 8px;
  padding: 13px;
  border: 1px solid #c9d1c6;
  border-radius: 10px;
  font: inherit;
  background: #fff;
  color: #253a32;
}
textarea {
  min-height: 92px;
  resize: vertical;
}
input:focus,
textarea:focus,
button:focus-visible {
  outline: 3px solid #aac9b2;
  outline-offset: 2px;
}
.toolbar,
.actions {
  display: flex;
  gap: 10px;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
}
.tabs {
  display: flex;
  gap: 4px;
}
.tabs button[aria-pressed="true"] {
  background: #285d49;
  color: #fff;
}
.item {
  display: block;
  text-align: left;
  background: white;
  color: inherit;
  width: 100%;
  font-weight: 400;
  padding: 22px;
  border: 1px solid #e2e6dc;
  border-radius: 16px;
  margin: 12px 0;
}
.item strong {
  display: block;
  font-size: 19px;
  margin-bottom: 8px;
  overflow-wrap: anywhere;
}
.item span {
  display: block;
  font-size: 14px;
  color: #64756b;
  line-height: 1.7;
}
.badge {
  display: inline-block !important;
  width: max-content;
  background: #edf2e9;
  border-radius: 6px;
  padding: 2px 7px;
  margin-top: 8px;
}
.empty {
  padding: 50px 20px;
  text-align: center;
  color: #708078;
  border: 1px dashed #bec9b9;
  border-radius: 16px;
  margin-top: 20px;
}
footer {
  margin-top: 32px;
  font-size: 13px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
dialog {
  border: 1px solid #dce3d6;
  border-radius: 22px;
  padding: 26px;
  width: calc(100% - 32px);
  max-width: 530px;
  max-height: 88vh;
  overflow: auto;
  color: inherit;
  background: #fff;
}
dialog::backdrop {
  background: #172d255e;
  backdrop-filter: blur(3px);
}
#detail p {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.actions {
  margin-top: 20px;
  justify-content: flex-end;
}
#feedback:not(:empty) {
  background: #e5eddf;
  border-radius: 10px;
  padding: 12px;
  font-size: 14px;
}
#create-error {
  color: #93482f;
}
small {
  display: block;
  line-height: 1.6;
}
#detail .actions {
  justify-content: flex-start;
}
@media (max-width: 480px) {
  main {
    padding: 32px 18px;
  }
  .toolbar button {
    padding: 11px 13px;
  }
  footer {
    align-items: flex-start;
    flex-direction: column;
  }
}
