#lifeos-insight-card .card-subtitle {
  font-size: 11px;
  opacity: 0.7;
}

#lifeos-insight-card .pill {
  font-size: 10px;
  opacity: 0.6;
  font-family: 'JetBrains Mono', ui-monospace, monospace;
}

.lifeos-insight-body .pattern-toggle {
  cursor: pointer;
  user-select: none;
  outline: none;
  position: relative;
  padding-right: 14px;
}

.lifeos-insight-body .pattern-toggle::after {
  content: "▸";
  position: absolute;
  right: 0;
  top: 0;
  font-size: 10px;
  opacity: 0.45;
  transition: transform 0.2s ease;
  display: inline-block;
  transform-origin: center;
}

.lifeos-insight-body .pattern-toggle.expanded::after {
  transform: rotate(90deg);
  opacity: 0.85;
}

.lifeos-insight-body .pattern-toggle:focus-visible {
  outline: 2px solid var(--accent, #f4d03f);
  outline-offset: 2px;
  border-radius: 2px;
}

.lifeos-insight-body .pattern-detail[hidden] {
  display: none;
}

.lifeos-insight-body .pattern-detail {
  display: inline;
}

.lifeos-insight-body {
  font-size: 13px;
  line-height: 1.55;
  padding: 6px 2px;
  color: var(--card-fg, #e6e6e6);
}

.lifeos-insight-body h2 {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin: 14px 0 6px;
  opacity: 0.75;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  padding-bottom: 3px;
}

.lifeos-insight-body h2:first-child {
  margin-top: 0;
}

.lifeos-insight-body ol,
.lifeos-insight-body ul {
  padding-left: 0;
  list-style: none;
  margin: 0;
}

.lifeos-insight-body ol li,
.lifeos-insight-body ul li {
  margin: 10px 0;
  padding: 8px 10px 8px 12px;
  border-left: 2px solid rgba(255, 255, 255, 0.15);
  background: rgba(255, 255, 255, 0.025);
  border-radius: 0 4px 4px 0;
}

.lifeos-insight-body ol {
  counter-reset: insight-counter;
}

.lifeos-insight-body ol li {
  counter-increment: insight-counter;
  position: relative;
}

.lifeos-insight-body ol li::before {
  content: counter(insight-counter);
  position: absolute;
  left: -22px;
  top: 8px;
  font-size: 11px;
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  opacity: 0.45;
}

.lifeos-insight-body strong {
  font-weight: 600;
  color: var(--accent, #f4d03f);
}

.lifeos-insight-body p {
  margin: 6px 0;
}

.lifeos-insight-body hr {
  border: none;
  border-top: 1px dashed rgba(255, 255, 255, 0.1);
  margin: 12px 0;
}

.lifeos-insight-loading {
  opacity: 0.5;
  font-style: italic;
  padding: 8px 0;
}

.lifeos-insight-error {
  color: #ff8a8a;
  font-size: 12px;
  padding: 6px 0;
}
