:root {
  font-family: Arial, Helvetica, sans-serif;
  color: #243b40;
  background: #f5f4ef;
  font-synthesis: none;
  --green: #174b47;
  --line: #d4dcd7;
  --yellow: #f9e68c;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
}
a {
  color: var(--green);
}
button,
input,
textarea,
select {
  font: inherit;
}
button,
a.button {
  cursor: pointer;
}
button:disabled {
  cursor: wait;
  opacity: 0.6;
}
button,
.button {
  border: 1px solid var(--green);
  background: var(--green);
  color: #fff;
  padding: 13px 20px;
  border-radius: 6px;
  font-weight: 700;
  text-decoration: none;
  display: inline-block;
}
button.secondary,
.button.secondary {
  background: white;
  color: var(--green);
}
:focus-visible {
  outline: 3px solid #df714e;
  outline-offset: 4px;
}
.topbar {
  padding: 16px max(24px, calc((100% - 1120px) / 2));
  display: flex;
  justify-content: space-between;
  gap: 20px;
  border-bottom: 1px solid var(--line);
  background: #fff;
  font-size: 14px;
}
.brand {
  font-weight: 800;
  letter-spacing: -0.4px;
}
.badge {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1.4px;
  text-transform: uppercase;
}
.topbar .badge {
  color: #695713;
}
main {
  max-width: 1120px;
  padding: 48px 24px 60px;
  margin: auto;
}
h1 {
  font-size: clamp(30px, 5vw, 48px);
  letter-spacing: -1.6px;
  line-height: 1.1;
  margin: 12px 0 16px;
}
h2 {
  font-size: 24px;
  letter-spacing: -0.4px;
  margin: 0 0 12px;
}
h3 {
  font-size: 18px;
  margin: 0 0 10px;
}
p {
  line-height: 1.55;
  margin: 8px 0 16px;
}
.intro {
  max-width: 700px;
}
.muted,
.help {
  color: #5c6d6b;
}
.help {
  font-size: 14px;
}
.notice {
  padding: 14px 18px;
  background: #fff7d5;
  border-left: 3px solid #b8a038;
  margin: 24px 0;
  border-radius: 3px;
  line-height: 1.5;
}
.identity {
  background: white;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 22px;
  margin: 28px 0;
}
.identity input {
  max-width: 420px;
}
label.field {
  display: block;
  font-weight: 700;
  margin: 20px 0 8px;
}
input[type="text"],
textarea,
select {
  width: 100%;
  border: 1px solid #91a49d;
  border-radius: 5px;
  padding: 11px 12px;
  background: #fff;
  color: #243b40;
}
textarea {
  min-height: 110px;
  resize: vertical;
  line-height: 1.5;
}
textarea:disabled {
  background: #f2f4f2;
}
input[type="radio"] {
  width: 18px;
  height: 18px;
  accent-color: var(--green);
  flex-shrink: 0;
}
fieldset {
  border: 0;
  padding: 0;
  margin: 0;
  min-width: 0;
}
legend {
  font-weight: 700;
  margin: 0 0 10px;
}
.section {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  border: 1px solid var(--line);
  border-radius: 10px;
  overflow: hidden;
  margin: 24px 0;
  background: white;
}
.preview {
  padding: 30px;
  background: #eaf0eb;
  border-right: 1px solid var(--line);
}
.preview .badge {
  color: #647971;
}
.preview h2 {
  margin-top: 24px;
}
.preview-copy {
  font-size: 25px;
  letter-spacing: -0.5px;
  line-height: 1.45;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.placeholder {
  border: 1px dashed #99aea2;
  background: #f5f7f1;
  padding: 30px 20px;
  margin-top: 25px;
  color: #52685b;
}
.review-panel {
  padding: 28px;
}
.choice {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  border: 1px solid var(--line);
  padding: 12px;
  border-radius: 5px;
  margin: 8px 0;
  line-height: 1.4;
}
.choice:has(input:checked) {
  border-color: var(--green);
  background: #f0f5ef;
}
.choice strong {
  display: block;
  margin-bottom: 4px;
  font-size: 14px;
}
.choice span {
  font-size: 14px;
}
details {
  margin-top: 24px;
  font-size: 14px;
}
summary {
  cursor: pointer;
  font-weight: bold;
}
details p {
  margin: 10px 0;
}
#draft-status {
  font-size: 13px;
  margin: 8px 0 0;
}
.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  margin: 24px 0 10px;
}
.status {
  padding: 18px;
  border-radius: 6px;
  background: #e4f0e6;
  white-space: pre-line;
  overflow-wrap: anywhere;
}
.status.error {
  background: #fee9e0;
  border: 1px solid #b96746;
}
.hidden,
[hidden] {
  display: none !important;
}
.receipt {
  font-size: 14px;
}
.print-feedback {
  display: none;
}
.filters {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin: 24px 0;
}
.response {
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
  margin: 18px 0;
  overflow-wrap: anywhere;
}
.response .meta {
  font-size: 13px;
  color: #5c6d6b;
}
.response-section {
  border-top: 1px solid var(--line);
  padding: 20px 0 0;
  margin-top: 20px;
}
.response pre {
  white-space: pre-wrap;
  font: inherit;
  line-height: 1.5;
}
.response dt {
  font-weight: 700;
  font-size: 14px;
  margin-top: 16px;
}
.response dd {
  margin: 6px 0;
  white-space: pre-wrap;
  line-height: 1.5;
}
footer {
  font-size: 13px;
  color: #5c6d6b;
  border-top: 1px solid var(--line);
  padding-top: 20px;
  margin-top: 35px;
}
.send {
  padding-top: 10px;
}
.send h2 {
  margin-top: 18px;
}
@media (max-width: 720px) {
  main {
    padding: 30px 16px;
  }
  .topbar {
    padding: 16px;
  }
  .section {
    grid-template-columns: 1fr;
  }
  .preview {
    border-right: 0;
    border-bottom: 1px solid var(--line);
    padding: 22px;
  }
  .review-panel {
    padding: 22px;
  }
  .filters {
    grid-template-columns: 1fr;
    gap: 0;
  }
  .preview-copy {
    font-size: 23px;
  }
  .actions button {
    width: 100%;
  }
}
@media print {
  body {
    background: white;
    color: black;
  }
  .topbar,
  .notice,
  .identity,
  .review-panel,
  .actions,
  .send,
  .local-inbox,
  footer,
  #draft-status {
    display: none !important;
  }
  main {
    max-width: none;
    padding: 0;
  }
  h1 {
    font-size: 28px;
  }
  .section {
    display: block;
    border: 0;
    break-inside: avoid;
  }
  .preview {
    background: white;
    border: 0;
    padding: 16px 0;
  }
  .preview .badge,
  details {
    display: none;
  }
  .preview-copy {
    font-size: 20px;
  }
  .print-feedback {
    display: block;
    break-before: page;
  }
  .print-feedback pre {
    white-space: pre-wrap;
    font: inherit;
    line-height: 1.5;
  }
}
