:root {
  color-scheme: light;
  font-family: system-ui, "Microsoft YaHei", sans-serif;
  color: #1c2b28;
  background: #f5f7f5;
}
* { box-sizing: border-box; }
body { margin: 0; }
main { width: min(54rem, calc(100% - 2rem)); margin: clamp(2rem, 8vh, 5rem) auto; }
header, .actions, .list-header { display: flex; align-items: center; gap: .65rem; flex-wrap: wrap; }
header, .list-header { justify-content: space-between; }
h1 { margin: 0; font-size: 2.35rem; letter-spacing: -.055em; }
p { color: #465c54; line-height: 1.6; }
a { color: #215e4a; text-underline-offset: .22em; }
label { display: block; font-weight: 650; margin: 1.8rem 0 .55rem; }
textarea {
  display: block;
  width: 100%;
  min-height: 18rem;
  height: 47vh;
  resize: vertical;
  padding: 1rem;
  border: 1px solid #aec1b9;
  border-radius: .75rem;
  background: white;
  color: inherit;
  font: 1rem/1.65 Consolas, "Microsoft YaHei", monospace;
}
.actions { margin-top: .85rem; }
button {
  padding: .55rem .85rem;
  min-height: 2.75rem;
  border: 1px solid #215e4a;
  border-radius: .5rem;
  color: white;
  background: #215e4a;
  font: inherit;
  cursor: pointer;
}
.secondary { background: white; color: #215e4a; }
button:disabled { opacity: .5; cursor: default; }
:focus-visible { outline: 2px solid #24856a; outline-offset: 3px; }
#status, .note { font-size: .875rem; }
#list-view { margin-top: 2rem; }
.list-header h2 { margin: 0; font-size: 1.3rem; }
#documents { padding: 0; list-style: none; }
#documents a {
  display: block;
  margin: .55rem 0;
  padding: .8rem 1rem;
  border-radius: .5rem;
  border: 1px solid #d5e0db;
  background: white;
  overflow-wrap: anywhere;
}
