/* Dark embed theme that matches your app screenshots */

:root {
  --bg: #343434;
  --surface: #343434;
  --surface-2: #343434;
  --border: rgba(255, 255, 255, 0.08);
  --text: rgba(255, 255, 255, 0.92);
  --muted: rgba(255, 255, 255, 0.62);
  --muted-2: rgba(255, 255, 255, 0.45);
  --accent: #2dd4bf; /* teal-ish */
  --radius: 14px;
  --shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
  --font:
    ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial,
    "Apple Color Emoji", "Segoe UI Emoji";
}

html,
body {
  height: 100%;
}

body.embed {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
}


.embed-page{
  max-width: fixed;
  margin: 0 auto;
  padding: 28px 40px 48px;
  color: #e7e7e7;
}

.embed-top{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap: 16px;
  margin-bottom: 18px;
}

.embed-h1{
  font-size: 24px;
  line-height: 1.1;
  margin: 0 0 10px;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.embed-meta-row{
  display:flex;
  gap: 16px;
  color: #a8a8a8;
  font-size: 12px;
}

.embed-icon-btn{
  width: 44px;
  height: 44px;
  border-radius: 12px;
  border: 1px solid rgba(76, 230, 201, 0.35);
  background: rgba(20, 24, 24, 0.6);
  color: #4ce6c9;
  font-size: 18px;
  cursor: pointer;
}

.embed-section-title{
  margin: 26px 0 12px;
  font-size: 16px;
  letter-spacing: 0.06em;
  font-weight: 800;
  color: #4ce6c9;
}

.embed-stack{
  display:flex;
  flex-direction:column;
  gap: 16px;
}

/* Question cards */
.qa-card{
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 18px;
  padding: 18px 18px 16px;
  box-shadow: 0 0 0 1px rgba(255,255,255,0.02) inset;
}

.qa-question{
  font-size: 16px;
  font-weight: 750;
  line-height: 1.35;
  margin-bottom: 12px;
}

/* Rating row */
.qa-rating-row{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap: 12px;
  margin-bottom: 10px;
}

.qa-rating-text{
  color:#bdbdbd;
  font-size: 12px;
}

.qa-pill{
  display:inline-flex;
  align-items:center;
  gap: 10px;
  padding: 8px 1px;
  border-radius: 999px;
  font-weight: 800;
  font-size: 12px;
  letter-spacing: 0.02em;
}

.qa-pill--strong{
  color: #86efac;
}

.qa-pill--partial{
  color: #fde68a;
}

.qa-pill--weak{
  color: #fecaca;
}

/* The inset “quote” block */
.qa-quote {
  margin-top: 8px;
  padding-left: 16px;
  margin-left: 6px;

  border-left: 2px solid rgba(255,255,255,0.12);

  background: transparent;
  border-radius: 0;
  font-size: 16px;
  color: #bdbdbd;
  line-height: 1.6;
}

/* Small helper label above quote (optional) */
.qa-subtitle{
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #8e8e8e;
  margin: 8px 0 6px;
}

/* ── Summary view ─────────────────────────────────────── */
.summary-badge {
  background: rgba(77, 230, 201, 0.12);
  color: #4ce6c9;
  border: 1px solid rgba(77, 230, 201, 0.25);
  border-radius: 999px;
  padding: 2px 10px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.summary-sections {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-bottom: 24px;
}

.summary-section-card {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 18px;
  padding: 18px 20px 16px;
}

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

.summary-section-left {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.summary-section-number {
  flex-shrink: 0;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: rgba(77, 230, 201, 0.1);
  border: 1px solid rgba(77, 230, 201, 0.25);
  color: #4ce6c9;
  font-size: 12px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
}

.summary-section-name {
  font-size: 15px;
  font-weight: 700;
  color: #e7e7e7;
  letter-spacing: 0.01em;
  line-height: 1.3;
}

.summary-section-right {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  gap: 8px;
}

.summary-score-badge {
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.01em;
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #e7e7e7;
  background: rgba(255, 255, 255, 0.05);
}

.summary-score-badge--strong { border-color: rgba(134, 239, 172, 0.3); color: #86efac; }
.summary-score-badge--partial { border-color: rgba(253, 230, 138, 0.3); color: #fde68a; }
.summary-score-badge--weak   { border-color: rgba(254, 202, 202, 0.3); color: #fecaca; }
.summary-score-badge--na     { color: #8e8e8e; }

.summary-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.summary-pill--strong { color: #86efac; }
.summary-pill--partial { color: #fde68a; }
.summary-pill--weak   { color: #fecaca; }

.summary-pill--lg {
  font-size: 13px;
}

.summary-reasoning-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
  border-left: 2px solid rgba(255, 255, 255, 0.1);
  padding-left: 14px;
  margin-left: 4px;
}

.summary-reasoning-item {
  font-size: 13px;
  color: #bdbdbd;
  line-height: 1.5;
}

.summary-reasoning-item::before {
  content: "·  ";
  color: #4ce6c9;
  font-weight: 800;
}

.summary-no-data {
  font-size: 13px;
  color: #6b6b6b;
  font-style: italic;
  margin: 0;
}

.summary-total-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  background: rgba(77, 230, 201, 0.06);
  border: 1px solid rgba(77, 230, 201, 0.2);
  border-radius: 18px;
  padding: 18px 22px;
  margin-top: 4px;
}

.summary-total-left {
  display: flex;
  align-items: center;
  gap: 10px;
}

.summary-total-label {
  font-size: 15px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #4ce6c9;
}

.summary-total-right {
  display: flex;
  align-items: center;
  gap: 10px;
}

.summary-total-score {
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: #e7e7e7;
}

/* ── Summary metrics strip ──
   Moved here when dashboard.css was retired. These are the only rules from
   that sheet with a live consumer: the metrics strip and prose cards on
   embed/conversations/summary.html.erb, whose markup still carries the
   `dash-` class names. The `--admin-*` and `--dash-font-*` tokens they read
   come from admin.css, which this layout also links.
   admin.css specializes two of them further (`.dash-metrics-row.summary-metrics-row`,
   `.dash-page-header h2`). */

@keyframes dash-fade-up {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: translateY(0); }
}

.dash-metrics {
  animation: dash-fade-up 0.25s 0.08s ease-out both;
}

.dash-metrics-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  padding: 28px 0 24px;
}

.dash-metric {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding-right: 40px;
  min-width: 0;
  overflow: hidden;
}

.dash-metric + .dash-metric {
  padding-left: 40px;
  padding-right: 40px;
  border-left: 1px solid var(--admin-border);
}

.dash-metric:last-child {
  padding-right: 0;
}

.dash-metric-label {
  font-family: var(--dash-font-display);
  font-size: 0.6875rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--admin-muted-foreground);
}

.dash-metric-value {
  font-family: var(--dash-font-display);
  font-size: 3.25rem;
  font-weight: 700;
  line-height: 1;
  color: var(--admin-foreground);
  letter-spacing: -0.02em;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.dash-metric-em {
  font-style: normal;
  color: var(--admin-muted-foreground);
}

.dash-metric-sub {
  font-size: 0.8125rem;
  color: var(--admin-muted-foreground);
  line-height: 1.4;
}

/* The two prose cards under the metrics. */
.dash-stat-card {
  padding: 20px 24px;
  position: relative;
}

.dash-stat-label {
  font-family: var(--dash-font-display);
  font-size: 0.8125rem;
  font-weight: var(--admin-font-weight-semibold);
  color: var(--admin-muted-foreground);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 4px;
}

@media (max-width: 900px) {
  .dash-metrics-row {
    grid-template-columns: 1fr;
  }

  .dash-metric + .dash-metric {
    padding-left: 0;
    padding-right: 0;
    border-left: none;
    padding-top: 20px;
    border-top: 1px solid var(--admin-border);
  }
}

@media (prefers-reduced-motion: reduce) {
  .dash-metrics {
    animation: none;
  }
}
