* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  min-height: 100vh;
  padding: 20px;
}

.container {
  max-width: 1000px;
  margin: 0 auto;
  background: white;
  border-radius: 16px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  height: calc(100vh - 40px);
  max-height: 1000px;
}

header {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  padding: 20px 30px;
  text-align: center;
  flex-shrink: 0;
}

header h1 {
  font-size: 1.5rem;
  margin-bottom: 4px;
}

.subtitle {
  opacity: 0.9;
  font-size: 0.875rem;
}

.version-badge {
  display: inline-block;
  background: rgba(255, 255, 255, 0.2);
  padding: 2px 8px;
  border-radius: 12px;
  font-size: 0.75rem;
  margin-left: 8px;
  font-weight: 500;
}

.section {
  padding: 20px;
}

.hidden {
  display: none !important;
}

.auth-form {
  text-align: center;
  max-width: 300px;
  margin: 0 auto;
}

.auth-form h2 {
  margin-bottom: 20px;
  color: #333;
  font-size: 1.25rem;
}

.auth-form input {
  width: 100%;
  padding: 14px 16px;
  border: 2px solid #ddd;
  border-radius: 8px;
  font-size: 1rem;
  margin-bottom: 15px;
  text-align: center;
}

.auth-form input:focus {
  outline: none;
  border-color: #667eea;
}

.auth-form .btn {
  width: 100%;
}

.login-duration-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 5px;
  margin-bottom: 20px;
  gap: 8px;
  font-size: 0.85rem;
  color: #555;
  text-align: left;
  width: 100%;
}

.checkbox-label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  user-select: none;
  white-space: nowrap;
}

.checkbox-label input[type="checkbox"] {
  width: 15px;
  height: 15px;
  margin: 0;
  cursor: pointer;
}

.login-duration-select {
  padding: 6px 24px 6px 10px;
  border: 1px solid #ddd;
  border-radius: 8px;
  background-color: #fff;
  font-size: 0.85rem;
  outline: none;
  cursor: pointer;
  transition: all 0.2s ease;
  width: 110px;
  height: 32px;
  box-sizing: border-box;
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  background-image: url("data:image/svg+xml;charset=UTF-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23888888' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 8px center;
  background-size: 14px;
}

.login-duration-select:disabled {
  background-color: #f5f5f5;
  color: #aaa;
  cursor: not-allowed;
  background-image: url("data:image/svg+xml;charset=UTF-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23cccccc' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
}

.login-duration-select:focus {
  border-color: #667eea;
  box-shadow: 0 0 0 2px rgba(102, 126, 234, 0.1);
}

.error-msg {
  color: #ff4757;
  font-size: 0.875rem;
  margin-top: 10px;
}

#chat-section {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: 0;
  overflow: hidden;
}

.tabs {
  display: flex;
  background: #f1f3f5;
  padding: 6px;
  border-bottom: 1px solid #e9ecef;
  flex-shrink: 0;
  gap: 4px;
}

.tab {
  padding: 8px 20px;
  background: transparent;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  font-size: 0.9rem;
  font-weight: 500;
  color: #495057;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  flex: 1;
  text-align: center;
}

.tab:hover {
  color: #212529;
  background: rgba(0, 0, 0, 0.05);
}

.tab.active {
  color: #667eea;
  background: white;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.tab-panel {
  display: none;
  flex: 1;
  overflow: hidden;
}

.tab-panel.active {
  display: flex;
}

.chat-container {
  display: flex;
  flex-direction: column;
  flex: 1;
  overflow: hidden;
}

.favorites-container {
  padding: 15px;
}

.messages-list {
  flex: 1;
  overflow-y: auto;
  padding: 15px;
  background: #f8f9fa;
}

.messages-top-loading {
  padding: 8px 15px 0;
  font-size: 0.8rem;
  color: #777;
}

.messages-loading {
  text-align: center;
  padding: 40px 20px;
  color: #888;
  font-size: 0.95rem;
}

.message {
  background: white;
  border-radius: 12px;
  padding: 12px 15px;
  margin-bottom: 10px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  position: relative;
  animation: slideIn 0.2s ease;
}

@keyframes slideIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}



.message.favorited {
  border: 2px solid #667eea;
  background: linear-gradient(135deg, rgba(102, 126, 234, 0.05) 0%, rgba(118, 75, 162, 0.05) 100%);
}

.message-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}

.message-time {
  font-size: 0.75rem;
  color: #999;
}

.message-share-btn {
  background: transparent;
  border: none;
  padding: 4px;
  cursor: pointer;
  color: #999;
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
  opacity: 0;
  pointer-events: none;
}

.message:hover .message-share-btn {
  opacity: 1;
  pointer-events: auto;
}

.message-share-btn:hover {
  background: #f0f0f0;
  color: #667eea;
}

.message-favorite-action {
  display: flex;
  align-items: center;
  gap: 4px;
}

.message-favorite-action.active {
  background: #fff9db !important;
  color: #f08c00 !important;
  border-color: #ffe066 !important;
}

.message-favorite-action.active:hover {
  background: #fff3bf !important;
}

.message-delete-action {
  background: #ff4757;
  color: white;
  border: none;
  border-radius: 6px;
  padding: 4px 12px;
  font-size: 0.75rem;
  cursor: pointer;
  transition: opacity 0.2s, transform 0.2s, background-color 0.2s;
  margin-left: auto;
  font-weight: 500;
  opacity: 0;
  pointer-events: none;
}

.message:hover .message-delete-action {
  opacity: 1;
  pointer-events: auto;
}

.message-delete-action:hover {
  background: #ff3344;
  transform: translateY(-1px);
  box-shadow: 0 2px 6px rgba(255, 71, 87, 0.3);
}

.message-content {
  word-break: break-word;
  white-space: pre-wrap;
}

.message-content.text {
  font-size: 0.95rem;
  line-height: 1.5;
  color: #333;
}

.message-content.file {
  border: 1px solid #ececec;
  background: #fafafa;
  border-radius: 6px;
  padding: 6px 8px;
  white-space: normal;
  display: flex;
  flex-direction: column;
  gap: 2px;
  line-height: 1.25;
}

.file-name {
  font-size: 0.85rem;
  color: #333;
  font-weight: 600;
  word-break: break-all;
  line-height: 1.2;
}

.file-meta {
  margin-top: 2px;
  font-size: 0.72rem;
  color: #777;
}

.message-content.image img {
  max-width: 100%;
  max-height: 300px;
  border-radius: 8px;
  cursor: pointer;
  transition: transform 0.2s;
}

.message-image.loading {
  visibility: hidden;
}

.image-placeholder {
  min-height: 120px;
  border-radius: 8px;
  background: linear-gradient(90deg, #efefef, #e5e5e5, #efefef);
  background-size: 200% 100%;
  animation: shimmer 1.4s infinite;
  color: #666;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
}

.message-content.image img:hover {
  transform: scale(1.02);
}

.message-actions {
  margin-top: 8px;
  display: flex;
  justify-content: flex-start;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.message-actions .message-delete-action {
  margin-left: auto;
}

.message-actions .btn {
  padding: 4px 10px;
  font-size: 0.75rem;
}

.input-area {
  padding: 15px;
  background: white;
  border-top: 1px solid #eee;
  flex-shrink: 0;
  position: relative;
}

.input-area.drag-over {
  background: #f0f7ff;
}

.drop-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(102, 126, 234, 0.1);
  border: 2px dashed #667eea;
  border-radius: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
  pointer-events: none;
}

.drop-overlay.hidden {
  display: none;
}

.drop-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.drop-icon {
  font-size: 2rem;
}

.drop-text {
  color: #667eea;
  font-size: 0.95rem;
  font-weight: 500;
}

.upload-progress-container {
  display: flex;
  flex-direction: column;
  gap: 6px;
  width: 100%;
  order: -1;
}

.upload-progress-bar {
  height: 8px;
  background: #e9ecef;
  border-radius: 4px;
  overflow: hidden;
}

.upload-progress-fill {
  height: 100%;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  border-radius: 4px;
  transition: width 0.15s ease;
  width: 0%;
}

.upload-progress-info {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.75rem;
  color: #666;
}

.upload-progress-text {
  flex: 1;
}

.upload-progress-percent {
  font-weight: 500;
}

.upload-progress-cancel {
  background: #ff4757;
  color: white;
  border: none;
  border-radius: 4px;
  padding: 2px 8px;
  font-size: 0.7rem;
  cursor: pointer;
  margin-left: 8px;
}

.upload-progress-cancel:hover {
  background: #ff3344;
}

.input-row {
  display: flex;
  gap: 8px;
  align-items: flex-end;
}

#text-input {
  flex: 1;
  padding: 10px 14px;
  border: 2px solid #eee;
  border-radius: 8px;
  font-size: 0.95rem;
  resize: none;
  font-family: inherit;
  max-height: 100px;
  line-height: 1.4;
}

#text-input:focus {
  outline: none;
  border-color: #667eea;
}

.input-row .btn {
  padding: 10px 16px;
  flex-shrink: 0;
}

.upload-btn {
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.action-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-start;
  align-items: center;
  gap: 8px;
  margin-top: 10px;
}

.processing-state {
  font-size: 0.8rem;
  color: #666;
}

#clear-all {
  margin-left: auto;
}

.btn {
  padding: 12px 24px;
  border: none;
  border-radius: 8px;
  font-size: 1rem;
  cursor: pointer;
  transition: all 0.3s ease;
  font-weight: 500;
}

.btn-primary {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
}

.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
}

.btn-secondary {
  background: #f0f0f0;
  color: #333;
}

.btn-secondary:hover {
  background: #e0e0e0;
}

.btn-danger {
  background: #ff4757;
  color: white;
}

.btn-danger:hover {
  background: #ff3344;
}

.btn-danger:disabled {
  background: #ccc;
  cursor: not-allowed;
}

.btn-small {
  padding: 6px 12px;
  font-size: 0.8rem;
}

.status-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  padding: 10px 15px;
  background: #f8f9fa;
  border-top: 1px solid #eee;
  font-size: 0.8rem;
  color: #666;
  flex-shrink: 0;
}

.status-bar-left {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.status-bar-right {
  display: flex;
  align-items: center;
  gap: 8px;
}

.status {
  padding: 3px 10px;
  border-radius: 20px;
  font-size: 0.7rem;
}

#logout-btn {
  padding: 4px 10px;
  font-size: 0.75rem;
}

.status.connected {
  background: #d4edda;
  color: #155724;
}

.status.disconnected {
  background: #f8d7da;
  color: #721c24;
}

.toast {
  position: fixed;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  background: #333;
  color: white;
  padding: 12px 24px;
  border-radius: 8px;
  z-index: 4000;
  animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateX(-50%) translateY(20px);
  }

  to {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
  }
}

@keyframes shimmer {
  0% {
    background-position: 200% 0;
  }

  100% {
    background-position: -200% 0;
  }
}

.empty-state {
  text-align: center;
  padding: 40px 20px;
  color: #999;
}

.empty-state p {
  font-size: 0.95rem;
}

.modal {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2000;
  animation: modalFadeIn 0.2s ease;
}

@keyframes modalFadeIn {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

.modal-content {
  background: white;
  padding: 24px;
  border-radius: 12px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
  text-align: center;
  max-width: 320px;
  width: 90%;
  animation: modalSlideIn 0.2s ease;
}

@keyframes modalSlideIn {
  from {
    transform: scale(0.9);
    opacity: 0;
  }

  to {
    transform: scale(1);
    opacity: 1;
  }
}

.modal-content p {
  font-size: 1rem;
  color: #333;
  margin-bottom: 20px;
}

.modal-actions {
  display: flex;
  gap: 12px;
  justify-content: center;
}

.modal-actions .btn {
  min-width: 80px;
}

@media (max-width: 600px) {
  body {
    padding: 0;
  }

  .container {
    border-radius: 0;
    height: 100vh;
    max-height: none;
  }

  header {
    padding: 15px;
  }

  header h1 {
    font-size: 1.25rem;
  }

  .input-row .btn {
    padding: 10px 12px;
  }

  .action-row {
    flex-wrap: wrap;
    gap: 8px;
  }

  .status-bar {
    padding: 8px 12px;
  }

  .status-bar-left {
    font-size: 0.75rem;
    gap: 6px;
  }

  #message-count {
    display: none;
  }

  #expire-info {
    display: none;
  }

  .share-list-item {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }

  .share-list-item-actions {
    width: 100%;
    justify-content: flex-end;
  }
}

/* ========== 分享创建弹窗 ========== */
.share-modal-content {
  min-width: 360px;
  max-width: 480px;
}

.share-modal-title {
  margin: 0 0 20px 0;
  font-size: 1.25rem;
  text-align: center;
  color: #333;
}

.share-form-group {
  margin-bottom: 16px;
}

.share-form-group label {
  display: block;
  margin-bottom: 6px;
  font-size: 0.9rem;
  color: #666;
}

.share-select,
.share-input {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid #ddd;
  border-radius: 8px;
  font-size: 1rem;
  background: #fff;
  transition: border-color 0.2s;
}

.share-select:focus,
.share-input:focus {
  outline: none;
  border-color: #667eea;
}

.share-actions {
  display: flex;
  gap: 12px;
  margin-top: 24px;
  justify-content: center;
}

.share-result {
  margin-top: 20px;
}

.share-link-container {
  display: flex;
  gap: 8px;
}

.share-link-input {
  flex: 1;
  padding: 10px 12px;
  border: 1px solid #ddd;
  border-radius: 8px;
  font-size: 0.9rem;
  background: #f5f5f5;
}

.share-info {
  margin-top: 12px;
  font-size: 0.85rem;
  color: #666;
  text-align: center;
}

/* ========== 分享详情页 ========== */
.share-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.share-card {
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
  width: 100%;
  max-width: 720px;
  overflow: hidden;
}

.share-header {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: #fff;
  padding: 28px;
  text-align: center;
}

.share-header h1 {
  margin: 0;
  font-size: 1.6rem;
  font-weight: 600;
}

.share-loading {
  padding: 60px 24px;
  text-align: center;
}

.share-spinner {
  width: 40px;
  height: 40px;
  border: 3px solid #f3f3f3;
  border-top: 3px solid #667eea;
  border-radius: 50%;
  margin: 0 auto 16px;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  0% {
    transform: rotate(0deg);
  }

  100% {
    transform: rotate(360deg);
  }
}

.share-loading p {
  margin: 0;
  color: #666;
}

.share-error {
  padding: 60px 24px;
  text-align: center;
}

.share-error-icon {
  font-size: 48px;
  margin-bottom: 16px;
}

.share-error p {
  margin: 0 0 24px 0;
  color: #666;
  font-size: 1.1rem;
}

.share-password-section {
  padding: 40px 24px;
  text-align: center;
}

.share-password-hint {
  margin: 0 0 20px 0;
  color: #666;
  font-size: 1rem;
}

.share-password-form {
  display: flex;
  gap: 12px;
  justify-content: center;
}

.share-password-form input {
  flex: 1;
  max-width: 240px;
  padding: 12px 16px;
  border: 1px solid #ddd;
  border-radius: 8px;
  font-size: 1rem;
}

.share-password-form input:focus {
  outline: none;
  border-color: #667eea;
}

.share-content {
  padding: 24px;
}

.share-meta {
  display: flex;
  justify-content: space-between;
  margin-bottom: 16px;
  padding-bottom: 16px;
  border-bottom: 1px solid #eee;
  font-size: 0.85rem;
  color: #888;
}

.share-message {
  min-height: 100px;
}

.share-text-content {
  padding: 16px;
  background: #f8f9fa;
  border-radius: 8px;
  font-size: 1rem;
  line-height: 1.6;
  word-break: break-word;
  white-space: pre-wrap;
}

.share-action-btn {
  margin-top: 16px;
  width: 100%;
}

.share-image-container {
  text-align: center;
}

.share-image {
  max-width: 100%;
  max-height: 400px;
  border-radius: 8px;
  cursor: pointer;
  transition: transform 0.2s;
}

.share-image:hover {
  transform: scale(1.02);
}

.share-image-hint {
  margin: 12px 0 0 0;
  font-size: 0.85rem;
  color: #888;
  text-align: center;
}

.share-file-content {
  padding: 20px;
  background: #f8f9fa;
  border-radius: 8px;
  text-align: center;
}

.share-file-name {
  font-size: 1rem;
  font-weight: 500;
  color: #333;
  word-break: break-all;
}

.share-file-meta {
  margin-top: 8px;
  font-size: 0.85rem;
  color: #888;
}

.share-deleted-notice {
  padding: 24px;
  text-align: center;
  color: #e74c3c;
}

.share-deleted-notice p {
  margin: 0;
  font-size: 1rem;
}

.share-footer {
  padding: 16px 24px;
  border-top: 1px solid #eee;
  text-align: center;
}

.share-home-link {
  color: #667eea;
  text-decoration: none;
  font-size: 0.9rem;
}

.share-home-link:hover {
  text-decoration: underline;
}

/* ========== 分享列表弹窗 ========== */
.share-list-modal-content {
  min-width: 400px;
  max-width: 560px;
  max-height: 80vh;
}

.share-list-container {
  max-height: 400px;
  overflow-y: auto;
  margin-bottom: 16px;
}

.share-list-loading,
.share-list-error,
.share-list-empty {
  padding: 40px 20px;
  text-align: center;
  color: #666;
}

.share-list-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 16px;
  border: 1px solid #eee;
  border-radius: 8px;
  margin-bottom: 8px;
  background: #fafafa;
}

.share-list-item:last-child {
  margin-bottom: 0;
}

.share-list-item-info {
  flex: 1;
  min-width: 0;
}

.share-list-item-id {
  font-size: 0.9rem;
  font-weight: 500;
  color: #333;
  margin-bottom: 4px;
  font-family: monospace;
}

.share-list-item-meta {
  font-size: 0.8rem;
  color: #888;
}

.share-list-item-meta span {
  margin-right: 12px;
}

.share-list-item-actions {
  display: flex;
  gap: 8px;
  flex-shrink: 0;
}

.share-list-actions {
  display: flex;
  justify-content: center;
}

/* ========== 图片查看器 ========== */
.image-viewer {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 3000;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: modalFadeIn 0.2s ease;
}

.image-viewer-backdrop {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.85);
  cursor: pointer;
}

.image-viewer-content {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  max-width: 90vw;
  max-height: 90vh;
  z-index: 1;
}

.image-viewer-close {
  position: absolute;
  top: -40px;
  right: 0;
  width: 36px;
  height: 36px;
  background: rgba(255, 255, 255, 0.2);
  border: none;
  border-radius: 50%;
  color: white;
  font-size: 24px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
}

.image-viewer-close:hover {
  background: rgba(255, 255, 255, 0.3);
}

.image-viewer-img {
  max-width: 90vw;
  max-height: 75vh;
  border-radius: 8px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
  object-fit: contain;
}

.image-viewer-actions {
  display: flex;
  gap: 12px;
  margin-top: 16px;
}

.image-viewer-hint {
  margin-top: 12px;
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.85rem;
}

@media (max-width: 600px) {
  .image-viewer-content {
    max-width: 95vw;
    max-height: 95vh;
  }

  .image-viewer-img {
    max-width: 95vw;
    max-height: 80vh;
  }

  .image-viewer-close {
    top: -30px;
    right: -10px;
  }

  .image-viewer-actions {
    flex-wrap: wrap;
    justify-content: center;
  }
}

/* ========== 音视频及富文本样式追加 ========== */
.message-audio {
  display: block;
  width: 100%;
  margin-top: 10px;
  border-radius: 8px;
  outline: none;
}

.message-video {
  display: block;
  max-width: 100%;
  max-height: 280px;
  border-radius: 8px;
  margin-top: 10px;
  background-color: #000;
  outline: none;
}

.message-link {
  color: #667eea;
  text-decoration: none;
  font-weight: 500;
  word-break: break-all;
  border-bottom: 1px dashed rgba(102, 126, 234, 0.4);
  transition: all 0.2s;
}

.message-link:hover {
  color: #764ba2;
  border-bottom-style: solid;
}

.code-block {
  background: #f1f3f5;
  border-left: 4px solid #667eea;
  padding: 10px 14px;
  border-radius: 6px;
  font-family: 'SFMono-Regular', Consolas, 'Liberation Mono', Menlo, monospace;
  font-size: 0.875rem;
  line-height: 1.45;
  overflow-x: auto;
  margin: 8px 0;
  color: #212529;
  text-align: left;
  white-space: pre;
}

.inline-code {
  background: #f1f3f5;
  color: #d6336c;
  padding: 2px 6px;
  border-radius: 4px;
  font-family: 'SFMono-Regular', Consolas, 'Liberation Mono', Menlo, monospace;
  font-size: 0.875rem;
  font-weight: 500;
}