:root {
  color: #202920;
  background: #f6f6ef;
  font: 1rem/1.5 system-ui, sans-serif;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { max-width: 45rem; padding: 0 1rem 2rem; margin: auto; }
header, .conversation-header { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
h1 { font-family: Georgia, serif; font-weight: normal; font-size: 2.4rem; }
h2 { margin: 0; font-size: 1.2rem; overflow-wrap: anywhere; }
main { background: #fff; border: 1px solid #dce2d7; border-radius: 1rem; padding: clamp(1rem, 4vw, 2rem); }
form, label { display: grid; gap: .5rem; }
label { margin: .5rem 0; }
input, select, textarea, button { font: inherit; border-radius: .5rem; padding: .65rem .8rem; }
input, select, textarea { width: 100%; border: 1px solid #879785; color: inherit; background: white; }
textarea { resize: vertical; }
button { justify-self: start; color: white; background: #245542; border: 1px solid #245542; cursor: pointer; }
button:disabled { opacity: .55; cursor: wait; }
#status { color: #8b301d; }
#conversation { margin-top: 1.5rem; }
#messages { list-style: none; padding: 0; max-height: 50vh; overflow-y: auto; }
#messages li { padding: .8rem 1rem; margin-bottom: .5rem; background: #eef3eb; border-radius: .65rem; overflow-wrap: anywhere; }
#messages p { margin: .3rem 0 0; white-space: pre-wrap; }
#messages time { display: block; font-size: .85rem; color: #465546; }

#reply-draft { border-top: 1px solid #dce2d7; margin-top: 1.5rem; padding-top: 1rem; }
#reply-draft > button { margin: .2rem .25rem .2rem 0; }

#browser-import { margin-bottom: 1.25rem; padding-bottom: 1rem; border-bottom: 1px solid #d4dfd2; }
#browser-import summary { font-weight: 700; cursor: pointer; }
