@font-face {
  font-family: Symbols;
  src: url("./symbols.ttf") format("truetype");
  font-display: block;
}
:root {
  color-scheme: light;
  --ink: #172e28;
  --muted: #596c63;
  --line: #dce3dd;
  --green: #17664d;
  --paper: #f6f7f2;
  font-family: Inter, "Segoe UI", Arial, sans-serif;
  color: var(--ink);
  background: var(--paper);
}
.wa-rich { white-space:normal; }
.wa-line { white-space:pre-wrap; overflow-wrap:anywhere; }
.wa-line.wa-bullet,.wa-line.wa-number { display:flex; gap:.4em; }
.wa-marker { flex:none; min-width:.9em; text-align:end; }
.wa-content { min-width:0; }
.wa-line.wa-quote { margin:0; padding-inline-start:.65em; border-inline-start:3px solid #8ca399; }
.wa-rich strong { font-weight:700; }
.wa-rich code,.preview code,.quoted-message code,#reply-excerpt code { font-family:ui-monospace,Consolas,monospace; font-size:.95em; }
.wa-inline-code { background:rgb(30 57 48 / 8%); border-radius:3px; padding:0 .12em; }
.user-nav-icon { width:22px; height:22px; flex:none; }
.users-panel { padding-bottom:24px; }
.users-heading { display:flex; gap:24px; align-items:flex-start; justify-content:space-between; margin-bottom:20px; }
.users-heading h2 { font-size:22px; margin-bottom:8px; }
.users-heading p,.users-card header p,.user-dialog p { color:var(--muted); line-height:1.55; max-width:660px; }
.users-heading > button { flex:none; white-space:nowrap; }
.users-card { border:1px solid var(--line); border-radius:14px; background:white; margin-top:18px; overflow:hidden; }
.users-card header { display:flex; justify-content:space-between; align-items:center; padding:20px 22px; gap:16px; }
.users-card h3 { margin:0; font-size:16px; }
.users-card header p { margin-top:6px; font-size:13px; }
.users-card table { width:100%; }
.user-email { font-weight:600; overflow-wrap:anywhere; }
.user-actions { white-space:nowrap; }
.user-actions button + button { margin-left:8px; }
.user-danger { color:#a32a27; }
.users-note:not(:empty) { background:#e8f3ed; border-radius:10px; padding:14px 18px; line-height:1.5; }
.user-phone { display:flex; align-items:center; justify-content:space-between; gap:20px; padding:18px 22px; border-top:1px solid var(--line); }
.user-phone-info { display:flex; flex-direction:column; gap:5px; min-width:0; overflow-wrap:anywhere; }
.user-phone-info span,.user-phone-info small { color:var(--muted); }
.user-phone-actions { display:flex; align-items:center; gap:8px; flex-wrap:wrap; }
.user-phone-actions select { font:inherit; max-width:260px; padding:9px; border:1px solid var(--line); border-radius:8px; background:white; color:var(--ink); }
.user-dialog { width:min(480px,calc(100% - 32px)); max-height:calc(100dvh - 32px); overflow:auto; padding:26px; border:1px solid var(--line); border-radius:18px; color:var(--ink); background:white; }
.user-dialog::backdrop { background:rgb(12 34 28 / 42%); }
.user-dialog h2 { font-size:24px; margin-bottom:10px; }
.user-dialog label { display:block; font-size:14px; font-weight:600; margin:20px 0 8px; }
.user-dialog input { padding:12px; width:100%; min-width:0; border:1px solid var(--line); border-radius:9px; color:var(--ink); }
.user-password-row { display:flex; gap:8px; align-items:center; }
.user-dialog-actions { display:flex; justify-content:flex-end; gap:12px; margin-top:24px; }
.user-dialog .user-error { color:#a32a27; margin-top:12px; }
@media(max-width:760px) {
  .users-heading { gap:12px; }
  .users-heading p { font-size:13px; }
  .users-card header,.user-phone { padding:16px; }
  .user-phone { align-items:flex-start; flex-direction:column; gap:12px; }
  .user-phone-actions { width:100%; }
  .user-phone-actions select { flex:1; min-width:120px; max-width:100%; }
  .users-card table { min-width:620px; }
  .user-dialog { padding:22px; }
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
}
button,
input {
  font: inherit;
}
button {
  border: 0;
  background: transparent;
  color: inherit;
  cursor: pointer;
}
button:disabled {
  cursor: wait;
  opacity: 0.55;
}
button:focus-visible,
a:focus-visible,
input:focus-visible,
[tabindex]:focus-visible {
  outline: 3px solid #41896d;
  outline-offset: 2px;
}
[hidden] {
  display: none !important;
}
i {
  font: normal 22px/1 Symbols;
  letter-spacing: normal;
  font-feature-settings: "liga";
  white-space: nowrap;
  flex: none;
}
h1,
h2,
p {
  margin: 0;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 28px;
  font-weight: 730;
  letter-spacing: -1.5px;
}
.brandmark {
  position: relative;
  display: grid;
  place-items: center;
  width: 39px;
  height: 39px;
  border-radius: 12px;
  background: #26775a;
  color: #23624c;
}
.brandmark b {
  display: block;
  width: 23px;
  height: 20px;
  border-radius: 6px 6px 6px 1px;
  background: #fbf7e9;
  font: 800 16px/20px Arial;
  text-align: center;
  position: relative;
}
.brandmark b:after {
  content: "";
  position: absolute;
  bottom: -3px;
  left: 0;
  border: 3px solid transparent;
  border-left-color: #fbf7e9;
}
.brandmark:after {
  content: "";
  position: absolute;
  top: 3px;
  right: 3px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #e4b768;
}
.gate {
  display: grid;
  place-items: center;
  min-height: 100dvh;
  padding: 24px;
  background:
    radial-gradient(ellipse at 10% 5%, #dcebe0, transparent 52%), var(--paper);
}
.entry {
  width: min(410px, 100%);
  padding: 38px;
  background: white;
  border: 1px solid var(--line);
  border-radius: 20px;
  box-shadow: 0 16px 50px #183e2810;
}
.entry .brand {
  margin-bottom: 38px;
}
.entry h1 {
  font-size: 31px;
  letter-spacing: -1.3px;
}
.entry p {
  font-size: 14px;
  line-height: 1.55;
  color: var(--muted);
  margin-top: 10px;
}
.entry label {
  font-size: 13px;
  font-weight: 650;
  display: block;
  margin: 25px 0 8px;
}
.entry input {
  width: 100%;
  border: 1px solid #aab9ae;
  padding: 12px;
  border-radius: 8px;
}
.primary {
  margin-top: 16px;
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  padding: 13px;
  background: var(--green);
  color: white;
  border-radius: 8px;
  font-weight: 600;
}
.entry #login-error,
.notice {
  color: #923e30;
}
.entry #login-error:empty {
  display: none;
}
#auth-switch {
  display: block;
  margin: 18px auto 0;
  color: var(--green);
  font-size: 13px;
}
#auth-switch:hover {
  text-decoration: underline;
}
#password-hint {
  display: block;
  margin-top: 6px;
  color: var(--muted);
  font-size: 12px;
}
#workspace {
  display: grid;
  grid-template-columns: 218px minmax(0, 1fr);
  min-height: 100dvh;
}
.sidebar {
  position: relative;
  background: #173e34;
  color: #f1f6ee;
  padding: 32px 18px 20px;
  display: flex;
  flex-direction: column;
}
.sidebar .brand {
  margin: 0 8px 51px;
}
.sidebar-toggle {
  position: absolute;
  top: 36px;
  right: -16px;
  z-index: 2;
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  padding: 6px;
  color: #e5eee8;
  background: #214d3f;
  border: 1px solid #648474;
  border-radius: 50%;
  box-shadow: 0 2px 6px #102c2920;
}
.sidebar-toggle svg { width: 18px; height: 18px; }
.sidebar-toggle:focus-visible { outline-color: #bce5c8; }
.sidebar .brandmark,.accountmark { flex: none; }
.sidebar .brand-name,.sidebar nav button span { white-space: nowrap; }
.sidebar nav {
  display: grid;
  gap: 7px;
}
.sidebar nav button,
.sidefoot button {
  display: flex;
  align-items: center;
  gap: 13px;
  width: 100%;
  padding: 12px 15px;
  border-radius: 9px;
  text-align: left;
  color: #c2d6ca;
  font-size: 14px;
  font-weight: 580;
}
.sidebar button:hover {
  background: #224c40;
}
.sidebar nav button[aria-current] {
  background: #305e4e;
  color: #fff;
}
.sidebar nav button[aria-current] i {
  color: #bce5c8;
}
.sidefoot {
  margin-top: auto;
}
.account {
  border-top: 1px solid #47705e;
  padding: 19px 3px 12px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.accountmark {
  background: #395b4e;
  border: 1px solid #678577;
  color: #e4d7ad;
  border-radius: 10px;
  width: 35px;
  height: 35px;
  display: grid;
  place-items: center;
  font: 700 20px Georgia;
}
.account strong,
.account small {
  display: block;
}
.account strong {
  font-size: 14px;
}
.account small {
  font-size: 11px;
  color: #c3d4ca;
  margin-top: 3px;
}
.sidefoot button {
  font-size: 12px;
  padding-left: 8px;
}
.sidefoot i {
  font-size: 17px;
}
.desk {
  padding: clamp(19px, 2.4vw, 40px);
  display: flex;
  flex-direction: column;
  gap: 20px;
  min-width: 0;
  height: 100dvh;
  max-width: 1900px;
  width: 100%;
  margin-inline: auto;
}
.pagehead {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.overline {
  font-size: 11px;
  color: var(--muted);
  font-weight: 650;
  letter-spacing: 1px;
  text-transform: uppercase;
}
.pagehead h1 {
  font-size: clamp(29px, 2.7vw, 42px);
  letter-spacing: -1.8px;
  line-height: 1.15;
  margin-top: 4px;
  font-weight: 680;
}
.sync,
.connection {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-weight: 630;
  font-size: 12px;
}
.sync {
  color: var(--muted);
}
.sync b,
.connection:before {
  content: "";
  height: 7px;
  width: 7px;
  border-radius: 50%;
  background: #a5afa8;
}
.sync.live b,
.connection.on:before {
  background: #32865b;
}
.sync.live {
  color: #30674c;
}
.metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}
.metric {
  display: flex;
  align-items: center;
  gap: 15px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 13px;
  padding: 15px 20px;
  text-align: left;
  min-width: 0;
}
.metric:hover {
  border-color: #9fb7aa;
}
.metricicon {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  flex: none;
}
.metricicon i {
  font-size: 24px;
}
.violet {
  background: #eceaf5;
  color: #695a8c;
}
.mint {
  background: #e0f0e5;
  color: #377656;
}
.sand {
  background: #f6ead4;
  color: #96652c;
}
.metric small,
.metric strong {
  display: block;
}
.metric small {
  font-size: 12px;
  color: var(--muted);
  font-weight: 550;
}
.metric strong {
  font-size: 28px;
  font-weight: 650;
  letter-spacing: -1.3px;
  line-height: 1.15;
  margin-top: 3px;
  font-variant-numeric: tabular-nums;
}
.inbox,
.device-panel {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 15px;
  overflow: hidden;
  min-height: 0;
}
.inbox {
  flex: 1;
  display: grid;
  grid-template-columns: clamp(230px, 29%, 365px) minmax(0, 1fr);
}
h2 {
  font-size: 17px;
  font-weight: 650;
  letter-spacing: -0.4px;
}
.directory {
  border-right: 1px solid var(--line);
  min-width: 0;
  display: flex;
  flex-direction: column;
  min-height: 0;
}
.directory-top {
  padding: 21px 19px 15px;
  border-bottom: 1px solid var(--line);
}
.search {
  margin-top: 15px;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  border-radius: 8px;
  background: #f1f4f0;
  border: 1px solid #e9ede7;
}
.search i {
  font-size: 17px;
  color: var(--muted);
}
.search input {
  min-width: 0;
  width: 100%;
  border: 0;
  background: transparent;
  font-size: 13px;
  color: var(--ink);
}
.inbox-filters {
  display: flex;
  gap: 6px;
  margin-top: 10px;
}
.inbox-filters button {
  padding: 6px 13px;
  border: 1px solid var(--line);
  border-radius: 18px;
  font-size: 13px;
  color: var(--muted);
}
.inbox-filters button[aria-pressed="true"], .resolved-label {
  background: #e4f1e8;
  color: var(--green);
}
.resolved-label {
  border-radius: 18px;
  padding: 3px 8px;
  font-size: 12px;
}
.list-scroll,
#timeline,
.table-scroll {
  overflow: auto;
  overscroll-behavior: contain;
}
.list-scroll {
  flex: 1;
}
.thread-row {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 15px 15px 15px 17px;
  border-left: 3px solid transparent;
  text-align: left;
  border-bottom: 1px solid #f0f2ed;
}
.thread-row:hover {
  background: #f7f9f5;
}
.thread-row[aria-current] {
  background: #eaf3eb;
  border-left-color: var(--green);
}
.avatar {
  width: 37px;
  height: 37px;
  flex: none;
  border-radius: 13px;
  display: grid;
  place-items: center;
  font-size: 13px;
  font-weight: 650;
  background: #e7ede7;
  color: #345a47;
}
.tone1 {
  background: #e7eaf4;
  color: #485778;
}
.tone2 {
  background: #f2e7da;
  color: #765a39;
}
.tone3 {
  background: #ece4f0;
  color: #715577;
}
.row-info,
.contact-info {
  min-width: 0;
  flex: 1;
}
.row-head {
  display: flex;
  align-items: baseline;
  gap: 7px;
}
.row-head strong,
.preview,
.contact-info h2,
.contact-info small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.row-head strong {
  flex: 1;
  font-size: 14px;
  font-weight: 630;
}
.row-head time,
.thread-head small {
  font-size: 11px;
  color: var(--muted);
}
.preview {
  font-size: 12px;
  display: block;
  color: var(--muted);
  margin-top: 4px;
}
.reader {
  min-width: 0;
  min-height: 0;
  background: #f3f5ee;
}
.reader #thread {
  display: flex;
  flex-direction: column;
  height: 100%;
}
.thread-head {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 72px;
  padding: 14px 23px;
  border-bottom: 1px solid var(--line);
  background: #fcfdfb;
}
.thread-head small {
  display: block;
  margin-top: 3px;
}
.directory-heading,
.closed-window,
#greeting-form header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
.text-action {
  color: var(--green);
  font-size: 13px;
  font-weight: 650;
  padding: 5px;
}
.text-action:hover {
  text-decoration: underline;
}
.compose-area {
  padding: 12px 16px;
  background: #fcfdfb;
  border-top: 1px solid var(--line);
}
#reply-form {
  display: flex;
  gap: 10px;
  align-items: flex-end;
}
#open-media { margin-bottom: 4px; }
#media-dialog > * + * { margin-top: 10px; }
.media-heading { display: flex; align-items: center; justify-content: space-between; }
#media-search, #media-choice { width: 100%; border: 1px solid var(--line); border-radius: 8px; padding: 8px; }
#media-choice option { padding: 5px; }
#media-preview { max-width: 100%; max-height: 150px; object-fit: contain; }
#media-status, #media-guest { font-size: 13px; color: var(--muted); }
#reply-body,
#greeting-form input[type="tel"],
#template-choice {
  border: 1px solid #b6c7bc;
  border-radius: 9px;
  background: white;
  padding: 10px 12px;
  font: inherit;
  color: var(--ink);
}
#reply-body {
  resize: vertical;
  min-height: 42px;
  max-height: 110px;
  width: 100%;
  font-size: 14px;
}
.send-action {
  border-radius: 9px;
  background: var(--green);
  color: white;
  padding: 11px 18px;
  font-weight: 650;
}
.send-action:disabled {
  cursor: default;
}
.closed-window,
#reply-note,
#greeting-note,
#recipient-hint {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.4;
}
#reply-note {
  margin-top: 5px;
}
#greeting-dialog {
  width: min(445px, calc(100vw - 32px));
  max-height: 90dvh;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 16px;
  color: var(--ink);
  background: white;
  box-shadow: 0 18px 72px #163e362e;
}
#greeting-dialog::backdrop {
  background: #0c231db3;
}
#greeting-form {
  display: grid;
  gap: 10px;
}
#greeting-form header {
  margin-bottom: 6px;
}
#close-greeting {
  font-size: 23px;
  line-height: 1;
  padding: 4px;
}
#greeting-form label {
  font-size: 13px;
  font-weight: 620;
}
#greeting-form .opt-in {
  display: flex;
  gap: 8px;
  align-items: baseline;
  font-weight: 450;
  line-height: 1.45;
}
.template-preview {
  padding: 13px;
  border-radius: 10px;
  background: #e7f2e5;
  font-size: 14px;
  line-height: 1.5;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
#greeting-note:empty {
  display: none;
}
#back {
  display: none;
}
#timeline {
  flex: 1;
  min-height: 0;
  padding: 12px clamp(14px, 3vw, 48px) 23px;
  background-image: radial-gradient(#79907825 0.7px, transparent 0.7px);
  background-size: 11px 11px;
}
#messages {
  display: flex;
  flex-direction: column;
  gap: 5px;
}
.day {
  align-self: center;
  border: 1px solid #dfe5dc;
  background: #f9fbf7;
  color: #596b5d;
  border-radius: 20px;
  margin: 11px 0 9px;
  padding: 4px 12px;
  font-size: 10px;
  font-weight: 650;
}
.bubble {
  align-self: flex-start;
  max-width: min(82%, 650px);
  background: #fff;
  border: 1px solid #dfe4da;
  border-radius: 3px 13px 13px 13px;
  padding: 9px 12px 6px;
  min-width: 75px;
  box-shadow: 0 1px 1px #172f1a06;
}
.bubble.out {
  align-self: flex-end;
  background: #def0dd;
  border-color: #cee4ca;
  border-radius: 13px 3px 13px 13px;
}
.bubble.has-preview { width: min(340px, 82%); padding: 5px 5px 6px; }
.has-preview > .body { padding: 8px 7px 2px; }
.has-preview > .bubble-meta { padding: 0 6px; }
.attachment-card { display: block; width: 100%; padding: 0; border: 0; border-radius: 9px; overflow: hidden; text-align: left; background: #e7ece6; color: var(--ink); cursor: pointer; }
.attachment-card:focus-visible { outline: 3px solid var(--green); outline-offset: 2px; }
.attachment-visual { display: block; position: relative; width: 100%; aspect-ratio: 4 / 3; overflow: hidden; background: #e7ece6; }
.attachment-thumbnail, .pdf-thumbnail { display: block; width: 100%; height: 100%; object-fit: cover; }
.pdf-thumbnail { object-fit: contain; background: #dce3dd; }
.preview-fallback { position: absolute; inset: 0; display: grid; place-items: center; padding: 20px; color: #5d7066; font-size: 13px; text-align: center; }
.preview-icon { display: block; width: 20px; height: 20px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.preview-failed .attachment-thumbnail { visibility: hidden; }
.document-details { display: grid; gap: 5px; padding: 11px 12px; background: #f2f6ef; }
.document-details strong { font-size: 13px; line-height: 1.4; overflow-wrap: anywhere; font-weight: 600; }
.document-details small { color: var(--muted); font-size: 11px; }
.attachment-viewer { width: min(1000px, calc(100vw - 40px)); height: min(860px, calc(100dvh - 48px)); max-width: none; max-height: none; padding: 0; border: 1px solid #dbe3db; border-radius: 16px; background: #f5f7f2; color: var(--ink); box-shadow: 0 24px 90px #061a2266; }
.attachment-viewer[open] { display: flex; flex-direction: column; }
.attachment-viewer::backdrop { background: #0a211bdb; }
.attachment-header { display: flex; flex: none; align-items: center; gap: 12px; padding: 14px 18px; border-bottom: 1px solid var(--line); background: #fff; }
.attachment-heading { min-width: 0; flex: 1; }
.attachment-heading h2 { margin: 0; font-size: 16px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.attachment-heading small { display: block; margin-top: 4px; color: var(--muted); font-size: 12px; }
.attachment-save { display: inline-flex; align-items: center; gap: 6px; padding: 9px 12px; border: 1px solid var(--line); border-radius: 8px; color: var(--green); text-decoration: none; font-size: 13px; white-space: nowrap; }
.viewer-button { display: grid; place-items: center; width: 36px; height: 36px; padding: 0; flex: none; border: 1px solid var(--line); border-radius: 8px; color: var(--green); background: #fff; }
.viewer-button:hover, .attachment-save:hover { background: #eaf3eb; }
.viewer-button:disabled { opacity: .4; cursor: default; }
.attachment-stage { flex: 1; min-height: 0; min-width: 0; display: flex; align-items: center; justify-content: center; overflow: auto; background: #142d27; }
.attachment-full { display: block; width: 100%; height: 100%; object-fit: contain; }
.pdf-stage { display: block; padding: 12px 16px; background: #dce3dd; }
.pdf-page { display: block; margin: 0 auto; background: white; box-shadow: 0 2px 12px #182e2529; }
.attachment-status { flex: none; text-align: center; padding: 10px 15px; margin: 0; color: var(--muted); font-size: 13px; }
.attachment-status:empty { display: none; }
.attachment-retry { border: 0; color: var(--green); font-weight: 650; padding: 5px 10px; background: none; }
.pdf-toolbar { display: flex; flex: none; justify-content: center; align-items: center; gap: 10px; padding: 10px; border-top: 1px solid var(--line); }
.pdf-pages { min-width: 65px; text-align: center; font-size: 13px; font-variant-numeric: tabular-nums; }
.attachment-caption { flex: none; margin: 0; padding: 12px 20px; max-height: 90px; overflow: auto; white-space: pre-wrap; font-size: 13px; border-top: 1px solid var(--line); }
@media(max-width:760px) {
  .attachment-viewer { width: calc(100vw - 16px); height: calc(100dvh - 24px); border-radius: 10px; }
  .attachment-header { gap: 8px; padding: 10px; }
  .attachment-heading h2 { font-size: 14px; }
  .attachment-save { padding: 8px; }
  .attachment-save span { display: none; }
  .attachment-save { min-width: 36px; justify-content: center; }
}
.body {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  font-size: 14px;
  line-height: 1.45;
}
.bubble-meta {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 5px;
  font-size: 10px;
  color: #526954;
  margin-top: 4px;
}
.bubble-meta .failed {
  color: #943b2a;
}
.bubble { touch-action: pan-y pinch-zoom; }
.message-reply {
  margin-right: auto;
  border: 0;
  padding: 3px 6px;
  background: transparent;
  color: var(--green);
  font-size: 12px;
  font-weight: 600;
}
#thread:not([data-can-reply]) .message-reply { display: none; }
@media (hover: hover) and (pointer: fine) {
  .message-reply { opacity: 0; }
  .bubble:hover .message-reply, .bubble:focus-within .message-reply { opacity: 1; }
}
.quoted-message {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 9px;
  border-inline-start: 3px solid var(--green);
  border-radius: 5px;
  background: #163d330c;
  margin: 0 0 6px;
}
.quoted-message > div { min-width: 0; flex: 1; }
.quoted-message strong { display: block; font-size: 12px; color: var(--green); }
.quoted-message span {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  overflow-wrap: anywhere;
  color: var(--muted);
  font-size: 13px;
}
#cancel-quote { background: transparent; border: 0; padding: 4px 8px; font-size: 20px; }
.attachment {
  display: inline-flex;
  gap: 6px;
  align-items: center;
  font-size: 12px;
  color: var(--green);
  margin: 5px 0;
}
.attachment i {
  font-size: 15px;
}
.chat-audio {
  display: block;
  width: min(255px, 54vw);
  max-width: 100%;
  height: 36px;
  margin: 6px 0 2px;
}
.audio-retry {
  color: var(--green);
  border: 0;
  background: transparent;
  padding: 6px 0;
  text-decoration: underline;
}
.more {
  display: block;
  margin: 12px auto;
  font-size: 12px;
  font-weight: 620;
  padding: 7px 12px;
  color: var(--green);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 15px;
}
.empty {
  height: 100%;
  display: grid;
  align-content: center;
  justify-items: center;
  gap: 12px;
  color: var(--muted);
  font-size: 14px;
}
.empty i {
  font-size: 33px;
}
.notice {
  margin: 0;
  font-size: 13px;
}
.no-results {
  padding: 20px;
  color: var(--muted);
  font-size: 13px;
}
.device-panel {
  display: flex;
  flex-direction: column;
}
.device-panel header {
  padding: 23px;
}
.device-panel header p {
  font-size: 13px;
  line-height: 1.5;
  margin-top: 7px;
  color: var(--muted);
}
table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 13px;
}
th,
td {
  padding: 15px 22px;
  border-top: 1px solid var(--line);
}
th {
  background: #f6f8f3;
  color: var(--muted);
  font-size: 11px;
  font-weight: 650;
}
.device-name {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
}
.device-name i {
  color: var(--green);
  font-size: 20px;
}
.connection {
  border-radius: 20px;
  padding: 5px 9px;
  background: #eff1ef;
  color: #55635a;
  font-size: 11px;
}
.connection.on {
  background: #e1f1e3;
  color: #336345;
}
@media (max-width: 1000px) {
  #workspace {
    grid-template-columns: 165px minmax(0, 1fr);
  }
  .sidebar {
    padding: 25px 9px 14px;
  }
  .sidebar .brand {
    font-size: 25px;
  }
  .desk {
    padding: 20px;
    gap: 15px;
  }
  .metric {
    padding: 13px;
    gap: 10px;
  }
  .metricicon {
    width: 35px;
    height: 35px;
  }
  .inbox {
    grid-template-columns: 240px minmax(0, 1fr);
  }
}
@media (max-width: 760px) {
  #workspace {
    display: flex;
    flex-direction: column;
    height: 100dvh;
    min-height: 0;
  }
  .sidebar {
    display:grid;
    grid-template-columns:1fr auto;
    align-items: center;
    gap: 10px;
    padding: 9px 14px;
  }
  .sidebar-toggle { display: none; }
  .sidebar .brand {
    margin: 0 auto 0 0;
    font-size: 20px;
    gap: 7px;
  }
  .brandmark {
    width: 32px;
    height: 32px;
    border-radius: 9px;
  }
  .sidebar nav {
    display: flex;
    grid-column:1 / -1;
    grid-row:2;
    gap: 3px;
  }
  .sidebar nav button { flex:1; justify-content:center; }
  .sidebar .user-nav-icon { width:18px; height:18px; }
  .sidebar nav button,
  .sidefoot button {
    padding: 9px;
    gap: 5px;
    font-size: 12px;
  }
  .sidebar nav i {
    font-size: 18px;
  }
  .sidefoot {
    margin: 0;
    grid-column:2;
    grid-row:1;
  }
  .sidefoot .account,
  .sidefoot button span {
    display: none;
  }
  .desk {
    flex: 1;
    height: auto;
    min-height: 0;
    padding: 14px;
    gap: 12px;
  }
  .pagehead h1 {
    font-size: 28px;
  }
  .overline {
    font-size: 9px;
  }
  .metrics {
    gap: 6px;
  }
  .metric {
    padding: 9px 8px;
    gap: 6px;
    border-radius: 9px;
  }
  .metricicon {
    display: none;
  }
  .metric small {
    font-size: 10px;
  }
  .metric strong {
    font-size: 21px;
  }
  .inbox {
    display: flex;
  }
  .directory,
  .reader {
    width: 100%;
  }
  .directory {
    border: 0;
  }
  .reader {
    display: none;
  }
  .inbox.reading .reader {
    display: block;
  }
  .inbox.reading .directory {
    display: none;
  }
  .thread-head {
    padding: 10px;
    gap: 8px;
    min-height: 63px;
  }
  #back {
    display: grid;
    place-items: center;
    padding: 4px;
  }
  .device-panel header {
    padding: 16px;
  }
  .table-scroll {
    overflow-x: auto;
  }
  th,
  td {
    padding: 12px 10px;
  }
  td {
    font-size: 12px;
  }
  #timeline {
    padding: 8px 12px 16px;
  }
}
@media (min-width: 761px) {
  #workspace.sidebar-collapsed { grid-template-columns: 76px minmax(0, 1fr); }
  .sidebar-collapsed .sidebar { padding-inline: 12px; }
  .sidebar-collapsed .sidebar .brand { justify-content: center; margin-inline: 0; }
  .sidebar-collapsed .sidebar .brand-name,
  .sidebar-collapsed .sidebar nav button span,
  .sidebar-collapsed .sidefoot button span,
  .sidebar-collapsed .account > div { display: none; }
  .sidebar-collapsed .sidebar nav button,
  .sidebar-collapsed .sidefoot button { justify-content: center; padding-inline: 0; }
  .sidebar-collapsed .account { justify-content: center; }
  .sidebar-collapsed .sidebar-toggle svg { transform: rotate(180deg); }
}
