/* RingSense AI Note review card — in-page (not modal). */

.ai-note-card {
  margin: 16px auto;
  max-width: 720px;
  padding: 16px;
  background: var(--surface, #ffffff);
  border: 1px solid var(--border, #e5e7eb);
  border-radius: 8px;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
  font: inherit;
}

.ainc-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.ainc-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.ainc-pill--waiting {
  background: #f1f5f9;
  color: #64748b;
}

.ainc-pill--ready {
  background: #d1fae5;
  color: #065f46;
  animation: ainc-border-pulse 1s ease-out 1;
}

@keyframes ainc-border-pulse {
  0%   { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.5); }
  100% { box-shadow: 0 0 0 8px rgba(16, 185, 129, 0); }
}

.ainc--ready {
  animation: ainc-slide-in 300ms ease-out 1;
}

@keyframes ainc-slide-in {
  from { opacity: 0; transform: translateY(-4px); }
  to   { opacity: 1; transform: translateY(0); }
}

.ainc-body {
  font-size: 14px;
  line-height: 1.5;
}

.ainc-body--muted {
  color: #64748b;
}

.ainc-label {
  display: block;
  font-size: 12px;
  font-weight: 600;
  color: #475569;
  margin: 8px 0 4px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.ainc-textarea {
  width: 100%;
  min-height: 96px;
  padding: 8px 10px;
  border: 1px solid var(--border, #cbd5e1);
  border-radius: 6px;
  font: inherit;
  font-size: 14px;
  line-height: 1.5;
  resize: vertical;
  background: var(--surface, #ffffff);
  color: var(--text, #0f172a);
}

.ainc-textarea:focus {
  outline: 2px solid #38bdf8;
  outline-offset: -1px;
  border-color: transparent;
}

.ainc-transcript {
  margin-top: 12px;
  border-top: 1px dashed var(--border, #e5e7eb);
  padding-top: 10px;
}

.ainc-transcript summary {
  cursor: pointer;
  font-size: 13px;
  color: #475569;
  user-select: none;
}

.ainc-transcript[open] summary {
  margin-bottom: 8px;
}

.ainc-transcript-pre {
  font-family: ui-monospace, SFMono-Regular, "SF Mono", Menlo, monospace;
  font-size: 12px;
  line-height: 1.55;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 6px;
  padding: 10px 12px;
  max-height: 320px;
  overflow-y: auto;
  white-space: pre-wrap;
  word-break: break-word;
  color: #1e293b;
}

.ainc-meta {
  margin-top: 10px;
  font-size: 12px;
  color: #94a3b8;
}

.ainc-foot {
  display: flex;
  gap: 8px;
  margin-top: 14px;
  flex-wrap: wrap;
}

.ainc-saved {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  padding: 10px 12px;
  background: #ecfdf5;
  border: 1px solid #a7f3d0;
  border-radius: 6px;
  color: #065f46;
  font-size: 14px;
}

.ainc-saved--muted {
  background: #f1f5f9;
  border-color: #e2e8f0;
  color: #475569;
}

.ainc-link {
  color: #0369a1;
  text-decoration: none;
}

.ainc-link:hover,
.ainc-link:focus {
  text-decoration: underline;
}

.ainc-link--strong {
  font-weight: 600;
}

/* Dark mode — relies on app's body[data-theme="dark"] convention */
[data-theme="dark"] .ai-note-card {
  background: #0f172a;
  border-color: #1e293b;
}

[data-theme="dark"] .ainc-pill--waiting {
  background: #1e293b;
  color: #94a3b8;
}

[data-theme="dark"] .ainc-pill--ready {
  background: #064e3b;
  color: #6ee7b7;
}

[data-theme="dark"] .ainc-textarea {
  background: #0b1220;
  color: #e2e8f0;
  border-color: #334155;
}

[data-theme="dark"] .ainc-transcript-pre {
  background: #0b1220;
  border-color: #1e293b;
  color: #cbd5e1;
}

[data-theme="dark"] .ainc-saved {
  background: #064e3b;
  border-color: #047857;
  color: #d1fae5;
}

[data-theme="dark"] .ainc-saved--muted {
  background: #1e293b;
  border-color: #334155;
  color: #94a3b8;
}
