.message-unread-boundary {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  margin: 8px 0 12px;
  color: rgba(128, 180, 255, 0.94);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.message-unread-boundary::before,
.message-unread-boundary::after {
  content: '';
  flex: 1 1 auto;
  height: 1px;
  background: rgba(96, 156, 235, 0.35);
}

.message-unread-boundary span {
  flex: 0 0 auto;
}

.thread-cache-notice {
  flex: 0 0 auto;
  width: 100%;
  margin: 0 0 8px;
  padding: 6px 10px;
  border: 1px solid rgba(110, 139, 180, 0.24);
  border-radius: 10px;
  background: rgba(29, 43, 65, 0.42);
  color: rgba(193, 207, 229, 0.72);
  font-size: 11px;
  line-height: 1.3;
  text-align: center;
}

.thread-opening-state {
  flex: 0 0 auto;
  width: 100%;
  margin: 0 0 8px;
  padding: 10px 12px;
  border: 1px solid rgba(110, 139, 180, 0.24);
  border-radius: 10px;
  background: rgba(29, 43, 65, 0.42);
  color: rgba(193, 207, 229, 0.8);
  font-size: 12px;
  line-height: 1.35;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.thread-opening-state.is-error {
  border-color: rgba(220, 120, 110, 0.4);
  background: rgba(70, 32, 30, 0.35);
  color: rgba(235, 200, 195, 0.92);
}

.thread-opening-spinner {
  width: 12px;
  height: 12px;
  border: 2px solid rgba(110, 139, 180, 0.35);
  border-top-color: rgba(193, 207, 229, 0.9);
  border-radius: 50%;
  animation: thread-opening-spin 0.9s linear infinite;
}

.thread-retry-button {
  border: 1px solid rgba(110, 139, 180, 0.4);
  border-radius: 8px;
  background: transparent;
  color: inherit;
  font: inherit;
  font-size: 11px;
  padding: 4px 10px;
  min-height: 24px;
  cursor: pointer;
}

.thread-retry-button:hover { background: rgba(110, 139, 180, 0.16); }
.thread-retry-button:focus-visible { outline: 2px solid rgba(140, 170, 220, 0.7); outline-offset: 1px; }
