:root {
  font: 16px/1.6 system-ui, -apple-system, "Segoe UI", sans-serif;
  color: #202b36;
  background: #f6f7f9;
}
* { box-sizing: border-box; }
body { margin: 0; }
button, input, textarea { font: inherit; }
button, a.button {
  cursor: pointer;
  flex-shrink: 0;
  white-space: nowrap;
  border: 1px solid #ccd3de;
  border-radius: 7px;
  background: white;
  padding: 7px 16px;
  color: #23364c;
  text-decoration: none;
}
button:hover, a.button:hover { background: #edf2f8; }
button:disabled { opacity: .55; cursor: wait; }
header {
  position: sticky;
  top: 0;
  z-index: 2;
  background: #fff;
  border-bottom: 1px solid #dce1e8;
  padding: 12px 24px;
  display: flex;
  align-items: center;
  gap: 12px;
}
header strong { margin-right: auto; }
h1 { font-size: 26px; font-weight: 600; }
main { max-width: 1000px; margin: 24px auto; padding: 0 24px; }
.login { max-width: 410px; margin: 12vh auto; }
.login input {
  width: 100%;
  padding: 10px;
  margin: 8px 0 18px;
  border: 1px solid #b9c3cf;
  border-radius: 7px;
}
.login button { width: 100%; background: #1e5ca7; color: white; border: 0; }
#error, .error { color: #aa2929; }
#status { color: #58687c; font-size: 14px; }
article { margin: 20px 0; padding: 0 0 20px; border-bottom: 1px solid #e1e5eb; }
.user { color: #43556c; white-space: pre-wrap; }
.reply, pre { white-space: pre-wrap; overflow-wrap: anywhere; }
details { font-size: 14px; color: #617086; margin: 12px 0; }
summary { cursor: pointer; }
.composer {
  position: sticky;
  bottom: 0;
  background: #f6f7f9;
  padding: 14px 0;
  display: flex;
  align-items: flex-end;
  gap: 10px;
}
textarea {
  width: 100%;
  min-width: 0;
  min-height: 100px;
  max-height: 300px;
  padding: 12px;
  resize: vertical;
  border: 1px solid #bcc8d5;
  border-radius: 9px;
  background: white;
}
.muted { font-size: 13px; color: #6b7785; }
.desktop { background: #202327; height: calc(100vh - 64px); width: 100%; overflow: hidden; }
#screen { width: 100%; height: 100%; }
#clipboard {
  display: none;
  position: absolute;
  z-index: 5;
  top: 70px;
  left: 16px;
  background: white;
  padding: 16px;
  border: 1px solid #ccc;
  border-radius: 8px;
  width: 380px;
}
#clipboard.open { display: block; }
dialog { border: 1px solid #ccd3de; border-radius: 9px; max-width: 600px; }
a { color: #1c5fa4; }
