:root {
  font-family:ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;
  color:#20372f;
  background:#f5f6f1;
  font-size:16px;
  line-height:1.55;
  font-synthesis:none;
}
* {
  box-sizing:border-box;
}
body {
  margin:0;
}
header {
  max-width:1440px;
  margin:auto;
  padding:24px 5%;
  display:flex;
  gap:24px;
  align-items:center;
  border-bottom:1px solid #dde3db;
}
.brand {
  display:flex;
  gap:12px;
  align-items:center;
  text-decoration:none;
  color:inherit;
  font-size:20px;
}
.brand strong {
  font-weight:450;
  color:#65746c;
}
.mark {
  display:grid;
  place-items:center;
  background:#244f40;
  color:white;
  width:40px;
  height:40px;
  font-size:34px;
  border-radius:12px;
  line-height:1;
}
.tag,.eyebrow {
  font-size:11px;
  font-weight:700;
  letter-spacing:.12em;
  color:#61746a;
}
.tag {
  margin-left:auto;
}
main {
  max-width:1320px;
  margin:auto;
  padding:40px 32px;
}
.heading {
  display:flex;
  justify-content:space-between;
  align-items:center;
  margin-bottom:28px;
}
.heading p {
  margin:6px 0;
}
h1 {
  font-size:clamp(32px,4vw,44px);
  line-height:1.15;
  font-weight:580;
  letter-spacing:-.04em;
  margin:12px 0 16px;
}
h2 {
  font-size:21px;
  line-height:1.3;
  letter-spacing:-.02em;
  margin:8px 0 14px;
}
p {
  margin:12px 0;
}
.badge {
  border:1px solid #bfcfc1;
  padding:8px 14px;
  border-radius:30px;
  font-size:13px;
  white-space:nowrap;
}
.layout {
  display:grid;
  grid-template-columns:320px minmax(0,1fr);
  gap:28px;
  align-items:start;
}
.card {
  border:1px solid #dfe5dc;
  background:#fffefb;
  border-radius:20px;
  padding:26px;
  margin-bottom:22px;
}
.card .eyebrow {
  margin:0 0 18px;
}
.muted {
  color:#69796f;
  font-size:13px;
  line-height:1.6;
}
label {
  display:block;
  font-size:14px;
  font-weight:600;
  margin:18px 0 8px;
}
input,select,textarea {
  width:100%;
  font:inherit;
  border:1px solid #cad5cc;
  border-radius:10px;
  padding:12px;
  background:#fffefb;
  color:#253a30;
  min-height:48px;
}
textarea {
  resize:vertical;
  line-height:1.55;
}
button {
  font:inherit;
  font-size:14px;
  font-weight:600;
  border:1px solid transparent;
  border-radius:10px;
  background:#264f40;
  color:white;
  min-height:46px;
  padding:12px 20px;
  cursor:pointer;
}
button:disabled {
  opacity:.42;
  cursor:not-allowed;
}
button:hover:not(:disabled) {
  filter:brightness(.95);
}
button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible {
  outline:3px solid #a3ba79;
  outline-offset:3px;
}
.secondary {
  background:#eff2e9;
  color:#284837;
  border-color:#d8e0d1;
}
.quiet {
  background:transparent;
  color:#425c4e;
  border-color:#ced9cf;
  font-size:12px;
}
.actions {
  display:flex;
  gap:12px;
  flex-wrap:wrap;
  margin-top:20px;
}
#read {
  width:100%;
  margin-top:16px;
}
.compose label:first-of-type {
  margin-top:0;
}
.disclosure {
  font-size:13px;
  color:#5e6d63;
  border-left:3px solid #cbd7aa;
  padding-left:12px;
}
.empty {
  padding:50px 24px;
  text-align:center;
  max-width:600px;
  margin:auto;
}
.empty-symbol {
  font-size:32px;
  margin-bottom:20px;
  color:#78945b;
}
.empty p {
  color:#6a7a70;
}
.results-heading {
  margin:32px 0 20px;
}
.summaries {
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(220px,1fr));
  gap:14px;
}
.summary {
  padding:20px;
  border-radius:14px;
  background:#e8eee3;
}
.summary p {
  font-size:14px;
}
.summary.error {
  background:#fff1e6;
}
#items {
  margin-top:18px;
}
.mail-item {
  padding:22px;
  border:1px solid #dce4d9;
  border-radius:15px;
  background:#fffefb;
  margin-bottom:14px;
  overflow-wrap:anywhere;
}
.mail-item h3 {
  font-size:17px;
  line-height:1.45;
  margin:0;
}
.mail-item .meta {
  font-size:12px;
  color:#778177;
  margin:5px 0 18px;
}
.verdicts {
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(200px,1fr));
  gap:18px;
}
.verdict {
  font-size:14px;
  border-top:1px solid #e4e9e1;
  padding-top:15px;
}
.category {
  display:inline-block;
  padding:4px 9px;
  background:#eff2e9;
  border-radius:6px;
  font-size:12px;
  font-weight:650;
}
.category.action {
  background:#dceacb;
}
.category.uncertain {
  background:#f5ead2;
}
.evidence {
  font-size:12px;
  color:#667667;
  border-left:2px solid #ced8c8;
  padding-left:10px;
  white-space:pre-wrap;
}
.source-button {
  background:transparent;
  color:#345443;
  padding:8px 0;
  margin-top:12px;
  text-decoration:underline;
  text-underline-offset:4px;
}
.login {
  max-width:490px;
  margin:6vh auto;
  padding:38px;
}
.login form {
  margin-top:28px;
}
.login button {
  margin-top:18px;
  width:100%;
}
footer {
  margin-top:42px;
  font-size:12px;
  color:#7e887f;
  text-align:center;
}
#error {
  position:sticky;
  bottom:16px;
  background:#fff0e8;
  border:1px solid #e6c5b2;
  color:#753a26;
  padding:18px;
  border-radius:12px;
  z-index:2;
}
#status:not(:empty) {
  padding:15px 20px;
  border-radius:12px;
  background:#e8eee3;
  margin-bottom:20px;
}
dialog {
  border:1px solid #d3ddcf;
  border-radius:18px;
  padding:28px;
  width:min(760px,94vw);
  max-height:85vh;
  color:inherit;
  background:#fffefb;
}
dialog::backdrop {
  background:#18392c70;
}
.dialog-heading {
  display:flex;
  gap:20px;
  align-items:start;
  justify-content:space-between;
}
.dialog-heading h2 {
  overflow-wrap:anywhere;
}
.dialog-heading button {
  flex-shrink:0;
}
pre {
  white-space:pre-wrap;
  overflow-wrap:anywhere;
  font:14px/1.7 ui-sans-serif,system-ui,sans-serif;
}
[hidden] {
  display:none!important;
}
@media(max-width:850px) {
  main {
    padding:28px 20px;
  }
  .layout {
    grid-template-columns:1fr;
  }
  .layout aside {
    display:grid;
    grid-template-columns:1fr 1fr;
    gap:18px;
  }
  header {
    padding:18px 20px;
    gap:12px;
  }
  .tag {
    font-size:9px;
  }
  .quiet {
    padding:8px 10px;
  }
  .card {
    padding:22px;
  }
  .login {
    padding:30px;
  }
}
@media(max-width:560px) {
  header {
    flex-wrap:wrap;
  }
  .brand {
    font-size:18px;
  }
  .layout aside {
    display:block;
  }
  .heading {
    align-items:start;
    gap:12px;
  }
  .badge {
    font-size:11px;
    padding:7px 10px;
  }
  .card {
    border-radius:15px;
  }
  .verdicts,.summaries {
    grid-template-columns:1fr;
  }
  main {
    padding:24px 16px;
  }
  .tag {
    margin-left:auto;
  }
  #logout {
    margin-left:auto;
  }
  .login {
    margin-top:24px;
  }
  .dialog-heading {
    flex-direction:column;
  }
  h1 {
    font-size:34px;
  }
}
