:root {
  color-scheme: dark;
  --ink: #f7f5fb;
  --muted: #a4a4b5;
  --muted-2: #757888;
  --line: rgba(255, 255, 255, 0.12);
  --glass: rgba(27, 29, 42, 0.16);
  --glass-strong: rgba(26, 28, 40, 0.48);
  --accent: #c4a8ff;
  --cyan: #94e3e5;
  --green: #83e3b0;
  font-family: "Segoe UI", Tahoma, Arial, sans-serif;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
}

* {
  box-sizing: border-box;
}

html {
  min-width: 320px;
  min-height: 100%;
  overflow-x: clip;
  scroll-behavior: smooth;
}

body {
  position: relative;
  min-width: 320px;
  min-height: 100vh;
  min-height: 100svh;
  margin: 0;
  overflow-x: clip;
  isolation: isolate;
  color: var(--ink);
  background: #000;
  transition: color 280ms ease, background-color 280ms ease;
  user-select: none;
}

::selection {
  color: var(--ink);
  background: rgba(148, 227, 229, 0.32);
}

body[data-theme="light"] {
  color-scheme: light;
  --ink: #262535;
  --muted: #626376;
  --muted-2: #858697;
  --line: rgba(255, 255, 255, 0.6);
  --glass: rgba(250, 249, 255, 0.22);
  --glass-strong: rgba(245, 244, 251, 0.5);
  --accent: #7956bd;
  --cyan: #317f95;
  --green: #208a5b;
  background: #fff;
}

body[data-wallpaper="aurora"] {
  background: #11141c;
}

body[data-wallpaper="tide"] {
  background: #121b26;
}

body[data-wallpaper="nebula"] {
  background: #1a1420;
}

body[data-wallpaper="dawn"] {
  background: #21191f;
}

body[data-wallpaper="forest"] {
  background: #15201f;
}

body[data-theme="light"][data-wallpaper="aurora"] {
  background: #f0eef6;
}

body[data-theme="light"][data-wallpaper="tide"] {
  background: #eaf2f6;
}

body[data-theme="light"][data-wallpaper="nebula"] {
  background: #f2edf5;
}

body[data-theme="light"][data-wallpaper="dawn"] {
  background: #f7efec;
}

body[data-theme="light"][data-wallpaper="forest"] {
  background: #edf4ef;
}

body[data-wallpaper="black"] {
  background: #000 !important;
}

body[data-wallpaper="white"] {
  background: #fff !important;
}

body[data-wallpaper="black"] .backdrop,
body[data-wallpaper="black"] .pointer-light,
body[data-wallpaper="white"] .backdrop,
body[data-wallpaper="white"] .pointer-light {
  display: none;
}

button,
input,
textarea {
  color: inherit;
  font: inherit;
}

input,
textarea,
.message-content {
  user-select: text;
}

button {
  -webkit-tap-highlight-color: transparent;
}

button:focus-visible,
a:focus-visible,
input:focus-visible,
textarea:focus-visible {
  outline: 2px solid rgba(148, 227, 229, 0.86);
  outline-offset: 3px;
}

button:disabled {
  cursor: wait !important;
  opacity: 0.65;
}

[hidden] {
  display: none !important;
}

.backdrop {
  display: none;
}

.backdrop--one {
  top: -34%;
  right: -9%;
  background: radial-gradient(circle at 45% 45%, rgba(159, 119, 239, 0.75), rgba(108, 77, 176, 0.25) 33%, transparent 69%);
}

.backdrop--two {
  bottom: -59%;
  left: -9%;
  background: radial-gradient(circle at 55% 40%, rgba(78, 198, 208, 0.7), rgba(52, 126, 158, 0.23) 37%, transparent 70%);
}

.backdrop--three {
  top: 26%;
  left: 44%;
  width: min(34vw, 370px);
  background: radial-gradient(circle, rgba(216, 163, 189, 0.27), transparent 70%);
}

.pointer-light {
  position: fixed;
  z-index: -1;
  top: var(--pointer-y, 50vh);
  left: var(--pointer-x, 50vw);
  width: 360px;
  height: 360px;
  transform: translate3d(-50%, -50%, 0);
  background: radial-gradient(
    180px circle at 50% 50%,
    rgba(255, 255, 255, 0.12),
    rgba(148, 227, 229, 0.035) 42%,
    transparent 76%
  );
  pointer-events: none;
}

.glass-surface {
  position: relative;
  border: 1px solid rgba(255, 255, 255, 0.28);
  background: var(--glass);
  box-shadow:
    0 18px 56px rgba(0, 0, 0, 0.19),
    0 2px 8px rgba(0, 0, 0, 0.12),
    inset 0 1px 0 rgba(255, 255, 255, 0.38),
    inset 0 -1px 0 rgba(255, 255, 255, 0.045);
  -webkit-backdrop-filter: blur(12px) saturate(145%);
  backdrop-filter: blur(12px) saturate(145%);
  transition: background 320ms ease, border-color 320ms ease, box-shadow 320ms ease;
}

body[data-theme="light"] .glass-surface {
  border-color: rgba(255, 255, 255, 0.72);
  box-shadow:
    0 18px 56px rgba(60, 53, 94, 0.13),
    0 2px 8px rgba(60, 53, 94, 0.07),
    inset 0 1px 0 rgba(255, 255, 255, 0.9),
    inset 0 -1px 0 rgba(255, 255, 255, 0.25);
}

.app-topbar,
.chat-sidebar,
.conversation {
  isolation: isolate;
}

.wordmark {
  display: inline-flex;
  align-items: baseline;
  direction: ltr;
  color: var(--ink);
  font-size: 24px;
  font-weight: 750;
  letter-spacing: -1.5px;
  white-space: nowrap;
  text-decoration: none;
}

.wordmark span {
  color: #c7b1ff;
}

.wordmark i {
  color: var(--cyan);
  font-size: 29px;
  font-style: normal;
}

.auth-screen {
  width: min(1180px, calc(100% - 64px));
  min-height: 100vh;
  min-height: 100svh;
  margin: 0 auto;
  padding: 28px 0 18px;
  animation: rise-in 700ms cubic-bezier(0.2, 0.8, 0.2, 1) both;
}

.auth-topbar {
  display: flex;
  min-height: 68px;
  align-items: center;
  justify-content: space-between;
  padding: 0 20px;
  border-radius: 21px;
}

.topbar-caption {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  letter-spacing: 0.08em;
}

.downloads-link,
.downloads-back {
  padding: 8px 11px;
  border: 1px solid var(--line);
  border-radius: 11px;
  color: var(--ink);
  font-size: 10px;
  text-decoration: none;
  transition: background 180ms ease, border-color 180ms ease;
}

.downloads-link:hover,
.downloads-back:hover {
  border-color: rgba(148, 227, 229, 0.42);
  background: rgba(255, 255, 255, 0.08);
}

.downloads-screen {
  width: min(940px, calc(100% - 32px));
  min-height: 100vh;
  min-height: 100svh;
  margin: 0 auto;
  padding: 24px 0;
  animation: rise-in 550ms cubic-bezier(0.2, 0.8, 0.2, 1) both;
}

.downloads-topbar {
  display: flex;
  min-height: 62px;
  align-items: center;
  justify-content: space-between;
  padding: 0 17px;
  border-radius: 19px;
}

.downloads-topbar .wordmark {
  font-size: 19px;
}

.downloads-intro {
  max-width: 650px;
  margin: 0 auto;
  padding: 45px 8px 26px;
  text-align: center;
}

.downloads-intro .eyebrow {
  color: var(--cyan);
}

.downloads-intro h1 {
  margin: 10px 0;
  font-size: clamp(29px, 5vw, 46px);
  font-weight: 560;
  letter-spacing: -0.05em;
}

.downloads-intro > p:last-child {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.8;
}

.downloads-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.download-card {
  display: flex;
  min-height: 260px;
  flex-direction: column;
  padding: 21px;
  border-radius: 19px;
}

.download-platform {
  margin: 0 0 8px;
  color: var(--cyan);
  font-size: 8px;
  letter-spacing: 0.16em;
}

.download-card h2 {
  margin: 0 0 9px;
  font-size: 20px;
  font-weight: 560;
}

.download-card > p:not(.download-platform):not(.download-status) {
  margin: 0 0 18px;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.8;
}

.download-open {
  display: flex;
  min-height: 42px;
  align-items: center;
  justify-content: space-between;
  margin-top: auto;
  padding: 0 12px;
  border: 1px solid rgba(148, 227, 229, 0.24);
  border-radius: 11px;
  background: linear-gradient(120deg, rgba(148, 227, 229, 0.14), rgba(196, 168, 255, 0.12));
  color: var(--ink);
  font-size: 10px;
  text-decoration: none;
  transition: transform 180ms ease, border-color 180ms ease;
}

.download-open:hover {
  transform: translateY(-2px);
  border-color: rgba(148, 227, 229, 0.5);
}

.download-open span {
  color: var(--cyan);
  font-size: 15px;
}

.download-status {
  margin: 10px 0 0;
  color: var(--muted-2);
  font-size: 9px;
  line-height: 1.6;
}

.downloads-notice {
  margin-top: 15px;
  padding: 15px 18px;
  border-radius: 15px;
}

.downloads-notice b {
  color: var(--cyan);
  font-size: 10px;
}

.downloads-notice p {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 10px;
  line-height: 1.7;
}

.auth-layout {
  display: grid;
  min-height: 710px;
  grid-template-columns: minmax(0, 1fr) minmax(390px, 465px);
  align-items: center;
  gap: clamp(40px, 9vw, 145px);
  padding: 50px clamp(15px, 7vw, 95px) 25px;
}

.intro-copy {
  position: relative;
  min-height: 560px;
  padding-top: 40px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin: 0;
  color: #c7c1d6;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.17em;
  text-transform: uppercase;
}

body[data-theme="light"] .eyebrow {
  color: #68677b;
}

.live-dot,
.connection-label i,
.topbar-live i {
  width: 7px;
  height: 7px;
  flex: 0 0 auto;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 14px rgba(131, 227, 176, 0.8);
}

.intro-copy h1 {
  margin: 24px 0 17px;
  font-size: clamp(56px, 6.5vw, 82px);
  font-weight: 550;
  letter-spacing: -0.07em;
  line-height: 1.08;
}

.intro-copy h1 span,
.conversation-empty h2 span {
  color: transparent;
  background: linear-gradient(100deg, #f8f6ff, #c2a4ff 56%, #97e4e6);
  background-clip: text;
  -webkit-background-clip: text;
}

.intro-description {
  max-width: 420px;
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.9;
}

.orbit-art {
  position: relative;
  width: min(100%, 430px);
  height: 275px;
  margin-top: 22px;
  perspective: 700px;
}

.orbit-ring {
  position: absolute;
  top: 50%;
  left: 49%;
  border: 1px solid rgba(204, 190, 255, 0.22);
  border-radius: 50%;
  transform: translate(-50%, -50%) rotateX(63deg) rotateZ(-20deg);
}

.orbit-ring--outer {
  width: 94%;
  height: 68%;
  border-color: rgba(138, 225, 228, 0.2);
}

.orbit-ring--middle {
  width: 72%;
  height: 94%;
  transform: translate(-50%, -50%) rotateX(65deg) rotateZ(54deg);
}

.orbit-ring--inner {
  width: 50%;
  height: 63%;
  border-color: rgba(215, 186, 255, 0.3);
  transform: translate(-50%, -50%) rotateX(64deg) rotateZ(-42deg);
}

.orbit-core,
.empty-visual-core {
  position: absolute;
  top: 50%;
  left: 49%;
  display: grid;
  width: 89px;
  height: 89px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.42);
  border-radius: 30px;
  background:
    linear-gradient(140deg, rgba(255, 255, 255, 0.22), rgba(255, 255, 255, 0.035)),
    rgba(145, 128, 208, 0.15);
  box-shadow: 0 0 55px rgba(157, 133, 239, 0.25), inset 0 1px 0 rgba(255, 255, 255, 0.43);
  -webkit-backdrop-filter: blur(18px);
  backdrop-filter: blur(18px);
  font-size: 43px;
  font-weight: 300;
  transform: translate(-50%, -50%) rotate(-12deg);
}

.orbit-core i,
.empty-visual-core i {
  position: absolute;
  top: 15px;
  right: 16px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 15px var(--cyan);
}

.orbit-particle {
  position: absolute;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #d7c8ff;
  box-shadow: 0 0 17px rgba(203, 174, 255, 0.9);
}

.orbit-particle--a {
  top: 47px;
  left: 24%;
}

.orbit-particle--b {
  top: 66%;
  right: 18%;
  width: 5px;
  height: 5px;
  background: var(--cyan);
}

.orbit-particle--c {
  bottom: 17%;
  left: 36%;
  width: 4px;
  height: 4px;
}

.privacy-note {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--muted);
  font-size: 10px;
  line-height: 1.7;
}

.privacy-note b {
  color: #e8e4f0;
  font-weight: 550;
}

body[data-theme="light"] .privacy-note b {
  color: #3f3c4e;
}

.privacy-lock {
  display: grid;
  width: 31px;
  height: 31px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 11px;
  color: var(--cyan);
  font-size: 17px;
}

.auth-card {
  position: relative;
  width: 100%;
  padding: 30px;
  overflow: hidden;
  border-radius: 26px;
}

.auth-card-shine {
  position: absolute;
  top: -56px;
  right: -60px;
  width: 180px;
  height: 130px;
  border-radius: 50%;
  background: rgba(178, 147, 255, 0.16);
  filter: blur(50px);
  pointer-events: none;
}

.auth-heading,
.auth-form,
.auth-divider,
.auth-switch,
.auth-footnote {
  position: relative;
}

.auth-kicker {
  color: var(--cyan);
  font-size: 9px;
  font-weight: 650;
  letter-spacing: 0.2em;
}

.auth-heading h2 {
  margin: 9px 0 5px;
  font-size: 27px;
  font-weight: 550;
  letter-spacing: -0.04em;
}

.auth-heading p {
  margin: 0 0 22px;
  color: var(--muted);
  font-size: 12px;
}

.auth-form {
  display: flex;
  flex-direction: column;
}

.field-label {
  margin: 12px 0 7px;
  color: #e4e1eb;
  font-size: 11px;
  font-weight: 550;
}

body[data-theme="light"] .field-label {
  color: #403d4e;
}

.input-wrap {
  display: flex;
  min-height: 47px;
  align-items: center;
  gap: 11px;
  padding: 0 13px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 13px;
  background: rgba(4, 6, 13, 0.13);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.045);
  transition: border-color 180ms ease, background 180ms ease, box-shadow 180ms ease;
}

.input-wrap:focus-within {
  border-color: rgba(170, 153, 241, 0.56);
  background: rgba(7, 9, 17, 0.21);
  box-shadow: 0 0 0 3px rgba(166, 145, 238, 0.08), inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

body[data-theme="light"] .input-wrap {
  border-color: rgba(72, 68, 96, 0.16);
  background: rgba(255, 255, 255, 0.3);
}

.input-glyph {
  color: #b6a1e9;
  font-size: 15px;
}

.input-wrap input,
.settings-input-row input,
.admin-search input {
  width: 100%;
  min-width: 0;
  height: 44px;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--ink);
  font-size: 12px;
}

.input-wrap input::placeholder,
.settings-input-row input::placeholder,
.admin-search input::placeholder {
  color: var(--muted-2);
}

.show-password,
.inline-action {
  flex: 0 0 auto;
  padding: 5px 0 5px 5px;
  border: 0;
  background: none;
  color: #c6b3f4;
  cursor: pointer;
  font-size: 10px;
}

.inline-action {
  padding: 7px 8px;
  border: 1px solid rgba(194, 173, 255, 0.22);
  border-radius: 9px;
  background: rgba(194, 173, 255, 0.08);
  white-space: nowrap;
}

.form-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin: 12px 0 17px;
}

.secure-hint {
  color: var(--muted);
  font-size: 9px;
}

.tiny-lock {
  margin-inline-end: 4px;
  color: var(--green);
  font-size: 8px;
}

.subtle-button {
  padding: 4px;
  border: 0;
  background: transparent;
  color: #c9b8ed;
  cursor: pointer;
  font-size: 10px;
}

.primary-button,
.soft-button,
.danger-button {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  gap: 14px;
  padding: 0 16px;
  border: 1px solid rgba(255, 255, 255, 0.29);
  border-radius: 14px;
  background:
    linear-gradient(110deg, rgba(223, 204, 255, 0.9), rgba(165, 230, 233, 0.88));
  box-shadow: 0 8px 26px rgba(164, 146, 230, 0.16), inset 0 1px 0 rgba(255, 255, 255, 0.7);
  color: #1b1924;
  cursor: pointer;
  font-size: 12px;
  font-weight: 650;
  transition: transform 200ms ease, box-shadow 200ms ease, filter 200ms ease;
}

.primary-button:hover,
.soft-button:hover,
.danger-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 32px rgba(164, 146, 230, 0.25), inset 0 1px 0 rgba(255, 255, 255, 0.75);
  filter: brightness(1.04);
}

.button-arrow {
  font-size: 17px;
}

.auth-divider {
  display: flex;
  align-items: center;
  gap: 11px;
  margin: 21px 0 15px;
  color: var(--muted-2);
  font-size: 8px;
  letter-spacing: 0.14em;
}

.auth-divider span {
  height: 1px;
  flex: 1;
  background: var(--line);
}

.auth-divider i {
  font-style: normal;
  white-space: nowrap;
}

.auth-switch {
  margin: 0;
  color: var(--muted);
  font-size: 11px;
  text-align: center;
}

.auth-switch button {
  padding: 3px;
  border: 0;
  background: none;
  color: #d1bdff;
  cursor: pointer;
  font-size: inherit;
}

.auth-switch button span {
  padding-inline-start: 4px;
  color: var(--cyan);
}

.auth-footnote {
  margin: 14px 0 0;
  color: var(--muted-2);
  font-size: 8px;
  line-height: 1.7;
  text-align: center;
}

.form-pair {
  display: grid;
  grid-template-columns: 1fr 0.8fr;
  gap: 11px;
}

.form-pair > div {
  min-width: 0;
}

.setup-key-field {
  margin-top: 13px;
  color: var(--muted);
}

.setup-key-field span {
  color: var(--muted-2);
  font-size: 9px;
}

.setup-key-field input {
  display: block;
  width: 100%;
  height: 38px;
  margin-top: 5px;
  padding: 0 10px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.04);
  color: var(--ink);
  font-size: 10px;
}

.auth-hint {
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 10px;
  line-height: 1.6;
}

.page-foot {
  display: flex;
  justify-content: space-between;
  padding: 10px 12px;
  color: var(--muted-2);
  font-size: 8px;
  letter-spacing: 0.12em;
}

.page-foot > span:last-child {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  letter-spacing: 0;
}

.page-foot i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--muted-2);
}

.page-foot.is-online i {
  background: var(--green);
  box-shadow: 0 0 10px var(--green);
}

.icon-button {
  display: grid;
  width: 42px;
  height: 42px;
  flex: 0 0 auto;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 14px;
  background:
    linear-gradient(140deg, rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0.025)),
    rgba(255, 255, 255, 0.035);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.18);
  color: var(--ink);
  cursor: pointer;
  font-size: 18px;
  transition: transform 180ms ease, background 180ms ease, border-color 180ms ease;
}

.icon-button:hover {
  transform: translateY(-1px);
  border-color: rgba(255, 255, 255, 0.31);
  background-color: rgba(255, 255, 255, 0.11);
}

.icon-button svg {
  width: 18px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.6;
}

.install-button {
  font-size: 17px;
}

.app-screen {
  width: min(1500px, 100%);
  height: 100vh;
  height: 100svh;
  min-height: 560px;
  margin: 0 auto;
  padding: 17px;
  animation: rise-in 550ms cubic-bezier(0.2, 0.8, 0.2, 1) both;
}

.app-topbar {
  display: grid;
  height: 66px;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  padding: 0 18px;
  border-radius: 20px;
}

.app-topbar .wordmark {
  justify-self: start;
  font-size: 20px;
}

.mobile-nav-toggle {
  display: none;
}

.mobile-nav-toggle svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-width: 1.7;
}

.topbar-center {
  display: flex;
  justify-content: center;
}

.topbar-live {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: var(--muted);
  font-size: 8px;
  letter-spacing: 0.18em;
}

.topbar-live i {
  width: 5px;
  height: 5px;
}

.topbar-actions {
  display: flex;
  align-items: center;
  justify-self: end;
  gap: 10px;
}

.connection-label {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin-inline-end: 5px;
  color: var(--muted);
  font-size: 10px;
}

.connection-label i {
  width: 6px;
  height: 6px;
}

.connection-label.is-offline i {
  background: #eb7f86;
  box-shadow: 0 0 12px rgba(235, 127, 134, 0.7);
}

.avatar-button {
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: none;
  cursor: pointer;
}

.avatar {
  display: grid;
  width: 39px;
  height: 39px;
  flex: 0 0 auto;
  place-items: center;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.38);
  border-radius: 50%;
  background:
    radial-gradient(circle at 30% 23%, rgba(255, 255, 255, 0.55), transparent 38%),
    linear-gradient(135deg, #9785cb, #487e88);
  box-shadow: 0 3px 13px rgba(0, 0, 0, 0.18), inset 0 1px 0 rgba(255, 255, 255, 0.38);
  color: #fff;
  font-size: 14px;
  font-weight: 650;
}

.avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.avatar--small {
  width: 34px;
  height: 34px;
  font-size: 12px;
}

.workspace {
  position: relative;
  isolation: isolate;
  display: grid;
  height: calc(100% - 80px);
  grid-template-columns: 330px minmax(300px, 1fr);
  gap: 14px;
  margin-top: 14px;
}

.chat-sidebar,
.conversation,
.profile-panel {
  min-width: 0;
  min-height: 0;
  overflow: hidden;
  border-radius: 38px 23px 23px 38px;
}

.chat-sidebar {
  display: flex;
  flex-direction: column;
  padding: 24px 17px 14px;
  animation: float-in-right 600ms 80ms both;
}

.sidebar-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 5px 16px;
}

.sidebar-heading .eyebrow {
  color: var(--muted-2);
  font-size: 8px;
}

.sidebar-heading h1 {
  margin: 5px 0 0;
  font-size: 24px;
  font-weight: 550;
  letter-spacing: -0.05em;
}

.heading-dot {
  color: var(--accent);
}

.icon-button--small {
  width: 36px;
  height: 36px;
  border-radius: 12px;
  font-size: 17px;
}

.sidebar-search {
  display: flex;
  height: 42px;
  align-items: center;
  gap: 8px;
  padding: 0 10px;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: rgba(2, 3, 10, 0.12);
  color: var(--muted);
}

.optional-label {
  color: var(--muted);
  font-size: 10px;
  font-weight: 400;
}

.sidebar-search > span {
  color: #c5b3ed;
  font-size: 22px;
  line-height: 1;
}

.sidebar-search input {
  width: 100%;
  min-width: 0;
  height: 38px;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--ink);
  font-size: 10px;
}

.sidebar-search input::placeholder {
  color: var(--muted-2);
}

.sidebar-search > button {
  padding: 5px;
  border: 0;
  background: transparent;
  color: var(--cyan);
  cursor: pointer;
}

.search-result {
  margin-top: 9px;
  padding: 12px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.065);
  font-size: 11px;
  animation: panel-drop 300ms cubic-bezier(0.2, 0.8, 0.2, 1) both;
}

.search-result p {
  margin: 0 0 8px;
  color: var(--muted);
  line-height: 1.6;
}

.search-result-button {
  display: flex;
  width: 100%;
  align-items: center;
  gap: 10px;
  padding: 3px;
  border: 0;
  background: transparent;
  color: var(--ink);
  cursor: pointer;
  text-align: start;
}

.search-result-button span:last-child {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.search-result-button small {
  color: var(--muted);
}

.invite-button {
  padding: 7px 10px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: rgba(255, 255, 255, 0.07);
  color: var(--ink);
  cursor: pointer;
  font-size: 10px;
}

.sidebar-tabs {
  display: flex;
  gap: 5px;
  margin: 15px 2px 11px;
}

.sidebar-tab {
  display: inline-flex;
  min-height: 29px;
  align-items: center;
  gap: 6px;
  padding: 0 10px;
  border: 1px solid transparent;
  border-radius: 10px;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  font-size: 9px;
}

.sidebar-tab.is-selected {
  border-color: rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.085);
  color: var(--ink);
}

.sidebar-tab span {
  color: var(--cyan);
}

.chat-list {
  min-height: 0;
  flex: 1;
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-color: rgba(255, 255, 255, 0.16) transparent;
  scrollbar-width: thin;
}

.empty-list {
  display: flex;
  min-height: 210px;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 8px;
  padding: 20px;
  color: var(--muted);
  text-align: center;
}

.empty-list b {
  color: var(--ink);
  font-size: 12px;
  font-weight: 550;
}

.empty-list > span:last-child {
  max-width: 180px;
  font-size: 10px;
  line-height: 1.6;
}

.empty-orbit {
  display: grid;
  width: 45px;
  height: 45px;
  place-items: center;
  margin-bottom: 5px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.07);
  color: var(--cyan);
  font-size: 21px;
}

.chat-item {
  position: relative;
  display: flex;
  min-height: 70px;
  align-items: center;
  gap: 11px;
  margin: 4px 0;
  padding: 9px 9px;
  border: 1px solid transparent;
  border-radius: 15px;
  cursor: pointer;
  transition: background 180ms ease, border-color 180ms ease;
}

.chat-item:hover {
  transform: translateX(-2px);
  background: rgba(255, 255, 255, 0.05);
}

.chat-item.is-active {
  border-color: rgba(255, 255, 255, 0.16);
  background:
    linear-gradient(115deg, rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0.025)),
    rgba(159, 143, 222, 0.085);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.13);
}

.chat-item-copy {
  display: flex;
  min-width: 0;
  flex: 1;
  flex-direction: column;
  gap: 5px;
}

.chat-item-top,
.chat-item-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 7px;
}

.chat-item-top b {
  overflow: hidden;
  color: var(--ink);
  font-size: 11px;
  font-weight: 580;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.chat-item-top small,
.chat-item-bottom small {
  flex: 0 0 auto;
  color: var(--muted-2);
  font-size: 8px;
}

.chat-item-bottom > span {
  overflow: hidden;
  color: var(--muted);
  font-size: 9px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.online-dot {
  position: absolute;
  right: 39px;
  bottom: 12px;
  width: 9px;
  height: 9px;
  border: 2px solid #222430;
  border-radius: 50%;
  background: var(--green);
}

.chat-item-menu {
  display: grid;
  width: 28px;
  height: 28px;
  flex: 0 0 auto;
  place-items: center;
  border: 0;
  border-radius: 9px;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
}

.chat-item-menu:hover {
  background: rgba(255, 255, 255, 0.09);
  color: var(--ink);
}

.sidebar-bottom {
  padding-top: 11px;
  border-top: 1px solid var(--line);
}

.user-mini {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 2px 2px 8px;
}

.user-mini-copy {
  display: flex;
  min-width: 0;
  flex: 1;
  flex-direction: column;
  gap: 3px;
}

.user-mini-copy b {
  overflow: hidden;
  font-size: 10px;
  font-weight: 600;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.user-mini-copy span {
  overflow: hidden;
  color: var(--muted);
  font-size: 8px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.icon-button--tiny {
  width: 29px;
  height: 29px;
  border-radius: 10px;
  font-size: 16px;
}

.sidebar-foot {
  display: flex;
  justify-content: space-between;
  padding: 5px 3px 0;
  color: var(--muted-2);
  font-size: 7px;
  letter-spacing: 0.1em;
}

.sidebar-foot span:first-child {
  color: var(--muted);
  font-weight: 700;
  letter-spacing: 0.15em;
}

.sidebar-foot i {
  color: var(--accent);
  font-style: normal;
}

.conversation {
  position: relative;
  display: flex;
  flex-direction: column;
  animation: float-in-left 600ms 120ms both;
}

.conversation-empty {
  display: flex;
  min-height: 0;
  flex: 1;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  padding: 30px;
  text-align: center;
}

.empty-visual {
  position: relative;
  width: 180px;
  height: 180px;
  margin-bottom: 27px;
  perspective: 500px;
}

.empty-ring {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 100%;
  height: 47%;
  border: 1px solid rgba(205, 190, 255, 0.22);
  border-radius: 50%;
  transform: translate(-50%, -50%) rotate(-31deg) rotateX(63deg);
}

.empty-ring--two {
  width: 76%;
  height: 96%;
  border-color: rgba(143, 222, 231, 0.17);
  transform: translate(-50%, -50%) rotate(53deg) rotateX(63deg);
}

.empty-ring--three {
  width: 54%;
  height: 76%;
  border-color: rgba(205, 190, 255, 0.16);
  transform: translate(-50%, -50%) rotate(-5deg) rotateX(67deg);
}

.empty-visual-core {
  width: 62px;
  height: 62px;
  border-radius: 22px;
  font-size: 31px;
}

.empty-visual-core i {
  top: 9px;
  right: 10px;
  width: 6px;
  height: 6px;
}

.conversation-empty h2 {
  margin: 15px 0 10px;
  font-size: clamp(29px, 3.4vw, 43px);
  font-weight: 520;
  letter-spacing: -0.055em;
  line-height: 1.12;
}

.conversation-empty > p:not(.eyebrow) {
  max-width: 370px;
  margin: 0;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.8;
}

.conversation-empty .eyebrow {
  font-size: 8px;
}

.soft-button {
  min-height: 40px;
  margin-top: 19px;
  padding: 0 14px;
  border-color: rgba(255, 255, 255, 0.19);
  background:
    linear-gradient(140deg, rgba(255, 255, 255, 0.13), rgba(255, 255, 255, 0.035)),
    rgba(255, 255, 255, 0.06);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.19);
  color: var(--ink);
  font-size: 10px;
}

.soft-button span {
  color: var(--cyan);
  font-size: 15px;
}

.active-chat {
  display: flex;
  min-height: 0;
  flex: 1;
  flex-direction: column;
  animation: panel-fade 420ms ease both;
}

.chat-header {
  display: flex;
  min-height: 71px;
  align-items: center;
  justify-content: space-between;
  padding: 0 20px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.mobile-back {
  display: none;
}

.peer-heading,
.peer-copy {
  display: flex;
  align-items: center;
}

.peer-heading {
  gap: 11px;
}

.peer-copy {
  align-items: flex-start;
  flex-direction: column;
  gap: 4px;
}

.peer-copy b {
  font-size: 12px;
  font-weight: 600;
}

.peer-copy small {
  color: var(--muted);
  font-size: 9px;
}

.chat-header-actions {
  display: flex;
  gap: 7px;
}

.day-marker {
  display: flex;
  align-items: center;
  gap: 10px;
  align-self: center;
  margin: 13px auto 4px;
  color: var(--muted-2);
  font-size: 8px;
  letter-spacing: 0.13em;
}

.day-marker::before,
.day-marker::after {
  width: 26px;
  height: 1px;
  background: var(--line);
  content: "";
}

.message-list {
  display: flex;
  min-height: 0;
  flex: 1;
  flex-direction: column;
  gap: 9px;
  overflow: auto;
  padding: 12px clamp(12px, 5vw, 60px) 16px;
  overscroll-behavior: contain;
  scrollbar-color: rgba(255, 255, 255, 0.18) transparent;
  scrollbar-width: thin;
}

.message-row {
  display: flex;
  width: 100%;
  justify-content: flex-start;
  animation: message-in 340ms cubic-bezier(0.2, 0.8, 0.2, 1) both;
}

.message-row.is-mine {
  justify-content: flex-end;
}

.message-bubble {
  position: relative;
  max-width: min(78%, 510px);
  min-width: 90px;
  padding: 10px 12px 7px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 16px 16px 5px 16px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.075), rgba(255, 255, 255, 0.018)),
    rgba(24, 27, 39, 0.27);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.09), inset 0 1px 0 rgba(255, 255, 255, 0.1);
  -webkit-backdrop-filter: blur(14px) saturate(145%);
  backdrop-filter: blur(14px) saturate(145%);
  touch-action: pan-y;
  user-select: text;
}

.is-mine .message-bubble {
  border-color: rgba(202, 180, 255, 0.2);
  border-radius: 16px 16px 16px 5px;
  background:
    linear-gradient(140deg, rgba(199, 171, 255, 0.16), rgba(159, 218, 227, 0.07)),
    rgba(49, 42, 72, 0.25);
}

.message-content {
  color: #f2eff8;
  font-size: 12px;
  line-height: 1.75;
  overflow-wrap: anywhere;
  white-space: pre-wrap;
}

body[data-theme="light"] .message-content {
  color: #302d3b;
}

.message-content .mention-highlight {
  display: inline;
  padding: 1px 4px;
  border: 1px solid rgba(125, 232, 175, 0.22);
  border-radius: 6px;
  background: rgba(95, 220, 157, 0.12);
  box-shadow: 0 0 13px rgba(99, 242, 174, 0.09);
  color: #9af0bf;
  font-weight: 650;
}

body[data-theme="light"] .message-content .mention-highlight {
  color: #167747;
}

.reply-quote {
  margin-bottom: 8px;
  padding: 5px 8px;
  border-inline-start: 2px solid var(--accent);
  border-radius: 5px;
  background: rgba(255, 255, 255, 0.055);
}

.reply-quote b,
.reply-quote span {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.reply-quote b {
  color: #d4c2fc;
  font-size: 9px;
}

.reply-quote span {
  margin-top: 3px;
  color: var(--muted);
  font-size: 9px;
}

.message-meta {
  display: flex;
  justify-content: flex-end;
  gap: 6px;
  margin-top: 5px;
  color: var(--muted);
  font-size: 8px;
}

.message-reaction {
  position: absolute;
  right: 7px;
  bottom: -12px;
  display: grid;
  min-width: 26px;
  height: 23px;
  place-items: center;
  padding: 0 5px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 12px;
  background: rgba(25, 27, 40, 0.76);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.16);
  font-size: 12px;
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
}

.is-mine .message-reaction {
  right: auto;
  left: 7px;
}

.deleted-message {
  color: var(--muted);
  font-size: 11px;
  font-style: italic;
}

.reply-composer {
  display: flex;
  align-items: center;
  gap: 9px;
  margin: 0 clamp(12px, 4vw, 45px) 7px;
  padding: 9px 11px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.055);
  animation: panel-drop 260ms ease both;
}

.reply-composer > span {
  color: var(--cyan);
  font-size: 18px;
}

.reply-composer > div {
  display: flex;
  min-width: 0;
  flex: 1;
  flex-direction: column;
  gap: 3px;
}

.reply-composer b {
  font-size: 9px;
}

.reply-composer small {
  overflow: hidden;
  color: var(--muted);
  font-size: 9px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.composer {
  display: flex;
  min-height: 57px;
  align-items: center;
  gap: 9px;
  margin: 0 clamp(12px, 4vw, 45px);
  padding: 6px 7px 6px 11px;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 19px;
  background:
    linear-gradient(130deg, rgba(255, 255, 255, 0.07), rgba(255, 255, 255, 0.012)),
    rgba(30, 31, 45, 0.28);
  box-shadow:
    0 10px 27px rgba(0, 0, 0, 0.13),
    inset 0 1px 0 rgba(255, 255, 255, 0.2);
  -webkit-backdrop-filter: blur(18px) saturate(155%);
  backdrop-filter: blur(18px) saturate(155%);
  transition: border-color 200ms ease, box-shadow 200ms ease, transform 200ms ease;
}

.composer:focus-within {
  transform: translateY(-1px);
  border-color: rgba(207, 183, 255, 0.45);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.17), 0 0 25px rgba(183, 159, 255, 0.08), inset 0 1px 0 rgba(255, 255, 255, 0.23);
}

.composer-emoji {
  width: 35px;
  height: 35px;
  border: 0;
  border-radius: 12px;
  background: transparent;
  color: #d9c9ff;
}

.composer textarea {
  width: 100%;
  max-height: 120px;
  min-height: 38px;
  align-content: center;
  resize: none;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--ink);
  font-size: 11px;
  line-height: 1.6;
}

.composer textarea::placeholder {
  color: var(--muted);
}

.composer-hint {
  flex: 0 0 auto;
  color: var(--muted-2);
  font-size: 7px;
  letter-spacing: 0.12em;
}

.send-button {
  display: grid;
  width: 41px;
  height: 41px;
  flex: 0 0 auto;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.43);
  border-radius: 14px;
  background: linear-gradient(140deg, #e0ccff, #a5e8e9);
  box-shadow: 0 4px 15px rgba(181, 163, 246, 0.24), inset 0 1px 0 rgba(255, 255, 255, 0.7);
  color: #252131;
  cursor: pointer;
  font-size: 17px;
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.send-button:hover {
  transform: translateY(-2px) scale(1.03);
  box-shadow: 0 7px 21px rgba(181, 163, 246, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.76);
}

.mention-menu,
.emoji-tray {
  position: absolute;
  z-index: 4;
  right: clamp(14px, 4vw, 48px);
  bottom: 89px;
  display: flex;
  min-width: 185px;
  align-items: stretch;
  flex-direction: column;
  padding: 7px;
  border: 1px solid rgba(255, 255, 255, 0.21);
  border-radius: 15px;
  background: rgba(24, 26, 39, 0.66);
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.22);
  -webkit-backdrop-filter: blur(22px) saturate(155%);
  backdrop-filter: blur(22px) saturate(155%);
  animation: panel-drop 220ms ease both;
}

.mention-menu button {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 9px;
  border: 0;
  border-radius: 9px;
  background: transparent;
  color: var(--ink);
  cursor: pointer;
  font-size: 10px;
  text-align: start;
}

.mention-menu button:hover {
  background: rgba(255, 255, 255, 0.1);
}

.mention-menu small {
  margin-inline-start: auto;
  color: var(--green);
  font-size: 8px;
}

.emoji-tray {
  right: auto;
  bottom: 71px;
  left: clamp(12px, 4vw, 45px);
  min-width: unset;
  flex-direction: row;
  gap: 2px;
  border-radius: 19px 19px 7px 19px;
  border-color: rgba(148, 227, 229, 0.26);
  background: linear-gradient(145deg, rgba(35, 39, 57, 0.94), rgba(18, 21, 34, 0.92));
  box-shadow: 0 16px 38px rgba(0, 0, 0, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.12);
}

.emoji-tray::before {
  position: absolute;
  top: -1px;
  left: 20px;
  width: 42px;
  height: 2px;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--cyan), var(--accent));
  content: "";
}

.emoji-tray button,
.reaction-row button {
  display: grid;
  width: 34px;
  height: 35px;
  place-items: center;
  border: 0;
  border-radius: 10px;
  background: transparent;
  cursor: pointer;
  font-size: 18px;
  transition: transform 140ms ease, background 140ms ease;
}

.emoji-tray button:hover,
.reaction-row button:hover {
  transform: translateY(-3px) scale(1.15);
  background: rgba(255, 255, 255, 0.1);
}

.conversation-caption {
  margin: 8px 0 12px;
  color: var(--muted-2);
  font-size: 7px;
  letter-spacing: 0.16em;
  text-align: center;
}

.profile-panel {
  display: flex;
  position: absolute;
  z-index: 8;
  top: 0;
  right: 0;
  width: min(390px, calc(100% - 24px));
  height: 100%;
  flex-direction: column;
  transform: translateX(20px);
  opacity: 0;
  pointer-events: none;
  transition:
    transform 520ms cubic-bezier(0.2, 0.8, 0.2, 1),
    opacity 360ms ease,
    border-radius 520ms cubic-bezier(0.2, 0.8, 0.2, 1);
  box-shadow: 0 22px 65px rgba(0, 0, 0, 0.31);
}

.workspace.has-settings .profile-panel {
  border-radius: 23px;
  transform: translateX(0);
  opacity: 1;
  pointer-events: auto;
}

.workspace::before {
  position: absolute;
  z-index: 7;
  inset: 0;
  border-radius: 23px;
  background: rgba(3, 4, 10, 0.35);
  content: "";
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 420ms ease, visibility 520ms;
}

.workspace.has-settings::before,
.workspace.mobile-nav-open::before {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.profile-panel-header {
  display: flex;
  min-height: 52px;
  align-items: center;
  justify-content: space-between;
  padding: 0 15px;
  border-bottom: 1px solid var(--line);
}

.profile-panel-header .eyebrow {
  font-size: 8px;
}

.profile-scroll {
  min-height: 0;
  flex: 1;
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-color: rgba(255, 255, 255, 0.16) transparent;
  scrollbar-width: thin;
}

.profile-cover {
  position: relative;
  display: grid;
  height: 122px;
  place-items: center;
  overflow: hidden;
  background:
    radial-gradient(ellipse at 50% 110%, rgba(91, 196, 199, 0.31), transparent 60%),
    radial-gradient(ellipse at 78% -10%, rgba(169, 133, 246, 0.37), transparent 55%),
    linear-gradient(130deg, rgba(33, 37, 57, 0.2), rgba(255, 255, 255, 0.04));
}

.cover-orbit {
  position: absolute;
  top: 34%;
  left: 51%;
  width: 230px;
  height: 120px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 50%;
  transform: translate(-50%, -50%) rotate(-17deg);
  transition: transform 500ms cubic-bezier(0.2, 0.8, 0.2, 1), opacity 380ms ease;
}

.cover-orbit--two {
  width: 175px;
  height: 175px;
  border-color: rgba(146, 228, 242, 0.16);
  transform: translate(-50%, -50%) rotate(34deg);
}

.profile-scroll.is-scrolling .cover-orbit--one {
  transform: translate(-30%, -70%) rotate(-35deg) scale(0.72);
  opacity: 0.4;
}

.profile-scroll.is-scrolling .cover-orbit--two {
  transform: translate(-70%, -18%) rotate(82deg) scale(0.76);
  opacity: 0.5;
}

.cover-star {
  position: absolute;
  top: 18px;
  right: 24px;
  color: rgba(255, 255, 255, 0.56);
  font-size: 13px;
}

.profile-avatar-wrap {
  position: absolute;
  bottom: -26px;
  left: 20px;
  padding: 4px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  background: rgba(28, 29, 43, 0.65);
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.22);
  z-index: 1;
}

.avatar--profile {
  width: 66px;
  height: 66px;
  border-width: 2px;
  font-size: 22px;
}

.change-avatar {
  position: absolute;
  right: 0;
  bottom: 0;
  display: grid;
  width: 22px;
  height: 22px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.6);
  border-radius: 50%;
  background: linear-gradient(140deg, #d9c3ff, #a1e4e5);
  color: #221e2a;
  cursor: pointer;
  font-size: 14px;
}

.profile-identity {
  min-height: 88px;
  padding: 14px 17px 12px 100px;
}

.profile-identity h2 {
  overflow: hidden;
  margin: 4px 0;
  font-size: 15px;
  font-weight: 600;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.profile-identity p {
  overflow: hidden;
  margin: 0;
  color: var(--muted);
  font-size: 9px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.settings-section {
  padding: 15px 17px 17px;
  border-top: 1px solid rgba(255, 255, 255, 0.085);
}

.section-title {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
}

.section-title > span {
  color: var(--cyan);
  font-size: 8px;
  letter-spacing: 0.12em;
}

.section-title > b {
  font-size: 10px;
  font-weight: 600;
}

.section-title > small {
  margin-inline-start: auto;
  color: var(--muted-2);
  font-size: 7px;
  letter-spacing: 0.1em;
}

.settings-label {
  display: block;
  margin: 10px 0 6px;
  color: var(--muted);
  font-size: 9px;
}

.settings-input-row {
  display: flex;
  min-height: 37px;
  align-items: center;
  gap: 6px;
  padding: 0 5px 0 10px;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: rgba(255, 255, 255, 0.035);
}

.settings-input-row input {
  height: 34px;
  font-size: 10px;
}

.mini-save {
  display: grid;
  width: 28px;
  height: 28px;
  flex: 0 0 auto;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.19);
  border-radius: 9px;
  background: rgba(255, 255, 255, 0.09);
  color: var(--cyan);
  cursor: pointer;
}

.upload-row {
  display: flex;
  width: 100%;
  min-height: 49px;
  align-items: center;
  gap: 10px;
  margin-top: 8px;
  padding: 7px 9px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.035);
  color: var(--ink);
  cursor: pointer;
  text-align: start;
  transition: background 180ms ease, border-color 180ms ease, transform 180ms ease;
}

.upload-row:hover {
  transform: translateY(-1px);
  border-color: rgba(255, 255, 255, 0.25);
  background: rgba(255, 255, 255, 0.08);
}

.upload-icon {
  display: grid;
  width: 28px;
  height: 28px;
  flex: 0 0 auto;
  place-items: center;
  border: 1px solid rgba(190, 167, 255, 0.19);
  border-radius: 9px;
  background: rgba(191, 166, 255, 0.075);
  color: #d1baff;
  font-size: 14px;
}

.upload-row > span:nth-child(2) {
  display: flex;
  min-width: 0;
  flex: 1;
  flex-direction: column;
  gap: 3px;
}

.upload-row b {
  font-size: 9px;
  font-weight: 550;
}

.upload-row small {
  color: var(--muted);
  font-size: 8px;
  line-height: 1.5;
}

.upload-arrow {
  color: var(--cyan);
}

.wallpaper-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 6px;
}

.wallpaper-choice {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: 5px;
  padding: 3px;
  border: 1px solid transparent;
  border-radius: 11px;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  font-size: 7px;
  transition: transform 180ms ease, border-color 180ms ease, color 180ms ease;
}

.wallpaper-choice:hover {
  transform: translateY(-2px);
  color: var(--ink);
}

.wallpaper-choice.is-selected {
  border-color: rgba(255, 255, 255, 0.4);
  color: var(--ink);
}

.wallpaper-choice > i {
  display: block;
  width: 100%;
  height: 38px;
  border: 1px solid rgba(255, 255, 255, 0.29);
  border-radius: 8px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.24);
}

.wallpaper-choice--aurora > i {
  background: radial-gradient(ellipse at 72% 10%, #9a72ca, transparent 56%), linear-gradient(135deg, #172b39, #161622 67%, #3b746c);
}

.wallpaper-choice--tide > i {
  background: radial-gradient(ellipse at 67% 12%, #62b9cf, transparent 55%), linear-gradient(140deg, #18354d, #172137 63%, #3555a0);
}

.wallpaper-choice--nebula > i {
  background: radial-gradient(ellipse at 72% 12%, #cc64ad, transparent 55%), linear-gradient(140deg, #32203b, #171729 65%, #6255a9);
}

.wallpaper-choice--dawn > i {
  background: radial-gradient(ellipse at 76% 10%, #edaa8c, transparent 55%), linear-gradient(140deg, #45303d, #231c30 65%, #ad688c);
}

.wallpaper-choice--forest > i {
  background: radial-gradient(ellipse at 75% 15%, #83ba86, transparent 56%), linear-gradient(140deg, #1f3b39, #172526 65%, #487b69);
}

.wallpaper-choice--black > i {
  background: #000;
}

.wallpaper-choice--white > i {
  background: #fff;
}

.upload-row--background {
  min-height: 46px;
}

.theme-switch {
  position: relative;
  isolation: isolate;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 5px;
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(3, 5, 12, 0.14);
}

.theme-switch::before {
  position: absolute;
  z-index: -1;
  top: 4px;
  bottom: 4px;
  left: 4px;
  width: calc((100% - 18px) / 3);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 9px;
  background: rgba(255, 255, 255, 0.11);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.11);
  content: "";
  transition: transform 380ms cubic-bezier(0.2, 0.8, 0.2, 1);
}

.theme-switch[data-selected-theme="dark"]::before {
  transform: translateX(calc(100% + 5px));
}

.theme-switch[data-selected-theme="system"]::before {
  transform: translateX(calc(200% + 10px));
}

.theme-switch button {
  position: relative;
  z-index: 1;
  display: flex;
  min-height: 32px;
  align-items: center;
  justify-content: center;
  gap: 5px;
  padding: 0 3px;
  border: 1px solid transparent;
  border-radius: 9px;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  font-size: 8px;
  transition: color 300ms ease;
}

.theme-switch button span {
  font-size: 12px;
}

.theme-switch button.is-selected {
  color: var(--ink);
}

.privacy-description {
  margin: 0;
  color: var(--muted);
  font-size: 9px;
  line-height: 1.7;
}

.profile-footer {
  display: flex;
  min-height: 51px;
  align-items: center;
  justify-content: space-between;
  padding: 0 15px;
  border-top: 1px solid var(--line);
  color: var(--muted-2);
  font-size: 7px;
  letter-spacing: 0.1em;
}

.logout-button {
  padding: 7px 9px;
  border: 0;
  border-radius: 9px;
  background: transparent;
  color: #e9a1a7;
  cursor: pointer;
  font-size: 10px;
}

.logout-button:hover {
  background: rgba(239, 123, 139, 0.09);
}

.logout-button span {
  margin-inline-end: 5px;
}

.admin-section {
  border-block: 1px solid rgba(198, 174, 255, 0.16);
  background: rgba(179, 150, 255, 0.025);
}

.admin-stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 7px;
}

.admin-stat {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.035);
}

.admin-stat b {
  color: var(--cyan);
  font-size: 14px;
}

.admin-stat span {
  color: var(--muted);
  font-size: 8px;
}

.admin-open {
  border-color: rgba(196, 168, 255, 0.21);
}

.toast-stack {
  position: absolute;
  z-index: 30;
  right: 18px;
  bottom: 82px;
  display: flex;
  width: min(320px, calc(100% - 36px));
  flex-direction: column;
  gap: 8px;
  pointer-events: none;
}

.toast-stack--global {
  position: fixed;
}

.toast {
  padding: 12px 14px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 14px;
  background: rgba(32, 34, 48, 0.62);
  box-shadow: 0 10px 32px rgba(0, 0, 0, 0.25), inset 0 1px 0 rgba(255, 255, 255, 0.16);
  color: var(--ink);
  font-size: 11px;
  line-height: 1.6;
  -webkit-backdrop-filter: blur(18px);
  backdrop-filter: blur(18px);
  animation: toast-in 320ms cubic-bezier(0.2, 0.8, 0.2, 1) both;
  pointer-events: auto;
}

.toast.is-leaving {
  animation: toast-out 260ms ease both;
}

.toast.is-error {
  border-color: rgba(244, 145, 152, 0.33);
}

.toast.is-success {
  border-color: rgba(131, 227, 176, 0.28);
}

.context-menu,
.profile-dialog,
.admin-dialog {
  position: fixed;
  max-width: calc(100vw - 24px);
  padding: 9px;
  border-radius: 18px;
  color: var(--ink);
  animation: menu-arrive 260ms cubic-bezier(0.2, 0.8, 0.2, 1) both;
}

.context-menu {
  margin: 0;
  width: 246px;
  overflow: hidden;
  border-color: rgba(255, 255, 255, 0.3);
  background:
    linear-gradient(132deg, rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0.025) 48%, rgba(255, 255, 255, 0.075)),
    rgba(26, 29, 42, 0.24);
  -webkit-backdrop-filter: blur(26px) saturate(185%);
  backdrop-filter: blur(26px) saturate(185%);
}

.context-menu::backdrop,
.profile-dialog::backdrop,
.admin-dialog::backdrop {
  background: rgba(4, 5, 12, 0.18);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
}

.context-glow {
  position: absolute;
  z-index: -1;
  top: -42px;
  right: -32px;
  width: 135px;
  height: 90px;
  border-radius: 50%;
  background: rgba(174, 144, 251, 0.2);
  filter: blur(30px);
}

.reaction-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 2px 1px 8px;
  border-bottom: 1px solid var(--line);
}

.context-action {
  display: flex;
  width: 100%;
  min-height: 39px;
  align-items: center;
  gap: 10px;
  padding: 0 9px;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: var(--ink);
  cursor: pointer;
  font-size: 10px;
  text-align: start;
  transition: background 160ms ease;
}

.context-action:hover {
  background: rgba(255, 255, 255, 0.09);
}

.context-action > span {
  color: var(--cyan);
  font-size: 15px;
}

.context-action.context-danger {
  color: #f1a4aa;
}

.context-action.context-danger > span {
  color: #f1a4aa;
}

.profile-dialog {
  margin: auto;
  width: min(340px, calc(100vw - 32px));
  padding: 32px 26px 25px;
  overflow: visible;
  text-align: center;
}

.dialog-close {
  position: absolute;
  top: 10px;
  right: 10px;
}

.avatar--dialog {
  width: 78px;
  height: 78px;
  margin: 0 auto 15px;
  border-width: 2px;
  font-size: 24px;
}

.profile-dialog .eyebrow {
  font-size: 8px;
}

.profile-dialog h2,
.admin-dialog h2 {
  margin: 8px 0 4px;
  font-size: 21px;
  font-weight: 560;
}

.profile-dialog > p:not(.eyebrow) {
  color: var(--muted);
  font-size: 10px;
}

.admin-dialog {
  margin: auto;
  width: min(460px, calc(100vw - 28px));
  max-height: min(78vh, 650px);
  padding: 27px;
  overflow-y: auto;
}

.update-banner {
  position: fixed;
  z-index: 40;
  right: 16px;
  bottom: 16px;
  display: flex;
  width: min(580px, calc(100vw - 32px));
  align-items: center;
  gap: 14px;
  padding: 12px 14px;
  border-color: rgba(148, 227, 229, 0.32);
  border-radius: 16px 16px 6px 16px;
  animation: toast-in 320ms cubic-bezier(0.2, 0.8, 0.2, 1) both;
}

.update-banner-copy {
  min-width: 0;
  flex: 1;
}

.update-banner .eyebrow {
  margin: 0 0 3px;
  color: var(--cyan);
  font-size: 8px;
}

.update-banner p {
  margin: 0;
  color: var(--muted);
  font-size: 10px;
  line-height: 1.5;
}

.update-actions {
  display: flex;
  flex: 0 0 auto;
  gap: 9px;
}

.update-actions .soft-button,
.update-actions .primary-button {
  min-height: 36px;
  margin: 0;
  padding-inline: 14px;
  font-size: 10px;
  white-space: nowrap;
}

.update-actions .primary-button {
  gap: 8px;
}

@media (max-width: 560px) {
  .update-banner {
    right: 10px;
    bottom: 10px;
    left: 10px;
    width: auto;
    align-items: stretch;
    flex-direction: column;
  }

  .update-actions {
    justify-content: flex-end;
  }
}

.admin-dialog > .eyebrow {
  color: var(--cyan);
  font-size: 8px;
}

.dialog-copy {
  max-width: 340px;
  margin: 7px 0 17px;
  color: var(--muted);
  font-size: 10px;
  line-height: 1.65;
}

.admin-search {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 10px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.035);
}

.admin-search input {
  height: 40px;
  font-size: 10px;
}

.admin-search > span {
  color: var(--muted);
}

.admin-users {
  display: flex;
  flex-direction: column;
  gap: 7px;
  margin-top: 12px;
}

.admin-user-row {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 9px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.035);
}

.admin-user-info {
  display: flex;
  min-width: 0;
  flex: 1;
  flex-direction: column;
  gap: 3px;
}

.admin-user-info b {
  font-size: 10px;
}

.admin-user-info small {
  overflow: hidden;
  color: var(--muted);
  font-size: 8px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.admin-badge {
  color: var(--cyan);
  font-size: 7px;
}

.admin-block-button {
  padding: 7px 8px;
  border: 1px solid rgba(242, 148, 153, 0.25);
  border-radius: 9px;
  background: rgba(242, 148, 153, 0.07);
  color: #f0a4a8;
  cursor: pointer;
  font-size: 8px;
}

.admin-block-button.is-blocked {
  border-color: rgba(131, 227, 176, 0.24);
  background: rgba(131, 227, 176, 0.07);
  color: var(--green);
}

.confirm-overlay {
  position: fixed;
  z-index: 50;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 18px;
  background: rgba(6, 7, 14, 0.36);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
}

.confirm-card {
  position: relative;
  width: min(390px, 100%);
  padding: 28px;
  overflow: hidden;
  border-radius: 24px;
  animation: menu-arrive 320ms cubic-bezier(0.2, 0.8, 0.2, 1) both;
}

.confirm-orbit {
  position: absolute;
  top: -13px;
  right: 24px;
  color: rgba(193, 169, 255, 0.27);
  font-size: 75px;
}

.confirm-card .eyebrow {
  font-size: 8px;
}

.confirm-card h2 {
  position: relative;
  margin: 14px 0 9px;
  font-size: 22px;
  font-weight: 550;
}

.confirm-card > p:not(.eyebrow) {
  position: relative;
  margin: 0;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.7;
}

.confirm-actions {
  display: flex;
  justify-content: flex-end;
  gap: 9px;
  margin-top: 22px;
}

.confirm-actions .soft-button,
.danger-button {
  min-height: 39px;
  margin: 0;
  padding: 0 12px;
  font-size: 10px;
}

.danger-button {
  border-color: rgba(242, 148, 153, 0.35);
  background: linear-gradient(120deg, #ffd8dc, #eda1aa);
  color: #451f2a;
}

@keyframes rise-in {
  from {
    opacity: 0;
    transform: translateY(14px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes float-in-right {
  from {
    opacity: 0;
    transform: translateX(12px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes float-in-left {
  from {
    opacity: 0;
    transform: translateX(-12px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes settings-enter {
  from {
    opacity: 0;
    transform: translateX(15px) scale(0.985);
  }
  to {
    opacity: 1;
    transform: translateX(0) scale(1);
  }
}

@keyframes chat-arrive {
  from {
    opacity: 0;
    transform: translateY(7px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes message-in {
  from {
    opacity: 0;
    transform: translateY(7px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes panel-drop {
  from {
    opacity: 0;
    transform: translateY(-7px) scale(0.985);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes panel-fade {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes menu-arrive {
  from {
    opacity: 0;
    transform: translateY(8px) scale(0.95);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes toast-in {
  from {
    opacity: 0;
    transform: translateY(18px) scale(0.97);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes toast-out {
  to {
    opacity: 0;
    transform: translateY(10px) scale(0.98);
  }
}

@media (max-width: 1060px) {
  .auth-layout {
    gap: 45px;
    padding-inline: 25px;
  }

  .intro-copy h1 {
    font-size: 65px;
  }

  .workspace {
    grid-template-columns: 295px minmax(280px, 1fr);
  }

}

@media (max-width: 800px) {
  .auth-screen {
    width: min(560px, calc(100% - 30px));
    padding-top: 15px;
  }

  .auth-topbar {
    min-height: 58px;
    padding-inline: 15px;
    border-radius: 17px;
  }

  .downloads-link {
    padding: 7px 8px;
    font-size: 9px;
  }

  .downloads-screen {
    width: min(560px, calc(100% - 24px));
    padding-top: 15px;
  }

  .downloads-grid {
    grid-template-columns: 1fr;
  }

  .downloads-intro {
    padding: 32px 5px 20px;
  }

  .download-card {
    min-height: 225px;
  }

  .topbar-caption {
    font-size: 9px;
  }

  .auth-layout {
    min-height: unset;
    grid-template-columns: 1fr;
    gap: 22px;
    padding: 28px 2px 23px;
  }

  .intro-copy {
    min-height: unset;
    padding: 14px 8px 0;
  }

  .intro-copy h1 {
    margin: 15px 0 10px;
    font-size: clamp(43px, 12vw, 63px);
  }

  .intro-description {
    max-width: 470px;
    font-size: 12px;
  }

  .orbit-art {
    position: absolute;
    top: 11px;
    left: -35px;
    width: 190px;
    height: 155px;
    margin: 0;
    opacity: 0.44;
    pointer-events: none;
    transform: scale(0.82);
  }

  .orbit-core {
    width: 52px;
    height: 52px;
    border-radius: 18px;
    font-size: 26px;
  }

  .orbit-core i {
    top: 8px;
    right: 9px;
    width: 5px;
    height: 5px;
  }

  .privacy-note {
    display: none;
  }

  .auth-card {
    padding: 24px 21px;
    border-radius: 22px;
  }

  .auth-heading h2 {
    font-size: 24px;
  }

  .auth-heading p {
    margin-bottom: 14px;
    font-size: 11px;
  }

  .page-foot {
    padding-inline: 5px;
    font-size: 7px;
  }

  .app-screen {
    display: flex;
    min-height: 0;
    flex-direction: column;
    gap: 11px;
    padding: 10px;
  }

  .app-topbar {
    height: 58px;
    min-height: 58px;
    grid-template-columns: auto 1fr auto;
    padding: 0 12px;
    border-radius: 17px;
  }

  .app-topbar .wordmark {
    font-size: 18px;
  }

  .mobile-nav-toggle {
    display: grid;
    position: absolute;
    z-index: 2;
    top: 50%;
    left: 12px;
    right: auto;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    transition:
      transform 180ms ease,
      background 180ms ease,
      border-color 180ms ease,
      border-radius 420ms cubic-bezier(0.2, 0.8, 0.2, 1);
    transform: translateY(-50%);
  }

  .mobile-nav-toggle:hover {
    transform: translateY(-50%) scale(1.03);
  }

  .mobile-nav-toggle svg {
    display: block;
  }

  .mobile-nav-toggle svg path {
    transform-origin: 12px 12px;
    transition: transform 360ms cubic-bezier(0.2, 0.8, 0.2, 1), opacity 220ms ease;
  }

  .mobile-nav-toggle[aria-expanded="true"] svg path:first-child {
    transform: translateY(5px) rotate(45deg);
  }

  .mobile-nav-toggle[aria-expanded="true"] svg path:nth-child(2) {
    opacity: 0;
    transform: scaleX(0.2);
  }

  .mobile-nav-toggle[aria-expanded="true"] svg path:last-child {
    transform: translateY(-5px) rotate(-45deg);
  }
  .topbar-live {
    font-size: 7px;
  }

  .topbar-actions {
    position: absolute;
    top: 50%;
    left: 57px;
    right: auto;
    transform: translateY(-50%);
    gap: 6px;
  }

  .topbar-actions .icon-button {
    flex: 0 0 auto;
  }

  .topbar-actions .icon-button {
    width: 35px;
    height: 35px;
    border-radius: 12px;
  }

  .connection-label {
    gap: 5px;
    font-size: 8px;
  }

  .workspace,
  .workspace.has-settings {
    position: relative;
    display: flex;
    min-height: 0;
    flex: 1;
    flex-direction: column;
    gap: 0;
    margin: 0;
  }

  .chat-sidebar,
  .conversation {
    width: 100%;
    height: 100%;
    flex: 1;
    border-radius: 19px;
  }

  .chat-sidebar {
    border-radius: 32px;
    padding: 18px 14px 11px;
    transition: border-radius 520ms cubic-bezier(0.2, 0.8, 0.2, 1);
  }

  .workspace.has-chat .chat-sidebar {
    display: flex;
    position: absolute;
    z-index: 8;
    top: 0;
    left: 0;
    width: min(350px, calc(100% - 32px));
    height: 100%;
    flex: none;
    transform: translateX(calc(-100% - 14px));
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    animation: none;
    transition:
      transform 560ms cubic-bezier(0.2, 0.8, 0.2, 1),
      opacity 420ms ease,
      border-radius 560ms cubic-bezier(0.2, 0.8, 0.2, 1),
      visibility 560ms;
  }

  .workspace.mobile-nav-open .chat-sidebar {
    border-radius: 20px;
    transform: translateX(0);
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
  }

  .conversation {
    display: none;
  }

  .workspace.has-chat .conversation {
    display: flex;
  }

  .workspace:not(.has-chat) .conversation-empty {
    display: none;
  }

  .conversation-empty .empty-visual {
    width: 135px;
    height: 135px;
  }

  .conversation-empty h2 {
    font-size: 33px;
  }

  .chat-header {
    min-height: 61px;
    padding: 0 13px;
  }

  .mobile-back {
    display: grid;
  }

  .message-list {
    padding-inline: 12px;
  }

  .composer {
    min-height: 53px;
    margin-inline: 10px;
  }

  .conversation-caption {
    margin-bottom: 8px;
  }

  .profile-panel {
    max-height: 100%;
    border-radius: 19px;
  }

  .workspace::before {
    border-radius: 19px;
  }

  .toast-stack {
    right: 10px;
    bottom: 18px;
  }

  .toast-stack--global {
    bottom: 18px;
  }
}

@media (max-width: 480px) {
  .topbar-center {
    justify-content: start;
    padding-inline-start: 10px;
  }

  .topbar-live {
    letter-spacing: 0.1em;
  }

  .connection-label > span {
    display: none;
  }

  .connection-label {
    margin: 0;
  }

  .auth-footnote {
    font-size: 7px;
  }

  .form-pair {
    grid-template-columns: 1fr 0.9fr;
    gap: 8px;
  }

  .auth-card {
    padding-inline: 17px;
  }

  .input-wrap {
    min-height: 44px;
    padding-inline: 10px;
  }

  .input-wrap input {
    height: 41px;
    font-size: 11px;
  }

  .message-bubble {
    max-width: 87%;
    padding: 9px 10px 7px;
  }

  .message-content {
    font-size: 11px;
  }

  .composer-hint {
    display: none;
  }

  .emoji-tray {
    left: 10px;
    bottom: 66px;
    gap: 0;
    padding: 5px;
  }

  .emoji-tray button {
    width: 31px;
    height: 32px;
    font-size: 16px;
  }
}

@media (max-width: 350px) {
  .auth-screen {
    width: calc(100% - 20px);
  }

  .topbar-caption {
    max-width: 150px;
    font-size: 8px;
  }

  .form-pair {
    grid-template-columns: 1fr;
  }

  .app-screen {
    padding: 7px;
  }

  .app-topbar {
    padding-inline: 9px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
