.shared-chat-page {
  max-width: 920px;
  margin: 0 auto;
  padding: 1.5rem 1rem 3rem;
}

.shared-chat-breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
  color: rgba(226, 232, 240, 0.78);
  font-size: 0.94rem;
}

.shared-chat-breadcrumb-link {
  color: rgba(138, 233, 255, 0.92);
  text-decoration: none;
}

.shared-chat-breadcrumb-link:hover {
  text-decoration: underline;
}

.shared-chat-breadcrumb-separator {
  opacity: 0.5;
}

.shared-chat-breadcrumb-current {
  color: rgba(248, 250, 252, 0.94);
}

.shared-chat-alert {
  margin-bottom: 1rem;
  padding: 0.95rem 1rem;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(15, 23, 42, 0.72);
  color: rgba(248, 250, 252, 0.92);
}

.shared-chat-alert a {
  color: rgba(138, 233, 255, 0.92);
}

.shared-chat-alert.is-info {
  border-color: rgba(138, 233, 255, 0.28);
}

.shared-chat-alert.is-warning {
  border-color: rgba(252, 211, 77, 0.3);
}

.shared-chat-alert.is-error {
  border-color: rgba(255, 23, 68, 0.3);
}

.shared-chat-header {
  text-align: center;
  margin-bottom: 2rem;
}

.shared-chat-header h1 {
  margin: 0;
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1.1;
}

.shared-chat-meta {
  display: grid;
  justify-items: center;
  gap: 0.75rem;
  margin-top: 1rem;
}

.shared-chat-chip {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 0.45rem 0.8rem;
  border: 1px solid rgba(255, 255, 255, 0.18);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.shared-chat-chip.is-private {
  border-color: rgba(255, 23, 68, 0.32);
  color: rgba(255, 179, 193, 0.94);
}

.shared-chat-chip.is-public {
  border-color: rgba(138, 233, 255, 0.3);
  color: rgba(165, 243, 252, 0.92);
}

.shared-chat-updated {
  margin: 0;
  color: rgba(148, 163, 184, 0.88);
}

.shared-chat-messages {
  display: grid;
  gap: 1rem;
}

.shared-chat-message {
  border-radius: 12px;
  padding: 1rem;
  background: rgba(12, 16, 28, 0.78);
  border: 1px solid rgba(255, 23, 68, 0.18);
  color: rgba(248, 250, 252, 0.92);
}

.shared-chat-message.user {
  border-left: 3px solid rgba(255, 23, 68, 0.6);
}

.shared-chat-message.assistant {
  border-left: 3px solid rgba(138, 233, 255, 0.6);
}

.shared-chat-author {
  margin: 0 0 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.78rem;
  font-weight: 700;
  color: rgba(165, 243, 252, 0.82);
}

.shared-chat-message.user .shared-chat-author {
  color: rgba(252, 211, 77, 0.88);
}

.shared-chat-body {
  font-size: 0.95rem;
  line-height: 1.7;
  color: inherit;
}

.shared-chat-body > :first-child {
  margin-top: 0;
}

.shared-chat-body > :last-child {
  margin-bottom: 0;
}

.shared-chat-body p,
.shared-chat-body ul,
.shared-chat-body ol,
.shared-chat-body blockquote,
.shared-chat-body pre {
  margin: 0 0 0.9rem;
}

.shared-chat-body a {
  color: rgba(138, 233, 255, 0.98);
  text-decoration: underline;
  text-decoration-thickness: 0.08em;
  text-underline-offset: 0.14em;
}

.shared-chat-body code {
  font-family: "Fira Code", monospace;
  font-size: 0.9em;
  padding: 0.1rem 0.28rem;
  border-radius: 6px;
  background: rgba(15, 23, 42, 0.66);
}

.shared-chat-body pre {
  overflow-x: auto;
  padding: 0.9rem 1rem;
  border-radius: 10px;
  background: rgba(2, 6, 23, 0.92);
  border: 1px solid rgba(148, 163, 184, 0.18);
}

.shared-chat-body pre code,
.shared-chat-plain {
  display: block;
  white-space: pre-wrap;
  word-break: break-word;
  padding: 0;
  background: transparent;
}

.shared-chat-body blockquote {
  margin-left: 0;
  padding-left: 1rem;
  border-left: 3px solid rgba(148, 163, 184, 0.38);
  color: rgba(226, 232, 240, 0.88);
}

.shared-chat-body table {
  width: 100%;
  border-collapse: collapse;
}

.shared-chat-body th,
.shared-chat-body td {
  padding: 0.6rem 0.75rem;
  border: 1px solid rgba(148, 163, 184, 0.18);
  text-align: left;
}

.shared-chat-message .timestamp {
  font-size: 0.75rem;
  opacity: 0.65;
  margin-top: 0.75rem;
  color: rgba(173, 190, 212, 0.96);
}
