/* UPLINK // replies-pings.css — Message actions, replies, @mentions, settings toggles. */

/* ================= v4: replies / pings / files ================= */
/* message actions */
.msg .acts {
  position: absolute;
  top: 4px;
  right: 8px;
  display: flex;
  gap: 4px;
  opacity: 0;
  transition: opacity 0.1s;
}
.msg:hover .acts,
.msg:focus-within .acts {
  opacity: 1;
}
.msg .acts button {
  position: static;
  opacity: 1;
  background: var(--bg);
  border: 1px solid var(--line);
  color: var(--mute);
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.1em;
  padding: 3px 7px;
  cursor: pointer;
}
.msg .acts button:hover {
  color: var(--accent);
  border-color: var(--accent);
}
.msg .acts button.del:hover {
  color: var(--bad);
  border-color: var(--bad);
}
@media (hover: none) {
  .msg .acts {
    opacity: 0.85;
  }
}

/* reply quote on a message */
.rq {
  grid-column: 2;
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  max-width: 100%;
  background: none;
  border: 0;
  padding: 0 0 3px 14px;
  margin: 0;
  cursor: pointer;
  position: relative;
  text-align: left;
  font: inherit;
  font-size: 12px;
  color: var(--mute);
}
.rq::before {
  content: '';
  position: absolute;
  left: 0;
  top: -6px;
  width: 10px;
  height: 13px;
  border-left: 2px solid var(--rc, var(--line));
  border-top: 2px solid var(--rc, var(--line));
}
.rq b {
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 600;
  color: var(--rc);
  flex: none;
}
.rq span {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  min-width: 0;
}
.rq:hover span {
  color: var(--fg);
}
.msg.jump {
  animation: jump 1.4s steps(6);
}
@keyframes jump {
  0%,
  30% {
    background: var(--accent-dim);
    box-shadow: inset 3px 0 var(--accent);
  }
  100% {
    background: transparent;
  }
}

/* reply bar above composer */
.replybar {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 16px -1px;
  padding: 6px 8px 6px 12px;
  background: var(--panel-2);
  border: 1px solid var(--line);
  border-bottom: 0;
  font-size: 13px;
  min-width: 0;
}
.replybar .rb-k {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.14em;
  color: var(--accent);
  flex: none;
}
.replybar b {
  font-family: var(--display);
  font-weight: 800;
  font-size: 17px;
  text-transform: uppercase;
  flex: none;
}
.replybar #rbSnip {
  color: var(--mute);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  flex: 1;
  min-width: 0;
}
.replybar .icon-btn {
  width: 26px;
  height: 26px;
  font-size: 12px;
}
.replybar.flash {
  animation: glitchIn 0.35s steps(1);
}
@media (max-width: 720px) {
  .replybar {
    margin: 0 10px -1px;
  }
}

/* mentions */
.mention {
  color: var(--c, var(--accent));
  background: color-mix(in srgb, var(--c, var(--accent)) 14%, transparent);
  padding: 0 3px;
  font-weight: 600;
}
.mention.mention-me {
  color: #0b0b0c;
  background: var(--accent);
}
.mention[data-profile]:hover {
  text-decoration: underline;
}
.msg.pinged {
  background: #ff6a1312;
  border-left-color: var(--accent);
}
.msg.pinged:hover {
  background: #ff6a131c;
}
.ch .badge.ping {
  background: var(--bad);
  color: #0b0b0c;
  animation: blink 1s steps(2) 3;
}
.mpop {
  position: absolute;
  left: 16px;
  bottom: 78px;
  z-index: 13;
  width: min(300px, calc(100% - 32px));
  background: var(--panel);
  border: 1px solid #45454b;
  box-shadow: 0 14px 30px #000a;
  padding: 4px;
  animation: glitchIn 0.3s steps(1);
}
.mpop::before {
  content: 'PING // TAB TO PICK';
  display: block;
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.16em;
  color: var(--mute);
  padding: 5px 8px 6px;
}
.mpop button {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  background: none;
  border: 0;
  padding: 6px 8px;
  cursor: pointer;
  text-align: left;
}
.mpop button .avatar {
  width: 24px;
  height: 24px;
  font-size: 14px;
}
.mpop button .avatar.all {
  background: var(--fg);
}
.mpop button span {
  font-family: var(--display);
  font-weight: 800;
  font-size: 18px;
  text-transform: uppercase;
  flex: 1;
}
.mpop button small {
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.12em;
  color: var(--mute);
  text-transform: uppercase;
}
.mpop button.on,
.mpop button:hover {
  background: var(--panel-2);
  box-shadow: inset 2px 0 var(--accent);
}

/* settings toggles */
.toggles {
  display: grid;
  gap: 6px;
}
.tgl {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  width: 100%;
  background: var(--panel);
  border: 1px solid var(--line);
  padding: 11px 12px;
  cursor: pointer;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.06em;
  color: var(--fg);
  text-align: left;
}
.tgl i {
  flex: none;
  width: 38px;
  height: 18px;
  border: 1px solid var(--line);
  position: relative;
  background: var(--bg);
}
.tgl i::after {
  content: '';
  position: absolute;
  top: 2px;
  left: 2px;
  width: 12px;
  height: 12px;
  background: var(--mute);
  transition: transform 0.15s steps(3);
}
.tgl[aria-pressed='true'] i {
  border-color: var(--accent);
}
.tgl[aria-pressed='true'] i::after {
  transform: translateX(20px);
  background: var(--accent);
}
.tgl:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}
.tgl:hover:not(:disabled) {
  border-color: #45454b;
}
