/* Retention graphs above the retention worklist. */
.retention-graphs { margin: 16px 0 20px; min-width: 0; }
.retention-graphs > summary { cursor: pointer; font-weight: 700; color: var(--ink, #163040); padding: 8px 0; }
.retention-graph-grid { display: grid; gap: 16px; grid-template-columns: minmax(0, 1fr); align-items: start; }
.retention-graph-grid > .panel, .retention-graphs > .panel { min-width: 0; margin: 0; }
.retention-graphs > .panel { margin-top: 16px; }
.retention-history { display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); }
.retention-history > * { min-width: 0; }
.retention-chart > h4 { margin: 0 0 6px; font-size: .95rem; color: var(--ink, #163040); }
.retention-bars { display: grid; gap: 2px; }
.retention-bar { display: grid; grid-template-columns: minmax(130px, 1.2fr) minmax(80px, 2fr) minmax(110px, .8fr); align-items: center; gap: 14px; width: 100%; border: 0; border-radius: 4px; background: transparent; padding: 7px 6px; text-align: left; color: inherit; font: inherit; cursor: pointer; }
.retention-bar:hover { background: #f1f6f3; }
.retention-bar[aria-pressed="true"] { background: #e3efe9; outline: 2px solid var(--teal, #087f78); outline-offset: -2px; }
.retention-bar:focus-visible { outline: 2px solid var(--teal, #087f78); outline-offset: 1px; }
.retention-name { overflow-wrap: anywhere; font-size: .86rem; }
.retention-unmatched { font-style: italic; color: #536860; }
.retention-track { display: block; height: 12px; background: #f1e7e3; border-radius: 3px; overflow: hidden; }
.retention-fill { display: block; height: 100%; background: #af5c44; border-radius: 3px; }
.retention-amount { text-align: right; font-variant-numeric: tabular-nums; font-size: .86rem; white-space: nowrap; }
.retention-bars > .subtle-button { justify-self: start; margin-top: 8px; }
.retention-spark-cell { display: inline-block; line-height: 0; }
.retention-spark { width: 96px; height: 28px; display: block; overflow: visible; }
.retention-spark-line { fill: none; stroke: #137f72; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.retention-spark-end { fill: #137f72; }
.retention-spark-zero { stroke: #b8c6c0; stroke-width: 1; stroke-dasharray: 2 2; }
@media (max-width: 640px) {
  .retention-bar { grid-template-columns: 1fr; gap: 4px; }
  .retention-amount { text-align: left; }
}
