:root {
  color-scheme: dark;
  --bg: #101117;
  --panel: #14151e;
  --soft: #222230;
  --line: #2b2c39;
  --text: #f5f4fa;
  --muted: #aaa9bf;
  --purple: #9560ff;
  --blue: #039bff;
  --green: #56d8a3;
  --danger: #ff858d;
  font-family:
    Inter,
    -apple-system,
    BlinkMacSystemFont,
    'Segoe UI',
    sans-serif;
  font-size: 14px;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  background: #0b0c11;
  color: var(--text);
}
[hidden] {
  display: none !important;
}
button,
input,
textarea,
select {
  font: inherit;
}
button {
  cursor: pointer;
  color: inherit;
}
button:disabled {
  cursor: wait;
  opacity: 0.45;
}
button,
input,
textarea,
select {
  outline: none;
}
button:focus-visible,
a:focus-visible {
  outline: 2px solid var(--purple);
  outline-offset: 3px;
}
input:focus,
textarea:focus,
select:focus {
  border-color: var(--purple) !important;
}
button {
  border: 0;
  background: none;
}
input,
textarea,
select {
  background: #171820;
  color: var(--text);
  border: 1px solid #3c3c4c;
  border-radius: 12px;
  padding: 12px 14px;
  min-width: 0;
}
textarea {
  resize: vertical;
}
input::placeholder,
textarea::placeholder {
  color: #9694ac;
}
a {
  color: #bd9aff;
  text-decoration: none;
}
code,
kbd {
  font-family: ui-monospace, SFMono-Regular, monospace;
}
label {
  display: block;
  color: var(--muted);
  font-size: 12px;
}
label > input,
label > select,
label > textarea {
  display: block;
  width: 100%;
  margin-top: 8px;
}
svg {
  width: 22px;
  height: 22px;
  display: block;
  flex-shrink: 0;
}
.icon-button {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: #d8d7e5;
}
.icon-button:hover {
  background: var(--soft);
}
.subtle {
  color: var(--muted);
}
.primary {
  background: var(--purple);
  color: #fff;
  border-radius: 13px;
  padding: 13px 18px;
  font-weight: 600;
}
.primary:hover {
  background: #a777ff;
}
.text-button {
  color: #be9aff;
  font-size: 12px;
  padding: 7px 4px;
}
.text-button:hover {
  color: #e1ceff;
}
.danger {
  color: var(--danger) !important;
}
.muted {
  color: var(--muted);
  line-height: 1.6;
}
.small {
  font-size: 11px;
}
.eyebrow {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 2px;
  color: #a69abc;
}
.error {
  color: var(--danger);
  font-size: 12px;
  line-height: 1.6;
  white-space: pre-wrap;
}
.login-layout {
  max-width: 1100px;
  min-height: 100vh;
  margin: auto;
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  align-items: center;
  gap: 75px;
  padding: 48px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 27px;
  font-weight: 700;
  letter-spacing: -1px;
}
.brand-mark {
  border: 1px solid #7955b3;
  display: grid;
  place-items: center;
  border-radius: 13px;
  background: #211b33;
  width: 40px;
  height: 40px;
}
.ui-label {
  letter-spacing: 2px;
  font-size: 9px;
  color: var(--muted);
  border-left: 1px solid var(--line);
  padding-left: 18px;
  margin-left: 10px;
  font-weight: 500;
}
.login-art > .eyebrow {
  margin-top: 70px;
}
.login-art h1 {
  font-size: 49px;
  line-height: 1.16;
  letter-spacing: -2px;
  margin: 16px 0 24px;
}
.login-art h1 span {
  color: #b59ae8;
}
.intro {
  font-size: 15px;
  color: var(--muted);
  max-width: 350px;
  line-height: 1.8;
}
.orbit {
  position: relative;
  height: 245px;
  margin: 24px 0;
  overflow: hidden;
}
.orbit-ring {
  position: absolute;
  width: 245px;
  height: 245px;
  border: 1px solid #383044;
  border-radius: 50%;
  left: 64px;
  top: 7px;
}
.orbit-ring.second {
  width: 165px;
  height: 165px;
  left: 104px;
  top: 47px;
  border-color: #40304f;
}
.orbit-bubble {
  position: absolute;
  left: 85px;
  top: 64px;
  padding: 18px 27px;
  background: #9161ed;
  border-radius: 23px 23px 3px 23px;
  font-size: 21px;
  box-shadow: 0 20px 60px #713acd22;
  transform: rotate(-8deg);
}
.orbit-bubble span {
  color: #dbc9fc;
  padding-left: 20px;
}
.orbit-bubble.other {
  top: 145px;
  left: 148px;
  background: #242331;
  font-size: 13px;
  border-radius: 3px 23px 23px 23px;
  transform: rotate(5deg);
  white-space: nowrap;
}
.orbit-dot {
  width: 14px;
  height: 14px;
  position: absolute;
  top: 30px;
  left: 275px;
  background: #c7abff;
  border-radius: 50%;
  box-shadow: 0 0 25px #9c6bee66;
}
.login-foot {
  display: flex;
  gap: 18px;
  justify-content: space-between;
  font-size: 9px;
  letter-spacing: 1px;
  color: #817e96;
}
.login-foot span {
  letter-spacing: 0;
}
.login-card {
  border: 1px solid var(--line);
  border-radius: 24px;
  background: #14151dcc;
  padding: 34px;
  box-shadow: 0 15px 70px #0003;
}
.login-card h2 {
  font-size: 24px;
  letter-spacing: -0.6px;
  margin: 14px 0 6px;
}
.login-card form {
  display: grid;
  gap: 18px;
  margin-top: 28px;
}
.connect-button {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  margin-top: 3px;
}
.connect-button span {
  font-size: 20px;
}
.connection-note {
  display: flex;
  gap: 12px;
  border-top: 1px solid var(--line);
  margin-top: 26px;
  padding-top: 18px;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.7;
}
.connection-note > span {
  color: #bc97ff;
  font-size: 25px;
}
.connection-note p {
  margin: 0;
}
.workspace {
  height: 100dvh;
  display: grid;
  grid-template-columns: 360px minmax(380px, 1fr) 330px;
  max-width: 1700px;
  margin: auto;
  border-left: 1px solid var(--line);
  border-right: 1px solid var(--line);
}
.workspace.console-hidden {
  grid-template-columns: 360px minmax(380px, 1fr);
}
.inbox-panel {
  display: flex;
  flex-direction: column;
  min-height: 0;
  background: var(--bg);
  border-right: 1px solid var(--line);
  padding: 0 20px;
}
.phone-status {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 48px;
  padding: 0 9px;
  font-size: 15px;
  font-weight: 650;
}
.phone-status > span:last-child {
  letter-spacing: 2px;
  font-size: 13px;
}
.inbox-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 13px 0 22px;
}
.inbox-header h1 {
  font-size: 22px;
  font-weight: 550;
  margin: 0;
  letter-spacing: -0.4px;
}
.account-avatar {
  padding: 0;
  overflow: hidden;
  border: 1px solid #62607b;
  border-radius: 50%;
  height: 39px;
  width: 39px;
  font-size: 22px;
  background: #211c30;
  color: #ccb1ff;
}
.account-avatar img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.search-box {
  display: flex;
  align-items: center;
  gap: 10px;
  background: #232331;
  border: 1px solid #55536e;
  border-radius: 28px;
  padding: 7px 18px;
  color: #b8b5ce;
}
.search-box input {
  padding: 8px 0;
  background: none;
  border: 0;
  font-size: 17px;
  margin: 0;
}
.search-box svg {
  width: 21px;
}
.search-box kbd {
  font-size: 9px;
  white-space: nowrap;
  color: #858198;
}
.folder-tabs {
  display: flex;
  border-bottom: 1px solid var(--line);
  gap: 10px;
  margin-top: 21px;
}
.folder-tabs > button {
  padding: 12px 0;
  color: var(--muted);
  font-size: 12px;
  flex: 1;
  border-bottom: 2px solid transparent;
  white-space: nowrap;
}
.folder-tabs > button.active {
  color: var(--text);
  border-color: var(--purple);
}
.folder-tabs span:not(:empty) {
  background: var(--purple);
  border-radius: 8px;
  font-size: 9px;
  padding: 1px 4px;
  margin-left: 3px;
}
.inbox-caption {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 18px;
  height: 58px;
  font-weight: 500;
}
.chat-scroll {
  flex: 1;
  min-height: 0;
  overflow: auto;
  margin: 0 -8px;
  padding: 0 8px;
  scrollbar-width: thin;
  scrollbar-color: #393441 transparent;
}
.chat-row {
  width: 100%;
  display: flex;
  gap: 13px;
  align-items: center;
  padding: 19px 0;
  border-bottom: 1px solid #292733;
  text-align: left;
  position: relative;
}
.chat-row:hover,
.chat-row.selected {
  background: #1b1826;
  border-radius: 12px;
  padding-left: 9px;
  padding-right: 9px;
}
.avatar {
  width: 54px;
  height: 54px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: #2c2540;
  color: #dbbcff;
  font-size: 20px;
  flex-shrink: 0;
  position: relative;
  overflow: hidden;
  border: 1px solid #555064;
}
.avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.avatar.small {
  width: 34px;
  height: 34px;
  font-size: 13px;
}
.avatar.large {
  width: 64px;
  height: 64px;
}
.avatar.group {
  overflow: visible;
  background: #262230;
  font-size: 23px;
}
.avatar-stack {
  width: 54px;
  height: 54px;
  flex-shrink: 0;
  position: relative;
}
.avatar-stack .avatar {
  width: 39px;
  height: 39px;
  font-size: 14px;
  position: absolute;
  left: 0;
  top: 0;
}
.avatar-stack .avatar + .avatar {
  left: 17px;
  top: 17px;
  border: 2px solid var(--bg);
}
.chat-row-content {
  flex: 1;
  min-width: 0;
}
.chat-row-title {
  display: block;
  font-size: 15px;
  color: var(--text);
  font-weight: 550;
  text-overflow: ellipsis;
  white-space: nowrap;
  overflow: hidden;
  margin-bottom: 7px;
}
.chat-row-preview {
  display: block;
  font-size: 13px;
  color: #b6b1ca;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.chat-row-preview .time {
  font-size: 10px;
  color: #89859d;
}
.unread-dot {
  height: 9px;
  width: 9px;
  background: var(--blue);
  border-radius: 50%;
  flex-shrink: 0;
}
.inbox-footer {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 10px;
  height: 54px;
  border-top: 1px solid var(--line);
  color: var(--muted);
}
.inbox-footer .text-button {
  margin-left: auto;
  font-size: 10px;
}
.status-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--green);
}
.status-dot.offline {
  background: #ffa864;
}
.conversation-panel {
  min-width: 0;
  background: #111119;
  display: flex;
  position: relative;
}
.conversation-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  width: 100%;
  background: radial-gradient(ellipse at 50% 42%, #2b204930, transparent 65%);
}
.empty-symbol {
  width: 92px;
  height: 92px;
  display: grid;
  place-items: center;
  background: #241c35;
  border: 1px solid #473458;
  border-radius: 27px;
  margin-bottom: 25px;
  transform: rotate(-7deg);
}
.empty-symbol svg {
  width: 39px;
  height: 39px;
  color: #b591ef;
}
.conversation-empty h2 {
  font-size: 32px;
  line-height: 1.2;
  letter-spacing: -1px;
  margin: 9px 0 15px;
}
.conversation-empty > p:not(.eyebrow) {
  color: var(--muted);
  font-size: 13px;
}
.conversation-empty > .primary {
  margin-top: 20px;
}
.conversation {
  width: 100%;
  display: flex;
  flex-direction: column;
  min-height: 0;
}
.conversation-header {
  display: flex;
  align-items: center;
  gap: 11px;
  height: 86px;
  flex-shrink: 0;
  padding: 14px 22px;
  border-bottom: 1px solid var(--line);
}
.conversation-header .avatar {
  width: 43px;
  height: 43px;
  font-size: 17px;
}
.conversation-heading {
  flex: 1;
  min-width: 0;
}
.conversation-heading h2 {
  font-size: 16px;
  margin: 0 0 5px;
  font-weight: 550;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.conversation-heading p {
  font-size: 11px;
  color: var(--muted);
  margin: 0;
}
.conversation-header .icon-button {
  width: 31px;
  height: 31px;
}
.conversation-header .icon-button svg {
  width: 18px;
}
#mobile-back {
  display: none;
}
.request-banner {
  margin: 12px 20px 0;
  padding: 12px 16px;
  background: #252032;
  border: 1px solid #4c3b65;
  border-radius: 13px;
  font-size: 12px;
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.request-banner > span {
  flex: 1;
}
.request-banner .primary {
  padding: 8px 13px;
  font-size: 11px;
}
.message-search-bar {
  display: flex;
  gap: 10px;
  padding: 12px 20px;
  border-bottom: 1px solid var(--line);
}
.message-search-bar input {
  flex: 1;
}
.messages-scroll {
  flex: 1;
  min-height: 0;
  overflow: auto;
  padding: 20px 26px;
  scrollbar-width: thin;
  scrollbar-color: #393441 transparent;
}
.day-divider {
  text-align: center;
  font-size: 9px;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: #8f899f;
  margin: 17px 0 24px;
}
.message-row {
  display: flex;
  gap: 9px;
  align-items: flex-start;
  margin: 13px 0;
  position: relative;
}
.message-row.own {
  justify-content: flex-end;
}
.message-row > .avatar {
  margin-top: 2px;
}
.message-content {
  max-width: 80%;
  min-width: 60px;
}
.message-author {
  font-size: 10px;
  color: #a79bbd;
  margin: 0 0 5px 5px;
}
.message-bubble {
  background: #242331;
  border-radius: 15px 15px 15px 3px;
  padding: 11px 14px;
  word-break: break-word;
  font-size: 13px;
  line-height: 1.55;
  position: relative;
}
.own .message-bubble {
  background: #9055ee;
  border-radius: 15px 15px 3px 15px;
}
.message-bubble.mentioned {
  box-shadow: 0 0 0 1px #b690ff;
}
.message-bubble.deleted {
  color: #b0a3be;
  font-style: italic;
  background: #1b1923;
}
.message-text {
  white-space: pre-wrap;
  unicode-bidi: plaintext;
}
.message-text mark {
  background: #b7a0ff33;
  color: inherit;
  border-radius: 4px;
  padding: 1px 2px;
  font-weight: 600;
}
.message-meta {
  display: flex;
  gap: 5px;
  align-items: center;
  font-size: 9px;
  color: #948ba7;
  margin: 5px 4px;
}
.own .message-meta {
  justify-content: flex-end;
}
.receipt.seen {
  color: #c294ff;
}
.message-more {
  opacity: 0;
  width: 25px;
  height: 25px;
  position: absolute;
  right: -27px;
  top: 3px;
  color: #afa6be;
  font-size: 19px;
}
.own .message-more {
  left: -27px;
  right: auto;
}
.message-row:hover .message-more,
.message-more:focus-visible {
  opacity: 1;
}
.message-content:hover .message-more {
  opacity: 1;
}
.message-reactions {
  display: flex;
  gap: 5px;
  flex-wrap: wrap;
  margin-top: 5px;
}
.reaction-chip {
  font-size: 12px;
  border: 1px solid #514165;
  background: #211b2e;
  border-radius: 12px;
  padding: 3px 7px;
}
.reaction-chip.mine {
  background: #3f2a62;
  border-color: #9972cd;
}
.quoted-message {
  border-left: 2px solid #b58fea;
  padding: 5px 9px;
  background: #0002;
  border-radius: 5px;
  margin-bottom: 8px;
  color: #dbd1eb;
  font-size: 10px;
  max-width: 100%;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.entity-media {
  margin: 7px -5px 2px;
  overflow: hidden;
  border-radius: 11px;
  max-width: 330px;
}
.entity-media img,
.entity-media video {
  display: block;
  width: 100%;
  max-height: 330px;
  object-fit: contain;
  background: #111;
}
.entity-media audio {
  max-width: 100%;
  width: 285px;
  height: 39px;
  margin-top: 3px;
}
.media-caption {
  font-size: 9px;
  color: #d0c1e5;
  margin-top: 5px;
}
.entity-card {
  margin: 8px -4px 1px;
  border: 1px solid #ffffff1c;
  border-radius: 12px;
  overflow: hidden;
  max-width: 320px;
  background: #17161f;
}
.entity-card img {
  width: 100%;
  max-height: 240px;
  object-fit: cover;
  display: block;
}
.entity-card-content {
  padding: 11px;
  font-size: 12px;
}
.entity-card-title {
  font-size: 15px;
  font-weight: 600;
  line-height: 1.35;
  margin-bottom: 5px;
}
.entity-card-content .muted {
  font-size: 10px;
  color: #aaa0b7;
}
.entity-card details {
  font-size: 10px;
  margin-top: 9px;
}
.entity-card pre {
  white-space: pre-wrap;
  word-break: break-word;
  font-size: 9px;
  max-height: 170px;
  overflow: auto;
}
.pin-label {
  font-size: 9px;
  color: #b794eb;
  margin-bottom: 5px;
}
.message-empty {
  text-align: center;
  color: var(--muted);
  padding: 50px 0;
  font-size: 13px;
}
.typing-status {
  min-height: 20px;
  padding: 0 24px;
  color: #b795eb;
  font-size: 10px;
}
.composer-area {
  position: relative;
  padding: 8px 20px 13px;
  border-top: 1px solid #22202c;
  background: #14131c;
}
.composer {
  display: flex;
  align-items: flex-end;
  gap: 4px;
  border: 1px solid #504563;
  border-radius: 25px;
  padding: 6px;
  background: #24212f;
}
.composer textarea {
  border: 0;
  background: none;
  resize: none;
  flex: 1;
  padding: 10px 5px;
  font-size: 13px;
  max-height: 140px;
  min-height: 37px;
  line-height: 1.4;
}
.composer .icon-button {
  width: 33px;
  height: 35px;
}
.composer .icon-button svg {
  width: 19px;
}
.send-button {
  height: 35px;
  width: 35px;
  border-radius: 50%;
  background: #9560ff;
  display: grid;
  place-items: center;
  flex-shrink: 0;
}
.send-button svg {
  width: 18px;
  height: 18px;
}
.composer-hint {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 9px;
  color: #7f748f;
  margin-top: 7px;
  padding: 0 9px;
  min-height: 17px;
}
.composer-hint .text-button {
  font-size: 9px;
  padding: 0;
}
.reply-banner {
  display: flex;
  align-items: center;
  gap: 10px;
  border-left: 2px solid #a077db;
  padding: 8px 10px;
  margin-bottom: 8px;
  background: #242030;
  border-radius: 7px;
  font-size: 11px;
}
.reply-banner span {
  flex: 1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.draft-entities {
  display: flex;
  gap: 7px;
  overflow: auto;
}
.draft-entity {
  margin-bottom: 9px;
  border: 1px solid #514063;
  border-radius: 10px;
  padding: 6px 9px;
  font-size: 10px;
  display: flex;
  gap: 8px;
  align-items: center;
  max-width: 180px;
}
.draft-entity img {
  height: 35px;
  width: 35px;
  object-fit: cover;
  border-radius: 6px;
}
.draft-entity span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.draft-entity button {
  color: #d0b7e9;
}
.upload-status {
  padding: 7px 0 12px;
  color: var(--muted);
  font-size: 10px;
  display: flex;
  align-items: center;
  gap: 9px;
}
.upload-status progress {
  width: 110px;
  height: 4px;
  accent-color: var(--purple);
}
.mention-picker {
  position: absolute;
  bottom: 100%;
  left: 20px;
  right: 20px;
  background: #23202e;
  border: 1px solid #584369;
  border-radius: 12px;
  max-height: 250px;
  overflow: auto;
  padding: 6px;
  box-shadow: 0 -10px 40px #0004;
  z-index: 4;
}
.mention-picker button {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  text-align: left;
  padding: 9px;
  border-radius: 7px;
}
.mention-picker button:hover {
  background: #393043;
}
.mention-picker .muted {
  font-size: 10px;
}
.recording {
  background: #a94559 !important;
  color: #fff;
  animation: pulse 1s infinite;
}
@keyframes pulse {
  50% {
    box-shadow: 0 0 0 6px #d54e6422;
  }
}
.inspector {
  background: #14151d;
  border-left: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  min-height: 0;
  padding: 20px 17px 12px;
}
.inspector > header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 15px;
}
.inspector h2 {
  font-size: 18px;
  margin: 6px 0;
}
.inspector .eyebrow {
  margin: 0;
  font-size: 9px;
}
.session-details {
  padding: 12px;
  background: #101118;
  border: 1px solid #292a36;
  border-radius: 12px;
}
.session-details > div {
  margin-bottom: 8px;
}
.session-details > div > span {
  font-size: 9px;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: #8b829b;
  display: block;
  margin-bottom: 3px;
}
.session-details code {
  display: block;
  font-size: 9px;
  line-height: 1.6;
  color: #c8badb;
  overflow-wrap: anywhere;
}
.session-details .connection-buttons {
  display: flex;
  justify-content: space-between;
  margin: 0;
}
.session-details .connection-buttons .text-button {
  font-size: 10px;
}
.test-controls {
  padding: 16px 2px;
  border-bottom: 1px solid var(--line);
}
.test-controls label {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 11px;
  margin-bottom: 9px;
}
.test-controls input {
  width: 13px;
  height: 13px;
  margin: 0;
  accent-color: var(--purple);
  padding: 0;
}
.test-controls > div {
  display: flex;
  gap: 15px;
}
.test-controls .text-button {
  font-size: 10px;
}
.traffic-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 12px;
}
.traffic-header h3 {
  font-size: 12px;
  font-weight: 550;
}
.traffic-header h3 span {
  font-size: 10px;
  color: #8e829b;
  margin-left: 7px;
}
.traffic-filter {
  display: flex;
  gap: 5px;
  margin-bottom: 12px;
}
.traffic-filter button {
  font-size: 9px;
  padding: 5px 8px;
  background: #24222f;
  border-radius: 6px;
  color: #a89bb9;
}
.traffic-filter .active {
  background: #44305d;
  color: #dfc7ff;
}
.traffic-list {
  flex: 1;
  min-height: 100px;
  overflow: auto;
  scrollbar-width: thin;
  scrollbar-color: #393441 transparent;
}
.traffic-item {
  border: 1px solid #302b3c;
  border-radius: 8px;
  margin-bottom: 6px;
  background: #17151f;
  font-size: 10px;
}
.traffic-item summary {
  padding: 10px;
  cursor: pointer;
  list-style: none;
  display: flex;
  gap: 7px;
  align-items: center;
}
.traffic-item summary .direction {
  font-size: 9px;
  color: #c2a0ed;
}
.traffic-item.event summary .direction {
  color: #5cc9a4;
}
.traffic-item.error summary .direction {
  color: var(--danger);
}
.traffic-item summary .name {
  flex: 1;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.traffic-item summary time {
  color: #877f96;
  font-size: 8px;
}
.traffic-item pre {
  font-size: 9px;
  line-height: 1.7;
  margin: 0;
  padding: 0 10px 10px;
  white-space: pre-wrap;
  word-break: break-word;
  max-height: 330px;
  overflow: auto;
  color: #c2b7d4;
}
.raw-console {
  border-top: 1px solid var(--line);
  padding-top: 12px;
  margin-top: 12px;
  font-size: 11px;
}
.raw-console summary {
  cursor: pointer;
  padding-bottom: 8px;
}
.raw-console label {
  margin-bottom: 9px;
}
.raw-console textarea {
  font-family: ui-monospace, monospace;
  font-size: 10px;
}
.raw-console .primary {
  width: 100%;
  font-size: 11px;
  padding: 10px;
}
.empty-inbox {
  text-align: center;
  padding: 50px 20px;
  color: var(--muted);
}
.empty-inbox > span {
  display: flex;
  justify-content: center;
}
.empty-inbox > span svg {
  width: 40px;
  height: 40px;
  color: #806594;
}
.empty-inbox h3 {
  color: var(--text);
  font-size: 15px;
  margin-top: 20px;
}
.empty-inbox p {
  font-size: 12px;
  line-height: 1.8;
}
.load-more {
  display: block;
  margin: 15px auto;
}
dialog {
  background: #17151f;
  color: var(--text);
  border: 1px solid #524361;
  border-radius: 23px;
  width: min(460px, calc(100vw - 32px));
  max-height: 85dvh;
  padding: 25px;
  box-shadow: 0 30px 120px #0007;
}
dialog::backdrop {
  background: #08060bbb;
  backdrop-filter: blur(5px);
}
.dialog-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 19px;
}
.dialog-header h2 {
  font-size: 19px;
  margin: 0;
  letter-spacing: -0.3px;
}
.dialog-form {
  display: grid;
  gap: 14px;
}
.dialog-actions {
  display: flex;
  gap: 8px;
  justify-content: flex-end;
  margin-top: 20px;
}
.dialog-error {
  color: var(--danger);
  font-size: 11px;
  white-space: pre-wrap;
  line-height: 1.6;
}
.dialog-hint {
  font-size: 11px;
  color: var(--muted);
  line-height: 1.7;
}
.people-list {
  max-height: 280px;
  overflow: auto;
  margin: 9px 0;
}
.person-row {
  display: flex;
  align-items: center;
  gap: 12px;
  text-align: left;
  width: 100%;
  padding: 11px 0;
  border-bottom: 1px solid var(--line);
}
.person-row > div:nth-child(2) {
  flex: 1;
}
.person-row .person-name {
  font-size: 13px;
  margin-bottom: 4px;
}
.person-row .person-username {
  font-size: 10px;
  color: var(--muted);
}
.person-row .check-circle {
  height: 18px;
  width: 18px;
  border: 1px solid #89809c;
  border-radius: 50%;
}
.person-row.selected .check-circle {
  border-color: var(--purple);
  background: var(--purple);
}
.person-row .avatar {
  width: 43px;
  height: 43px;
  font-size: 17px;
}
.group-link {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  font-size: 13px;
  padding: 13px 0;
  color: #c9b7de;
}
.group-link > span:last-child {
  margin-left: auto;
}
.manual-id {
  border-top: 1px solid var(--line);
  padding-top: 14px;
}
.manual-id input {
  font-size: 12px;
}
.member-row {
  display: flex;
  gap: 10px;
  align-items: center;
  padding: 11px 0;
  border-bottom: 1px solid var(--line);
}
.member-row > div:nth-child(2) {
  flex: 1;
}
.member-row select {
  padding: 6px;
  font-size: 10px;
  max-width: 90px;
}
.member-row button {
  font-size: 10px;
}
.menu-actions {
  display: grid;
  gap: 2px;
}
.menu-actions > button {
  display: flex;
  align-items: center;
  gap: 10px;
  text-align: left;
  font-size: 12px;
  padding: 12px;
  border-radius: 9px;
}
.menu-actions > button:hover {
  background: #2a2336;
}
.reaction-picker {
  display: flex;
  justify-content: space-between;
  background: #25202e;
  border-radius: 15px;
  padding: 6px;
  margin-bottom: 15px;
}
.reaction-picker button {
  font-size: 23px;
  padding: 5px;
}
.receipt-list {
  font-size: 12px;
}
.receipt-list > div {
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
  line-height: 1.7;
}
.receipt-list .muted {
  font-size: 10px;
}
.raw-result {
  max-height: 400px;
  overflow: auto;
  font-size: 10px;
  white-space: pre-wrap;
  word-break: break-word;
  background: #100e17;
  padding: 12px;
  border-radius: 10px;
}
.toast {
  position: fixed;
  bottom: 23px;
  left: 50%;
  transform: translateX(-50%);
  background: #32233f;
  border: 1px solid #785290;
  border-radius: 12px;
  padding: 13px 20px;
  max-width: min(650px, 90vw);
  font-size: 12px;
  line-height: 1.6;
  z-index: 20;
  box-shadow: 0 8px 40px #0006;
}
.toast.error {
  background: #39202a;
  border-color: #9b5061;
  color: #ffb5bf;
}
.toast button {
  margin-left: 15px;
  color: #dfc3ff;
  text-decoration: underline;
  font-size: 11px;
}
.loading-label {
  padding: 30px;
  text-align: center;
  font-size: 12px;
  color: var(--muted);
}
.card-debug {
  font-size: 10px;
}
.group-section-label {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: #9d8cae;
  margin: 20px 0 9px;
}
.checkbox-row {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 12px;
}
.checkbox-row input {
  width: 14px;
  accent-color: var(--purple);
}
.inline-fields {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.inline-fields > * {
  min-width: 0;
}
.no-wrap {
  white-space: nowrap;
}
@media (min-width: 1500px) {
  .workspace {
    grid-template-columns: 390px minmax(400px, 1fr) 350px;
  }
  .workspace.console-hidden {
    grid-template-columns: 390px minmax(400px, 1fr);
  }
}
@media (max-width: 1180px) {
  .workspace {
    grid-template-columns: 320px minmax(360px, 1fr);
  }
  .workspace.console-hidden {
    grid-template-columns: 320px minmax(360px, 1fr);
  }
  .inspector {
    position: fixed;
    right: 0;
    top: 0;
    bottom: 0;
    width: 330px;
    z-index: 9;
    box-shadow: -20px 0 70px #0006;
  }
  .workspace.console-hidden .inspector {
    display: none !important;
  }
}
@media (max-width: 760px) {
  .login-layout {
    grid-template-columns: 1fr;
    gap: 25px;
    padding: 25px 20px;
  }
  .login-art > .eyebrow,
  .login-art .intro,
  .orbit,
  .login-foot {
    display: none;
  }
  .login-art h1 {
    font-size: 30px;
    margin: 20px 0 0;
  }
  .login-card {
    padding: 25px;
  }
  .workspace,
  .workspace.console-hidden {
    display: block;
  }
  .inbox-panel {
    height: 100dvh;
    max-width: 460px;
    margin: auto;
    border: 0;
  }
  .conversation-panel {
    display: none;
  }
  .workspace.chat-open .inbox-panel {
    display: none;
  }
  .workspace.chat-open .conversation-panel {
    display: flex;
    height: 100dvh;
  }
  .workspace.chat-open #mobile-back {
    display: inline-flex;
  }
  .messages-scroll {
    padding: 16px 22px;
  }
  .message-content {
    max-width: 84%;
  }
  .message-more {
    opacity: 1;
  }
  .conversation-header {
    padding: 10px 14px;
    height: 72px;
  }
  .composer-area {
    padding: 8px 12px 12px;
  }
  .inspector {
    width: min(350px, 100vw);
  }
  .search-box kbd {
    display: none;
  }
}

/* Reserve space for overlapping group avatars inside the conversation header. */
.avatar-stack {
  display: inline-block;
}
#current-avatar {
  width: 43px;
  height: 43px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
}
.conversation-header .avatar-stack {
  width: 43px;
  height: 43px;
}
.conversation-header .avatar-stack .avatar {
  width: 30px;
  height: 30px;
  font-size: 12px;
}
.conversation-header .avatar-stack .avatar + .avatar {
  left: 13px;
  top: 13px;
}

.avatar-frame {
  position: relative;
  display: inline-flex;
  flex-shrink: 0;
}
.online-indicator {
  width: 11px;
  height: 11px;
  position: absolute;
  right: 0;
  bottom: 0;
  background: var(--green);
  border: 2px solid var(--bg);
  border-radius: 50%;
}
.avatar-frame.small .online-indicator {
  width: 9px;
  height: 9px;
}
.avatar-stack > .avatar-frame {
  position: absolute;
  left: 0;
  top: 0;
}
.avatar-stack > .avatar-frame + .avatar-frame {
  left: 17px;
  top: 17px;
}
.avatar-stack .avatar {
  position: relative;
  left: auto;
  top: auto;
}
.conversation-header .avatar-stack > .avatar-frame + .avatar-frame {
  left: 13px;
  top: 13px;
}
.message-row > .avatar-frame {
  margin-top: 2px;
}
.member-presence {
  font-size: 9px;
  color: var(--muted);
  margin-top: 4px;
}

/* Shared content uses the same message entities, with stable rows across events. */
dialog:has(.shared-content) {
  background: #111118;
  width: min(480px, calc(100vw - 24px));
  padding: 22px;
}
.shared-profile {
  text-align: center;
  padding: 12px 0 8px;
}
.shared-profile > .avatar-frame,
.shared-profile .avatar {
  width: 72px;
  height: 72px;
}
.shared-profile .avatar-stack {
  margin: auto;
  width: 95px;
}
.shared-profile h3 {
  font-size: 17px;
  font-weight: 500;
  margin: 16px 0 6px;
}
.shared-profile p {
  margin: 0;
  font-size: 12px;
}
.shared-actions {
  display: flex;
  justify-content: space-evenly;
  margin: 20px 0 28px;
}
.shared-actions button {
  display: grid;
  justify-items: center;
  gap: 7px;
}
.shared-actions svg {
  width: 20px;
  height: 20px;
}
.shared-tabs {
  display: flex;
  border-bottom: 1px solid #353240;
  margin-bottom: 20px;
}
.shared-tabs button {
  flex: 1;
  border: 0;
  border-bottom: 2px solid transparent;
  border-radius: 0;
  background: none;
  padding: 13px 4px;
  color: var(--muted);
}
.shared-tabs button.active {
  border-bottom-color: #eeeaf8;
  color: var(--text);
}
.shared-list {
  display: grid;
  gap: 14px;
}
.shared-item {
  min-width: 0;
  padding: 12px;
  border-radius: 18px;
  background: #242330;
}
.shared-by {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
  font-size: 12px;
}
.shared-by .avatar-frame,
.shared-by .avatar {
  width: 27px;
  height: 27px;
  font-size: 12px;
}
.shared-by time {
  color: var(--muted);
  font-size: 10px;
  margin-left: auto;
}
.shared-title-card {
  display: flex;
  align-items: center;
  gap: 12px;
}
.shared-title-card img,
.shared-poster-placeholder {
  width: 52px;
  height: 78px;
  object-fit: cover;
  border-radius: 9px;
  flex-shrink: 0;
}
.shared-title-card strong {
  font-size: 15px;
  font-weight: 500;
}
.shared-title-card p {
  font-size: 11px;
  margin: 8px 0 0;
}
.shared-poster-placeholder {
  background: #353144;
  display: grid;
  place-items: center;
}
.shared-poster-placeholder svg {
  width: 26px;
  height: 26px;
}
.shared-rating {
  color: #f6cf52;
}
.shared-item .entity-card {
  border: 0;
  margin: 0;
}
.shared-item .entity-card-content {
  padding: 12px 2px;
}
.shared-source {
  margin-top: 9px;
  font-size: 10px;
}
.shared-list.media {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 9px;
}
.shared-item.media {
  padding: 0;
  overflow: hidden;
  border-radius: 12px;
}
.shared-item.media .shared-by {
  padding: 8px;
  gap: 4px;
  font-size: 10px;
  margin: 0;
}
.shared-item.media .shared-by .avatar-frame {
  display: none;
}
.shared-item.media .shared-by time {
  font-size: 9px;
}
.shared-item.media .entity-media {
  margin: 0;
}
.shared-item.media img,
.shared-item.media video {
  width: 100%;
  height: 118px;
  object-fit: cover;
  display: block;
}
.shared-item.media .shared-source {
  padding: 0 8px 8px;
  margin-top: 8px;
  font-size: 9px;
}
.shared-trailer {
  position: relative;
  font-size: 10px;
}
.shared-trailer > svg {
  width: 100%;
  height: 118px;
  padding: 35px;
  background: #343042;
}
.shared-trailer span {
  display: block;
  padding: 7px 8px 0;
  color: #cfb3ff;
}
.shared-trailer strong {
  display: block;
  padding: 5px 8px;
  font-weight: 500;
}
.shared-trailer a {
  display: block;
  padding: 4px 8px;
  color: #cdb5ff;
}
.shared-list.voice audio {
  width: 100%;
}
.shared-list .entity-card details {
  display: none;
}
@media (max-width: 420px) {
  .shared-list.media {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.login-methods {
  display: flex;
  gap: 5px;
  padding: 5px;
  border-radius: 14px;
  background: #21202e;
}
.login-methods button {
  flex: 1;
  border: 0;
  border-radius: 10px;
  padding: 11px 7px;
  background: none;
  color: var(--muted);
}
.login-methods button.active {
  background: #473059;
  color: var(--text);
}
.otp-hint {
  font-size: 12px;
  line-height: 1.6;
  color: #c7b0ed;
  margin: 0;
}
.otp-actions {
  display: flex;
  gap: 12px;
  justify-content: space-between;
}
.otp-actions button {
  font-size: 11px;
}
#login-otp {
  font-size: 22px;
  letter-spacing: 0.4em;
}
#login-otp::placeholder {
  letter-spacing: normal;
  font-size: 16px;
}
