/* data-richness.css — v0.56.0 — Data Richness widget + confirm-current affordance.
   Tokens consistent with the rest of Formon (paper/ink/accent). The widget
   replaces the old .ps-* profile bar in the account panel's top slot. */

.dr-widget {
  display: block; width: 100%;
  text-align: left; cursor: pointer;
  background: var(--color-paper-100, #F4F1E8);
  border: 1px solid var(--color-paper-200, #ECE7D8);
  border-radius: 12px;
  padding: 10px 12px;
  margin: 0;
  transition: border-color .12s ease, background .12s ease;
}
.dr-widget:hover { border-color: var(--color-ink-300, #5F5E5A); background: var(--color-paper-50, #FAF8F2); }
.dr-widget:active { transform: translateY(1px); }

.dr-top { display: flex; align-items: center; gap: 8px; margin-bottom: 7px; }
.dr-label { font-size: 12px; font-weight: 700; letter-spacing: .02em; color: var(--color-ink-900, #2C2C2A); text-transform: uppercase; }
.dr-pct { font-size: 12px; color: var(--color-ink-300, #5F5E5A); font-weight: 600; }
.dr-grade {
  margin-left: auto;
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 26px; height: 26px; padding: 0 7px;
  border-radius: 8px; font-weight: 800; font-size: 15px; line-height: 1;
}
/* grade color grading */
.dr-grade-A { background: #16A34A; color: #fff; }
.dr-grade-B { background: #5C9E3F; color: #fff; }
.dr-grade-C { background: #E0A400; color: #2C2C2A; }
.dr-grade-D { background: #E07A2C; color: #fff; }
.dr-grade-F { background: #C0392B; color: #fff; }

.dr-bar { height: 8px; border-radius: 999px; background: var(--color-paper-200, #ECE7D8); overflow: hidden; }
.dr-bar-fill { height: 100%; border-radius: 999px; transition: width .3s ease; }
/* level color grading (mirrors grade family) */
.dr-level-shell   { background: #C0392B; }
.dr-level-minimum { background: #E07A2C; }
.dr-level-working { background: #E0A400; }
.dr-level-rich    { background: #16A34A; }

.dr-flagline { margin-top: 7px; }
.dr-flag, .dr-next {
  display: inline-flex; align-items: center; gap: 5px;
  font-size: 12px; font-weight: 600; padding: 2px 8px; border-radius: 999px;
}
.dr-flag-signal { background: #FFE9E4; color: #B23A1E; }
.dr-flag-floor  { background: #FDECEA; color: #C0392B; }
.dr-flag-stale  { background: #FFF3D6; color: #8A6400; }
.dr-next        { background: transparent; color: var(--color-ink-300, #5F5E5A); border: 1px solid var(--color-paper-200, #ECE7D8); }

/* "confirm still current" affordance in the contact edit modal (M04) */
.cem-confirm-current {
  display: inline-block; margin-left: 8px; vertical-align: middle;
  font-size: 10px; line-height: 1.4; font-weight: 600;
  padding: 1px 7px; border-radius: 999px; cursor: pointer;
  background: #FFF3D6; color: #8A6400; border: 1px solid #E6C86A;
  width: auto;                 /* never stretch to the field width */
}
.cem-confirm-current:hover { background: #FCEBBE; }
.cem-confirm-done { background: #EAF6EE; color: #1B6E3C; border-color: #BFE3CC; cursor: default; }
