:root {
  --bg-0: #1e1f22;
  --bg-1: #2b2d31;
  --bg-2: #313338;
  --bg-3: #383a40;
  --bg-hover: #3f4147;
  --text: #dbdee1;
  --text-strong: #f2f3f5;
  --muted: #949ba4;
  --accent: #5865f2;
  --accent-hover: #4752c4;
  --danger: #da373c;
  --online: #23a55a;
  --idle: #f0b232;
  --dnd: #f23f43;
  --offline: #80848e;
  --mention-bg: rgba(88, 101, 242, 0.3);
  --radius: 8px;
  color-scheme: dark;
}

* {
  box-sizing: border-box;
}
html,
body {
  height: 100%;
  margin: 0;
}
body {
  background: var(--bg-2);
  color: var(--text);
  font:
    15px/1.4 "gg sans",
    "Noto Sans TC",
    "Microsoft JhengHei",
    system-ui,
    -apple-system,
    sans-serif;
  overflow: hidden;
}
button,
input,
textarea,
select {
  font: inherit;
  color: inherit;
}
a {
  color: #00a8fc;
}
.hidden {
  display: none !important;
}
.muted {
  color: var(--muted);
}
.small {
  font-size: 13px;
}
.error {
  color: #fa777c;
  min-height: 1.2em;
  margin: 8px 0 0;
}

/* ---------- buttons / inputs ---------- */
.btn {
  border: 0;
  border-radius: 4px;
  padding: 8px 16px;
  cursor: pointer;
  background: var(--bg-3);
  color: var(--text-strong);
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}
.btn:hover {
  background: var(--bg-hover);
}
.btn.primary {
  background: var(--accent);
}
.btn.primary:hover {
  background: var(--accent-hover);
}
.btn.danger {
  background: var(--danger);
}
.btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}
.icon-btn {
  background: none;
  border: 0;
  color: var(--muted);
  cursor: pointer;
  padding: 6px;
  border-radius: 4px;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.icon-btn.danger:hover {
  color: var(--dnd);
}
svg.i {
  display: block;
  flex-shrink: 0;
}
.icon-btn:hover {
  color: var(--text-strong);
  background: var(--bg-hover);
}
input[type="text"],
input[type="password"],
textarea,
select {
  width: 100%;
  background: var(--bg-0);
  border: 1px solid transparent;
  border-radius: 4px;
  padding: 10px;
  outline: none;
}
input:focus,
textarea:focus,
select:focus {
  border-color: var(--accent);
}
label {
  display: block;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--muted);
  margin: 16px 0 6px;
}
label.check {
  text-transform: none;
  font-weight: 400;
  font-size: 14px;
  display: flex;
  gap: 8px;
  align-items: center;
}

/* ---------- login ---------- */
.login-screen {
  height: 100%;
  display: grid;
  place-items: center;
  padding: 16px;
  background: radial-gradient(circle at 30% 20%, #404eed 0, #1e1f22 70%);
}
.login-card {
  width: min(440px, 100%);
  background: var(--bg-2);
  padding: 32px;
  border-radius: var(--radius);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
}
.login-card h1 {
  margin: 0 0 8px;
  color: var(--text-strong);
  font-size: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}
.login-card h1 .logo {
  color: var(--accent);
}
.login-card .btn {
  width: 100%;
  margin-top: 20px;
  padding: 12px;
}
.login-card details {
  margin-top: 16px;
}

/* ---------- layout ---------- */
.app {
  display: grid;
  grid-template-columns: 72px 240px 1fr 240px;
  /* lock the single row to the viewport so long chats scroll inside .messages instead of stretching the page */
  grid-template-rows: minmax(0, 1fr);
  height: 100%;
  height: 100dvh;
  overflow: hidden;
}
.app > * {
  min-height: 0;
}
.app.no-members {
  grid-template-columns: 72px 240px 1fr;
}
.app.no-members .members {
  display: none;
}

/* guild rail */
.guilds {
  background: var(--bg-0);
  overflow-y: auto;
  padding: 12px 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  scrollbar-width: none;
}
.guilds::-webkit-scrollbar {
  display: none;
}
.guild-icon {
  position: relative;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--bg-2);
  display: grid;
  place-items: center;
  cursor: pointer;
  color: var(--text-strong);
  font-weight: 600;
  font-size: 14px;
  transition:
    border-radius 0.15s,
    background 0.15s;
  flex-shrink: 0;
  border: 0;
  padding: 0;
  overflow: visible;
}
.guild-icon.invite {
  color: var(--online);
}
.guild-icon.invite:hover {
  background: var(--online);
  color: #fff;
}
.guild-icon img {
  width: 100%;
  height: 100%;
  border-radius: inherit;
  object-fit: cover;
}
.guild-icon:hover,
.guild-icon.active {
  border-radius: 16px;
  background: var(--accent);
}
.guild-icon::before {
  content: "";
  position: absolute;
  left: -16px;
  width: 8px;
  height: 0;
  border-radius: 0 4px 4px 0;
  background: var(--text-strong);
  transition: height 0.15s;
}
.guild-icon.unread::before {
  height: 8px;
}
.guild-icon:hover::before {
  height: 20px;
}
.guild-icon.active::before {
  height: 40px;
}
.guild-sep {
  width: 32px;
  height: 2px;
  background: var(--bg-3);
  border-radius: 1px;
  flex-shrink: 0;
}
.badge {
  position: absolute;
  right: -4px;
  bottom: -4px;
  min-width: 16px;
  height: 16px;
  padding: 0 4px;
  border-radius: 8px;
  background: var(--dnd);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  display: grid;
  place-items: center;
  border: 3px solid var(--bg-0);
  box-sizing: content-box;
}

/* channel sidebar */
.sidebar {
  background: var(--bg-1);
  display: flex;
  flex-direction: column;
  min-width: 0;
}
.sidebar-header {
  padding: 12px 16px;
  border-bottom: 1px solid var(--bg-0);
  font-weight: 600;
  color: var(--text-strong);
  cursor: default;
  min-height: 48px;
}
.sidebar-header.clickable {
  cursor: pointer;
}
.sidebar-header.clickable:hover {
  background: var(--bg-hover);
}
.sidebar-header .counts {
  font-weight: 400;
  font-size: 12px;
  color: var(--muted);
  margin-top: 2px;
  display: flex;
  gap: 10px;
}
.sidebar-header .counts span {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.guild-name {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 4px;
}
.guild-name span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.status-dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--offline);
}
.status-dot.online {
  background: var(--online);
}
.sidebar-body {
  flex: 1;
  overflow-y: auto;
  padding: 8px;
}
.category {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--muted);
  padding: 16px 8px 4px;
}
.channel {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 8px;
  border-radius: 4px;
  color: var(--muted);
  cursor: pointer;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.channel:hover {
  background: var(--bg-hover);
  color: var(--text);
}
.channel.active {
  background: var(--bg-3);
  color: var(--text-strong);
}
.channel.unread {
  color: var(--text-strong);
  font-weight: 600;
}
.channel.disabled {
  opacity: 0.5;
  cursor: default;
}
.channel .name {
  overflow: hidden;
  text-overflow: ellipsis;
  flex: 1;
}
.channel .pill {
  background: var(--dnd);
  color: #fff;
  border-radius: 8px;
  font-size: 11px;
  padding: 0 6px;
  font-weight: 700;
}
.channel img.avatar {
  width: 32px;
  height: 32px;
}
.dm-new {
  display: flex;
  gap: 6px;
  margin-bottom: 8px;
}
.dm-new input {
  padding: 6px 8px;
  font-size: 13px;
}
.dm-new .btn {
  padding: 6px 10px;
  white-space: nowrap;
}
.home-tools {
  padding: 4px 0 12px;
  border-bottom: 1px solid var(--bg-3);
  margin-bottom: 8px;
}
.home-tools .btn {
  width: 100%;
  margin-top: 6px;
  font-size: 13px;
}

/* user panel */
.userpanel {
  background: #232428;
  padding: 8px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.userpanel .me {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 1;
  min-width: 0;
  cursor: pointer;
  padding: 2px 4px;
  border-radius: 4px;
}
.userpanel .me:hover {
  background: var(--bg-hover);
}
.userpanel .names {
  min-width: 0;
}
.userpanel .names div {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.userpanel .names .u {
  font-weight: 600;
  color: var(--text-strong);
  font-size: 14px;
}
.userpanel .names .s {
  font-size: 12px;
  color: var(--muted);
}

/* avatars + status dot */
.av {
  position: relative;
  flex-shrink: 0;
  display: inline-block;
  line-height: 0;
}
img.avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--bg-3);
  object-fit: cover;
}
.av.sm img.avatar {
  width: 32px;
  height: 32px;
}
.dot {
  position: absolute;
  right: -2px;
  bottom: -2px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  border: 3px solid var(--bg-1);
  background: var(--offline);
}
.dot.online {
  background: var(--online);
}
.dot.idle {
  background: var(--idle);
}
.dot.dnd {
  background: var(--dnd);
}
.dot.invisible,
.dot.offline {
  background: var(--offline);
}

/* chat */
.chat {
  display: flex;
  flex-direction: column;
  min-width: 0;
  background: var(--bg-2);
}
.chat-header {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 12px;
  height: 48px;
  border-bottom: 1px solid var(--bg-0);
  flex-shrink: 0;
}
.chat-title {
  font-weight: 600;
  color: var(--text-strong);
  white-space: nowrap;
}
.chat-topic {
  color: var(--muted);
  font-size: 13px;
  flex: 1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  border-left: 1px solid var(--bg-3);
  padding-left: 10px;
}
.chat-topic:empty {
  border: 0;
}
.conn-state {
  font-size: 12px;
  color: var(--muted);
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.conn-state.ok {
  color: var(--online);
}
.conn-state.bad {
  color: var(--dnd);
}
.messages {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  padding: 16px 0 8px;
  overflow-wrap: anywhere;
}
.empty-state {
  color: var(--muted);
  text-align: center;
  margin-top: 20vh;
  padding: 0 24px;
}
.empty-state h2 {
  color: var(--text-strong);
}
.msg {
  display: flex;
  gap: 16px;
  padding: 2px 16px 2px 16px;
  position: relative;
}
.msg.head {
  margin-top: 16px;
}
.msg:hover {
  background: #2e3035;
}
.msg .gutter {
  width: 40px;
  flex-shrink: 0;
}
.msg .gutter .time {
  display: none;
  font-size: 11px;
  color: var(--muted);
  text-align: right;
  padding-top: 4px;
}
.msg:not(.head):hover .gutter .time {
  display: block;
}
.msg .avatar {
  cursor: pointer;
}
.msg .body {
  min-width: 0;
  flex: 1;
}
.msg .meta {
  display: flex;
  align-items: baseline;
  gap: 8px;
}
.msg .author {
  font-weight: 600;
  color: var(--text-strong);
  cursor: pointer;
}
.msg .author:hover {
  text-decoration: underline;
}
.msg .tag {
  background: var(--accent);
  color: #fff;
  font-size: 10px;
  padding: 1px 4px;
  border-radius: 3px;
  font-weight: 600;
}
.msg .ts {
  font-size: 12px;
  color: var(--muted);
}
.msg .content {
  white-space: pre-wrap;
}
.msg .content.empty {
  color: var(--muted);
  font-style: italic;
}
.msg .edited {
  font-size: 11px;
  color: var(--muted);
}
.msg .reply-ref {
  font-size: 13px;
  color: var(--muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-bottom: 2px;
  display: flex;
  align-items: center;
  gap: 4px;
}
.msg .actions {
  position: absolute;
  right: 16px;
  top: -12px;
  display: none;
  background: var(--bg-2);
  border: 1px solid var(--bg-0);
  border-radius: 4px;
}
.msg:hover .actions {
  display: flex;
}
.msg .actions button {
  font-size: 14px;
}
.msg.pending {
  opacity: 0.5;
}
.msg.mentioned {
  background: rgba(240, 178, 50, 0.08);
  box-shadow: inset 2px 0 var(--idle);
}
.content code {
  background: var(--bg-0);
  padding: 1px 4px;
  border-radius: 3px;
  font-family: Consolas, monospace;
  font-size: 13px;
}
.content pre {
  background: var(--bg-0);
  padding: 8px;
  border-radius: 4px;
  overflow-x: auto;
  margin: 4px 0;
  white-space: pre;
}
.content pre code {
  background: none;
  padding: 0;
}
.content blockquote {
  border-left: 4px solid var(--bg-hover);
  margin: 2px 0;
  padding-left: 8px;
}
.mention {
  background: var(--mention-bg);
  color: #c9cdfb;
  border-radius: 3px;
  padding: 0 2px;
  font-weight: 500;
}
.spoiler {
  background: #1e1f22;
  color: transparent;
  border-radius: 3px;
  cursor: pointer;
}
.spoiler.shown {
  color: inherit;
  background: var(--bg-3);
}
.emoji {
  width: 22px;
  height: 22px;
  vertical-align: -5px;
}
.attachments img.sized {
  max-height: none;
  height: auto;
}
.attachments img,
.attachments video {
  max-width: min(400px, 100%);
  max-height: 300px;
  border-radius: 8px;
  display: block;
  margin-top: 4px;
}
.attachments .file {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 4px;
  padding: 10px;
  background: var(--bg-1);
  border: 1px solid var(--bg-0);
  border-radius: 8px;
}
.embed {
  border-left: 4px solid var(--bg-0);
  background: var(--bg-1);
  border-radius: 4px;
  padding: 8px 12px;
  margin-top: 4px;
  max-width: 520px;
}
.embed .e-title {
  font-weight: 600;
  color: var(--text-strong);
}
.embed .e-desc {
  font-size: 14px;
  white-space: pre-wrap;
}
.forward {
  border-left: 4px solid var(--bg-hover);
  padding-left: 10px;
  margin-top: 2px;
}
.forward-label {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 12px;
  font-style: italic;
  color: var(--muted);
}
.msg.system {
  color: var(--muted);
  align-items: center;
}
.msg.system .gutter {
  display: flex;
  justify-content: center;
}
.msg.system .author {
  color: var(--text-strong);
}
.poll {
  background: var(--bg-1);
  border-radius: 8px;
  padding: 12px;
  margin-top: 4px;
  max-width: 440px;
}
.poll-q {
  display: flex;
  align-items: center;
  gap: 6px;
  font-weight: 600;
  color: var(--text-strong);
  margin-bottom: 8px;
}
.poll-a {
  position: relative;
  display: flex;
  justify-content: space-between;
  gap: 8px;
  padding: 8px 10px;
  margin-bottom: 6px;
  border: 1px solid var(--bg-3);
  border-radius: 6px;
  overflow: hidden;
}
.poll-bar {
  position: absolute;
  inset: 0 auto 0 0;
  background: var(--mention-bg);
}
.poll-text,
.poll-n {
  position: relative;
}
.poll-n {
  font-size: 12px;
  color: var(--muted);
  white-space: nowrap;
}
.attachments video.sized {
  max-height: none;
  height: auto;
}
.embed img.sized {
  height: auto;
}
.embed img {
  max-width: 100%;
  border-radius: 4px;
  margin-top: 6px;
}
.load-more {
  text-align: center;
  color: var(--muted);
  font-size: 13px;
  padding: 8px;
}
.typing {
  height: 20px;
  font-size: 13px;
  color: var(--muted);
  padding: 0 16px;
}

.composer {
  display: flex;
  gap: 8px;
  align-items: flex-end;
  margin: 0 16px 16px;
  background: var(--bg-3);
  border-radius: var(--radius);
  padding: 8px;
}
.composer-main {
  flex: 1;
  min-width: 0;
}
/* attach button, textarea (single line) and send button are all 36px tall so they line up */
.composer textarea {
  display: block;
  background: transparent;
  border: 0;
  resize: none;
  height: 36px;
  min-height: 36px;
  max-height: 200px;
  padding: 6px 4px;
  line-height: 24px;
}
.composer .attach {
  width: 36px;
  height: 36px;
  padding: 0;
  margin: 0;
  flex-shrink: 0;
}
.composer #send-btn {
  height: 36px;
  padding: 0 16px;
  flex-shrink: 0;
}
.file-list {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.file-list:not(:empty) {
  padding: 4px 0;
}
.file-chip {
  background: var(--bg-0);
  border-radius: 4px;
  padding: 2px 8px;
  font-size: 12px;
  display: flex;
  gap: 6px;
  align-items: center;
}
.file-chip button {
  display: inline-flex;
  background: none;
  border: 0;
  color: var(--muted);
  cursor: pointer;
  padding: 0;
}

/* member list */
.members {
  background: var(--bg-1);
  overflow-y: auto;
  padding: 8px;
}
.members .group {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--muted);
  padding: 16px 8px 4px;
}
.member {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 4px 8px;
  border-radius: 4px;
  cursor: pointer;
}
.member:hover {
  background: var(--bg-hover);
}
.member.offline {
  opacity: 0.4;
}
.member .mname {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  font-weight: 500;
}
.member .mstatus {
  font-size: 12px;
  color: var(--muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.member .info {
  min-width: 0;
}

/* popovers & modals */
.popover {
  position: fixed;
  z-index: 50;
  background: #111214;
  border-radius: var(--radius);
  padding: 8px;
  min-width: 220px;
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.5);
}
.menu-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px;
  border-radius: 4px;
  cursor: pointer;
}
.menu-item > svg.i:last-child:not(:first-child) {
  margin-left: auto;
}
.menu-item:hover {
  background: var(--accent);
  color: #fff;
}
.menu-item .dot {
  position: static;
  border: 0;
  width: 10px;
  height: 10px;
}
.menu-sep {
  height: 1px;
  background: var(--bg-3);
  margin: 6px 4px;
}
.profile-card {
  width: 300px;
  padding: 0;
  overflow: hidden;
}
.profile-card .banner {
  height: 60px;
  background: var(--accent);
  background-size: cover;
  background-position: center;
}
.profile-card .pc-body {
  padding: 0 16px 16px;
}
.profile-card .av {
  margin-top: -30px;
}
.profile-card .av img.avatar {
  width: 80px;
  height: 80px;
  border: 6px solid #111214;
}
.profile-card .av .dot {
  width: 20px;
  height: 20px;
  border-color: #111214;
  right: 2px;
  bottom: 2px;
}
.profile-card h3 {
  margin: 8px 0 0;
  color: var(--text-strong);
}
.profile-card .sub {
  color: var(--muted);
  font-size: 13px;
}
.profile-card .section {
  margin-top: 12px;
  font-size: 13px;
}
.profile-card .section b {
  display: block;
  font-size: 11px;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 4px;
}
.roles {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
}
.role {
  background: var(--bg-3);
  border-radius: 4px;
  padding: 2px 6px;
  font-size: 12px;
  display: flex;
  gap: 4px;
  align-items: center;
}
.role i {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  display: inline-block;
}
.profile-card .btn {
  width: 100%;
  margin-top: 12px;
}

.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.7);
  display: grid;
  place-items: center;
  z-index: 60;
  padding: 16px;
}
.modal {
  background: var(--bg-2);
  border-radius: var(--radius);
  width: min(520px, 100%);
  max-height: 90vh;
  overflow-y: auto;
  padding: 24px;
}
.modal h2 {
  margin: 0 0 8px;
  color: var(--text-strong);
}
.modal .row {
  display: flex;
  gap: 16px;
  align-items: center;
}
.modal .actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  margin-top: 24px;
}
.modal .preview-avatar {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  object-fit: cover;
  background: var(--bg-3);
}
.modal .preview-banner {
  width: 100%;
  height: 100px;
  border-radius: 8px;
  background: var(--bg-3) center/cover;
}
.modal textarea {
  min-height: 100px;
  resize: vertical;
}
.modal .counter {
  text-align: right;
  font-size: 12px;
  color: var(--muted);
}
.stat-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
  margin-top: 12px;
}
.stat {
  background: var(--bg-1);
  border-radius: 6px;
  padding: 10px;
}
.stat b {
  display: block;
  font-size: 20px;
  color: var(--text-strong);
  font-variant-numeric: tabular-nums;
}
.stat span {
  font-size: 12px;
  color: var(--muted);
}

.toasts {
  position: fixed;
  bottom: 16px;
  right: 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  z-index: 100;
  max-width: calc(100vw - 32px);
}
.toast {
  background: #111214;
  border-left: 4px solid var(--accent);
  padding: 10px 14px;
  border-radius: 4px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
  max-width: 380px;
  font-size: 14px;
}
.toast.error {
  border-color: var(--danger);
}
.toast.warn {
  border-color: var(--idle);
}

.mobile-only {
  display: none;
}

/* ---------- responsive ---------- */
@media (max-width: 1100px) {
  .app,
  .app.no-members {
    grid-template-columns: 72px 240px 1fr;
  }
  .members {
    display: none;
    position: fixed;
    right: 0;
    top: 48px;
    bottom: 0;
    width: 260px;
    z-index: 30;
    box-shadow: -4px 0 12px rgba(0, 0, 0, 0.4);
  }
  .app.show-members .members {
    display: block;
  }
}
@media (max-width: 720px) {
  .app,
  .app.no-members {
    grid-template-columns: 1fr;
  }
  .mobile-only {
    display: inline-block;
  }
  .guilds,
  .sidebar {
    position: fixed;
    top: 0;
    bottom: 0;
    z-index: 40;
    transform: translateX(-100%);
    transition: transform 0.2s;
  }
  .guilds {
    left: 0;
    width: 72px;
  }
  .sidebar {
    left: 72px;
    transform: translateX(calc(-100% - 72px));
    width: min(260px, calc(100vw - 72px));
  }
  .app.show-nav .guilds,
  .app.show-nav .sidebar {
    transform: none;
  }
  .chat-topic {
    display: none;
  }
  .msg {
    gap: 10px;
    padding: 2px 8px;
  }
  .composer {
    margin: 0 8px 8px;
  }
}
