:root {
  font-family: "Inter", "Segoe UI", sans-serif;
  color: #282633;
  background: #f7f7f9;
  --ink: #292733;
  --muted: #666475;
  --line: #e3e1e8;
  --violet: #62509c;
  --wash: #f1edf8;
  --rail: #272632;
  --green: #38775b;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  display: grid;
  grid-template-columns: 228px minmax(0, 1fr);
  min-height: 100vh;
}
button,
input,
select,
textarea {
  font: inherit;
}
button,
a,
select,
input[type="checkbox"] {
  cursor: pointer;
}
button {
  color: inherit;
}
button:disabled {
  cursor: default;
  opacity: 0.52;
}
a {
  color: inherit;
}
button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 3px solid #aa8ad5;
  outline-offset: 2px;
}
[hidden] {
  display: none !important;
}
i {
  display: inline-flex;
  align-items: center;
  flex: none;
}
i svg {
  height: 18px;
  width: 18px;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}
h1,
h2,
h3,
p {
  margin: 0;
}
small {
  font-size: 12px;
  color: var(--muted);
}
.rail {
  background: var(--rail);
  color: #eeeaf4;
  display: flex;
  flex-direction: column;
  padding: 30px 16px 20px;
  position: sticky;
  top: 0;
  height: 100dvh;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-left: 11px;
  width: max-content;
  text-decoration: none;
}
.brand img {
  width: 38px;
  height: 38px;
}
.brand span {
  font-size: 34px;
  letter-spacing: -2px;
  font-weight: 740;
  line-height: 1;
}
.nav-label,
.eyebrow {
  font-size: 10px;
  letter-spacing: 1.65px;
  font-weight: 750;
}
.nav-label {
  margin: 53px 13px 12px;
  color: #b4b0c1;
}
.nav-label.second {
  margin-top: 32px;
}
.rail nav {
  display: grid;
  gap: 5px;
}
.rail nav a {
  display: flex;
  align-items: center;
  gap: 11px;
  text-decoration: none;
  padding: 12px 13px;
  font-size: 14px;
  font-weight: 550;
  border-radius: 8px;
  color: #d4d1de;
}
.rail nav a.active {
  background: #42404e;
  color: white;
}
.rail nav a.active i {
  color: #ffc4aa;
}
.rail nav a:hover {
  background: #393744;
}
.rail-foot {
  margin-top: auto;
  display: flex;
  gap: 11px;
  align-items: center;
  border-top: 1px solid #484651;
  padding: 21px 8px 2px;
  font-size: 13px;
}
.rail-foot small {
  color: #bbb7c8;
  display: block;
  margin-top: 3px;
}
.workspace-icon {
  display: grid;
  place-items: center;
  background: #393743;
  width: 34px;
  height: 34px;
  border-radius: 9px;
}
main {
  min-width: 0;
  padding: 0 32px 22px;
}
.top {
  height: 63px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  font-size: 12px;
  gap: 10px;
}
.top > span {
  display: flex;
  align-items: center;
  gap: 10px;
}
.top strong {
  font-weight: 550;
  color: #454152;
}
.top b {
  font-weight: 400;
  color: #aaa6b1;
}
.top i svg {
  height: 16px;
  width: 16px;
}
.mode {
  border: 1px solid #dedbe5;
  border-radius: 20px;
  padding: 5px 10px;
  background: #fff;
  font-weight: 600;
}
.mode:before,
.state-dot:before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #b58b56;
}
.mode.live:before,
.state-dot.on:before {
  background: #4c9274;
}
.heading,
.toolbar,
.list-top,
.settings-top,
.page-heading,
.bulk,
.pager {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.heading {
  padding: 26px 0 17px;
}
.eyebrow {
  color: #797187;
  font-size: 10px;
  margin-bottom: 6px;
}
.heading h1 {
  font-size: clamp(29px, 2.9vw, 43px);
  line-height: 1.18;
  letter-spacing: -1.8px;
  font-weight: 680;
}
.quiet,
.primary,
.select {
  border: 1px solid #dad7e1;
  background: white;
  border-radius: 8px;
  padding: 8px 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 550;
}
.quiet:hover,
.select:hover {
  background: #f8f7fa;
}
.primary {
  background: #393245;
  color: white;
  border-color: #393245;
}
.primary:hover {
  background: #50435e;
}
.quiet i svg,
.select i svg,
.primary i svg {
  width: 16px;
  height: 16px;
}
.toolbar {
  justify-content: flex-start;
  margin: 0 0 16px;
  flex-wrap: wrap;
}
.select {
  padding: 0 9px;
  min-height: 34px;
  color: #54505e;
}
.select select {
  background: transparent;
  border: 0;
  color: inherit;
  font-size: 13px;
  max-width: 200px;
  min-height: 32px;
}
.check,
.bulk label {
  display: flex;
  gap: 7px;
  align-items: center;
  font-size: 13px;
  color: #555260;
}
.check {
  margin-left: auto;
}
input[type="checkbox"] {
  accent-color: var(--violet);
  width: 15px;
  height: 15px;
}
.split {
  height: calc(100dvh - 213px);
  min-height: 505px;
  display: grid;
  grid-template-columns: minmax(275px, 36%) minmax(0, 1fr);
  border: 1px solid var(--line);
  border-radius: 13px;
  background: white;
  overflow: hidden;
  box-shadow: 0 2px 8px #26232d05;
}
.list-pane,
.detail {
  min-height: 0;
  display: flex;
  flex-direction: column;
}
.list-pane {
  border-right: 1px solid var(--line);
}
.list-top {
  justify-content: flex-start;
  padding: 20px 18px 12px;
  gap: 8px;
}
h2 {
  font-size: 17px;
  letter-spacing: -0.45px;
}
.counter {
  border-radius: 6px;
  background: #efedf2;
  color: #676172;
  font-size: 11px;
  font-weight: 680;
  padding: 3px 7px;
  vertical-align: middle;
}
.search {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-radius: 7px;
  color: #88828f;
  margin: 0 16px 14px;
}
.search input {
  width: 100%;
  min-width: 0;
  border: 0;
  outline: none;
  font-size: 13px;
}
.search:focus-within {
  outline: 2px solid #aa8ad5;
}
.rows {
  overflow: auto;
  flex: 1;
}
.row {
  width: 100%;
  padding: 15px 15px 15px 17px;
  display: grid;
  grid-template-columns: 37px minmax(0, 1fr);
  gap: 10px;
  text-align: left;
  background: white;
  border: 0;
  border-top: 1px solid #eeecf1;
  border-left: 3px solid transparent;
}
.row:hover {
  background: #f8f7fa;
}
.row.selected {
  border-left-color: #9273b8;
  background: #f4f0f8;
}
.avatar {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 37px;
  height: 37px;
  border-radius: 12px;
  font-size: 13px;
  font-weight: 650;
  background: #f5dfd3;
  color: #83563e;
  letter-spacing: 0.15px;
}
.tone1 {
  background: #e2e8f3;
  color: #486285;
}
.tone2 {
  background: #e2ece2;
  color: #4b6e54;
}
.tone3 {
  background: #eee2ef;
  color: #7c567d;
}
.tone4 {
  background: #f2e7cf;
  color: #846933;
}
.row-main,
.row-line,
.row-page,
.mini,
.meta-line,
.channel,
.context,
.thread-head,
.composer-foot,
.who,
.thread-actions,
.state-dot {
  display: flex;
  align-items: center;
  gap: 7px;
}
.row-main {
  min-width: 0;
  display: block;
}
.row-line {
  justify-content: space-between;
}
.row-line strong,
.row-page,
.preview,
.cut {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.row-line strong {
  font-size: 14px;
  font-weight: 650;
}
.row-line time {
  font-size: 11px;
  white-space: nowrap;
  color: var(--muted);
}
.preview {
  font-size: 13px;
  color: #565362;
  margin: 4px 0 7px;
}
.row-page {
  font-size: 11px;
  color: #746f80;
}
.row-page i svg {
  width: 13px;
  height: 13px;
}
.dot {
  height: 6px;
  width: 6px;
  background: #9975b3;
  border-radius: 50%;
  margin-left: auto;
  flex: none;
}
.pager {
  border-top: 1px solid var(--line);
  padding: 8px;
}
.pager .quiet {
  font-size: 11px;
  padding: 5px;
}
.detail {
  background: #fcfbfd;
}
.thread-head {
  justify-content: space-between;
  padding: 20px 23px;
  background: white;
  border-bottom: 1px solid var(--line);
  gap: 10px;
}
.thread-head .avatar {
  width: 43px;
  height: 43px;
  font-size: 15px;
  flex: none;
}
.who {
  gap: 11px;
  min-width: 0;
}
.who > div {
  min-width: 0;
}
.who h2 {
  font-size: 18px;
}
.meta-line {
  color: var(--muted);
  font-size: 12px;
  margin-top: 4px;
  flex-wrap: wrap;
}
.channel {
  background: #edf2ef;
  color: #42634e;
  padding: 5px 8px;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 650;
  white-space: nowrap;
}
.channel.message {
  color: #655695;
  background: #efebf6;
}
.channel i svg {
  width: 13px;
  height: 13px;
}
.context {
  background: #f7f6f9;
  padding: 11px 22px;
  border-bottom: 1px solid var(--line);
  color: #716b7b;
  font-size: 12px;
}
.context a {
  font-weight: 600;
  text-underline-offset: 3px;
}
.context i svg {
  width: 14px;
  height: 14px;
}
.history {
  padding: 22px;
  flex: 1;
  overflow: auto;
  display: flex;
  flex-direction: column;
  gap: 19px;
}
.date-line {
  text-align: center;
  color: #817989;
  font-size: 11px;
  display: flex;
  align-items: center;
  gap: 12px;
}
.date-line:before,
.date-line:after {
  content: "";
  height: 1px;
  background: #e7e4ea;
  flex: 1;
}
.bubble-wrap {
  max-width: 88%;
  align-self: flex-start;
}
.bubble-wrap.out {
  align-self: flex-end;
}
.bubble-author {
  font-size: 12px;
  font-weight: 620;
  margin-bottom: 5px;
}
.bubble {
  font-size: 14px;
  line-height: 1.55;
  padding: 11px 14px;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  border: 1px solid #e2dfe8;
  background: white;
  border-radius: 0 11px 11px 11px;
}
.out .bubble {
  background: #eee9f5;
  border-color: #e3dbea;
  border-radius: 11px 0 11px 11px;
}
.bubble-wrap time {
  display: block;
  font-size: 10px;
  color: var(--muted);
  margin: 5px 1px;
}
.composer {
  background: white;
  border-top: 1px solid var(--line);
  padding: 14px 20px;
}
.composer label {
  font-size: 12px;
  color: var(--muted);
  display: block;
  margin-bottom: 7px;
}
.composer label strong {
  color: #403948;
}
.composer textarea {
  display: block;
  width: 100%;
  resize: vertical;
  min-height: 58px;
  max-height: 140px;
  border: 1px solid #d7d2dd;
  border-radius: 8px;
  padding: 9px 11px;
  font-size: 14px;
}
.composer-foot {
  justify-content: space-between;
  margin-top: 8px;
}
.composer-foot small {
  font-size: 11px;
}
.warning,
#notice {
  background: #fff3da;
  border: 1px solid #ead8b2;
  border-radius: 8px;
  padding: 10px 12px;
  font-size: 13px;
  line-height: 1.5;
}
.warning {
  margin-bottom: 7px;
}
.warning button {
  margin: 5px 4px 0 0;
}
#notice {
  margin: 0 0 12px;
  display: flex;
  justify-content: space-between;
  gap: 10px;
}
#notice button {
  border: none;
  background: transparent;
  font-weight: bold;
}
.empty {
  margin: auto;
  text-align: center;
  padding: 35px 20px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.6;
}
.empty h2 {
  color: var(--ink);
}
.mobile-back {
  display: none;
}
.settings-top,
.page-heading {
  margin: 8px 0 16px;
}
.settings-top p {
  font-size: 13px;
  color: var(--muted);
  margin-top: 5px;
}
.accounts {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 28px;
}
.account-card {
  padding: 14px 18px;
  background: white;
  border: 1px solid var(--line);
  border-radius: 10px;
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 14px;
}
.account-card small {
  display: block;
  margin-top: 4px;
}
.page-table {
  border: 1px solid var(--line);
  border-radius: 10px;
  overflow: hidden;
  background: white;
}
.bulk {
  padding: 11px 16px;
  background: #f0eff3;
}
.page-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  border-top: 1px solid var(--line);
  font-size: 14px;
}
.page-info {
  flex: 1;
  min-width: 0;
}
.page-info small {
  display: block;
}
.state-dot {
  font-size: 12px;
  color: var(--muted);
}
.state-dot:before {
  background: #a7a2ad;
}
.page-heading h2 .counter {
  margin-left: 5px;
}
@media (max-width: 1130px) {
  body {
    grid-template-columns: 195px minmax(0, 1fr);
  }
  main {
    padding: 0 18px 18px;
  }
  .rail {
    padding-left: 10px;
    padding-right: 10px;
  }
  .split {
    grid-template-columns: minmax(255px, 37%) minmax(0, 1fr);
  }
  .thread-head,
  .history {
    padding: 16px;
  }
  .composer {
    padding: 12px 15px;
  }
  .thread-head {
    flex-wrap: wrap;
  }
}
@media (max-width: 860px) {
  body {
    display: block;
  }
  .rail {
    position: static;
    height: auto;
    padding: 10px 14px;
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
  }
  .brand {
    padding: 0;
    gap: 5px;
  }
  .brand img {
    width: 28px;
    height: 28px;
  }
  .brand span {
    font-size: 24px;
  }
  .nav-label,
  .rail-foot {
    display: none;
  }
  .rail nav {
    display: flex;
    gap: 2px;
  }
  .rail nav a {
    font-size: 12px;
    padding: 8px;
  }
  .rail nav a i {
    display: none;
  }
  .top {
    height: 45px;
  }
  .split {
    height: calc(100dvh - 238px);
  }
}
@media (max-width: 660px) {
  main {
    padding: 0 12px 12px;
  }
  .rail {
    gap: 6px;
  }
  .rail nav a {
    font-size: 11px;
    padding: 7px 5px;
  }
  .rail nav a[data-route="all"] {
    font-size: 0;
  }
  .rail nav a[data-route="all"] i {
    display: inline-flex;
  }
  .rail nav a[data-route="all"]:after {
    content: "Inbox";
    font-size: 11px;
  }
  .heading {
    padding: 18px 0 12px;
  }
  .heading h1 {
    letter-spacing: -1px;
  }
  .heading .quiet span {
    display: none;
  }
  .toolbar {
    gap: 6px;
  }
  .check {
    margin-left: 0;
  }
  .select select {
    max-width: 145px;
  }
  .split {
    display: block;
    height: auto;
    min-height: 0;
  }
  .list-pane {
    border: 0;
    min-height: 365px;
  }
  .detail {
    display: none;
  }
  .show-thread .detail {
    display: flex;
    min-height: 440px;
  }
  .show-thread .list-pane {
    display: none;
  }
  .mobile-back {
    display: inline-flex;
  }
  .history {
    min-height: 200px;
    max-height: 48dvh;
  }
  .settings-top,
  .page-heading {
    flex-wrap: wrap;
  }
  .page-row {
    padding: 10px 7px;
    gap: 6px;
  }
  .page-row .state-dot {
    display: none;
  }
  .top > span {
    gap: 5px;
  }
}

.preview {
  display: block;
}
@media (min-width: 861px) {
  main {
    display: flex;
    flex-direction: column;
    height: 100dvh;
    min-height: 580px;
  }
  .top,
  .heading,
  .toolbar {
    flex-shrink: 0;
  }
  #inbox {
    flex: 1;
    min-height: 0;
    display: flex;
    flex-direction: column;
  }
  .split {
    height: auto;
    min-height: 0;
    flex: 1;
  }
  #settings {
    overflow: auto;
  }
}

/* Workspace navigation and account forms */
body {
  grid-template-columns: 202px minmax(0, 1fr);
}
.rail {
  padding: 20px 12px 14px;
}
.brand {
  margin-bottom: 24px;
  padding-left: 8px;
  gap: 9px;
}
.brand img {
  width: 34px;
  height: 34px;
}
.brand span,
.login-brand strong {
  font-size: 22px;
  letter-spacing: -1.1px;
  line-height: 1.05;
}
.rail-line {
  border: 0;
  border-top: 1px solid #44414b;
  margin: 14px 8px 12px;
}
.rail nav a {
  padding: 9px 10px;
  font-size: 13px;
}
.rail-foot {
  justify-content: space-between;
  padding: 12px 8px 0;
}
.rail-logout {
  display: flex;
  background: transparent;
  color: #e2dfe8;
  border: 1px solid #55505e;
  border-radius: 6px;
  padding: 6px;
}
main {
  padding: 0 20px 16px;
}
.heading {
  padding: 17px 0 12px;
}
.heading h1 {
  font-size: 28px;
  letter-spacing: -1px;
}
.toolbar {
  margin-bottom: 11px;
}
.list-top {
  padding: 13px 14px 9px;
}
.search {
  margin: 0 12px 10px;
}
.row {
  padding: 10px 12px;
}
.thread-head {
  padding: 12px 15px;
}
.history {
  padding: 16px;
}
.post-button {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 5px 8px;
  border: 1px solid var(--line);
  border-radius: 6px;
  text-decoration: none;
  color: var(--violet);
  font-size: 12px;
  font-weight: 600;
}
.post-button:hover {
  background: var(--wash);
}
.post-button i svg {
  width: 13px;
  height: 13px;
}
.thread-head .who {
  margin-right: auto;
}
.composer {
  padding: 10px 15px;
}
.scroll-pane {
  overflow: auto;
}
.form-card,
.login-box,
.policy-doc {
  background: white;
  border: 1px solid var(--line);
  border-radius: 12px;
}
.form-card {
  max-width: 900px;
  margin-bottom: 12px;
  padding: 17px;
}
.field-grid,
.urls {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(auto-fit, minmax(min(225px, 100%), 1fr));
  margin: 14px 0;
}
.form-card label:not(.check),
.login-box label {
  display: grid;
  gap: 5px;
  font-size: 12px;
  font-weight: 600;
  color: #595366;
}
.form-card input:not([type="checkbox"]),
.login-box input {
  width: 100%;
  min-width: 0;
  border: 1px solid #d8d4df;
  border-radius: 7px;
  padding: 8px 10px;
  background: #fff;
  color: var(--ink);
  font-size: 14px;
}
.urls {
  grid-template-columns: 1fr;
}
.urls input[readonly] {
  color: #534774;
  background: #f8f7fa;
}
.form-note {
  font-size: 12px;
  margin: 5px 0 11px;
  color: var(--muted);
}
.user-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
}
.user-row small {
  display: block;
}
.user-row summary {
  cursor: pointer;
  color: var(--violet);
  font-size: 13px;
}
.user-edit {
  display: grid;
  gap: 8px;
  margin-top: 8px;
}
body.login,
body.policy {
  display: block;
  min-height: 100dvh;
  padding: 16px;
  background: #f4f2f7;
}
body.login {
  display: grid;
  grid-template-columns: 1fr;
  place-items: center;
}
main.login-box,
main.policy-doc {
  display: block;
  height: auto;
  min-height: 0;
  width: 100%;
  max-width: 365px;
  padding: 27px;
}
.login-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 22px;
}
.login-brand img {
  width: 35px;
  height: 35px;
}
.login-box h1,
.policy-doc h1 {
  font-size: 24px;
  line-height: 1.25;
  letter-spacing: -0.7px;
}
.login-box form {
  display: grid;
  gap: 13px;
  margin: 17px 0;
}
.legal-links {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 14px;
  font-size: 12px;
  color: var(--muted);
}
main.policy-doc {
  max-width: 740px;
  margin: 24px auto;
  padding: 30px;
}
.policy-doc h2 {
  margin: 22px 0 6px;
}
.policy-doc p {
  margin: 9px 0;
  font-size: 15px;
  line-height: 1.55;
}
.policy-doc a {
  color: var(--violet);
  overflow-wrap: anywhere;
}
.provider-contact {
  margin-top: 24px;
  padding-top: 10px;
  border-top: 1px solid var(--line);
  color: var(--muted);
}
.provider-contact p {
  font-size: 14px;
}
@media (max-width: 860px) {
  .rail {
    padding: 8px 12px;
    gap: 8px;
  }
  .rail-line {
    display: none;
  }
  .brand {
    padding: 0;
    margin: 0;
  }
  .brand span {
    font-size: 17px;
  }
  .brand img {
    width: 26px;
    height: 26px;
  }
  .rail nav a {
    padding: 6px;
  }
  .rail-foot {
    display: flex;
    margin: 0 0 0 auto;
    border: 0;
    padding: 0;
  }
  .rail-foot > div {
    display: none;
  }
  .rail nav {
    flex-wrap: wrap;
  }
  main {
    padding: 0 12px 12px;
  }
}
@media (max-width: 660px) {
  .rail nav a {
    font-size: 11px;
  }
  .rail {
    gap: 4px;
  }
  .thread-head {
    gap: 6px;
  }
  .heading h1 {
    font-size: 23px;
  }
  .row {
    padding: 9px 10px;
  }
  .form-card {
    padding: 12px;
  }
  .sessionInfo {
    display: none;
  }
}
