:root {
  color-scheme: dark;
  font-family: "DM Sans", "Segoe UI", sans-serif;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
  --bg: #11131d;
  --rail: #0e1019;
  --sidebar: #171a26;
  --sidebar-raised: #1d2030;
  --panel: #191c2a;
  --panel-raised: #202435;
  --panel-soft: #252a3d;
  --line: rgba(222, 226, 255, 0.075);
  --line-strong: rgba(222, 226, 255, 0.12);
  --text: #eef0fa;
  --text-soft: #c9ccdc;
  --muted: #898ea6;
  --muted-strong: #a4a9bd;
  --accent: #8878ff;
  --accent-bright: #a395ff;
  --accent-soft: rgba(136, 120, 255, 0.14);
  --mint: #5bd7b0;
  --coral: #ff8f91;
  --amber: #f3be72;
  --shadow: 0 24px 70px rgba(0, 0, 0, 0.4);
  --radius: 14px;
}

* {
  box-sizing: border-box;
}

body {
  min-width: 320px;
  height: 100vh;
  margin: 0;
  overflow: hidden;
  color: var(--text);
  background:
    radial-gradient(ellipse at 55% -30%, rgba(105, 89, 219, 0.12), transparent 48%),
    var(--bg);
  font-size: 14px;
}

#appContent {
  width: 100%;
  height: 100%;
  overflow: hidden;
}

.auth-gate {
  position: fixed;
  z-index: 30;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 24px;
  background:
    radial-gradient(ellipse at 50% 35%, rgba(105, 89, 219, 0.19), transparent 45%),
    #11131d;
}

.auth-card {
  display: grid;
  justify-items: center;
  width: min(420px, 100%);
  padding: 40px 34px 31px;
  text-align: center;
  background: linear-gradient(145deg, rgba(31, 34, 51, 0.97), rgba(24, 27, 41, 0.97));
  border: 1px solid rgba(222, 226, 255, 0.1);
  border-radius: 20px;
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.38);
}

.auth-brand-mark {
  position: relative;
  display: grid;
  width: 57px;
  height: 57px;
  place-items: center;
  margin-bottom: 20px;
  color: #fff;
  background: linear-gradient(145deg, #9c8cff, #6858d5);
  border-radius: 18px;
  box-shadow: 0 8px 24px rgba(116, 96, 231, 0.3);
  font-family: "Manrope", sans-serif;
  font-size: 27px;
  font-weight: 800;
}

.auth-brand-mark span {
  position: absolute;
  top: 6px;
  right: 8px;
  color: #e5dfff;
  font-size: 10px;
}

.auth-eyebrow {
  color: #9c91e8;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.16em;
}

.auth-card h1 {
  margin: 11px 0 8px;
  font-family: "Manrope", sans-serif;
  font-size: clamp(22px, 5vw, 27px);
  font-weight: 800;
  letter-spacing: -0.05em;
}

.auth-description {
  max-width: 315px;
  min-height: 37px;
  margin: 0;
  color: #a4a9bd;
  font-size: 11px;
  line-height: 1.65;
}

.auth-connect-button {
  display: flex;
  width: 100%;
  min-height: 46px;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-top: 23px;
  color: #fff;
  background: #5865f2;
  border: 1px solid rgba(194, 199, 255, 0.15);
  border-radius: 10px;
  box-shadow: 0 8px 20px rgba(68, 79, 198, 0.2);
  font-size: 12px;
  font-weight: 700;
  transition: background 150ms ease, transform 150ms ease;
}

.auth-connect-button:hover:not(:disabled) {
  background: #6975ff;
  transform: translateY(-1px);
}

.auth-connect-button:disabled {
  color: #9297ad;
  background: #282b3c;
  border-color: rgba(222, 226, 255, 0.07);
  box-shadow: none;
  cursor: not-allowed;
}

.auth-discord-mark {
  display: grid;
  width: 25px;
  height: 25px;
  place-items: center;
  color: #5865f2;
  background: #fff;
  border-radius: 8px;
  font-family: "Manrope", sans-serif;
  font-size: 13px;
  font-weight: 800;
}

.auth-footnote {
  max-width: 310px;
  margin: 17px 0 0;
  color: #777d94;
  font-size: 9px;
  line-height: 1.6;
}

button,
input,
select,
textarea {
  color: inherit;
  font: inherit;
}

button {
  border: 0;
}

button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 2px solid var(--accent-bright);
  outline-offset: 2px;
}

button,
select {
  cursor: pointer;
}

[hidden] {
  display: none !important;
}

svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.7;
}

.app-shell {
  display: grid;
  grid-template-columns: 72px 258px minmax(0, 1fr);
  width: 100%;
  height: 100%;
  overflow: hidden;
}

.server-rail {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  padding: 19px 0 18px;
  background: var(--rail);
  border-right: 1px solid rgba(255, 255, 255, 0.025);
}

.brand-mark,
.rail-icon,
.rail-avatar {
  position: relative;
  display: grid;
  flex: 0 0 auto;
  place-items: center;
  width: 44px;
  height: 44px;
  color: #b9b4ff;
  background: #25213b;
  border-radius: 15px;
  transition: border-radius 160ms ease, background 160ms ease, transform 160ms ease;
}

.brand-mark {
  color: #fff;
  background: linear-gradient(145deg, #9c8cff, #6858d5);
  box-shadow: 0 6px 20px rgba(116, 96, 231, 0.3);
  font-family: "Manrope", sans-serif;
  font-size: 20px;
  font-weight: 800;
}

.brand-spark {
  position: absolute;
  top: 5px;
  right: 6px;
  color: #e5dfff;
  font-size: 9px;
}

.rail-divider {
  width: 30px;
  height: 1px;
  margin: 2px 0;
  background: rgba(221, 223, 255, 0.12);
}

.rail-icon {
  color: #8e93aa;
  background: #1a1d2b;
  border-radius: 50%;
}

.rail-icon:hover,
.rail-icon.is-active {
  color: #fff;
  background: linear-gradient(145deg, #8e7fff, #6e5de1);
  border-radius: 15px;
  box-shadow: 0 7px 18px rgba(116, 96, 231, 0.22);
}

.rail-icon svg {
  width: 21px;
  height: 21px;
}

.rail-indicator {
  position: absolute;
  left: -14px;
  width: 4px;
  height: 10px;
  background: #f0edff;
  border-radius: 0 5px 5px 0;
  opacity: 0;
  transition: height 160ms ease, opacity 160ms ease;
}

.rail-icon.is-active .rail-indicator {
  height: 22px;
  opacity: 1;
}

.rail-create {
  width: 40px;
  height: 40px;
  color: #75d8b3;
  background: rgba(91, 215, 176, 0.11);
}

.rail-create:hover {
  color: #fff;
  background: #40b995;
}

.rail-spacer {
  flex: 1;
}

.rail-avatar {
  width: 36px;
  height: 36px;
  border-radius: 13px;
}

.sidebar {
  display: flex;
  min-width: 0;
  flex-direction: column;
  background: var(--sidebar);
  border-right: 1px solid var(--line);
}

.workspace-switcher {
  display: flex;
  align-items: center;
  gap: 11px;
  min-height: 74px;
  padding: 0 16px;
  text-align: left;
  background: transparent;
  border-bottom: 1px solid var(--line);
}

.workspace-switcher:hover {
  background: rgba(255, 255, 255, 0.025);
}

.workspace-logo {
  display: grid;
  flex: 0 0 auto;
  place-items: center;
  width: 38px;
  height: 38px;
  color: #e8e3ff;
  background: linear-gradient(145deg, #5d577e, #35314e);
  border: 1px solid rgba(208, 199, 255, 0.17);
  border-radius: 12px;
  font-family: "Manrope", sans-serif;
  font-size: 17px;
  font-weight: 800;
}

.workspace-copy,
.profile-copy {
  display: grid;
  min-width: 0;
  gap: 3px;
}

.workspace-copy strong,
.profile-copy strong {
  overflow: hidden;
  color: var(--text);
  font-size: 13px;
  font-weight: 700;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.workspace-copy > span,
.profile-copy > span {
  color: var(--muted);
  font-size: 11px;
}

.chevron {
  width: 16px;
  height: 16px;
  margin-left: auto;
  color: var(--muted);
}

.sidebar-scroll {
  flex: 1;
  min-height: 0;
  overflow: auto;
  padding: 17px 11px 20px;
  scrollbar-color: rgba(191, 196, 222, 0.12) transparent;
  scrollbar-width: thin;
}

.sidebar-search {
  display: flex;
  align-items: center;
  gap: 9px;
  width: 100%;
  height: 38px;
  padding: 0 10px;
  color: var(--muted);
  text-align: left;
  background: #202333;
  border: 1px solid rgba(255, 255, 255, 0.035);
  border-radius: 10px;
  transition: background 140ms ease, color 140ms ease;
}

.sidebar-search:hover {
  color: var(--text);
  background: #282c40;
}

.sidebar-search svg {
  width: 17px;
  height: 17px;
}

kbd {
  padding: 2px 5px;
  color: #777d94;
  background: rgba(10, 12, 20, 0.38);
  border: 1px solid rgba(222, 226, 255, 0.09);
  border-radius: 5px;
  font-family: inherit;
  font-size: 10px;
  line-height: 1.35;
}

.sidebar-search kbd {
  margin-left: auto;
}

.primary-nav {
  display: grid;
  gap: 4px;
  margin: 20px 0 22px;
}

.nav-item,
.channel-link,
.direct-link {
  display: flex;
  align-items: center;
  min-width: 0;
  width: 100%;
  text-align: left;
  color: var(--muted-strong);
  background: transparent;
  border-radius: 9px;
  transition: color 140ms ease, background 140ms ease;
}

.nav-item {
  gap: 11px;
  height: 38px;
  padding: 0 10px;
  font-size: 12.5px;
  font-weight: 600;
}

.nav-item svg {
  width: 18px;
  height: 18px;
  color: #868ba5;
}

.nav-item:hover,
.channel-link:hover,
.direct-link:hover {
  color: var(--text);
  background: rgba(255, 255, 255, 0.045);
}

.nav-item.is-active {
  color: #f3f1ff;
  background: rgba(136, 120, 255, 0.14);
}

.nav-item.is-active svg {
  color: var(--accent-bright);
}

.nav-count {
  display: grid;
  min-width: 20px;
  height: 19px;
  place-items: center;
  margin-left: auto;
  padding: 0 5px;
  color: #f4f0ff;
  background: #6859c9;
  border-radius: 6px;
  font-size: 10px;
  font-weight: 700;
}

.nav-count-soft {
  color: #b2abc9;
  background: rgba(154, 145, 207, 0.12);
}

.section-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 25px;
  margin: 0 3px 5px 9px;
  color: #777d94;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.small-icon-button {
  display: grid;
  flex: 0 0 auto;
  place-items: center;
  width: 25px;
  height: 25px;
  padding: 0;
  color: #82879d;
  background: transparent;
  border-radius: 7px;
}

.small-icon-button:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.075);
}

.small-icon-button svg {
  width: 16px;
  height: 16px;
}

.channel-list,
.direct-list {
  display: grid;
  gap: 3px;
}

.discord-integration {
  margin: 13px 3px 5px;
  padding: 10px;
  background: linear-gradient(135deg, rgba(88, 100, 242, 0.11), rgba(136, 120, 255, 0.045));
  border: 1px solid rgba(136, 120, 255, 0.13);
  border-radius: 11px;
}

.discord-connect-row {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 8px;
}

.discord-brand-mark {
  display: grid;
  width: 27px;
  height: 27px;
  flex: 0 0 auto;
  place-items: center;
  color: #fff;
  background: #5865f2;
  border-radius: 9px;
  font-family: "Manrope", sans-serif;
  font-size: 14px;
  font-weight: 800;
}

.discord-connect-copy {
  display: grid;
  min-width: 0;
  flex: 1;
  gap: 3px;
}

.discord-connect-copy strong {
  color: #e6e5f1;
  font-size: 10px;
  font-weight: 700;
}

.discord-connect-copy small {
  overflow: hidden;
  color: #969bb1;
  font-size: 8px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.discord-connect-button {
  flex: 0 0 auto;
  min-height: 25px;
  padding: 0 8px;
  color: #e6e8ff;
  background: rgba(88, 101, 242, 0.44);
  border: 1px solid rgba(160, 168, 255, 0.16);
  border-radius: 7px;
  font-size: 8px;
  font-weight: 700;
  transition: background 140ms ease, border-color 140ms ease;
}

.discord-connect-button:hover:not(:disabled) {
  background: rgba(88, 101, 242, 0.7);
  border-color: rgba(185, 190, 255, 0.3);
}

.discord-connect-button:disabled {
  color: #777d94;
  background: rgba(255, 255, 255, 0.035);
  border-color: rgba(222, 226, 255, 0.06);
  cursor: not-allowed;
}

.discord-integration-hint {
  margin: 8px 0 0;
  color: #858aa0;
  font-size: 8px;
  line-height: 1.55;
}

.private-group-heading {
  margin-top: 17px;
}

.private-group-empty {
  margin: 5px 10px 7px;
  color: #777d94;
  font-size: 9px;
  line-height: 1.5;
}

.private-group-empty[hidden] {
  display: none;
}

.channel-link {
  gap: 9px;
  height: 34px;
  padding: 0 10px;
  font-size: 12.5px;
}

.channel-link.is-active,
.direct-link.is-active {
  color: #f1efff;
  background: rgba(136, 120, 255, 0.14);
}

.channel-hash {
  width: 13px;
  color: #777d96;
  font-size: 18px;
  font-weight: 500;
  line-height: 1;
  text-align: center;
}

.channel-link.is-active .channel-hash {
  color: var(--accent-bright);
}

.group-channel-icon {
  color: #77daba;
  font-size: 12px;
}

.channel-name,
.direct-link > span:nth-child(2) {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.direct-heading {
  margin-top: 22px;
}

.direct-link {
  gap: 9px;
  min-height: 38px;
  padding: 4px 9px;
  font-size: 12px;
}

.direct-link.is-active .avatar {
  box-shadow: 0 0 0 2px rgba(179, 167, 255, 0.8);
}

.avatar-discord {
  background: linear-gradient(145deg, #8991ff, #525cd4);
}

.discord-avatar-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: inherit;
}

.direct-link:disabled,
.small-icon-button:disabled {
  color: #62677d;
  cursor: not-allowed;
}

.direct-link:disabled:hover,
.small-icon-button:disabled:hover {
  background: transparent;
}

.direct-link:disabled {
  opacity: 0.55;
}

.unread-dot {
  width: 6px;
  height: 6px;
  margin-left: auto;
  background: #ff9293;
  border-radius: 50%;
  box-shadow: 0 0 9px rgba(255, 143, 145, 0.7);
}

.profile-card {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 68px;
  padding: 0 14px;
  text-align: left;
  background: #141722;
  border-top: 1px solid var(--line);
}

.profile-card:hover {
  background: #1a1d2b;
}

.profile-card .avatar {
  width: 34px;
  height: 34px;
  font-size: 10px;
}

.profile-card .avatar .status-dot {
  width: 9px;
  height: 9px;
  right: -2px;
  bottom: -1px;
}

.profile-copy {
  flex: 1;
}

.profile-menu-icon {
  width: 17px;
  height: 17px;
  fill: currentColor;
  stroke: none;
  color: #737991;
}

.main-area {
  display: flex;
  min-width: 0;
  min-height: 0;
  flex-direction: column;
  overflow: hidden;
  background: rgba(19, 21, 32, 0.9);
}

.topbar {
  position: relative;
  z-index: 2;
  display: flex;
  flex: 0 0 74px;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 0 25px;
  background: rgba(20, 22, 33, 0.9);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(18px);
}

.topbar-title,
.topbar-actions {
  display: flex;
  min-width: 0;
  align-items: center;
}

.topbar-title {
  gap: 12px;
}

.context-icon {
  display: grid;
  flex: 0 0 auto;
  place-items: center;
  width: 34px;
  height: 34px;
  color: #b8adff;
  background: rgba(136, 120, 255, 0.13);
  border: 1px solid rgba(170, 157, 255, 0.13);
  border-radius: 11px;
  font-size: 20px;
  font-weight: 600;
}

.context-icon.is-direct {
  color: #ffd2c7;
  background: rgba(255, 143, 145, 0.12);
  font-size: 10px;
  font-weight: 700;
}

.context-icon.is-board {
  color: #80e4c0;
  background: rgba(91, 215, 176, 0.12);
}

.context-icon.is-group {
  color: #80e4c0;
  background: rgba(91, 215, 176, 0.12);
  font-size: 17px;
}

.context-copy {
  min-width: 0;
}

.context-copy h1 {
  overflow: hidden;
  margin: 0;
  font-family: "Manrope", "DM Sans", sans-serif;
  font-size: 14px;
  font-weight: 750;
  letter-spacing: -0.02em;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.context-copy p {
  overflow: hidden;
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 11px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.topbar-actions {
  gap: 9px;
}

.topbar-search {
  display: flex;
  align-items: center;
  gap: 9px;
  width: 195px;
  height: 36px;
  padding: 0 10px;
  color: #9297ad;
  background: #1d2030;
  border: 1px solid rgba(225, 228, 255, 0.06);
  border-radius: 10px;
  text-align: left;
  transition: background 150ms ease, border-color 150ms ease;
}

.topbar-search:hover {
  background: #24283a;
  border-color: rgba(225, 228, 255, 0.13);
}

.topbar-search svg {
  width: 16px;
  height: 16px;
}

.topbar-search span {
  flex: 1;
  font-size: 11.5px;
}

.icon-button {
  display: grid;
  flex: 0 0 auto;
  place-items: center;
  width: 35px;
  height: 35px;
  padding: 0;
  color: #9297ad;
  background: transparent;
  border-radius: 10px;
  transition: color 140ms ease, background 140ms ease;
}

.icon-button:hover {
  color: #f4f3ff;
  background: rgba(255, 255, 255, 0.065);
}

.icon-button svg {
  width: 18px;
  height: 18px;
}

.icon-button.is-active {
  color: #d7d0ff;
  background: rgba(136, 120, 255, 0.15);
}

.topbar-divider {
  width: 1px;
  height: 22px;
  margin: 0 2px;
  background: var(--line-strong);
}

.mobile-menu-button {
  display: none;
}

.chat-layout {
  position: relative;
  display: grid;
  flex: 1;
  min-height: 0;
  grid-template-columns: minmax(0, 1fr) 238px;
}

.chat-layout.members-collapsed {
  grid-template-columns: minmax(0, 1fr);
}

.conversation-pane {
  display: flex;
  min-width: 0;
  min-height: 0;
  flex-direction: column;
}

.messages-list {
  flex: 1;
  min-height: 0;
  overflow: auto;
  padding: 30px clamp(20px, 4vw, 54px) 22px;
  scrollbar-color: rgba(191, 196, 222, 0.14) transparent;
  scrollbar-width: thin;
}

.channel-welcome {
  max-width: 760px;
  margin: 18px auto 26px;
}

.welcome-hash {
  display: grid;
  width: 48px;
  height: 48px;
  place-items: center;
  margin-bottom: 18px;
  color: #d4cdff;
  background: linear-gradient(145deg, rgba(136, 120, 255, 0.3), rgba(136, 120, 255, 0.08));
  border: 1px solid rgba(177, 165, 255, 0.17);
  border-radius: 16px;
  font-size: 28px;
  line-height: 1;
}

.channel-welcome h2 {
  margin: 0 0 8px;
  font-family: "Manrope", sans-serif;
  font-size: clamp(20px, 2vw, 25px);
  font-weight: 750;
  letter-spacing: -0.045em;
}

.channel-welcome p {
  max-width: 500px;
  margin: 0;
  color: var(--muted);
  font-size: 12.5px;
  line-height: 1.65;
}

.date-divider {
  display: flex;
  align-items: center;
  gap: 14px;
  max-width: 760px;
  margin: 0 auto 14px;
  color: #777d94;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.date-divider::before,
.date-divider::after {
  height: 1px;
  flex: 1;
  content: "";
  background: var(--line);
}

.message {
  display: flex;
  gap: 12px;
  max-width: 760px;
  margin: 0 auto;
  padding: 12px 10px;
  border-radius: 12px;
  animation: message-in 200ms ease both;
}

@keyframes message-in {
  from {
    opacity: 0;
    transform: translateY(5px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.message:hover {
  background: rgba(255, 255, 255, 0.025);
}

.message.is-highlighted {
  background: rgba(136, 120, 255, 0.16);
  box-shadow: 0 0 0 1px rgba(163, 149, 255, 0.25);
}

.avatar {
  position: relative;
  display: inline-grid;
  flex: 0 0 auto;
  place-items: center;
  width: 36px;
  height: 36px;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 12px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.avatar-small {
  width: 27px;
  height: 27px;
  border-radius: 9px;
  font-size: 8px;
}

.avatar-lavender {
  background: linear-gradient(145deg, #a89aff, #6556c8);
}

.avatar-coral {
  background: linear-gradient(145deg, #ffb09f, #c45c72);
}

.avatar-mint {
  background: linear-gradient(145deg, #78e6c3, #399c8b);
}

.avatar-blue {
  background: linear-gradient(145deg, #83c5f5, #5472b1);
}

.avatar-orange {
  background: linear-gradient(145deg, #ffbd79, #bc7048);
}

.status-dot {
  position: absolute;
  right: -2px;
  bottom: -2px;
  width: 10px;
  height: 10px;
  background: var(--mint);
  border: 2px solid var(--sidebar);
  border-radius: 50%;
}

.status-online {
  background: #54d5a6;
}

.status-idle {
  background: #f1bd68;
}

.status-dnd {
  background: #fa777e;
}

.status-offline {
  background: #555a6d;
}

.message-avatar {
  width: 37px;
  height: 37px;
  border-radius: 12px;
}

.message-content {
  min-width: 0;
  flex: 1;
  padding-top: 1px;
}

.message-meta {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin-bottom: 5px;
}

.message-author {
  color: #f0eff8;
  font-size: 12px;
  font-weight: 700;
}

.message-time {
  color: #6f758c;
  font-size: 10px;
}

.message-text {
  margin: 0;
  color: #c8cbd9;
  font-size: 12.5px;
  line-height: 1.7;
  overflow-wrap: anywhere;
  white-space: pre-wrap;
}

.attachment-card {
  display: flex;
  align-items: center;
  gap: 10px;
  max-width: 340px;
  margin-top: 9px;
  padding: 10px 12px;
  background: rgba(136, 120, 255, 0.08);
  border: 1px solid rgba(164, 152, 255, 0.14);
  border-radius: 10px;
}

.attachment-icon {
  display: grid;
  width: 33px;
  height: 33px;
  flex: 0 0 auto;
  place-items: center;
  color: #c6bcff;
  background: rgba(136, 120, 255, 0.17);
  border-radius: 9px;
  font-size: 15px;
}

.attachment-copy {
  display: grid;
  min-width: 0;
  gap: 3px;
}

.attachment-copy strong {
  overflow: hidden;
  font-size: 11px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.attachment-copy span {
  color: var(--muted);
  font-size: 10px;
}

.empty-messages {
  max-width: 760px;
  margin: 24px auto;
  padding: 22px;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.025);
  border: 1px dashed var(--line-strong);
  border-radius: 12px;
  text-align: center;
  font-size: 12px;
}

.composer-area {
  flex: 0 0 auto;
  padding: 8px clamp(20px, 4vw, 54px) 16px;
}

.message-composer {
  display: flex;
  align-items: flex-end;
  gap: 8px;
  max-width: 780px;
  min-height: 54px;
  margin: 0 auto;
  padding: 8px 9px;
  background: #202333;
  border: 1px solid rgba(222, 226, 255, 0.08);
  border-radius: 14px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  transition: border-color 150ms ease, box-shadow 150ms ease;
}

.message-composer:focus-within {
  border-color: rgba(163, 149, 255, 0.48);
  box-shadow: 0 0 0 3px rgba(136, 120, 255, 0.08);
}

.composer-attach,
.composer-tool {
  display: grid;
  flex: 0 0 auto;
  place-items: center;
  width: 34px;
  height: 34px;
  color: #9398ae;
  background: transparent;
  border-radius: 10px;
  cursor: pointer;
  transition: color 140ms ease, background 140ms ease;
}

.composer-attach:hover,
.composer-tool:hover {
  color: #ded9ff;
  background: rgba(136, 120, 255, 0.14);
}

.composer-attach svg,
.composer-tool svg {
  width: 19px;
  height: 19px;
}

.composer-attach input {
  display: none;
}

.message-composer textarea {
  width: 100%;
  min-width: 0;
  min-height: 34px;
  max-height: 150px;
  resize: none;
  padding: 8px 3px;
  color: var(--text);
  background: transparent;
  border: 0;
  outline: none;
  font-size: 12px;
  line-height: 1.5;
}

.message-composer textarea::placeholder {
  color: #81869d;
}

.message-composer textarea:focus-visible {
  outline: none;
}

.send-button {
  display: grid;
  flex: 0 0 auto;
  place-items: center;
  width: 35px;
  height: 35px;
  color: #fff;
  background: linear-gradient(145deg, #9a8aff, #7665e9);
  border-radius: 10px;
  box-shadow: 0 5px 14px rgba(116, 96, 231, 0.25);
  transition: filter 150ms ease, transform 150ms ease;
}

.send-button:hover {
  filter: brightness(1.12);
  transform: translateY(-1px);
}

.send-button svg {
  width: 17px;
  height: 17px;
}

.composer-hint {
  max-width: 780px;
  margin: 8px auto 0;
  color: #656b82;
  font-size: 10px;
  text-align: center;
}

.composer-hint span {
  padding: 0 4px;
}

.members-panel {
  display: flex;
  min-width: 0;
  flex-direction: column;
  padding: 22px 15px;
  background: rgba(21, 23, 35, 0.72);
  border-left: 1px solid var(--line);
}

.members-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 0 2px 24px;
}

.members-heading h2 {
  margin: 0;
  font-family: "Manrope", sans-serif;
  font-size: 13px;
  font-weight: 700;
}

.members-heading p {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 10px;
}

.member-group {
  display: grid;
  gap: 11px;
  margin-bottom: 25px;
}

.member-group h3 {
  margin: 0 0 1px;
  color: #777d94;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.1em;
}

.member-row {
  display: flex;
  align-items: center;
  gap: 9px;
  min-width: 0;
}

.member-row > span:last-child {
  display: grid;
  min-width: 0;
  gap: 3px;
}

.member-row strong {
  overflow: hidden;
  color: #d4d6e2;
  font-size: 10.5px;
  font-weight: 600;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.member-row small {
  overflow: hidden;
  color: #777d94;
  font-size: 9px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.member-row.is-offline {
  opacity: 0.54;
}

.member-row.is-away {
  opacity: 0.82;
}

.member-note {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-top: auto;
  padding: 11px 10px;
  background: rgba(136, 120, 255, 0.075);
  border: 1px solid rgba(136, 120, 255, 0.11);
  border-radius: 10px;
}

.note-spark {
  color: #b5aaff;
  font-size: 16px;
}

.member-note p {
  margin: 0;
  color: #a5a7bb;
  font-size: 9px;
  line-height: 1.5;
}

.board-view {
  flex: 1;
  min-height: 0;
  overflow: auto;
  padding: 31px clamp(22px, 3vw, 42px) 36px;
  scrollbar-color: rgba(191, 196, 222, 0.14) transparent;
  scrollbar-width: thin;
}

.board-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  max-width: 1440px;
  margin: 0 auto;
}

.board-eyebrow,
.dialog-kicker {
  display: flex;
  align-items: center;
  gap: 7px;
  color: #858aa3;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.13em;
}

.board-eyebrow > span:not(.eyebrow-dot) {
  color: #4e5368;
}

.eyebrow-dot {
  width: 6px;
  height: 6px;
  background: #9b8cff;
  border-radius: 50%;
  box-shadow: 0 0 10px rgba(155, 140, 255, 0.8);
}

.board-heading h2 {
  display: flex;
  align-items: center;
  gap: 9px;
  margin: 10px 0 5px;
  font-family: "Manrope", sans-serif;
  font-size: clamp(23px, 2.5vw, 30px);
  font-weight: 800;
  letter-spacing: -0.05em;
}

.board-emoji {
  color: #b9a8ff;
  font-size: 20px;
}

.board-heading p {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
}

.board-heading-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.avatar-stack {
  display: flex;
  align-items: center;
  padding-left: 8px;
}

.avatar-stack .avatar {
  width: 29px;
  height: 29px;
  margin-left: -8px;
  border: 2px solid #171a27;
  border-radius: 10px;
  font-size: 8px;
}

.avatar-stack-more {
  color: #cec9ed;
  background: #37344c;
  font-size: 9px !important;
}

.secondary-button,
.primary-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-height: 36px;
  padding: 0 12px;
  border-radius: 9px;
  font-size: 11px;
  font-weight: 600;
  transition: background 140ms ease, border-color 140ms ease, transform 140ms ease;
}

.secondary-button {
  color: #c0c3d2;
  background: #222536;
  border: 1px solid rgba(225, 228, 255, 0.08);
}

.secondary-button:hover {
  color: #f1efff;
  background: #2a2e42;
  border-color: rgba(225, 228, 255, 0.15);
}

.primary-button {
  color: #fff;
  background: linear-gradient(145deg, #9585ff, #7564e5);
  box-shadow: 0 5px 15px rgba(116, 96, 231, 0.19);
}

.primary-button:hover {
  background: linear-gradient(145deg, #a496ff, #8170ef);
  transform: translateY(-1px);
}

.secondary-button svg,
.primary-button svg {
  width: 15px;
  height: 15px;
}

.board-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  max-width: 1440px;
  margin: 25px auto 23px;
}

.metric-card {
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 67px;
  padding: 12px 15px;
  overflow: hidden;
  background: linear-gradient(120deg, rgba(33, 36, 54, 0.93), rgba(26, 29, 43, 0.92));
  border: 1px solid var(--line);
  border-radius: 12px;
}

.metric-card::after {
  position: absolute;
  top: -35px;
  right: -17px;
  width: 90px;
  height: 90px;
  content: "";
  background: radial-gradient(circle, rgba(136, 120, 255, 0.13), transparent 68%);
}

.metric-icon {
  display: grid;
  width: 34px;
  height: 34px;
  flex: 0 0 auto;
  place-items: center;
  color: #b9adff;
  background: rgba(136, 120, 255, 0.13);
  border-radius: 10px;
  font-size: 15px;
}

.metric-card:nth-child(2) .metric-icon {
  color: #74e0b6;
  background: rgba(91, 215, 176, 0.11);
}

.metric-card:nth-child(3) .metric-icon {
  color: #f4c17e;
  background: rgba(243, 190, 114, 0.11);
}

.metric-copy {
  display: grid;
  gap: 3px;
}

.metric-copy strong {
  font-family: "Manrope", sans-serif;
  font-size: 17px;
  font-weight: 750;
  letter-spacing: -0.03em;
}

.metric-copy span {
  color: var(--muted);
  font-size: 10px;
}

.board-filterbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  max-width: 1440px;
  min-height: 47px;
  margin: 0 auto 12px;
  border-bottom: 1px solid var(--line);
}

.board-filter-label,
.board-filters {
  display: flex;
  align-items: center;
}

.board-filter-label {
  gap: 8px;
  color: #c3c5d3;
  font-size: 11px;
  font-weight: 600;
}

.board-filter-label svg {
  width: 16px;
  height: 16px;
  color: #9297ad;
}

.board-filters {
  gap: 8px;
}

.board-search {
  display: flex;
  align-items: center;
  gap: 7px;
  width: 170px;
  height: 31px;
  padding: 0 8px;
  color: #9297ad;
  background: #1c1f2e;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.board-search svg {
  width: 14px;
  height: 14px;
  flex: 0 0 auto;
}

.board-search input {
  width: 100%;
  min-width: 0;
  padding: 0;
  color: var(--text);
  background: transparent;
  border: 0;
  outline: 0;
  font-size: 10px;
}

.board-search input::placeholder {
  color: #777d94;
}

.board-search input:focus-visible {
  outline: 0;
}

.select-wrap select {
  height: 31px;
  max-width: 146px;
  padding: 0 26px 0 9px;
  color: #b8bbca;
  background: #1c1f2e;
  border: 1px solid var(--line);
  border-radius: 8px;
  font-size: 10px;
}

.board-columns {
  display: grid;
  grid-template-columns: repeat(4, minmax(218px, 1fr));
  align-items: start;
  gap: 13px;
  max-width: 1440px;
  min-width: 960px;
  margin: 0 auto;
  padding: 4px 0 15px;
}

.board-column {
  min-width: 0;
  padding: 11px 10px 10px;
  background: rgba(24, 27, 40, 0.67);
  border: 1px solid rgba(222, 226, 255, 0.055);
  border-radius: 13px;
  transition: background 150ms ease, border-color 150ms ease, box-shadow 150ms ease;
}

.board-column.drag-over {
  background: rgba(136, 120, 255, 0.09);
  border-color: rgba(157, 143, 255, 0.5);
  box-shadow: inset 0 0 0 1px rgba(157, 143, 255, 0.09);
}

.column-heading {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 29px;
  padding: 0 2px 8px;
}

.column-dot {
  width: 7px;
  height: 7px;
  flex: 0 0 auto;
  background: #a496ff;
  border-radius: 50%;
  box-shadow: 0 0 8px rgba(164, 150, 255, 0.38);
}

.column-inprogress .column-dot {
  background: #5bc7d9;
  box-shadow: 0 0 8px rgba(91, 199, 217, 0.35);
}

.column-review .column-dot {
  background: #f1b96b;
  box-shadow: 0 0 8px rgba(241, 185, 107, 0.35);
}

.column-done .column-dot {
  background: #58d1a5;
  box-shadow: 0 0 8px rgba(88, 209, 165, 0.35);
}

.column-heading h3 {
  min-width: 0;
  margin: 0;
  color: #d9dbe6;
  font-size: 11px;
  font-weight: 700;
}

.column-count {
  display: grid;
  min-width: 19px;
  height: 18px;
  place-items: center;
  padding: 0 5px;
  color: #898ea4;
  background: rgba(255, 255, 255, 0.055);
  border-radius: 6px;
  font-size: 9px;
}

.column-add {
  display: grid;
  width: 24px;
  height: 24px;
  place-items: center;
  margin-left: auto;
  color: #858aa1;
  background: transparent;
  border-radius: 7px;
}

.column-add:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.08);
}

.column-add svg {
  width: 15px;
  height: 15px;
}

.column-cards {
  display: grid;
  gap: 9px;
  min-height: 68px;
}

.task-card {
  padding: 12px 11px 10px;
  background: linear-gradient(145deg, #25293a, #202333);
  border: 1px solid rgba(228, 230, 255, 0.065);
  border-radius: 10px;
  cursor: grab;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  transition: border-color 140ms ease, background 140ms ease, transform 140ms ease, opacity 140ms ease;
}

.task-card:hover {
  background: linear-gradient(145deg, #2a2e42, #222638);
  border-color: rgba(165, 153, 255, 0.23);
  transform: translateY(-1px);
}

.task-card:active {
  cursor: grabbing;
}

.task-card:focus-visible {
  outline: 2px solid var(--accent-bright);
  outline-offset: 2px;
}

.task-card.is-dragging {
  opacity: 0.45;
}

.task-priority {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  margin-bottom: 8px;
  padding: 4px 6px;
  color: #f1bb77;
  background: rgba(243, 190, 114, 0.1);
  border-radius: 5px;
  font-size: 8px;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.task-priority::before {
  width: 5px;
  height: 5px;
  content: "";
  background: currentColor;
  border-radius: 50%;
}

.priority-high {
  color: #ff9793;
  background: rgba(255, 143, 145, 0.105);
}

.priority-low {
  color: #8fdaa9;
  background: rgba(91, 215, 176, 0.09);
}

.task-card h4 {
  margin: 0 0 6px;
  color: #e5e6ef;
  font-size: 11px;
  font-weight: 650;
  line-height: 1.48;
}

.task-card > p {
  display: -webkit-box;
  overflow: hidden;
  margin: 0;
  color: #969bb1;
  font-size: 9.5px;
  line-height: 1.55;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.task-label {
  display: inline-block;
  max-width: 100%;
  overflow: hidden;
  margin-top: 9px;
  padding: 4px 7px;
  color: #b9adff;
  background: rgba(136, 120, 255, 0.11);
  border-radius: 5px;
  font-size: 8px;
  font-weight: 600;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.task-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 7px;
  margin-top: 11px;
  padding-top: 8px;
  border-top: 1px solid rgba(222, 226, 255, 0.055);
}

.task-assignee {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
  color: #9297ac;
  font-size: 8.5px;
}

.task-assignee .avatar {
  width: 20px;
  height: 20px;
  border-radius: 7px;
  font-size: 7px;
}

.task-due {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: #999eb2;
  font-size: 8px;
  white-space: nowrap;
}

.task-due svg {
  width: 12px;
  height: 12px;
}

.task-due.is-overdue {
  color: #ff9293;
}

.empty-column {
  display: grid;
  min-height: 58px;
  place-items: center;
  color: #6e7389;
  border: 1px dashed rgba(222, 226, 255, 0.09);
  border-radius: 9px;
  font-size: 9px;
}

.app-dialog {
  width: min(520px, calc(100vw - 30px));
  max-height: min(90vh, 800px);
  padding: 23px;
  overflow: auto;
  color: var(--text);
  background:
    radial-gradient(ellipse at 90% 0%, rgba(136, 120, 255, 0.12), transparent 38%),
    #1a1d2b;
  border: 1px solid rgba(222, 226, 255, 0.12);
  border-radius: 17px;
  box-shadow: var(--shadow);
}

.app-dialog::backdrop {
  background: rgba(7, 8, 14, 0.7);
  backdrop-filter: blur(5px);
}

.app-dialog form {
  display: grid;
  gap: 16px;
}

.dialog-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 3px;
}

.dialog-kicker {
  font-size: 8px;
}

.dialog-heading h2 {
  margin: 6px 0 0;
  font-family: "Manrope", sans-serif;
  font-size: 19px;
  font-weight: 750;
  letter-spacing: -0.04em;
}

.dialog-close {
  width: 31px;
  height: 31px;
  margin-top: -4px;
}

.form-field {
  display: grid;
  gap: 7px;
  color: #bfc2d1;
  font-size: 10px;
  font-weight: 600;
}

.form-field > span {
  display: flex;
  align-items: baseline;
  gap: 7px;
}

.form-field small {
  color: #72788f;
  font-size: 9px;
  font-weight: 400;
}

.form-field input,
.form-field select,
.form-field textarea {
  width: 100%;
  min-height: 38px;
  padding: 9px 11px;
  color: #eff0fa;
  background: #131622;
  border: 1px solid rgba(222, 226, 255, 0.1);
  border-radius: 8px;
  outline: 0;
  font-size: 11px;
  font-weight: 400;
}

.form-field textarea {
  min-height: 74px;
  resize: vertical;
  line-height: 1.55;
}

.form-field input::placeholder,
.form-field textarea::placeholder {
  color: #686e85;
}

.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  border-color: rgba(163, 149, 255, 0.57);
  box-shadow: 0 0 0 3px rgba(136, 120, 255, 0.09);
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 13px;
}

.dialog-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 2px;
  padding-top: 15px;
  border-top: 1px solid var(--line);
}

.dialog-actions > div {
  display: flex;
  gap: 8px;
  margin-left: auto;
}

.danger-text-button {
  padding: 7px 0;
  color: #ff9396;
  background: transparent;
  font-size: 10px;
  font-weight: 600;
}

.danger-text-button:hover {
  color: #ffc0c0;
  text-decoration: underline;
}

.channel-name-input {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 38px;
  padding-left: 11px;
  color: #9297ad;
  background: #131622;
  border: 1px solid rgba(222, 226, 255, 0.1);
  border-radius: 8px;
}

.channel-name-input:focus-within {
  border-color: rgba(163, 149, 255, 0.57);
  box-shadow: 0 0 0 3px rgba(136, 120, 255, 0.09);
}

.channel-name-input > span {
  font-size: 16px;
}

.channel-name-input input {
  min-height: 36px;
  padding-left: 0;
  background: transparent;
  border: 0;
  box-shadow: none;
}

.channel-name-input input:focus {
  border: 0;
  box-shadow: none;
}

.form-hint {
  margin: -6px 0 0;
  color: #858aa0;
  font-size: 10px;
  line-height: 1.6;
}

.discord-contact-dialog {
  width: min(470px, calc(100vw - 30px));
}

.discord-contact-dialog form {
  gap: 15px;
}

.discord-contact-explanation {
  margin: -3px 0 1px;
  color: #a2a6ba;
  font-size: 11px;
  line-height: 1.65;
}

.discord-id-help {
  display: grid;
  gap: 5px;
  margin-top: -5px;
  padding: 10px 11px;
  color: #9fa4b9;
  background: rgba(88, 101, 242, 0.09);
  border: 1px solid rgba(116, 128, 255, 0.13);
  border-radius: 9px;
  font-size: 9px;
  line-height: 1.55;
}

.discord-id-help strong {
  color: #d3d5e5;
  font-size: 9px;
}

.discord-contact-feedback {
  margin: -5px 0 0;
  color: #ff9c9e;
  font-size: 10px;
  line-height: 1.55;
}

.discord-contact-feedback.is-success {
  color: #70deb6;
}

.private-group-dialog {
  width: min(470px, calc(100vw - 30px));
}

.private-group-privacy-note,
.group-management-hint {
  margin: -3px 0 0;
  color: #a2a6ba;
  font-size: 10px;
  line-height: 1.65;
}

.private-group-feedback,
.group-management-feedback {
  margin: -5px 0 0;
  color: #ff9c9e;
  font-size: 10px;
  line-height: 1.55;
}

.group-management-dialog {
  width: min(520px, calc(100vw - 30px));
}

.group-management-dialog form {
  gap: 14px;
}

.group-management-members {
  display: grid;
  max-height: 260px;
  gap: 5px;
  overflow: auto;
  padding: 4px;
  background: rgba(10, 12, 20, 0.24);
  border: 1px solid var(--line);
  border-radius: 10px;
}

.group-managed-member {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 9px;
  padding: 7px;
  border-radius: 8px;
}

.group-managed-member:hover {
  background: rgba(255, 255, 255, 0.035);
}

.group-managed-member-copy {
  display: grid;
  min-width: 0;
  flex: 1;
  gap: 3px;
}

.group-managed-member-copy strong,
.group-managed-member-copy small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.group-managed-member-copy strong {
  color: #e1e2ed;
  font-size: 10px;
}

.group-managed-member-copy small {
  color: #858aa0;
  font-size: 9px;
}

.group-owner-label {
  padding: 4px 6px;
  color: #bcb1ff;
  background: rgba(136, 120, 255, 0.11);
  border-radius: 5px;
  font-size: 8px;
  font-weight: 700;
}

.remove-group-member-button {
  flex: 0 0 auto;
  padding: 6px 7px;
  color: #ff9c9e;
  background: transparent;
  border-radius: 6px;
  font-size: 9px;
}

.remove-group-member-button:hover {
  background: rgba(255, 143, 145, 0.1);
}

.group-member-invite {
  display: grid;
  gap: 9px;
}

.group-member-invite .form-hint {
  margin: -4px 0 0;
}

.search-dialog {
  width: min(590px, calc(100vw - 30px));
}

.search-dialog > .dialog-heading {
  margin-bottom: 18px;
}

.global-search-field {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 46px;
  padding: 0 12px;
  color: #999eb3;
  background: #131622;
  border: 1px solid rgba(222, 226, 255, 0.11);
  border-radius: 10px;
}

.global-search-field:focus-within {
  border-color: rgba(163, 149, 255, 0.58);
  box-shadow: 0 0 0 3px rgba(136, 120, 255, 0.08);
}

.global-search-field svg {
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
}

.global-search-field input {
  width: 100%;
  min-width: 0;
  padding: 0;
  color: #f0f1fa;
  background: transparent;
  border: 0;
  outline: 0;
  font-size: 12px;
}

.global-search-field input:focus-visible {
  outline: 0;
}

.global-search-field input::placeholder {
  color: #777d93;
}

.search-results {
  display: grid;
  max-height: 360px;
  gap: 4px;
  overflow: auto;
  margin: 13px -5px 0;
}

.search-empty {
  padding: 22px 14px;
  color: #81869c;
  font-size: 11px;
  text-align: center;
}

.search-result {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  padding: 9px;
  text-align: left;
  background: transparent;
  border-radius: 9px;
}

.search-result:hover {
  background: rgba(255, 255, 255, 0.06);
}

.search-result-icon {
  display: grid;
  width: 34px;
  height: 34px;
  flex: 0 0 auto;
  place-items: center;
  color: #b7acff;
  background: rgba(136, 120, 255, 0.12);
  border-radius: 9px;
  font-size: 14px;
}

.search-result-copy {
  display: grid;
  min-width: 0;
  flex: 1;
  gap: 3px;
}

.search-result-copy strong,
.search-result-copy span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.search-result-copy strong {
  color: #e3e4ef;
  font-size: 10.5px;
}

.search-result-copy span {
  color: #8389a0;
  font-size: 9.5px;
}

.search-result-type {
  color: #777d94;
  font-size: 9px;
}

.dialog-footnote {
  margin-top: 12px;
  padding-top: 11px;
  color: #777d94;
  border-top: 1px solid var(--line);
  font-size: 9px;
}

.toast-region {
  position: fixed;
  z-index: 20;
  right: 20px;
  bottom: 20px;
  display: grid;
  gap: 8px;
  pointer-events: none;
}

.toast {
  display: flex;
  align-items: center;
  gap: 9px;
  max-width: min(360px, calc(100vw - 36px));
  padding: 11px 14px;
  color: #e8e8f2;
  background: #292d40;
  border: 1px solid rgba(222, 226, 255, 0.12);
  border-radius: 11px;
  box-shadow: 0 12px 35px rgba(0, 0, 0, 0.28);
  font-size: 11px;
  animation: toast-in 180ms ease both;
}

.toast::before {
  width: 7px;
  height: 7px;
  flex: 0 0 auto;
  content: "";
  background: var(--mint);
  border-radius: 50%;
}

.toast.is-error::before {
  background: var(--coral);
}

.toast.is-leaving {
  animation: toast-out 160ms ease both;
}

@keyframes toast-in {
  from {
    opacity: 0;
    transform: translateY(6px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes toast-out {
  to {
    opacity: 0;
    transform: translateY(4px);
  }
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

@media (max-width: 1240px) {
  .app-shell {
    grid-template-columns: 66px 235px minmax(0, 1fr);
  }

  .chat-layout {
    grid-template-columns: minmax(0, 1fr) 210px;
  }

  .board-view {
    padding-right: 24px;
    padding-left: 24px;
  }

  .board-columns {
    grid-template-columns: repeat(4, minmax(218px, 1fr));
  }
}

@media (max-width: 1050px) {
  .chat-layout {
    grid-template-columns: minmax(0, 1fr);
  }

  .members-panel {
    display: none;
  }

  .members-panel.is-open {
    position: absolute;
    z-index: 4;
    top: 12px;
    right: 13px;
    bottom: 12px;
    display: flex;
    width: min(270px, calc(100vw - 30px));
    background: #1b1e2d;
    border: 1px solid var(--line-strong);
    border-radius: 14px;
    box-shadow: var(--shadow);
  }

  .board-heading {
    align-items: flex-start;
    flex-direction: column;
  }

  .board-heading-actions {
    align-self: stretch;
    justify-content: flex-end;
  }

  .board-metrics {
    margin-top: 20px;
  }
}

@media (max-width: 760px) {
  body {
    height: 100dvh;
  }

  .app-shell {
    display: block;
  }

  .server-rail {
    display: none;
  }

  .sidebar {
    position: fixed;
    z-index: 10;
    top: 0;
    bottom: 0;
    left: 0;
    width: min(300px, calc(100vw - 48px));
    box-shadow: 16px 0 45px rgba(0, 0, 0, 0.35);
    transform: translateX(-105%);
    transition: transform 200ms ease;
  }

  body.sidebar-open .sidebar {
    transform: translateX(0);
  }

  body.sidebar-open::after {
    position: fixed;
    z-index: 9;
    inset: 0;
    content: "";
    background: rgba(5, 6, 11, 0.55);
  }

  .topbar {
    flex-basis: 66px;
    gap: 10px;
    padding: 0 13px;
  }

  .topbar-title {
    gap: 8px;
  }

  .mobile-menu-button {
    display: grid;
    width: 31px;
    height: 31px;
  }

  .mobile-menu-button svg {
    width: 19px;
    height: 19px;
  }

  .context-icon {
    width: 31px;
    height: 31px;
  }

  .context-copy h1 {
    max-width: 34vw;
    font-size: 12px;
  }

  .context-copy p {
    max-width: 36vw;
    font-size: 9px;
  }

  .topbar-actions {
    gap: 4px;
  }

  .topbar-search {
    width: 36px;
    height: 35px;
    justify-content: center;
    padding: 0;
  }

  .topbar-search span,
  .topbar-search kbd,
  .topbar-divider {
    display: none;
  }

  .icon-button.chat-only {
    width: 31px;
    height: 31px;
  }

  .icon-button.chat-only svg {
    width: 17px;
    height: 17px;
  }

  .messages-list {
    padding: 22px 13px 14px;
  }

  .channel-welcome {
    margin: 9px 6px 22px;
  }

  .channel-welcome h2 {
    font-size: 21px;
  }

  .channel-welcome p {
    font-size: 11px;
  }

  .message {
    gap: 9px;
    padding: 10px 5px;
  }

  .message-avatar {
    width: 32px;
    height: 32px;
    border-radius: 10px;
  }

  .message-text {
    font-size: 11.5px;
  }

  .composer-area {
    padding: 6px 12px 12px;
  }

  .composer-hint {
    font-size: 9px;
  }

  .board-view {
    padding: 23px 15px 28px;
  }

  .board-heading-actions {
    justify-content: flex-start;
    flex-wrap: wrap;
  }

  .board-heading-actions .avatar-stack {
    margin-right: auto;
  }

  .board-metrics {
    gap: 7px;
    margin: 20px 0 17px;
  }

  .metric-card {
    min-height: 62px;
    gap: 7px;
    padding: 8px;
  }

  .metric-icon {
    width: 28px;
    height: 28px;
    font-size: 12px;
  }

  .metric-copy strong {
    font-size: 14px;
  }

  .metric-copy span {
    font-size: 8px;
  }

  .board-columns {
    min-width: 970px;
  }
}

@media (max-width: 430px) {
  .auth-card {
    padding: 32px 22px 26px;
  }

  .context-copy p {
    display: none;
  }

  .topbar {
    padding-right: 9px;
    padding-left: 9px;
  }

  .context-copy h1 {
    max-width: 30vw;
  }

  .topbar-actions {
    gap: 1px;
  }

  .icon-button.chat-only:not(.members-toggle) {
    display: none;
  }

  .board-heading-actions .avatar-stack {
    display: none;
  }

  .board-heading-actions {
    gap: 7px;
  }

  .board-heading-actions .secondary-button,
  .board-heading-actions .primary-button {
    min-height: 34px;
    padding: 0 9px;
    font-size: 10px;
  }

  .board-filterbar {
    align-items: flex-start;
    flex-direction: column;
    padding: 9px 0;
  }

  .board-filters {
    width: 100%;
  }

  .board-search {
    flex: 1;
  }

  .form-grid {
    grid-template-columns: 1fr;
  }

  .app-dialog {
    padding: 18px;
  }
}

@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;
  }
}
