* {
  box-sizing: border-box;
}
html {
  color-scheme: light;
}
body {
  margin: 0;
  color: #253c37;
  background: #f7f8f4;
  font:
    15px/1.65 "Yu Gothic UI",
    Meiryo,
    sans-serif;
}
header {
  background: #1d3932;
  color: white;
  padding: 18px max(5vw, 18px) 0;
}
header b {
  font-size: 20px;
  letter-spacing: 0.05em;
}
header b span {
  color: #cde9af;
  margin-right: 6px;
}
nav,
.bar,
.tabs,
.line {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}
nav {
  margin-top: 14px;
}
nav button {
  border: 0;
  border-radius: 5px 5px 0 0;
  background: transparent;
  color: #d8e5dc;
}
nav .active {
  background: #f7f8f4;
  color: #204438;
}
main {
  max-width: 1220px;
  margin: auto;
  padding: 28px 4vw 60px;
}
h1,
h2,
h3,
p {
  margin: 0;
}
h1 {
  font-size: 27px;
}
h2 {
  font-size: 20px;
}
h3 {
  font-size: 17px;
}
.bar {
  justify-content: space-between;
  margin-bottom: 18px;
}
.filters,
.panel,
details,
article {
  background: white;
  border: 1px solid #d5dfd5;
  border-radius: 10px;
  padding: 17px;
}
.filters {
  display: flex;
  flex-wrap: wrap;
  align-items: end;
  gap: 12px;
  margin-bottom: 16px;
}
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr));
  gap: 14px;
}
article {
  display: flex;
  flex-direction: column;
  gap: 10px;
  box-shadow: 0 2px 5px #18352808;
}
.meta,
small {
  color: #52675e;
}
.tags {
  display: flex;
  gap: 5px;
  flex-wrap: wrap;
}
.tag {
  background: #eff2e7;
  color: #445b38;
  border-radius: 4px;
  padding: 1px 7px;
  font-size: 12px;
}
button,
input,
select,
textarea {
  font: inherit;
  color: inherit;
}
button {
  cursor: pointer;
  border: 1px solid #becbc2;
  background: white;
  border-radius: 6px;
  padding: 6px 12px;
}
button:hover {
  filter: brightness(0.95);
}
button:focus-visible,
:is(input, textarea, select):focus-visible {
  outline: 3px solid #82b498;
}
.primary,
.tabs .active {
  background: #28604e;
  border-color: #28604e;
  color: white;
}
article > .line:last-child {
  margin-top: auto;
}
label {
  display: grid;
  gap: 4px;
  font-size: 14px;
  font-weight: 600;
}
input,
select,
textarea {
  background: #fff;
  border: 1px solid #aebeb3;
  border-radius: 5px;
  padding: 8px;
  min-width: 0;
  max-width: 100%;
}
textarea {
  width: 100%;
  resize: vertical;
  min-height: 82px;
}
.tabs {
  margin: 12px 0;
}
.split {
  display: grid;
  grid-template-columns: minmax(260px, 0.9fr) minmax(300px, 1.1fr);
  gap: 16px;
}
.panel,
form,
.stack {
  display: grid;
  align-content: start;
  gap: 13px;
}
.check {
  display: flex;
  align-items: center;
}
.check input {
  width: 17px;
  height: 17px;
}
.prompt,
pre {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  font: inherit;
}
.prompt {
  min-height: 180px;
  background: #f7f8f4;
  padding: 14px;
  border-radius: 6px;
}
.empty {
  padding: 24px;
  color: #576a61;
}
dialog {
  border: 1px solid #b3c4ba;
  border-radius: 12px;
  width: min(620px, 94vw);
  max-height: 90vh;
}
dialog::backdrop {
  background: #19342c77;
}
summary {
  font-weight: bold;
  cursor: pointer;
}
#notice:not(:empty) {
  position: fixed;
  bottom: 14px;
  left: 50%;
  transform: translateX(-50%);
  background: #19382f;
  color: white;
  padding: 10px 18px;
  border-radius: 7px;
  z-index: 10;
}
a {
  color: #215846;
}
.error {
  color: #992d26;
}
@media (max-width: 730px) {
  .split {
    grid-template-columns: 1fr;
  }
  main {
    padding: 18px 12px;
  }
  nav {
    gap: 1px;
  }
  nav button {
    padding: 6px;
    font-size: 13px;
  }
  .filters label {
    max-width: 100%;
  }
}
