/* assets/ronnie-ui/components.css — V1066 RONNIE DESIGN SYSTEM · COMPONENTS
 *
 * The reusable primitives every new-language Ronnie surface shares:
 * cards, status pills, buttons, metrics, feeds, action cards, panels,
 * forms, tables/lists. One vocabulary — Home, Mission Control and
 * Dialer redesigns must not fork these. Presentation-only. */

/* ── cards & panels ────────────────────────────────────────────── */
.rn-card {
  background: var(--rn-surface);
  border: 1px solid var(--rn-border);
  border-radius: var(--rn-radius-lg);
  box-shadow: var(--rn-shadow);
  padding: var(--rn-s5);
}
.rn-card--soft { background: var(--rn-surface-soft); box-shadow: none; }
.rn-card__head { display: flex; align-items: baseline; justify-content: space-between; gap: var(--rn-s3); margin-bottom: var(--rn-s4); }
.rn-card__title { font-size: 16px; font-weight: 700; letter-spacing: -.01em; margin: 0; }
.rn-card__link { font-size: 13.5px; font-weight: 600; color: var(--rn-blue); text-decoration: none; white-space: nowrap; }
.rn-card__link:hover { text-decoration: underline; }
.rn-panel { border-top: 1px solid var(--rn-border); padding-top: var(--rn-s4); margin-top: var(--rn-s4); }

/* ── status pills ──────────────────────────────────────────────── */
.rn-pill {
  display: inline-flex; align-items: center; gap: 7px;
  border-radius: var(--rn-radius-pill);
  padding: 5px 12px; font-size: 13px; font-weight: 600;
  background: var(--rn-surface-soft); color: var(--rn-text-mute);
  border: 1px solid transparent;
}
.rn-pill--live { background: var(--rn-live-soft); color: var(--rn-live); }
.rn-pill--live .rn-pill__dot { background: var(--rn-live); }
.rn-pill--info { background: var(--rn-blue-soft); color: var(--rn-blue); }
.rn-pill--warn { background: var(--rn-warn-soft); color: var(--rn-warn); }
.rn-pill--error { background: var(--rn-error-soft); color: var(--rn-error); }
.rn-pill__dot { width: 8px; height: 8px; border-radius: 50%; background: currentColor; flex: none; }
.rn-pill--live .rn-pill__dot { box-shadow: 0 0 0 3px rgba(22, 163, 74, .18); }

/* ── buttons ───────────────────────────────────────────────────── */
.rn-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font: 600 14.5px/1 var(--rn-font);
  border-radius: var(--rn-radius-md);
  padding: 11px 18px; cursor: pointer; text-decoration: none;
  border: 1px solid transparent; color: var(--rn-text);
  background: var(--rn-surface); transition: background .12s ease, border-color .12s ease;
}
.rn-btn--primary { background: var(--rn-blue); color: var(--rn-text-on-blue); }
.rn-btn--primary:hover { background: var(--rn-blue-hover); }
.rn-btn--ghost { border-color: var(--rn-border-strong); }
.rn-btn--ghost:hover { border-color: var(--rn-blue); color: var(--rn-blue); }
.rn-btn--danger { border-color: var(--rn-error); color: var(--rn-error); }
.rn-btn--danger:hover { background: var(--rn-error-soft); }
.rn-btn[disabled] { opacity: .55; cursor: not-allowed; }

/* ── metrics ───────────────────────────────────────────────────── */
.rn-metric {
  background: var(--rn-surface); border: 1px solid var(--rn-border);
  border-radius: var(--rn-radius-lg); box-shadow: var(--rn-shadow);
  padding: var(--rn-s4) var(--rn-s5);
  display: flex; flex-direction: column; gap: 2px;
}
.rn-metric__label { font-size: 13px; font-weight: 600; color: var(--rn-text-mute); }
.rn-metric__value { font-size: 30px; font-weight: 800; letter-spacing: -.02em; line-height: 1.15; }
.rn-metric__hint { font-size: 12.5px; color: var(--rn-text-mute); }

/* ── feeds (recent activity / outcomes) ────────────────────────── */
.rn-feed { list-style: none; margin: 0; padding: 0; }
.rn-feed li { display: flex; gap: var(--rn-s3); padding: var(--rn-s3) 0; border-top: 1px solid var(--rn-border); align-items: flex-start; }
.rn-feed li:first-child { border-top: 0; padding-top: 0; }
.rn-feed__icon {
  flex: none; width: 34px; height: 34px; border-radius: var(--rn-radius-pill);
  background: var(--rn-blue-soft); color: var(--rn-blue);
  display: flex; align-items: center; justify-content: center; font-size: 15px;
}
.rn-feed__icon--live { background: var(--rn-live-soft); color: var(--rn-live); }
.rn-feed__icon--warn { background: var(--rn-warn-soft); color: var(--rn-warn); }
.rn-feed__body { min-width: 0; flex: 1; }
.rn-feed__title { font-weight: 600; font-size: 14px; margin: 0; }
.rn-feed__meta { color: var(--rn-text-mute); font-size: 13px; margin: 1px 0 0; overflow: hidden; text-overflow: ellipsis; }
.rn-feed__time { flex: none; color: var(--rn-text-mute); font-size: 12.5px; padding-top: 2px; }

/* ── action cards (next actions) ───────────────────────────────── */
.rn-action {
  display: flex; align-items: center; gap: var(--rn-s3);
  background: var(--rn-surface); border: 1px solid var(--rn-border);
  border-radius: var(--rn-radius-md); padding: var(--rn-s3) var(--rn-s4);
  text-decoration: none; color: inherit;
}
.rn-action:hover { border-color: var(--rn-blue); box-shadow: var(--rn-shadow); }
.rn-action__count {
  flex: none; min-width: 40px; height: 40px; padding: 0 8px; border-radius: var(--rn-radius-md);
  background: var(--rn-blue-soft); color: var(--rn-blue);
  display: flex; align-items: center; justify-content: center;
  font-size: 17px; font-weight: 800;
}
.rn-action__body { flex: 1; min-width: 0; }
.rn-action__title { font-weight: 700; font-size: 14.5px; margin: 0; }
.rn-action__meta { color: var(--rn-text-mute); font-size: 13px; margin: 0; }
.rn-action__go { flex: none; color: var(--rn-blue); font-weight: 600; font-size: 13.5px; white-space: nowrap; }

/* ── forms ─────────────────────────────────────────────────────── */
.rn-field { display: flex; flex-direction: column; gap: 6px; margin-bottom: var(--rn-s4); }
.rn-field label { font-size: 13.5px; font-weight: 600; }
.rn-input, .rn-select, .rn-textarea {
  font: 500 14.5px/1.4 var(--rn-font); color: var(--rn-text);
  background: var(--rn-surface); border: 1px solid var(--rn-border-strong);
  border-radius: var(--rn-radius-md); padding: 10px 12px; width: 100%;
}
.rn-input:focus, .rn-select:focus, .rn-textarea:focus { outline: 2px solid var(--rn-blue); outline-offset: 1px; border-color: var(--rn-blue); }

/* ── tables / lists ────────────────────────────────────────────── */
.rn-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.rn-table th { text-align: left; font-size: 12.5px; font-weight: 600; color: var(--rn-text-mute); padding: 8px 10px; border-bottom: 1px solid var(--rn-border); }
.rn-table td { padding: 10px; border-bottom: 1px solid var(--rn-border); }
.rn-table tr:last-child td { border-bottom: 0; }
.rn-list { list-style: none; margin: 0; padding: 0; }
.rn-list li { display: flex; justify-content: space-between; gap: var(--rn-s3); padding: 9px 0; border-top: 1px solid var(--rn-border); font-size: 14px; }
.rn-list li:first-child { border-top: 0; }
.rn-list .rn-list__key { color: var(--rn-text-mute); }
.rn-list .rn-list__val { font-weight: 600; text-align: right; }

/* ── empty / loading states ────────────────────────────────────── */
.rn-empty { color: var(--rn-text-mute); font-size: 14px; padding: var(--rn-s3) 0; }
