body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(circle at top left, rgba(14, 165, 233, 0.12), transparent 36%),
    linear-gradient(180deg, #f6fbff 0%, #eef6ff 100%);
  color: #14324a;
  font-family: "Noto Sans JP", "Segoe UI", sans-serif;
}

.shared-prompt-page {
  min-height: 100vh;
  padding: 1.5rem;
}

.shared-prompt-state {
  width: min(880px, 100%);
  margin: 4rem auto 0;
  padding: 1rem 1.2rem;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 18px 48px rgba(20, 50, 74, 0.12);
}

.shared-prompt-state--error {
  color: #b42318;
}

.shared-prompt-shell {
  width: min(880px, 100%);
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.shared-prompt-header,
.shared-prompt-section,
.shared-prompt-image {
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid rgba(20, 50, 74, 0.08);
  box-shadow: 0 18px 48px rgba(20, 50, 74, 0.12);
}

.shared-prompt-header {
  padding: 1.6rem;
}

.shared-prompt-header h1 {
  margin: 0.7rem 0 0;
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  line-height: 1.25;
}

.shared-prompt-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
}

.shared-prompt-pill {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  padding: 0.35rem 0.85rem;
  border-radius: 999px;
  background: rgba(14, 165, 233, 0.12);
  color: #0369a1;
  font-size: 0.82rem;
  font-weight: 700;
}

.shared-prompt-pill--media {
  background: rgba(20, 50, 74, 0.07);
  color: #36506a;
}

.shared-prompt-meta {
  margin-top: 1rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
}

.shared-prompt-meta span {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  background: rgba(20, 50, 74, 0.06);
  color: #36506a;
  font-size: 0.84rem;
}

.shared-prompt-image {
  padding: 1rem;
}

.shared-prompt-image img {
  display: block;
  width: 100%;
  border-radius: 18px;
  object-fit: cover;
}

.shared-prompt-section {
  padding: 1.3rem 1.4rem;
}

.shared-prompt-section h2 {
  margin: 0;
  font-size: 1rem;
  color: #0f4c81;
}

.md-content {
  margin: 0.8rem 0 0;
  line-height: 1.75;
  color: #173954;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.md-content > * { margin: 0.65rem 0; }
.md-content > :first-child { margin-top: 0; }
.md-content > :last-child { margin-bottom: 0; }

.md-content p { margin: 0.5rem 0; }

.md-content h1,
.md-content h2,
.md-content h3,
.md-content h4,
.md-content h5,
.md-content h6 {
  margin: 1.1rem 0 0.4rem;
  line-height: 1.35;
  font-weight: 700;
  color: #0f3a5e;
}

.md-content h1 {
  font-size: 1.35rem;
  border-bottom: 1px solid rgba(14, 165, 233, 0.2);
  padding-bottom: 0.3rem;
}
.md-content h2 { font-size: 1.15rem; }
.md-content h3 { font-size: 1rem; }

.md-content ul,
.md-content ol {
  margin: 0.5rem 0 0.5rem 1rem;
  padding-left: 0.8rem;
}

.md-content li + li { margin-top: 0.25rem; }

.md-content blockquote {
  margin: 0.65rem 0;
  padding: 0.5rem 0.9rem;
  border-left: 3px solid #0ea5e9;
  background: rgba(14, 165, 233, 0.07);
  border-radius: 0 6px 6px 0;
  color: #36506a;
  font-style: italic;
}

.md-content code {
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;
  background: rgba(14, 165, 233, 0.08);
  padding: 0.12rem 0.35rem;
  border-radius: 4px;
  font-size: 0.87em;
  color: #0369a1;
}

.md-content pre {
  margin: 0.65rem 0;
  padding: 0.9rem 1rem;
  background: #1e1e2e;
  border-radius: 8px;
  overflow-x: auto;
  line-height: 1.55;
}

.md-content pre code {
  background: transparent;
  padding: 0;
  border-radius: 0;
  color: #cdd6f4;
  font-size: 0.84rem;
}

.md-content strong { font-weight: 700; }
.md-content em { font-style: italic; }

.md-content hr {
  border: none;
  border-top: 1px solid rgba(14, 165, 233, 0.2);
  margin: 1rem 0;
}

.md-content table {
  border-collapse: collapse;
  width: 100%;
  font-size: 0.9rem;
  margin: 0.65rem 0;
}

.md-content th,
.md-content td {
  border: 1px solid rgba(14, 165, 233, 0.2);
  padding: 0.4rem 0.7rem;
  text-align: left;
}

.md-content th {
  background: rgba(14, 165, 233, 0.07);
  font-weight: 700;
}

.md-content a {
  color: #0369a1;
  text-decoration: underline;
}

@media (max-width: 640px) {
  .shared-prompt-page {
    padding: 0.9rem;
  }

  .shared-prompt-header,
  .shared-prompt-section,
  .shared-prompt-image {
    border-radius: 18px;
  }
}
