body {
  margin: 0;
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  background-color: #0b111e;
  color: #f8fafc;
  display: flex;
  flex-direction: column;
  height: 100vh;
  overflow: hidden;
}

#mainApp {
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
  height: 100vh;
  max-height: 100vh;
  overflow: hidden;
  box-sizing: border-box;
}

header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.75rem 1.5rem;
  background-color: #151f32;
  border-bottom: 1px solid #243552;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
  flex-wrap: wrap;
  gap: 0.5rem;
}

.headerTitleContainer {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-shrink: 0;
}

header h1 {
  margin: 0;
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: -0.025rem;
  background: linear-gradient(135deg, #60a5fa, #3b82f6);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.statusContainer {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background-color: #0f172a;
  padding: 0.4rem 0.8rem;
  border-radius: 20px;
  border: 1px solid #475569;
  font-size: 0.85rem;
  font-weight: 500;
}

.statusRing {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  display: inline-block;
  transition:
    background-color 0.3s ease,
    box-shadow 0.3s ease;
}

.statusIdle {
  background-color: #94a3b8;
  box-shadow: 0 0 8px #94a3b8;
}

.statusNegotiating {
  background-color: #f59e0b;
  box-shadow: 0 0 8px #f59e0b;
}

.statusConnected {
  background-color: #10b981;
  box-shadow: 0 0 8px #10b981;
}

.hidden {
  display: none !important;
}

.splashOverlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-color: rgba(15, 23, 42, 0.95);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
}

.splashCard {
  background-color: #1e293b;
  padding: 2.5rem;
  border-radius: 12px;
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.3);
  max-width: 400px;
  width: 100%;
  text-align: center;
}

.splashCard h2 {
  margin-top: 0;
  color: #f8fafc;
}

.splashCard p {
  color: #94a3b8;
  font-size: 0.9rem;
  line-height: 1.5;
  margin-bottom: 1.5rem;
}

#masterPhraseForm {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

#masterPhraseForm input {
  padding: 0.75rem;
  border-radius: 6px;
  border: 1px solid #475569;
  background-color: #0f172a;
  color: #fff;
  font-size: 1rem;
}

#masterPhraseForm button {
  padding: 0.75rem;
  border-radius: 6px;
  border: none;
  background-color: #3b83f6;
  color: #fff;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s;
}

#masterPhraseForm button:hover {
  background-color: #2563eb;
}

.signalingGrid {
  flex-shrink: 0;
  max-height: 38vh;
  overflow-y: auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  margin: 1rem;
  padding: 1rem;
  background-color: #1e293b;
  border-radius: 8px;
  border: 1px solid #334155;
}

@media (max-width: 640px) {
  .signalingGrid {
    grid-template-columns: 1fr;
    max-height: 55vh;
  }
}

.gridColum {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.gridColum h3 {
  margin: 0 0 0.25rem 0;
  font-size: 1.1rem;
  color: #3b83f6;
}

.gridColum label {
  font-size: 0.85rem;
  color: #94a3b8;
}

.gridColum textarea {
  width: 100%;
  height: 120px;
  box-sizing: border-box;
  padding: 0.5rem;
  border-radius: 6px;
  border: 1px solid #475569;
  background-color: #0f172a;
  color: #34d399;
  font-family: monospace;
  resize: none;
}

.gridColum button {
  padding: 0.6rem;
  border-radius: 6px;
  border: none;
  background-color: #10b981;
  color: #fff;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s;
}

.gridColum button:hover {
  background-color: #059669;
}

#chatLog {
  flex: 1 1 0%;
  min-height: 0;
  height: auto;
  overflow-y: auto;
  margin: 0;
  padding: 1rem;
  box-sizing: border-box;
  background-color: #0b111e;
  border: none;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  scroll-behavior: smooth;
}

#chatLog::-webkit-scrollbar {
  width: 6px;
}

#chatLog::-webkit-scrollbar-track {
  background: transparent;
}

#chatLog::-webkit-scrollbar-thumb {
  background: #243552;
  border-radius: 10px;
}

#messageForm {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin: 0;
  padding: 0.75rem 1rem;
  background-color: #151f32;
  border-top: 1px solid #243552;
  flex-wrap: nowrap;
}

#messageForm input[type="submit"] {
  flex-shrink: 0;
}

#messageForm input[type="text"] {
  flex-grow: 1;
  padding: 0.8rem 1.2rem;
  border-radius: 24px;
  border: 1px solid #243552;
  background-color: #0b111e;
  color: #f8fafc;
  font-size: 0.95rem;
  transition: all 0.2s ease;
}

#messageForm input[type="text"]:focus {
  outline: none;
  border-color: #3b82f6;
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.15);
}

#messageForm button {
  padding: 0.75rem 1.5rem;
  border-radius: 6px;
  border: none;
  background-color: #3b83f6;
  color: #fff;
  font-weight: 600;
  cursor: pointer;
}

#lockBtn {
  padding: 0.5rem 1rem;
  background-color: #ef4444;
  color: #fff;
  border-radius: 6px;
  border: none;
  font-weight: 600;
  cursor: pointer;
  flex-shrink: 0;
  white-space: nowrap;
}

#lockBtn:hover {
  background-color: #dc2626;
}

.msgRow {
  position:relative;
  display: flex;
  align-items: flex-end;
  gap: 0.5rem;
}

.msgRow.outgoing {
  justify-content: flex-end;
}

.msgRow.incoming {
  justify-content: flex-start;
}

.msgBubble {
  position: relative;
  max-width: min(65%, 480px);
  padding: 0.75rem 1.1rem;
  border-radius: 18px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  transition: transform 0.1s ease;
  word-break: break-word;
  overflow-wrap: break-word;
}

@media (max-width: 480px) {
  .msgBubble {
    max-width: 82%;
  }
}

.msgRow.outgoing .msgBubble {
  background: linear-gradient(135deg, #2563eb, #1d4ed8);
  border-bottom-right-radius: 4px;
}

.msgRow.incoming .msgBubble {
  background-color: #151f32;
  border-bottom-left-radius: 4px;
  border: 1px solid #243552;
}

.msgMeta {
  font-size: 0.7rem;
  color: rgba(248, 250, 252, 0.6);
  margin-top: 0.25rem;
  align-self: flex-end;
}

.typingBubble {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 0.8rem !important;
  background-color: #334155 !important;
}

.typingDots {
  display: flex;
  align-items: center;
  gap: 0.2rem;
  height: 10px;
}

.typingDots span {
  width: 6px;
  height: 6px;
  background-color: #94a3b8;
  border-radius: 50%;
  display: inline-block;
  animation: bounceDot 1.4s infinite ease-in-out both;
}

.typingDots span:nth-child(1) {
  animation-delay: -0.32s;
}

.typingDots span:nth-child(2) {
  animation-delay: -0.16s;
}

.typingText {
  font-size: 0.85rem;
  color: #94a3b8;
  font-style: italic;
}

@keyframes bounceDot {
  0%,
  80%,
  100% {
    transform: scale(0);
    opacity: 0.3;
  }
  40% {
    transform: scale(1);
    opacity: 1;
  }
}

.qrContainer {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.6rem;
  margin-top: 1rem;
  padding: 1rem;
  background-color: #0f172a;
  border: 1px solid #334155;
  border-radius: 12px;
  width: fit-content;
  margin-left: auto;
  margin-right: auto;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
}

.qrLabel {
  margin: 0;
  font-size: 0.75rem;
  color: #94a3b8;
  letter-spacing: 0.03em;
}

#localQrCanvas {
  width: 180px;
  height: 180px;
  display: block;
  border-radius: 8px;
  padding: 8px;
  background: #ffffff;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.qrCopyBtn {
  padding: 0.4rem 1rem;
  background-color: #1e293b;
  border: 1px solid #475569;
  border-radius: 20px;
  color: #94a3b8;
  font-size: 0.78rem;
  cursor: pointer;
  transition: all 0.2s;
  width: 100%;
}

.qrCopyBtn:hover {
  background-color: #334155;
  color: #f8fafc;
  border-color: #60a5fa;
}

#scanRemoteQrBtn {
  margin-top: 0.25rem;
  margin-bottom: 0.5rem;
  background-color: #8b5cf6 !important;
}

#scanRemoteQrBtn:hover {
  background-color: #7c3aed !important;
}

.scannerCard {
  max-width: 440px;
  width: 90%;
}

.videoWrapper {
  width: 100%;
  max-height: 320px;
  overflow: hidden;
  border-radius: 8px;
  border: 2px solid #475569;
  background-color: #000000;
  margin: 1.25rem 0;
  position: relative;
}

#scannerVideo {
  width: 100%;
  height: auto;
  display: block;
}

.cancelBtn {
  background-color: #64748b !important;
}

.cancelBtn:hover {
  background-color: #475569 !important;
}

.chatImage {
  max-width: 260px;
  max-height: 260px;
  border-radius: 8px;
  display: block;
  object-fit: contain;
  margin-top: 4px;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.chatImage:hover {
  transform: scale(1.02);
  box-shadow: 0 4px 12px rgba(52, 211, 153, 0.3);
}

.callOverlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-color: rgba(15, 23, 42, 0.95);
  z-index: 1000;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.videoCanvasContainer {
  position: relative;
  width: 90%;
  max-width: 960px;
  height: 70vh;
  background-color: #020617;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
  border: 1px solid #334155;
}

.remoteVideoCanvas {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.localVideoCanvas {
  position: absolute;
  bottom: 24px;
  right: 24px;
  width: 200px;
  height: 120px;
  object-fit: cover;
  border-radius: 8px;
  border: 2px solid #8b5cf6;
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.3);
  background-color: #1e293b;
}

.callHardwareControls {
  margin-top: 2rem;
  display: flex;
  gap: 1.5rem;
}

.callControls {
  margin-top: 2rem;
  display: flex;
  gap: 1.5rem;
}

.controlCircleBtn {
  background-color: #334155;
  border: 1px solid #475569;
  color: #f8fafc;
  padding: 0.75rem 1.5rem;
  border-radius: 30px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.controlCircleBtn:hover {
  background-color: #475569;
  transform: translateY(-2px);
}

.hangUpBtn, #endCallBtn {
  background-color: #ef4444 !important;
  border-color: #dc2626 !important;
}

.hangUpBtn:hover, #endCallBtn:hover {
  background-color: #dc2626 !important;
}

.callStatusBadge {
  position: absolute;
  top: 24px;
  left: 24px;
  background-color: rgba(15, 23, 42, 0.75);
  padding: 0.5rem 1rem;
  border-radius: 20px;
  font-size: 0.85rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  border: 1px solid #475569;
}

.pulseIcon {
  width: 8px;
  height: 8px;
  background-color: #10b981;
  border-radius: 50%;
  animation: radarPulse 1.5s infinite;
}

@keyframes radarPulse {
  0% {
    transform: scale(0.95);
    opacity: 0.5;
  }
  50% {
    transform: scale(1.1);
    opacity: 1;
  }
  100% {
    transform: scale(0.95);
    opacity: 0.5;
  }
}

#initiateCallBtn {
  /* position: absolute;
  top: 0.85rem;
  right: 8rem; */
  background-color: #10b981;
  color: #f8fafc;
  border: none;
  padding: 0.5rem 1rem;
  border-radius: 6px;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
}

#initiateCallBtn:hover {
  background-color: #059669;
}

.statusConnecting {
  background-color: #f59e0b;
  box-shadow: 0 0 8px #f59e0b;
}

.msgActions {
  display: flex;
  gap: 0.25rem;
  opacity: 0;
  transition: opacity 0.2s steps(4, end);
  background-color: #151f32;
  border: 1px solid #243552;
  border-radius: 20px;
  padding: 2px 6px;
  position: absolute;
  top: -24px;
  z-index: 10;
}

.msgRow:hover .msgActions {
  opacity: 1;
}

.msgRow.outgoing .msgActions {
  right: 12px;
}

.msgRow.incoming .msgActions {
  left: 12px;
}

.msgActionBtn {
  background: none;
  border: none;
  cursor: pointer;
  font-size: 0.85rem;
  padding: 4px;
  border-radius: 50%;
  transition: background 0.15s;
}

.msgActionBtn:hover {
  background: #243552;
}

.emojiPicker {
  position: absolute;
  background: #1e293b;
  border: 1px solid #334155;
  border-radius: 12px;
  padding: 6px 8px;
  display: flex;
  gap: 4px;
  z-index: 100;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
}

.emojiPickerBtn {
  background: none;
  border: none;
  font-size: 18px;
  cursor: pointer;
  padding: 4px;
  border-radius: 6px;
  transition: background 0.15s, transform 0.1s;
  line-height: 1;
}

.emojiPickerBtn:hover {
  background: #334155;
  transform: scale(1.2);
}

.reactionBar {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin-top: 4px;
}

.reactionChip {
  display: flex;
  align-items: center;
  gap: 3px;
  background: #0f172a;
  border: 1px solid #334155;
  border-radius: 12px;
  padding: 2px 7px;
  font-size: 13px;
  cursor: default;
  transition: border-color 0.15s;
}

.reactionChip.mine {
  border-color: #3b83f6;
  background: rgba(59, 131, 246, 0.1);
}

.reactionChip .reactionCount {
  font-size: 11px;
  color: #94a3b8;
}

.replyQuote {
  background: rgba(255, 255, 255, 0.07);
  border-left: 3px solid #3b83f6;
  border-radius: 4px;
  padding: 4px 8px;
  margin-bottom: 6px;
  font-size: 0.8rem;
  color: rgba(248, 250, 252, 0.65);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
}

#replyContextBar {
  display: none;
  align-items: center;
  gap: 8px;
  margin: 0 1rem;
  padding: 6px 10px;
  background: #1e293b;
  border: 1px solid #334155;
  border-radius: 8px;
  font-size: 0.85rem;
  color: #94a3b8;
}

#replyContextBar.active {
  display: flex;
}

#replyContextBar .replyPreview {
  flex: 1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

#replyContextBar .cancelReplyBtn {
  background: none;
  border: none;
  color: #94a3b8;
  cursor: pointer;
  font-size: 18px;
  line-height: 1;
  padding: 0 4px;
}

#replyContextBar .cancelReplyBtn:hover {
  color: #f8fafc;
}

.msgTicks {
  display: inline-flex;
  align-items: center;
  margin-left: 4px;
  font-size: 0.75rem;
  vertical-align: middle;
}

/* .msgTicks .tick {
  margin-left: 5px;
  font-size: 0.8rem;
  color: rgba(248, 250, 252, 0.6) o !important;
  transition: color 0.2s ease;
}

.msgTicks .tick.delivered {
  color: rgba(248, 250, 252, 0.9) !important;
}

.msgTicks .tick.read {
  color: #34d399 !important;
} */

.tick {
  color: #9ca3af;
  margin-left: 4px;
}

.tick.delivered {
  color: #ffffff !important;
}

.tick.read {
  color: #60a5fa !important;
}

.voiceBtn {
  padding: 0.75rem 1rem;
  border-radius: 6px;
  border: none;
  background-color: #475569;
  color: #fff;
  cursor: pointer;
  transition: all 0.2s ease;
  user-select: none;
  -webkit-user-select: none;
}

.voiceBtn.recording {
  background-color: #ef4444 !important;
  box-shadow: 0 0 12px #ef4444;
  transform: scale(1.05);
  animation: pulseRecording 1.5s infinite;
}

@keyframes pulseRecording {
  0% {
    opacity: 1;
  }
  50% {
    opacity: 0.6;
  }
  100% {
    opacity: 1;
  }
}

.voiceMessageContainer {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 6px 4px;
  min-width: 220px;
}

.voiceMessageContainer audio {
  max-width: 100%;
  height: 32px;
  outline: none;
}

.historyToolsContainer {
  display: flex;
  gap: 0.5rem;
  align-items: center;
  flex-shrink: 1;
  min-width: 0;
}

#historySearchInput {
  padding: 0.4rem 0.8rem;
  border-radius: 20px;
  border: 1px solid #475569;
  background-color: #0f172a;
  color: #f8fafc;
  font-size: 0.85rem;
  min-width: 0;
  width: clamp(100px, 20vw, 180px);
}

#exportHistoryBtn {
  padding: 0.4rem 0.8rem;
  border-radius: 20px;
  border: 1px solid #475569;
  background-color: #1e293b;
  color: #f8fafc;
  cursor: pointer;
  font-size: 0.85rem;
}

#alertContainer {
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: 10000;
  display: flex;
  flex-direction: column;
  gap: 10px;
  pointer-events: none;
}

.alertCard {
  min-width: 280px;
  max-width: 360px;
  background-color: #1e293b;
  border-left: 4px solid #3b82f6;
  color: #f8fafc;
  padding: 1rem;
  border-radius: 6px;
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.5);
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  pointer-events: auto;
  animation: slideInalert 0.25s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.alertCard.error {
  border-left-color: #ef4444;
}
.alertCard.success {
  border-left-color: #10b981;
}
.alertCard.warning {
  border-left-color: #f59e0b;
}

@keyframes slideInalert {
  from {
    transform: translateX(120%);
    opacity: 0;
  }
  to {
    transform: translateX(0);
    opacity: 1;
  }
}

.alertFadeOut {
  animation: slideOutalert 0.2s ease forwards !important;
}

@keyframes slideOutalert {
  to {
    transform: translateX(120%);
    opacity: 0;
  }
}

@media (max-width: 640px) {
  .localVideoCanvas {
    width: 110px;
    height: 70px;
    bottom: 12px;
    right: 12px;
  }
  .callControls {
    gap: 0.75rem;
    flex-wrap: wrap;
    justify-content: center;
    margin-top: 1rem;
  }
  .controlCircleBtn {
    padding: 0.6rem 1rem;
    font-size: 0.85rem;
  }
  .videoCanvasContainer {
    width: 100%;
    height: 55vh;
  }
  .splashCard {
    padding: 1.5rem;
    margin: 1rem;
  }
  header h1 {
    font-size: 1rem;
  }
  .alertCard {
    min-width: 220px;
    max-width: calc(100vw-40px);
  }
  #alertContainer {
    right: 10px;
    left: 10px;
    top: 10px;
  }
}

.incomingCallPrompt {
  position: fixed;
  inset: 0;
  background: rgba(11, 17, 30, 0.85);
  z-index: 5000;
  display: flex;
  align-items: center;
  justify-content: center;
}

.incomingCallCard {
  background: #1e293b;
  border: 1px solid #334155;
  border-radius: 16px;
  padding: 2.5rem 2rem;
  text-align: center;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  min-width: 260px;
}

.callRingIcon {
  font-size: 3rem;
  animation: ringBounce 0.6s infinite alternate;
}

@keyframes ringBounce {
  from {
    transform: rotate(-15deg) scale(1);
  }
  to {
    transform: rotate(15deg) scale(1.15);
  }
}

.callRingText {
  margin: 0;
  font-size: 1.1rem;
  font-weight: 600;
  color: #f8fafc;
}

.callPromptBtns {
  display: flex;
  gap: 1rem;
  margin-top: 0.5rem;
}

.acceptCallBtn {
  padding: 0.65rem 1.5rem;
  background: #10b981;
  color: #fff;
  border: none;
  border-radius: 24px;
  font-weight: 700;
  font-size: 0.95rem;
  cursor: pointer;
  transition: background 0.2s;
}

.acceptCallBtn:hover {
  background: #059669;
}

.rejectCallBtn {
  padding: 0.65rem 1.5rem;
  background: #ef4444;
  color: #fff;
  border: none;
  border-radius: 24px;
  font-weight: 700;
  font-size: 0.95rem;
  cursor: pointer;
  transition: background 0.2s;
}

.rejectCallBtn:hover {
  background: #dc2626;
}

.pinnedBar {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: #1e1e2e;
  border-bottom: 1px solid #333;
  padding: 0.4rem 0.75rem;
  font-size: 0.82rem;
  z-index: 10;
}

.pinnedBar.hidden {
  display: none;
}

.pinnedIcon {
  font-size: 1rem;
  flex-shrink: 0;
  opacity: 0.7;
}

.pinnedList {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  flex: 1;
  overflow: hidden;
}

.pinnedEntry {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  cursor: pointer;
  padding: 0.2rem 0.4rem;
  border-radius: 4px;
  transition: background 0.15s;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  color: #aaa;
}

.pinnedEntry:hover {
  background: rgba(255, 255, 255, 0.05);
}

.pinnedEntryText {
  flex: 1;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.pinnedEntryText::before {
  content: "📌 ";
  opacity: 0.6;
}

.unpinBtn {
  background: none;
  border: none;
  cursor: pointer;
  font-size: 0.75rem;
  opacity: 0.5;
  color: inherit;
  flex-shrink: 0;
  padding: 0 0.2rem;
}

.unpinBtn:hover {
  opacity: 1;
}

.msgBubble.isPinned {
  outline: 1px solid rgba(255, 200, 0, 0.35);
}

.linkPreviewLoading {
  font-size: 0.75rem;
  opacity: 0.4;
  padding: 0.4rem 0;
}

.linkPreviewCard {
  flex-direction: column;
  margin-top: 0.5rem;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid #333;
  background: #1a1a2e;
  text-decoration: none;
  color: inherit;
  transition: opacity 0.15s;
  max-width: 280px;
}

.linkPreviewCard:hover {
  opacity: 0.85;
}

.linkPreviewImage {
  width: 100%;
  max-height: 140px;
  object-fit: cover;
  display: block;
}

.linkPreviewText {
  padding: 0.5rem 0.65rem;
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.linkPreviewSite {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.05rem;
  opacity: 0.5;
}

.linkPreviewTitle {
  margin: 0;
  font-size: 0.82rem;
  font-weight: 600;
  line-height: 1.3;
  color: #eee;
}

.linkPreviewDesc {
  margin: 0;
  font-size: 0.75rem;
  opacity: 0.6;
  line-height: 1.4;
}