/* ==========================================================================
   Retention Intelligence module
   PATH: /portal/modules/retention_intel/index.php
   All selectors use .ri- prefix to avoid clashes.
   ========================================================================== */

.ri-wrapper {
  max-width: 1160px;
  margin: 0 auto;
  padding: 20px 16px 32px;
}

.ri-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 16px;
  margin-bottom: 24px;
}

.ri-header-main {
  flex: 1 1 auto;
}

.ri-kicker-row {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 6px;
}

.ri-kicker-dot {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: radial-gradient(circle, #f97316, #ea580c);
  box-shadow: 0 0 0 4px rgba(248, 113, 22, 0.25);
  animation: riPulseDot 2.2s ease-out infinite;
}

.ri-kicker-text {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: #9ca3af;
}

.ri-title {
  font-size: 1.8rem;
  font-weight: 700;
  margin: 0 0 4px;
  background-image: linear-gradient(to right, #fed7aa, #fb923c, #f97316);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.ri-subtitle {
  margin: 0;
  font-size: 0.9rem;
  color: #9ca3af;
}

.ri-header-meta {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
}

.ri-health-pill {
  position: relative;
  display: inline-flex;
  flex-direction: column;
  align-items: flex-end;
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid #1f2937;
  background: radial-gradient(circle at top left, rgba(249, 115, 22, 0.32), transparent 60%),
              radial-gradient(circle at bottom right, rgba(20, 184, 166, 0.3), transparent 60%),
              #020617;
  box-shadow: 0 0 0 1px rgba(15, 23, 42, 0.9), 0 20px 45px rgba(0, 0, 0, 0.75);
  overflow: hidden;
}

.ri-health-pill::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at top, rgba(254, 215, 170, 0.32), transparent 60%);
  opacity: 0;
  pointer-events: none;
  animation: riGlowSlow 4s ease-in-out infinite;
}

.ri-health-label {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #9ca3af;
  position: relative;
}

.ri-health-score {
  font-size: 1.3rem;
  font-weight: 700;
  color: #f97316;
  position: relative;
}

.ri-layout {
  display: grid;
  grid-template-columns: minmax(0, 300px) minmax(0, 1fr);
  gap: 20px;
}

/* Sidebar */

.ri-sidebar {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.ri-filter-form {
  padding: 14px 14px 16px;
  border-radius: 16px;
  border: 1px solid #1f2937;
  background: radial-gradient(circle at top left, rgba(249, 115, 22, 0.24), transparent 60%),
              #020617;
  box-shadow: 0 18px 45px rgba(0, 0, 0, 0.75);
}

.ri-filter-group {
  margin-bottom: 12px;
}

.ri-filter-label {
  display: block;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #9ca3af;
  margin-bottom: 4px;
}

.ri-select {
  width: 100%;
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid #374151;
  background-color: #020617;
  color: #e5e7eb;
  font-size: 0.85rem;
  outline: none;
}

.ri-select:focus {
  border-color: #f97316;
  box-shadow: 0 0 0 1px rgba(249, 115, 22, 0.35);
}

.ri-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 7px 14px;
  font-size: 0.82rem;
  border-radius: 999px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.12s ease, box-shadow 0.12s ease, filter 0.12s ease;
}

.ri-button-primary {
  width: 100%;
  background-image: linear-gradient(to right, #f97316, #fb923c, #fed7aa);
  color: #111827;
  font-weight: 600;
  box-shadow: 0 16px 38px rgba(15, 23, 42, 0.9);
}

.ri-button-primary:hover {
  transform: translateY(-1px);
  filter: brightness(1.05);
}

.ri-button-dot {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  margin-right: 6px;
  background: radial-gradient(circle, #16a34a, #22c55e);
  box-shadow: 0 0 0 4px rgba(34, 197, 94, 0.35);
}

/* Sidebar sections */

.ri-sidebar-section {
  padding: 12px 14px 14px;
  border-radius: 16px;
  border: 1px solid #1f2937;
  background: linear-gradient(to bottom right, #020617, #050716);
}

.ri-sidebar-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #9ca3af;
}

.ri-sidebar-pill {
  padding: 2px 8px;
  border-radius: 999px;
  border: 1px solid rgba(56, 189, 248, 0.7);
  font-size: 0.72rem;
  color: #e0f2fe;
  background: radial-gradient(circle at top left, rgba(56, 189, 248, 0.5), transparent 60%);
}

.ri-sidebar-pill-soft {
  border-color: rgba(249, 115, 22, 0.7);
  color: #fed7aa;
  background: radial-gradient(circle at top left, rgba(249, 115, 22, 0.45), transparent 60%);
}

/* Video list */

.ri-video-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.ri-video-item {
  padding: 9px 9px 10px;
  border-radius: 14px;
  border: 1px solid #111827;
  background: radial-gradient(circle at top left, rgba(249, 115, 22, 0.2), transparent 60%),
              radial-gradient(circle at bottom right, rgba(20, 184, 166, 0.22), transparent 60%),
              #020617;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.6);
}

.ri-video-main {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 6px;
}

.ri-video-title {
  font-size: 0.88rem;
  font-weight: 500;
  color: #f9fafb;
}

.ri-video-meta {
  font-size: 0.7rem;
  color: #9ca3af;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.ri-video-score {
  width: 36px;
  height: 36px;
  border-radius: 999px;
  border: 1px solid rgba(249, 115, 22, 0.7);
  background: radial-gradient(circle, rgba(249, 115, 22, 0.3), transparent 60%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  font-weight: 600;
  color: #fed7aa;
  box-shadow: 0 0 0 1px rgba(55, 65, 81, 0.8);
}

.ri-video-score-value {
  transform: translateY(1px);
}

.ri-video-bars {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 4px;
  margin-bottom: 5px;
}

.ri-video-mini-bar {
  position: relative;
  padding: 3px 6px 5px;
  border-radius: 999px;
  border: 1px solid #111827;
  background: #020617;
  font-size: 0.68rem;
  overflow: hidden;
}

.ri-video-mini-label {
  position: relative;
  color: #9ca3af;
}

.ri-video-mini-value {
  position: relative;
  float: right;
  color: #e5e7eb;
}

.ri-video-mini-fill {
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 0;
  background: linear-gradient(to right, rgba(249, 115, 22, 0.6), rgba(20, 184, 166, 0.8));
  opacity: 0.3;
  transition: width 0.6s ease-out;
}

.ri-video-pill {
  display: inline-flex;
  margin-top: 2px;
  font-size: 0.72rem;
  padding: 3px 8px;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.6);
  color: #e5e7eb;
  background: rgba(15, 23, 42, 0.92);
}

/* Rules */

.ri-rule-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.ri-rule-item {
  border-radius: 14px;
  border: 1px solid #111827;
  background: radial-gradient(circle at top left, rgba(20, 184, 166, 0.28), transparent 60%),
              #020617;
  padding: 8px 9px;
}

.ri-rule-main {
  display: flex;
  gap: 8px;
  margin-bottom: 4px;
}

.ri-rule-icon {
  flex: 0 0 14px;
  height: 14px;
  border-radius: 999px;
  background: linear-gradient(to bottom, #f97316, #14b8a6);
  box-shadow: 0 0 0 2px rgba(15, 23, 42, 0.95);
  margin-top: 4px;
}

.ri-rule-text-wrap {
  flex: 1 1 auto;
}

.ri-rule-text {
  font-size: 0.82rem;
  font-weight: 500;
  color: #f9fafb;
}

.ri-rule-scope {
  font-size: 0.72rem;
  color: #9ca3af;
}

.ri-rule-expl {
  font-size: 0.76rem;
  color: #e5e7eb;
  margin: 0;
}

/* Main area, tabs */

.ri-main {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.ri-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 4px;
  border-radius: 999px;
  border: 1px solid #1f2937;
  background: linear-gradient(to right, rgba(15, 23, 42, 0.95), rgba(15, 23, 42, 0.8));
}

.ri-tab-button {
  border: none;
  background: transparent;
  color: #e5e7eb;
  font-size: 0.8rem;
  padding: 6px 14px;
  border-radius: 999px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: background-color 0.12s ease, color 0.12s ease, box-shadow 0.12s ease, transform 0.12s ease;
}

.ri-tab-dot {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: #4b5563;
}

.ri-tab-button.is-active {
  background-image: linear-gradient(to right, #f97316, #fb923c, #fed7aa);
  color: #111827;
  box-shadow: 0 0 0 1px rgba(249, 115, 22, 0.6);
  transform: translateY(-1px);
}

.ri-tab-button.is-active .ri-tab-dot {
  background: radial-gradient(circle, #16a34a, #22c55e);
}

.ri-tab-panel {
  display: none;
}

.ri-tab-panel.is-active {
  display: block;
}

/* Cards, metrics, layout */

.ri-metrics-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 12px;
  margin-bottom: 18px;
}

.ri-card {
  border-radius: 16px;
  border: 1px solid #1f2937;
  background: radial-gradient(circle at top left, rgba(249, 115, 22, 0.15), transparent 60%),
              radial-gradient(circle at bottom right, rgba(20, 184, 166, 0.14), transparent 60%),
              #020617;
  padding: 12px 14px;
}

.ri-card-header {
  margin-bottom: 8px;
}

.ri-card-title {
  margin: 0 0 2px;
  font-size: 0.96rem;
  font-weight: 600;
  color: #f9fafb;
}

.ri-card-desc {
  margin: 0;
  font-size: 0.8rem;
  color: #9ca3af;
}

.ri-card-label {
  font-size: 0.78rem;
  color: #9ca3af;
  margin-bottom: 4px;
}

.ri-card-value-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.ri-card-value {
  font-size: 1.3rem;
  font-weight: 600;
  color: #f97316;
}

.ri-card-unit {
  font-size: 0.85rem;
  margin-left: 2px;
  color: #fed7aa;
}

.ri-card-sub {
  margin-top: 4px;
  font-size: 0.76rem;
  color: #9ca3af;
}

.ri-card-stack {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.ri-card-chip {
  display: inline-flex;
  align-items: center;
  padding: 3px 8px;
  border-radius: 999px;
  font-size: 0.72rem;
  border: 1px solid #374151;
  background: #020617;
  color: #e5e7eb;
}

/* Metric rings and bars */

.ri-card-metric {
  position: relative;
  overflow: hidden;
}

.ri-metric-ring {
  width: 32px;
  height: 32px;
  border-radius: 999px;
  border: 3px solid transparent;
  position: relative;
}

.ri-metric-ring::before {
  content: "";
  position: absolute;
  inset: -3px;
  border-radius: inherit;
  background: conic-gradient(from 180deg, #f97316, #fb923c, #14b8a6, #0ea5e9);
  opacity: 0.95;
}

.ri-metric-ring::after {
  content: "";
  position: absolute;
  inset: 4px;
  border-radius: inherit;
  background: #020617;
}

.ri-metric-bar {
  margin-top: 6px;
  position: relative;
  height: 6px;
  border-radius: 999px;
  background: rgba(31, 41, 55, 0.9);
  overflow: hidden;
}

.ri-metric-bar-fill {
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 0;
  background: linear-gradient(to right, #f97316, #fb923c, #14b8a6);
  box-shadow: 0 0 0 1px rgba(248, 250, 252, 0.18);
  transition: width 0.7s ease-out;
}

/* Graph */

.ri-two-column {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: 14px;
}

.ri-graph-card {
  min-height: 190px;
}

.ri-graph-shell {
  margin-top: 10px;
  border-radius: 14px;
  border: 1px solid rgba(31, 41, 55, 0.9);
  background: linear-gradient(to bottom, #020617, #0b1120);
  height: 155px;
  position: relative;
  overflow: hidden;
}

.ri-graph-grid {
  position: absolute;
  inset: 12px 10px 10px 10px;
  background-image:
    linear-gradient(to right, rgba(31, 41, 55, 0.6) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(31, 41, 55, 0.6) 1px, transparent 1px);
  background-size: 24px 24px;
  opacity: 0.5;
}

.ri-graph-line {
  position: absolute;
  left: 6%;
  right: 6%;
  top: 18%;
  bottom: 15%;
  border-radius: 999px;
  background: linear-gradient(to right, rgba(249, 115, 22, 0.1), rgba(20, 184, 166, 0.25));
  box-shadow: 0 0 0 1px rgba(148, 163, 184, 0.2);
  transform-origin: left center;
  animation: riSweep 5s ease-in-out infinite;
}

.ri-graph-dot {
  position: absolute;
  width: 9px;
  height: 9px;
  border-radius: 999px;
  box-shadow: 0 0 0 4px rgba(15, 23, 42, 0.9);
}

.ri-graph-dot-intro {
  left: 8%;
  top: 26%;
  background: radial-gradient(circle, #f97316, #fb923c);
}

.ri-graph-dot-mid {
  left: 46%;
  top: 38%;
  background: radial-gradient(circle, #14b8a6, #0ea5e9);
}

.ri-graph-dot-end {
  right: 8%;
  top: 60%;
  background: radial-gradient(circle, #f97316, #0ea5e9);
}

.ri-graph-legend {
  margin-top: 8px;
  display: flex;
  gap: 10px;
  font-size: 0.75rem;
  color: #9ca3af;
}

.ri-legend-item {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.ri-legend-swatch {
  width: 10px;
  height: 10px;
  border-radius: 999px;
}

.ri-legend-swatch-intro {
  background: linear-gradient(to right, #f97316, #fb923c);
}

.ri-legend-swatch-mid {
  background: linear-gradient(to right, #14b8a6, #0ea5e9);
}

.ri-legend-swatch-end {
  background: linear-gradient(to right, #f97316, #0ea5e9);
}

/* Answer cards */

.ri-answer-card-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.ri-answer-card {
  border-radius: 16px;
  border: 1px solid #1f2937;
  background: #050716;
  padding: 10px 12px;
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.6);
}

.ri-answer-kicker {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-bottom: 4px;
}

.ri-answer-dot {
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: radial-gradient(circle, #22c55e, #16a34a);
}

.ri-answer-kicker-text {
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #9ca3af;
}

.ri-card-body {
  margin: 4px 0 0;
  font-size: 0.8rem;
  color: #e5e7eb;
}

/* Bars and badges */

.ri-table-wrapper {
  margin-top: 8px;
  border-radius: 14px;
  border: 1px solid #1f2937;
  overflow: hidden;
}

.ri-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.8rem;
}

.ri-table thead {
  background: #020617;
}

.ri-table th,
.ri-table td {
  padding: 7px 9px;
  text-align: left;
}

.ri-table th {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #9ca3af;
  border-bottom: 1px solid #111827;
}

.ri-table tbody tr:nth-child(even) {
  background: rgba(15, 23, 42, 0.9);
}

.ri-table tbody tr:nth-child(odd) {
  background: rgba(15, 23, 42, 0.97);
}

.ri-table tbody tr:hover {
  background: rgba(30, 64, 175, 0.5);
}

.ri-bar {
  position: relative;
  height: 8px;
  border-radius: 999px;
  background: rgba(31, 41, 55, 0.95);
  overflow: hidden;
}

.ri-bar-fill {
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 0;
  transition: width 0.65s ease-out;
}

.ri-bar-fill-good {
  background: linear-gradient(to right, #22c55e, #14b8a6);
}

.ri-bar-fill-bad {
  background: linear-gradient(to right, #ef4444, #f97316);
}

.ri-bar-label {
  position: absolute;
  right: 6px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 0.7rem;
  color: #f9fafb;
}

.ri-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 2px 7px;
  border-radius: 999px;
  font-size: 0.7rem;
  border: 1px solid transparent;
  white-space: nowrap;
}

.ri-badge-good {
  border-color: rgba(34, 197, 94, 0.9);
  color: #bbf7d0;
  background: rgba(21, 128, 61, 0.25);
}

.ri-badge-bad {
  border-color: rgba(248, 113, 113, 0.9);
  color: #fecaca;
  background: rgba(127, 29, 29, 0.45);
}

.ri-badge-warn {
  border-color: rgba(250, 204, 21, 0.9);
  color: #fef9c3;
  background: rgba(133, 77, 14, 0.45);
}

.ri-badge-neutral {
  border-color: rgba(148, 163, 184, 0.9);
  color: #e5e7eb;
  background: rgba(15, 23, 42, 0.95);
}

/* Phrases and heatmap */

.ri-phrase-list {
  list-style: none;
  padding: 0;
  margin: 8px 0 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.ri-phrase-item {
  border-radius: 12px;
  border: 1px solid #111827;
  background: #020617;
  padding: 8px 9px;
}

.ri-phrase-row {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  align-items: center;
  margin-bottom: 2px;
}

.ri-phrase-text {
  font-size: 0.84rem;
  font-weight: 500;
  color: #f9fafb;
}

.ri-phrase-tag {
  font-size: 0.7rem;
}

.ri-phrase-evidence {
  margin: 2px 0;
  font-size: 0.76rem;
  color: #e5e7eb;
}

.ri-phrase-meta {
  margin: 0;
  font-size: 0.72rem;
  color: #9ca3af;
}

.ri-script-heatmap {
  margin-top: 14px;
}

.ri-heatmap-placeholder {
  margin-top: 8px;
  border-radius: 12px;
  border: 1px dashed #374151;
  background: #020617;
  padding: 8px 9px 10px;
}

.ri-heatmap-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  font-size: 0.75rem;
  color: #9ca3af;
  margin-bottom: 8px;
}

.ri-legend-swatch-good {
  background: linear-gradient(to right, #22c55e, #14b8a6);
}

.ri-legend-swatch-bad {
  background: linear-gradient(to right, #ef4444, #f97316);
}

.ri-legend-swatch-mixed {
  background: linear-gradient(to right, #eab308, #f97316);
}

.ri-heat-line {
  height: 8px;
  border-radius: 999px;
  opacity: 0.8;
  margin-bottom: 4px;
}

.ri-heat-line-good {
  background: linear-gradient(to right, rgba(16, 185, 129, 0.6), rgba(56, 189, 248, 0.3));
}

.ri-heat-line-bad {
  background: linear-gradient(to right, rgba(248, 113, 113, 0.7), rgba(239, 68, 68, 0.3));
}

.ri-heat-line-mixed {
  background: linear-gradient(to right, rgba(234, 179, 8, 0.7), rgba(249, 115, 22, 0.4));
}

/* Hotspots */

.ri-hotspot-list {
  margin-top: 8px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.ri-hotspot-item {
  border-radius: 14px;
  border: 1px solid #111827;
  background: #020617;
  padding: 9px 10px;
}

.ri-hotspot-header {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  align-items: flex-start;
  margin-bottom: 4px;
}

.ri-hotspot-time {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 2px;
}

.ri-time-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 2px 7px;
  border-radius: 999px;
  border: 1px solid #374151;
  font-size: 0.72rem;
  background: #020617;
  color: #e5e7eb;
}

.ri-hotspot-label {
  font-size: 0.8rem;
  font-weight: 500;
  color: #f9fafb;
}

.ri-hotspot-video {
  font-size: 0.76rem;
  color: #9ca3af;
}

.ri-hotspot-meta {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 2px;
}

.ri-hotspot-sentiment {
  font-size: 0.72rem;
  color: #9ca3af;
}

.ri-hotspot-comment {
  margin: 0;
  font-size: 0.8rem;
  color: #e5e7eb;
}

/* Chips */

.ri-chip-bad {
  border-color: rgba(248, 113, 113, 0.8);
  color: #fecaca;
}

.ri-chip-warn {
  border-color: rgba(250, 204, 21, 0.8);
  color: #fef9c3;
}

.ri-drop-chip-row {
  margin-top: 6px;
}

.ri-drop-chip {
  font-size: 0.72rem;
}

/* Animations and helpers */

@keyframes riPulseDot {
  0% {
    box-shadow: 0 0 0 0 rgba(248, 113, 22, 0.35);
  }
  70% {
    box-shadow: 0 0 0 8px rgba(248, 113, 22, 0.0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(248, 113, 22, 0.0);
  }
}

@keyframes riGlowSlow {
  0%, 100% {
    opacity: 0;
  }
  40% {
    opacity: 1;
  }
}

@keyframes riSweep {
  0%, 100% {
    transform: scaleX(0.9) translateX(0);
  }
  50% {
    transform: scaleX(1) translateX(0);
  }
}

/* Responsive */

@media (max-width: 960px) {
  .ri-layout {
    grid-template-columns: minmax(0, 1fr);
  }

  .ri-header {
    flex-direction: column;
    align-items: flex-start;
  }

  .ri-health-pill {
    align-self: flex-start;
  }

  .ri-metrics-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .ri-two-column {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 640px) {
  .ri-metrics-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}
