:root {
  font-family:
    system-ui,
    -apple-system,
    "PingFang SC",
    sans-serif;
  color: #17372f;
  background: #f2f6f4;
  font-size: 15px;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
}
header {
  max-width: 1160px;
  margin: auto;
  padding: 38px 28px 22px;
  display: flex;
  gap: 24px;
  align-items: center;
  justify-content: space-between;
}
h1 {
  font-size: 30px;
  margin: 12px 0;
}
h2 {
  font-size: 20px;
  margin: 0 0 20px;
}
h3 {
  font-size: 16px;
}
p {
  line-height: 1.7;
}
nav {
  display: flex;
  gap: 12px;
  align-items: center;
  flex-wrap: wrap;
}
a {
  color: #17684d;
}
main {
  max-width: 1160px;
  padding: 0 28px 40px;
  margin: auto;
}
section {
  background: white;
  border: 1px solid #dce6df;
  border-radius: 14px;
  padding: 26px;
  margin-bottom: 22px;
}
button {
  background: #21654e;
  color: white;
  border: 0;
  border-radius: 7px;
  padding: 10px 16px;
  font: inherit;
  cursor: pointer;
}
button:disabled {
  opacity: 0.5;
  cursor: wait;
}
nav button {
  background: #e2eee7;
  color: #17372f;
}
.badge {
  background: #deeee5;
  color: #246449;
  border-radius: 5px;
  padding: 5px 8px;
  font-size: 12px;
}
form {
  max-width: 720px;
  display: grid;
  gap: 16px;
}
label {
  display: grid;
  gap: 7px;
}
input,
select,
textarea {
  width: 100%;
  border: 1px solid #c5d5cb;
  background: #fff;
  color: #17372f;
  padding: 10px;
  border-radius: 7px;
  font: inherit;
}
textarea {
  resize: vertical;
}
form button {
  justify-self: start;
}
.stats {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
}
.stat {
  padding: 14px 18px;
  background: #f2f7f4;
  border-radius: 8px;
  min-width: 130px;
}
.stat b {
  display: block;
  font-size: 22px;
  margin-top: 6px;
}
.muted {
  color: #5d7369;
  font-size: 13px;
}
.scroll {
  overflow: auto;
}
table {
  border-collapse: collapse;
  width: 100%;
  font-size: 13px;
}
td,
th {
  text-align: left;
  border-bottom: 1px solid #e3ebe6;
  padding: 12px 10px;
  vertical-align: top;
}
th {
  white-space: nowrap;
  background: #f5f8f6;
}
td code {
  font-size: 11px;
  word-break: break-all;
}
.message {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  border-left: 3px solid #b9d5c5;
  padding: 10px 15px;
  margin: 12px 0;
  background: #f6f9f7;
}
.message small {
  display: block;
  color: #658073;
  margin-bottom: 7px;
}
#notice {
  color: #a13b28;
  white-space: pre-wrap;
}
#auth {
  max-width: 580px;
}
details {
  margin-top: 22px;
}
summary {
  cursor: pointer;
  padding: 10px 0;
}
[hidden] {
  display: none !important;
}
button:focus-visible,
a:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
  outline: 3px solid #68a987;
  outline-offset: 2px;
}
@media (max-width: 700px) {
  header {
    display: block;
    padding: 24px 16px;
  }
  nav {
    margin-top: 20px;
  }
  main {
    padding: 0 14px 25px;
  }
  section {
    padding: 20px 16px;
  }
  h1 {
    font-size: 26px;
  }
  .stat {
    min-width: 115px;
    flex: 1;
  }
}
nav {
  margin: 0 0 22px;
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
nav button {
  background: white;
  border: 1px solid #dce6df;
  color: #456457;
}
nav button[aria-current="page"] {
  background: #21654e;
  color: white;
}
header p {
  margin: 0;
}
.actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
.grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.conversation-layout {
  grid-template-columns: 280px minmax(0, 1fr);
}
.user-card {
  display: block;
  text-align: left;
  width: 100%;
  margin: 10px 0;
  background: #f1f6f3;
  color: #17372f;
  border: 1px solid #d8e5dc;
}
.user-card small {
  display: block;
  word-break: break-all;
  color: #6b8176;
  margin-top: 5px;
}
.hint {
  background: #fff5db;
  border: 1px solid #ead8a6;
  padding: 14px;
  border-radius: 8px;
  line-height: 1.7;
}
.keyword-row {
  border: 1px solid #dce6df;
  border-radius: 8px;
  padding: 14px;
  margin: 12px 0;
  display: grid;
  gap: 10px;
}
#recipients label {
  display: flex;
  align-items: center;
  padding: 8px;
}
input[type="checkbox"] {
  width: auto;
}
fieldset {
  border: 1px solid #dce6df;
  border-radius: 8px;
}
.history {
  max-height: 480px;
  overflow: auto;
}
#default-form {
  margin-top: 24px;
  border-top: 1px solid #dde7e0;
  padding-top: 20px;
}
.empty {
  padding: 32px;
  color: #698173;
}
button.secondary {
  background: #e5eee8;
  color: #224f3d;
}
@media (max-width: 760px) {
  .grid,
  .conversation-layout {
    grid-template-columns: 1fr;
  }
  .conversation-layout > div:first-child {
    max-height: 270px;
    overflow: auto;
  }
}
