/*
 * This is a manifest file that'll be compiled into application.css.
 *
 * With Propshaft, assets are served efficiently without preprocessing steps. You can still include
 * application-wide styles in this file, but keep in mind that CSS precedence will follow the standard
 * cascading order, meaning styles declared later in the document or manifest will override earlier ones,
 * depending on specificity.
 *
 * Consider organizing styles into separate files for maintainability.
 */

/* Operator prompt markdown rendering (operator/settings/prompts show page) */
.prompt-md > * + * {
  margin-top: 0.85rem;
}

.prompt-md .md-h3 {
  font-size: 0.95rem;
  font-weight: 600;
  color: #1e293b; /* slate-800 */
  letter-spacing: -0.005em;
  margin-top: 1.75rem;
  padding-bottom: 0.35rem;
  border-bottom: 1px solid #e2e8f0; /* slate-200 */
}

.prompt-md > .md-h3:first-child {
  margin-top: 0;
}

.prompt-md .md-h4 {
  font-size: 0.85rem;
  font-weight: 600;
  color: #334155; /* slate-700 */
  margin-top: 1.25rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.prompt-md .md-p {
  line-height: 1.65;
  color: #1e293b; /* slate-800 */
}

.prompt-md .md-ul {
  list-style: none;
  padding-left: 0;
  margin-left: 0;
}

.prompt-md .md-ul li {
  position: relative;
  padding-left: 1.1rem;
  line-height: 1.55;
  margin-top: 0.25rem;
  color: #334155; /* slate-700 */
}

.prompt-md .md-ul li::before {
  content: "›";
  position: absolute;
  left: 0;
  color: #94a3b8; /* slate-400 */
  font-weight: 600;
}

.prompt-md .md-code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 0.85em;
  padding: 0.1rem 0.35rem;
  background: #fff;
  border: 1px solid #e2e8f0; /* slate-200 */
  border-radius: 3px;
  color: #0f172a; /* slate-900 */
}

.prompt-md .md-fence {
  background: #0f172a; /* slate-900 */
  color: #e2e8f0;
  border-radius: 6px;
  padding: 0.85rem 1rem;
  overflow-x: auto;
}

.prompt-md .md-fence code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 0.8rem;
  line-height: 1.55;
  color: inherit;
  background: transparent;
  border: 0;
  padding: 0;
}

.prompt-md strong {
  color: #0f172a; /* slate-900 */
  font-weight: 600;
}
