:root {
  font-family:
    Inter,
    -apple-system,
    BlinkMacSystemFont,
    'Segoe UI',
    sans-serif;
  color: #183f47;
  background: #edf2f0;
  font-synthesis: none;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
}
button,
input,
select,
textarea {
  font: inherit;
}
button,
a,
select,
input,
textarea {
  -webkit-tap-highlight-color: transparent;
}
button,
a {
  touch-action: manipulation;
}
button {
  cursor: pointer;
  min-height: 44px;
  border: 0;
  border-radius: 12px;
  background: none;
  color: inherit;
  padding: 10px 15px;
  font-weight: 650;
}
button:disabled {
  opacity: 0.45;
  cursor: default;
}
button:focus-visible,
a:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
  outline: 3px solid #c78b36;
  outline-offset: 2px;
}
a {
  color: #177a93;
}
input,
textarea,
select {
  font-size: 16px;
  max-width: 100%;
  border: 1px solid #cbd9d8;
  border-radius: 12px;
  background: #fff;
  color: #183f47;
  padding: 13px;
}
textarea {
  resize: none;
}
input {
  width: 100%;
  margin-top: 7px;
}
label {
  font-size: 14px;
  font-weight: 650;
}
h1,
h2,
p {
  margin: 0;
}
h1 {
  font-size: 32px;
  letter-spacing: -1px;
}
h2 {
  font-size: 18px;
  margin-bottom: 10px;
}
p {
  line-height: 1.55;
}
#app {
  max-width: 680px;
  margin: auto;
  background: #fbfcfa;
  min-height: var(--app-height, 100dvh);
  padding-top: env(safe-area-inset-top);
  padding-bottom: env(safe-area-inset-bottom);
}
[hidden] {
  display: none !important;
}
.brand {
  height: 76px;
  padding: 16px 24px;
  display: flex;
  align-items: center;
  gap: 14px;
  border-bottom: 1px solid #e2e9e5;
}
.brand img {
  width: 112px;
  display: block;
}
.brand > span {
  font-size: 10px;
  letter-spacing: 2px;
  border-left: 1px solid #cbd9d8;
  padding-left: 14px;
}
.brand button {
  margin-left: auto;
}
.icon {
  font-size: 24px;
  line-height: 24px;
  width: 44px;
  padding: 10px;
}
.connection {
  font-size: 11px;
  letter-spacing: 0.2px;
  background: #e6eeeb;
  padding: 5px 24px;
  color: #4c6969;
}
.connection.offline {
  background: #fff0cc;
  color: #805f20;
}
.notice {
  padding: 12px 20px;
  font-size: 14px;
}
.error {
  background: #fce9e6;
  color: #893c32;
}
.login {
  padding: 52px 28px;
}
.eyebrow {
  font-size: 10px;
  letter-spacing: 1.5px;
  font-weight: 750;
  color: #6c8581;
}
.login h1 {
  font-size: 46px;
  line-height: 1.08;
  margin: 20px 0;
}
.login p {
  color: #68807e;
  margin-bottom: 30px;
}
.login form {
  display: grid;
  gap: 20px;
}
.login a {
  display: inline-block;
  font-size: 14px;
  margin-top: 24px;
}
.primary {
  background: #176d7e;
  color: #fff;
}
.secondary {
  border: 1px solid #cbd9d8;
  background: #fff;
}
.wide {
  width: calc(100% - 40px);
  margin: 12px 20px;
}
.workspace {
  margin: 24px 24px 0;
  display: flex;
  align-items: center;
  gap: 12px;
}
.workspace label {
  font-size: 9px;
  letter-spacing: 1.4px;
  color: #6c8581;
}
.workspace select {
  flex: 1;
  min-width: 0;
  border: none;
  background: #e9f0ed;
  padding: 9px 12px;
  font-size: 14px;
  font-weight: 650;
}
.heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 28px 24px 22px;
}
.heading .eyebrow {
  font-size: 8px;
  letter-spacing: 1px;
}
.heading h1 {
  margin-top: 7px;
}
nav {
  display: flex;
  margin: 0 24px 16px;
  background: #eaf0ec;
  padding: 4px;
  border-radius: 14px;
  gap: 2px;
}
nav button {
  flex: 1;
  min-width: 0;
  padding: 8px 3px;
  font-size: 13px;
}
nav button[aria-pressed='true'] {
  background: #fff;
  box-shadow: 0 2px 5px #23473716;
}
.conversation {
  border-bottom: 1px solid #e5ebe6;
  display: flex;
  width: 100%;
  text-align: left;
  align-items: center;
  border-radius: 0;
  gap: 13px;
  padding: 20px 24px;
  font-weight: 400;
}
.avatar {
  width: 44px;
  height: 44px;
  flex-shrink: 0;
  border-radius: 15px;
  background: #e4eee9;
  display: grid;
  place-items: center;
  font-size: 17px;
  font-weight: 750;
  color: #34645f;
}
.conversation .copy {
  min-width: 0;
  flex: 1;
}
.conversation .top {
  display: flex;
  align-items: center;
  gap: 10px;
}
.conversation strong {
  font-size: 16px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.conversation time {
  font-size: 11px;
  color: #73847d;
  margin-left: auto;
  white-space: nowrap;
}
.preview {
  font-size: 14px;
  color: #6e807b;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  margin: 5px 0 7px;
}
.badge {
  font-size: 10px;
  padding: 3px 7px;
  border-radius: 5px;
  background: #e8eeeb;
  color: #647871;
  display: inline-block;
}
.badge.waiting {
  background: #fff0d5;
  color: #956b24;
}
.empty {
  margin: 36px 24px;
  padding: 36px 24px;
  border: 1px dashed #c5d5cf;
  border-radius: 20px;
  text-align: center;
}
.empty .empty-icon {
  font-size: 32px;
  margin-bottom: 16px;
}
.empty p {
  font-size: 14px;
  color: #70847e;
  margin-top: 10px;
}
.quiet-note {
  text-align: center;
  font-size: 11px;
  color: #8a9b92;
  margin: 30px 15px;
}
.thread-head {
  padding: 15px 12px;
  display: flex;
  gap: 8px;
  align-items: center;
  border-bottom: 1px solid #e2e9e5;
}
.thread-head > div {
  min-width: 0;
  flex: 1;
}
.thread-head h1 {
  font-size: 18px;
  letter-spacing: -0.2px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.thread-head p {
  font-size: 11px;
  color: #6e807b;
  word-break: break-word;
}
.thread-head .secondary {
  font-size: 12px;
  padding: 8px;
}
.thread-scroll {
  overflow-y: auto;
  overscroll-behavior: contain;
  flex: 1;
  padding: 8px 0 16px;
  min-height: 0;
}
.thread-scroll .wide {
  font-size: 12px;
}
#thread {
  display: flex;
  flex-direction: column;
  height: calc(
    var(--app-height, 100dvh) - 103px - env(safe-area-inset-top) - env(safe-area-inset-bottom)
  );
}
#messages {
  padding: 8px 20px;
}
.message {
  max-width: 88%;
  width: fit-content;
  margin: 12px 0;
  padding: 12px 15px;
  border-radius: 17px 17px 17px 4px;
  background: #edf1eb;
  color: #284a46;
  font-size: 15px;
  line-height: 1.5;
  overflow-wrap: anywhere;
  white-space: pre-wrap;
}
.message.rep {
  margin-left: auto;
  background: #d9ebeb;
  border-radius: 17px 17px 4px 17px;
}
.message.system {
  margin: 18px auto;
  padding: 0;
  text-align: center;
  font-size: 11px;
  max-width: 100%;
  color: #829087;
  background: none;
}
.message small {
  display: block;
  font-size: 10px;
  opacity: 0.65;
  margin-bottom: 5px;
  white-space: normal;
}
.composer {
  padding: 12px 16px 14px;
  border-top: 1px solid #e2e9e5;
  background: #fbfcfa;
}
.composer > p {
  font-size: 11px;
  color: #74857e;
  margin-bottom: 8px;
}
.composer form {
  display: flex;
  gap: 8px;
  align-items: end;
}
.composer textarea {
  min-width: 0;
  flex: 1;
  max-height: 140px;
  padding: 10px 13px;
  line-height: 1.4;
}
.composer .primary {
  height: 51px;
}
.send-meta {
  font-size: 10px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: #71857e;
  min-height: 24px;
}
.send-meta button {
  font-size: 12px;
  min-height: 30px;
  padding: 4px 10px;
}
.settings {
  padding: 0 24px 28px;
}
.settings .heading {
  padding-left: 0;
  padding-right: 0;
}
.settings > p {
  font-size: 13px;
  color: #6e807b;
}
.settings article {
  padding: 24px 0;
  border-bottom: 1px solid #e2e9e5;
}
.settings article p {
  font-size: 13px;
  color: #6e807b;
  margin-bottom: 14px;
}
.settings article button {
  margin: 4px 4px 4px 0;
}
.row {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  align-items: center;
}
.row select {
  min-height: 44px;
}
.device {
  display: flex;
  gap: 8px;
  align-items: center;
  justify-content: space-between;
  font-size: 13px;
}
.device button {
  color: #a24d3b;
  font-size: 12px;
}
.footer-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 18px;
  margin-top: 24px;
  font-size: 13px;
}
.footer-links button {
  padding-left: 0;
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
}
@media (min-width: 720px) {
  #app {
    margin: 24px auto;
    min-height: calc(var(--app-height, 100dvh) - 48px);
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 15px 70px #1f4e3e12;
  }
  #thread {
    height: calc(var(--app-height, 100dvh) - 151px);
  }
}
