.server-dropdown {
  position: fixed;
  z-index: 24;
  width: 222px;
  padding: 6px;
  background: #222630;
  border: 1px solid #454b58;
  border-radius: 11px;
  box-shadow: 0 14px 32px #06070c9c;
  animation: enter 0.16s ease-out;
}
.server-dropdown button {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px;
  border-radius: 6px;
  text-align: left;
  font-size: 0.83rem;
}
.server-dropdown button:first-child {
  color: var(--mint);
}
.server-dropdown button:hover,
.server-dropdown button:focus-visible {
  background: #383d49;
}
.server-dropdown button:last-child[data-do="editServer"] {
  border-top: 1px solid #434856;
  border-radius: 0 0 6px 6px;
  margin-top: 3px;
}
.server-dropdown .leave-menu {
  color: #ff9aaf;
}
.server-dropdown .ico {
  width: 16px;
}
.server-sidebar-banner {
  height: 80px;
  flex: none;
  background:
    linear-gradient(0deg, var(--side), transparent 65%),
    var(--server-image) center 42% / cover;
}
.serverhead[aria-expanded="true"] {
  box-shadow: inset 3px 0 var(--mint);
  background: #293038;
}
.channel-category {
  margin: 15px 0 9px;
  min-height: 28px;
  border-radius: 6px;
}
.channel-category .navtitle {
  height: 26px;
}
.category-tools,
.channel-row {
  display: flex;
  align-items: center;
}
.category-tools .iconbtn {
  width: 23px;
  height: 23px;
  justify-content: center;
}
.channel-row .navrow {
  flex: 1;
  min-width: 0;
}
.channel-row > .iconbtn {
  width: 24px;
  height: 28px;
  opacity: 0;
  flex: none;
}
.channel-row:hover > .iconbtn,
.channel-row:focus-within > .iconbtn {
  opacity: 1;
}
.channel-row[draggable] {
  cursor: grab;
}
.channel-row[draggable]:active {
  cursor: grabbing;
}
.channel-row.dragging {
  opacity: 0.34;
}
.drop-before {
  box-shadow: 0 -2px var(--mint);
}
.drop-end {
  box-shadow: 0 2px var(--mint);
  background: #90ffe812;
}
.invite-embed {
  width: min(418px, 100%);
  margin: 9px 0 1px;
  border-radius: 11px;
  overflow: hidden;
  background: #1f242d;
  border: 1px solid #404957;
}
.invite-embed:empty {
  display: none;
}
.invite-cover,
.brand-scene,
.launch-banner {
  background-color: #1e4050;
  background-image:
    linear-gradient(115deg, #151b2db0, #10141b19),
    var(--server-image, url("/art/friends-cover.svg"));
  background-size: cover;
  background-position: center;
}
.invite-cover {
  height: 88px;
  padding: 12px;
}
.invite-cover span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 8px;
  background: #111821c9;
  border: 1px solid #ffffff28;
  border-radius: 6px;
  color: #f0f3fa;
  font-size: 0.72rem;
}
.invite-cover .ico {
  width: 14px;
  height: 14px;
}
.invite-content {
  padding: 10px 12px 12px;
  display: grid;
  grid-template-columns: 43px minmax(0, 1fr) auto;
  align-items: center;
  gap: 9px;
}
.invite-content img {
  width: 43px;
  height: 43px;
  border-radius: 9px;
  object-fit: cover;
}
.invite-content strong,
.invite-content small {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.invite-content strong {
  font-size: 0.9rem;
}
.invite-content small {
  font-size: 0.68rem;
  margin-top: 5px;
}
.invite-content small i {
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #83e5bb;
  margin-right: 4px;
}
.invite-content small i + i {
  background: #9ba4b1;
  margin-left: 7px;
}
.invite-content button {
  padding: 8px 10px;
  font-size: 0.76rem;
}
.invite-expired,
.readonly-composer {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 12px;
  color: var(--sub);
  font-size: 0.84rem;
}
.readonly-composer {
  border: 1px solid var(--edge);
  background: var(--sheet);
  border-radius: 8px;
}
.launch-banner {
  border-radius: 9px;
  padding: 18px;
  min-height: 112px;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
}
.launch-banner h3 {
  font-size: 1.5rem !important;
  margin: 0 !important;
  letter-spacing: -0.055em;
}
.launch-banner p {
  font-size: 0.79rem;
  max-width: 240px;
  color: #d5deed;
  margin: 6px 0 0;
}
.launch-upload {
  grid-template-columns: 54px 1fr;
  align-items: center;
  gap: 12px !important;
  cursor: pointer;
}
.launch-upload > span:first-child {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border-radius: 13px;
  border: 1px dashed #77818e;
  background: #272f38;
  color: var(--mint);
  overflow: hidden;
}
.launch-upload img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.launch-upload small {
  display: block;
  margin-top: 5px;
}
.launch-upload input,
.art-file input {
  position: absolute !important;
  width: 1px !important;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}
.launch-upload:focus-within,
.art-file:focus-within {
  outline: 2px solid var(--mint);
}
.launch-themes summary {
  cursor: pointer;
  color: var(--sub);
  font-size: 0.8rem;
  margin: 5px 0 10px;
}
.server-brand-field {
  border: 1px solid var(--edge);
  border-radius: 12px;
  overflow: hidden;
  background: var(--sheet);
  margin-bottom: 18px;
}
.brand-scene {
  height: 155px;
  position: relative;
  background-position: 50% 40%;
}
.brand-logo {
  position: absolute;
  bottom: -22px;
  left: 16px;
  background: var(--sheet);
  border-radius: 15px;
  padding: 4px;
  width: 70px;
  height: 70px;
}
.brand-logo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 12px;
}
.server-brand-controls {
  padding: 34px 16px 16px;
  display: flex;
  flex-wrap: wrap;
  gap: 17px;
}
.server-brand-controls > div {
  flex: 1;
  min-width: 170px;
}
.server-brand-controls strong,
.server-brand-controls small {
  display: block;
  margin-bottom: 7px;
}
.server-brand-controls small {
  font-size: 0.75rem;
}
.art-file {
  cursor: pointer;
}
.text-action {
  color: var(--sub);
}
.image-hero {
  background:
    linear-gradient(90deg, #141922ef, #10141a33),
    var(--server-image) center/cover;
}
.image-hero:after {
  display: none;
}
.image-hero h2,
.image-hero p,
.image-hero .kicker {
  color: #f2f6ff;
}
.rules-layout {
  display: grid;
  grid-template-columns: 158px minmax(0, 1fr);
  gap: 14px;
}
.rules-roles {
  display: grid;
  align-content: start;
  gap: 5px;
  padding-top: 10px;
}
.rules-roles button {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 9px;
  text-align: left;
  font-size: 0.8rem;
  border-radius: 7px;
  background: var(--sheet);
}
.rules-roles .active {
  background: #34514b;
  color: #b0ffe4;
}
.rule-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  font-size: 0.83rem;
}
.rule-switch {
  display: flex;
  gap: 2px;
  flex: none;
}
.rule-switch button {
  display: grid;
  place-items: center;
  width: 37px;
  height: 30px;
  border-radius: 4px;
  background: #313644;
  color: #afb8c7;
}
.rule-switch .ico {
  width: 15px;
}
.rule-0[aria-pressed="true"] {
  background: #7d3e4b;
  color: #ffe3e7;
}
.rule-1[aria-pressed="true"] {
  background: #535c70;
  color: white;
}
.rule-2[aria-pressed="true"] {
  background: #28604e;
  color: #d6ffef;
}
.rule-legend {
  display: flex;
  justify-content: flex-end;
  gap: 9px;
  font-size: 0.64rem;
  color: var(--sub);
}
@media (max-width: 800px) {
  .channel-row > .iconbtn {
    opacity: 1;
  }
}
@media (max-width: 700px) {
  .rules-layout {
    grid-template-columns: 1fr;
  }
  .rules-roles {
    display: flex;
    flex-wrap: wrap;
  }
  .rule-switch button {
    width: 32px;
  }
  .invite-content {
    grid-template-columns: 33px minmax(0, 1fr) auto;
  }
  .invite-content img {
    width: 33px;
    height: 33px;
  }
  .invite-cover {
    height: 70px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .image-hero,
  .invite-cover,
  .brand-scene,
  .server-sidebar-banner {
    background-image: linear-gradient(115deg, #223b4b, #294835);
  }
}
.quiet-motion .image-hero,
.quiet-motion .invite-cover,
.quiet-motion .brand-scene,
.quiet-motion .server-sidebar-banner {
  background-image: linear-gradient(115deg, #223b4b, #294835);
}

.context-menu {
  width: min(230px, calc(100vw - 16px));
  max-height: calc(100dvh - 20px);
  overflow: auto;
}
.context-title {
  padding: 7px 10px 8px;
  color: #aeb8c8;
  font-size: 0.7rem;
  font-weight: 650;
  white-space: nowrap;
  text-overflow: ellipsis;
  overflow: hidden;
  border-bottom: 1px solid #414752;
  margin-bottom: 3px;
}
.context-menu button:first-of-type {
  color: var(--fg);
}
.context-menu button.leave-menu {
  color: #ff9aaf;
  border-top: 1px solid #414752;
  margin-top: 3px;
}
.context-menu button:focus-visible {
  outline-offset: -2px;
}
