.composer-ico.is-on {
  color: #5865f2;
}
.composer-ico:not(:disabled):hover .composer-gif-label {
  color: #dbdee1;
  border-color: #dbdee1;
}
.composer-ico.is-on .composer-gif-label {
  color: #5865f2;
  border-color: #5865f2;
}

.msg img.attach.sticker {
  max-width: 160px;
  max-height: 160px;
  background: transparent;
}
.inline-emoji {
  width: 1.375rem;
  height: 1.375rem;
  object-fit: contain;
  vertical-align: -0.25rem;
}

.expr-picker {
  position: fixed;
  z-index: 80;
  width: 428px;
  height: 420px;
  background: #2b2d31;
  border-radius: 8px;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.16), 0 8px 16px rgba(0, 0, 0, 0.24);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  color: #dbdee1;
  font-size: 14px;
}
.expr-picker.hidden {
  display: none !important;
}
.expr-head {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 12px 8px;
}
.expr-search {
  flex: 1;
  height: 34px;
  border: none;
  border-radius: 4px;
  background: #1e1f22;
  color: #dbdee1;
  padding: 0 10px;
  font: inherit;
  outline: none;
}
.expr-search::placeholder {
  color: #949ba4;
}
.expr-tabs {
  display: flex;
  gap: 4px;
}
.expr-tab {
  width: 32px;
  height: 32px;
  border: none;
  border-radius: 4px;
  background: transparent;
  color: #b5bac1;
  cursor: pointer;
  display: grid;
  place-items: center;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.02em;
}
.expr-tab:hover,
.expr-tab.on {
  color: #fff;
  background: #3f4147;
}
.expr-tab.on {
  color: #fff;
}
.expr-body {
  flex: 1;
  min-height: 0;
  display: flex;
  overflow: hidden;
}
.expr-rail {
  width: 48px;
  flex-shrink: 0;
  overflow-y: auto;
  background: #232428;
  padding: 8px 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  scrollbar-width: none;
  -ms-overflow-style: none;
}
.expr-rail::-webkit-scrollbar {
  width: 0;
  height: 0;
  display: none;
}
.expr-rail button {
  width: 32px;
  height: 32px;
  border: none;
  border-radius: 8px;
  background: transparent;
  cursor: pointer;
  font-size: 18px;
  line-height: 1;
}
.expr-rail button.on,
.expr-rail button:hover {
  background: #3f4147;
}
.expr-scroll {
  flex: 1;
  overflow-y: auto;
  padding: 8px 12px 12px;
  scrollbar-width: none;
  -ms-overflow-style: none;
}
.expr-scroll::-webkit-scrollbar {
  width: 0;
  height: 0;
  display: none;
}
.expr-section {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  color: #949ba4;
  letter-spacing: 0.02em;
  margin: 8px 0 6px;
}
.expr-emoji-grid {
  display: grid;
  grid-template-columns: repeat(9, 1fr);
  gap: 2px;
}
.expr-emoji-grid button {
  height: 36px;
  border: none;
  border-radius: 4px;
  background: transparent;
  cursor: pointer;
  font-size: 22px;
  line-height: 1;
  padding: 0;
}
.expr-emoji-grid button:hover {
  background: #3f4147;
}
.expr-emoji-grid img {
  width: 28px;
  height: 28px;
  object-fit: contain;
}
.expr-gif-grid {
  columns: 2;
  column-gap: 8px;
}
.expr-gif-grid button {
  display: block;
  width: 100%;
  margin: 0 0 8px;
  padding: 0;
  border: none;
  background: transparent;
  cursor: pointer;
  break-inside: avoid;
}
.expr-gif-grid img {
  width: 100%;
  border-radius: 8px;
  display: block;
  background: #1e1f22;
}
.expr-gif-grid button:hover img {
  outline: 2px solid #5865f2;
  outline-offset: -2px;
}
.expr-cats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}
.expr-cat {
  position: relative;
  height: 88px;
  border: none;
  border-radius: 8px;
  color: #fff;
  font-weight: 700;
  cursor: pointer;
  background: #3f4147;
  text-align: left;
  padding: 0 12px;
  overflow: hidden;
  display: flex;
  align-items: flex-end;
  padding-bottom: 10px;
}
.expr-cat .cat-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  pointer-events: none;
}
.expr-cat::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(transparent 30%, rgba(0, 0, 0, 0.72));
  pointer-events: none;
}
.expr-cat span {
  position: relative;
  z-index: 1;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.8);
}
.expr-cat.cat-custom {
  background: #5865f2;
}
.expr-cat.cat-public {
  background: #3ba55d;
}
.gif-toolbar {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
}
.gif-toolbar .expr-section {
  flex: 1;
}
.gif-back {
  width: 28px;
  height: 28px;
  border: none;
  border-radius: 4px;
  background: #1e1f22;
  color: #dbdee1;
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
}
.gif-add-btn {
  background: #5865f2;
  color: #fff;
  border: none;
  border-radius: 4px;
  padding: 6px 10px;
  font-weight: 600;
  font-size: 12px;
  cursor: pointer;
}
.gif-add-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
  display: grid;
  place-items: center;
  z-index: 5;
}
.gif-add-overlay.hidden {
  display: none !important;
}
.gif-add-card {
  width: 280px;
  background: #313338;
  border-radius: 8px;
  padding: 14px;
  display: grid;
  gap: 8px;
}
.gif-add-card h3 {
  margin: 0;
  font-size: 16px;
  color: #fff;
}
.gif-add-url {
  height: 34px;
  border: none;
  border-radius: 4px;
  background: #1e1f22;
  color: #dbdee1;
  padding: 0 10px;
  font: inherit;
  outline: none;
}
.gif-add-file-lab {
  font-size: 12px;
  color: #949ba4;
  display: grid;
  gap: 4px;
}
.gif-add-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
}
.gif-add-cancel,
.gif-add-save {
  border: none;
  border-radius: 3px;
  padding: 8px 12px;
  cursor: pointer;
  font-weight: 500;
}
.gif-add-cancel {
  background: transparent;
  color: #dbdee1;
}
.gif-add-save {
  background: #5865f2;
  color: #fff;
}
.expr-stickers {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}
.expr-stickers button {
  border: none;
  background: #1e1f22;
  border-radius: 8px;
  aspect-ratio: 1;
  cursor: pointer;
  font-size: 56px;
  line-height: 1;
  padding: 8px;
}
.expr-stickers button:hover {
  background: #3f4147;
}
.expr-stickers img {
  width: 96px;
  height: 96px;
  object-fit: contain;
}
.expr-empty {
  color: #949ba4;
  text-align: center;
  padding: 40px 16px;
}
.expr-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 6px 12px 8px;
  border-top: 1px solid #1e1f22;
  color: #949ba4;
  font-size: 11px;
}
.expr-skins {
  display: flex;
  gap: 4px;
}
.expr-skins button {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 2px solid transparent;
  cursor: pointer;
  padding: 0;
}
.expr-skins button.on {
  border-color: #fff;
}

.apps-pop {
  position: fixed;
  z-index: 81;
  width: 340px;
  max-height: 420px;
  background: #2b2d31;
  border-radius: 8px;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.16), 0 8px 16px rgba(0, 0, 0, 0.24);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.apps-pop.hidden {
  display: none !important;
}
.apps-pop h3 {
  margin: 0;
  padding: 12px 14px 4px;
  font-size: 12px;
  text-transform: uppercase;
  color: #949ba4;
  letter-spacing: 0.02em;
}
.apps-search {
  margin: 8px 12px 4px;
  height: 32px;
  border: none;
  border-radius: 4px;
  background: #1e1f22;
  color: #dbdee1;
  padding: 0 10px;
  font: inherit;
  outline: none;
}
.apps-list {
  overflow-y: auto;
  padding: 6px 8px 10px;
  scrollbar-width: none;
  -ms-overflow-style: none;
}
.apps-list::-webkit-scrollbar {
  width: 0;
  height: 0;
  display: none;
}
.apps-row {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  border: none;
  background: transparent;
  color: #dbdee1;
  text-align: left;
  padding: 8px;
  border-radius: 4px;
  cursor: pointer;
  font: inherit;
}
.apps-row:hover {
  background: #3f4147;
}
.apps-ico {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  display: grid;
  place-items: center;
  font-size: 18px;
  background: #5865f2;
  flex-shrink: 0;
}

.gift-overlay {
  position: fixed;
  inset: 0;
  z-index: 10020;
  background: rgba(0, 0, 0, 0.7);
  display: grid;
  place-items: center;
}
.gift-overlay.hidden {
  display: none !important;
}
.gift-panel {
  width: 440px;
  max-width: calc(100vw - 32px);
  background: #313338;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
}
.gift-panel header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 16px 8px;
}
.gift-panel header h2 {
  margin: 0;
  font-size: 20px;
  color: #f2f3f5;
}
.gift-close {
  border: none;
  background: transparent;
  color: #b5bac1;
  font-size: 20px;
  cursor: pointer;
}
.gift-cards {
  padding: 8px 16px 16px;
  display: grid;
  gap: 10px;
}
.gift-sku {
  display: flex;
  gap: 12px;
  align-items: center;
  width: 100%;
  border: 1px solid #3f4147;
  background: #2b2d31;
  border-radius: 8px;
  padding: 12px;
  color: #dbdee1;
  cursor: pointer;
  text-align: left;
  font: inherit;
}
.gift-sku:hover,
.gift-sku.on {
  border-color: #5865f2;
}
.gift-sku-art {
  width: 48px;
  height: 48px;
  border-radius: 8px;
  display: grid;
  place-items: center;
  font-size: 24px;
  background: linear-gradient(135deg, #8547c6, #b359f3);
}
.gift-sku-art.basic {
  background: linear-gradient(135deg, #5865f2, #3e70dd);
}
.gift-sku strong {
  display: block;
  color: #fff;
}
.gift-sku span {
  color: #949ba4;
  font-size: 13px;
}
.gift-panel footer {
  padding: 0 16px 16px;
  display: flex;
  justify-content: flex-end;
  gap: 8px;
}
.gift-send {
  background: #5865f2;
  color: #fff;
  border: none;
  border-radius: 3px;
  padding: 10px 16px;
  font-weight: 500;
  cursor: pointer;
}
.gift-send:hover {
  background: #4752c4;
}

.nitro-gift {
  margin-top: 8px;
  width: 280px;
  border-radius: 8px;
  overflow: hidden;
  background: #2b2d31;
  border: 1px solid #1e1f22;
}
.nitro-gift-art {
  height: 88px;
  display: grid;
  place-items: center;
  font-size: 40px;
  background: linear-gradient(135deg, #8547c6, #5865f2);
}
.nitro-gift-copy {
  padding: 12px;
}
.nitro-gift-kicker {
  font-size: 12px;
  color: #949ba4;
  text-transform: uppercase;
  font-weight: 700;
}
.nitro-gift-title {
  font-size: 20px;
  font-weight: 700;
  color: #fff;
}
.nitro-gift-sub {
  color: #949ba4;
  font-size: 12px;
  margin: 4px 0 10px;
}
.nitro-gift-accept,
.activity-join {
  background: #248046;
  color: #fff;
  border: none;
  border-radius: 3px;
  padding: 8px 14px;
  font-weight: 500;
  cursor: pointer;
}
.nitro-gift-accept:disabled {
  background: #3f4147;
  cursor: default;
}
.activity-invite {
  margin-top: 8px;
  width: 280px;
  display: flex;
  gap: 12px;
  padding: 12px;
  background: #2b2d31;
  border-radius: 8px;
  border: 1px solid #1e1f22;
}
.activity-invite-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: #5865f2;
  display: grid;
  place-items: center;
  font-size: 22px;
}
.activity-invite-name {
  font-weight: 700;
  color: #fff;
}
.activity-invite-sub {
  color: #949ba4;
  font-size: 12px;
  margin-bottom: 8px;
}

.activity-overlay {
  position: fixed;
  inset: 0;
  z-index: 10025;
  background: rgba(0, 0, 0, 0.72);
  display: flex;
  flex-direction: column;
}
.activity-overlay.hidden {
  display: none !important;
}
.activity-overlay-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 16px;
  background: #1e1f22;
  color: #fff;
}
.activity-overlay iframe {
  flex: 1;
  border: 0;
  background: #000;
}

@media (max-width: 520px) {
  .expr-picker,
  .apps-pop {
    width: calc(100vw - 16px);
    left: 8px !important;
    right: 8px;
  }
}
