* {
  box-sizing: border-box;
}
body {
  margin: 0;
  background: #eaf0f2;
  color: #142f3c;
  font:
    16px/1.5 -apple-system,
    BlinkMacSystemFont,
    "PingFang SC",
    sans-serif;
}
button,
select,
input,
textarea {
  font: inherit;
  color: inherit;
}
button,
select {
  cursor: pointer;
}
button {
  border: 1px solid #cad7db;
  background: #fff;
  border-radius: 10px;
  padding: 7px 13px;
}
button:hover {
  background: #edf6f6;
}
button:disabled {
  opacity: 0.5;
  cursor: default;
}
.primary {
  background: #076969;
  color: white;
  border: 0;
  font-weight: 650;
}
.primary:hover {
  background: #075b5c;
}
.brand {
  font-weight: 750;
  letter-spacing: 0.02em;
  color: #147471;
}
h1 {
  margin: 1px 0;
  font-size: 28px;
  letter-spacing: -0.04em;
}
#login {
  max-width: 370px;
  margin: 14vh auto;
  padding: 25px;
}
#sign-in {
  display: grid;
  gap: 17px;
}
#sign-in label {
  display: grid;
  gap: 4px;
}
input,
select,
textarea {
  border: 1px solid #c4d4d7;
  border-radius: 8px;
  background: #fff;
  padding: 8px;
}
#chat {
  max-width: 600px;
  margin: auto;
  min-height: 100dvh;
  background: #f9fbfa;
  display: flex;
  flex-direction: column;
  box-shadow: 0 2px 22px #1c535312;
}
header,
.toolbar,
footer {
  padding: 14px 20px;
}
header,
.toolbar,
.tools,
#compose {
  display: flex;
  align-items: center;
  gap: 8px;
}
header {
  justify-content: space-between;
  background: #fff;
  border-bottom: 1px solid #dde5e5;
}
.tools {
  font-size: 13px;
  flex-wrap: wrap;
  justify-content: end;
}
#status {
  color: #336b63;
}
#status.off {
  color: #95582e;
}
.toolbar {
  font-size: 13px;
}
.toolbar label {
  flex: 1;
  min-width: 0;
}
.toolbar select {
  max-width: 75%;
}
#transcript {
  padding: 15px 20px;
  flex: 1;
}
.question {
  margin: 18px 0 9px auto;
  width: fit-content;
  max-width: 90%;
  padding: 10px 15px;
  background: #d9f1e9;
  border-radius: 14px 14px 4px 14px;
  white-space: pre-wrap;
}
.result {
  border: 1px solid #dbe5e2;
  background: white;
  border-radius: 4px 14px 14px 14px;
  padding: 13px 15px;
  margin: 0 0 18px;
}
.result strong {
  display: block;
  font-size: 24px;
}
.muted,
small,
#notice {
  color: #51696d;
  font-size: 13px;
}
#notice,
.error {
  margin: 5px 0 0;
}
.error {
  color: #943c32;
}
footer {
  position: sticky;
  bottom: 0;
  background: #f9fbfa;
  border-top: 1px solid #dde5e5;
}
#compose {
  align-items: stretch;
}
textarea {
  resize: vertical;
  flex: 1;
  min-width: 0;
}
#suggestions {
  display: flex;
  gap: 6px;
  overflow: auto;
  margin-bottom: 10px;
}
#suggestions button {
  font-size: 12px;
  text-align: left;
}
#transcript p {
  margin: 4px 0;
}
.sr {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
}
[hidden] {
  display: none !important;
}
table {
  font-size: 13px;
  width: 100%;
}
td {
  padding: 3px;
}
.result details {
  max-height: 280px;
  overflow: auto;
}

dialog {
  width: min(900px, 96vw);
  border: 1px solid #d6dfdc;
  border-radius: 12px;
}
dialog form {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
dialog img {
  max-width: 100%;
  height: auto;
}
.evidence-button {
  margin: 8px 8px 0 0;
  font-size: 13px;
}
#boxes section,
.box-row {
  margin: 16px 0;
}
.box-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}
.box-row small {
  color: #526b72;
}
#activated button {
  margin: 4px 0;
}
