/* cignyl-sftp 20260824 */
/* ------------------------------ */
/* v2 Markdown (read-only viewer) */
/* ------------------------------ */

.v2-theme .v2-markdown {
  box-sizing: border-box;
  width: 100%;

  border-radius: var(--radius);
  border: 1px solid hsl(var(--border));
  background: hsl(var(--card));
  color: hsl(var(--card-foreground));
  box-shadow: 0 2px 2px 0 hsl(var(--foreground) / 0.06);

  padding: var(--v2-space-lg);

  font-size: 0.95rem;
  line-height: 1.5;
}

.v2-theme .v2-markdown--variant-muted {
  background: hsl(var(--muted));
  color: hsl(var(--foreground));
}

.v2-theme .v2-markdown__content {
  width: 100%;
}

/* Block spacing */
.v2-theme .v2-markdown__content > :first-child { margin-top: 0; }
.v2-theme .v2-markdown__content > :last-child { margin-bottom: 0; }

.v2-theme .v2-markdown__content p {
  margin: 0 0 var(--v2-space-md) 0;
}

.v2-theme .v2-markdown__content h1,
.v2-theme .v2-markdown__content h2,
.v2-theme .v2-markdown__content h3,
.v2-theme .v2-markdown__content h4,
.v2-theme .v2-markdown__content h5,
.v2-theme .v2-markdown__content h6 {
  margin: var(--v2-space-lg) 0 var(--v2-space-sm) 0;
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -0.01em;
  color: hsl(var(--foreground));
}

.v2-theme .v2-markdown__content h1 { font-size: 1.5rem; }
.v2-theme .v2-markdown__content h2 { font-size: 1.25rem; }
.v2-theme .v2-markdown__content h3 { font-size: 1.1rem; }
.v2-theme .v2-markdown__content h4 { font-size: 1.0rem; }
.v2-theme .v2-markdown__content h5 { font-size: 0.95rem; }
.v2-theme .v2-markdown__content h6 { font-size: 0.9rem; color: hsl(var(--muted-foreground)); }

.v2-theme .v2-markdown__list {
  margin: 0 0 var(--v2-space-md) 1.25rem;
  padding: 0;
}

.v2-theme .v2-markdown__list li {
  margin: 0.25rem 0;
}

.v2-theme .v2-markdown__blockquote {
  margin: 0 0 var(--v2-space-md) 0;
  padding: 0.5rem 0.75rem;
  border-left: 3px solid hsl(var(--border));
  background: hsl(var(--muted) / 0.35);
  color: hsl(var(--foreground));
  border-radius: var(--radius);
}

.v2-theme .v2-markdown__hr {
  border: none;
  height: 1px;
  background: hsl(var(--border));
  margin: var(--v2-space-lg) 0;
}

.v2-theme .v2-markdown__link {
  color: hsl(var(--primary));
  text-decoration: underline;
  text-underline-offset: 4px;
}

.v2-theme .v2-markdown__link:hover {
  color: hsl(var(--primary) / 0.85);
}

.v2-theme .v2-markdown__code-inline {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
  font-size: 0.95em;
  background: hsl(var(--muted));
  color: hsl(var(--foreground));
  padding: 0.15rem 0.35rem;
  border-radius: calc(var(--radius) - 4px);
  border: 1px solid hsl(var(--border));
}

.v2-theme .v2-markdown__pre {
  margin: 0 0 var(--v2-space-md) 0;
  padding: var(--v2-space-md);
  overflow: auto;
  border-radius: var(--radius);
  border: 1px solid hsl(var(--border));
  background: hsl(var(--muted) / 0.6);
}

.v2-theme .v2-markdown__code-block {
  display: block;
  white-space: pre;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
  font-size: 0.875rem;
  line-height: 1.45;
  color: hsl(var(--foreground));
}

.v2-theme .v2-markdown__empty {
  padding: var(--v2-space-md);
  border: 1px dashed hsl(var(--border));
  border-radius: var(--radius);
  background: hsl(var(--muted) / 0.25);
  color: hsl(var(--muted-foreground));
}

