:root {
  font-family:
    system-ui,
    -apple-system,
    sans-serif;
  color: #253b42;
  background: #f4f7f6;
  font-size: 16px;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
}
main {
  max-width: 1120px;
  margin: auto;
  padding: 40px 24px;
}
header,
.toolbar,
.actions,
.dialog-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
h1 {
  font-size: 36px;
  letter-spacing: -1px;
  margin: 4px 0;
}
h2 {
  font-size: 23px;
}
p {
  line-height: 1.5;
}
.eyebrow {
  font-size: 12px;
  letter-spacing: 2px;
  color: #42685f;
  font-weight: 700;
}
.muted,
.footnote {
  color: #5e7379;
  font-size: 14px;
}
.footnote {
  margin-top: 32px;
}
button,
input,
select,
textarea {
  font: inherit;
  border: 1px solid #b9ccca;
  border-radius: 8px;
  padding: 10px 12px;
}
button {
  background: white;
  color: #244c45;
  cursor: pointer;
  font-weight: 600;
}
button:hover {
  background: #edf5f1;
}
button:disabled {
  opacity: 0.55;
  cursor: wait;
}
.primary {
  background: #245f50;
  color: white;
  border-color: #245f50;
}
.primary:hover {
  background: #194b3f;
}
input,
select,
textarea {
  background: white;
  color: inherit;
  min-width: 0;
}
textarea {
  resize: vertical;
  line-height: 1.5;
}
#notice {
  padding: 14px 18px;
  background: #e7efec;
  border-radius: 10px;
}
#search {
  flex: 1;
}
.toolbar {
  margin: 26px 0 12px;
}
#list {
  display: grid;
  gap: 10px;
}
.task {
  background: white;
  border: 1px solid #d6e2de;
  border-radius: 12px;
  padding: 18px 20px;
  display: flex;
  gap: 16px;
  align-items: flex-start;
}
.task .body {
  flex: 1;
  min-width: 0;
}
.task h3 {
  margin: 0 0 8px;
  font-size: 18px;
  overflow-wrap: anywhere;
}
.task p {
  margin: 6px 0;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.tag {
  font-size: 12px;
  background: #eef3f1;
  padding: 4px 8px;
  border-radius: 5px;
}
.review {
  background: #fff0cb;
}
.high {
  border-left: 4px solid #bf7741;
}
a {
  color: #235b7b;
}
dialog {
  border: 1px solid #bdceca;
  border-radius: 16px;
  max-width: 790px;
  width: calc(100% - 24px);
  max-height: 92vh;
  padding: 24px;
  box-shadow: 0 20px 100px #0f342333;
}
dialog::backdrop {
  background: #162e3b77;
}
form label {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 14px;
  font-size: 14px;
  font-weight: 600;
}
.grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 16px;
}
.check {
  display: inline-flex;
  flex-direction: row;
  margin: 8px 22px 4px 0;
}
fieldset {
  border: 1px solid #d2dfda;
  border-radius: 8px;
  margin: 2px 0 16px;
}
#edit-error {
  color: #a33023;
}
#history-list {
  font-size: 13px;
  white-space: pre-wrap;
}
#history-list details {
  padding: 10px 0;
  border-bottom: 1px solid #d6e2de;
}
[hidden] {
  display: none !important;
}
@media (max-width: 650px) {
  main {
    padding: 20px 14px;
  }
  header {
    align-items: flex-start;
    flex-direction: column;
  }
  h1 {
    font-size: 30px;
  }
  .toolbar {
    flex-wrap: wrap;
  }
  #search {
    flex-basis: 100%;
  }
  .grid {
    grid-template-columns: 1fr;
  }
  .task {
    padding: 14px;
    gap: 8px;
  }
  dialog {
    padding: 18px;
  }
}
