#rl .workspace-heading { margin: 22px 0 16px; }
#rl .workspace-heading h1 { margin-bottom: 3px; }
#rl .panel { margin-bottom: 16px; }
#rl .panel-heading { padding: 15px 18px 11px; }
.rl-cards { gap: 9px; margin-bottom: 16px; }
.rl-cards .metric-card { min-height: 0; padding: 13px 15px; }
.rl-cards progress {
  width: 100%;
  height: 5px;
  display: block;
  margin: 5px 0;
  accent-color: var(--accent);
}
.rl-cards .metric-value { font-size: clamp(20px, 2.5vw, 28px); }
.rl-cards .metric-note { color: #59647c; }
.rl-table { width: 100%; min-width: 360px; font-variant-numeric: tabular-nums; }
.rl-table :is(th, td) { padding: 8px 17px; text-align: left; }
.rl-table th { font-size: 12px; color: var(--muted); }
.rl-table td { border-top: 1px solid var(--line); }
.rl-deadline-table { min-width: 340px; }
.rl-deadline-table :is(th, td) { padding: 5px clamp(5px, 1.35vw, 17px); white-space: nowrap; }
.rl-deadline-table tbody th { color: var(--ink); border-top: 1px solid var(--line); font-weight: 550; }
.rl-deadline-table td { line-height: 1.15; font-size: 12px; }
.rl-deadline-table small { display: block; color: #59647c; font-size: 10px; margin-top: 2px; }
.rl-deadline-default { color: #59647c; font-weight: 500; }
.rl-deadline-learned { color: #086d92; }
.rl-distance { border-top: 1px solid var(--line); }
.rl-distance summary { cursor: pointer; font-weight: 600; padding: 8px 17px; }
.rl-distance .rl-subtitle { margin: 0 17px 6px; }
.rl-subtitle { margin: 3px 0 0; line-height: 1.45; }
.rl-rules summary { cursor: pointer; font-weight: 600; padding: 9px 17px; }
.rl-rules p, .rl-summary-line { margin: 0 17px 8px; line-height: 1.5; }
.rl-summary-line { font-variant-numeric: tabular-nums; }
.rl-curves-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  padding: 0 17px 14px;
}
.rl-curve {
  --curve: #5a4cce;
  min-width: 0;
  margin: 0;
  padding: 7px 10px;
  border: 1px solid var(--line);
  border-radius: 7px;
}
.rl-stack-two { --curve: #21796f; }
.rl-stack-three { --curve: #8a5a19; }
.rl-expert { --curve: #a54975; }
.rl-curve figcaption {
  display: flex;
  justify-content: space-between;
  gap: 5px;
  align-items: baseline;
}
.rl-curve figcaption h3 { font-size: 13px; margin: 0; }
.rl-curve figcaption strong { color: var(--curve); font-size: 16px; font-variant-numeric: tabular-nums; }
.rl-curve figcaption .rl-rate-empty { font-size: 12px; color: #59647c; font-weight: 500; }
.rl-curve-count { color: #455069; font-size: 11px; margin: 2px 0 0; font-variant-numeric: tabular-nums; }
.rl-curve-plot svg { display: block; width: 100%; height: 83px; overflow: visible; }
.rl-axis { fill: #59647c; font-size: 10px; }
.rl-curve-line { fill: none; stroke: var(--curve); stroke-width: 2; stroke-linejoin: round; }
.rl-curve-dot { fill: var(--curve); stroke: #fff; stroke-width: 1; }
.rl-curve-dot:hover { r: 5px; }
.rl-dual-card { --placement-curve: #086d92; }
.rl-dual-stats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 7px; margin-top: 5px; }
.rl-stat { min-width: 0; display: flex; flex-direction: column; gap: 1px; color: #455069; font-size: 11px; line-height: 1.25; }
.rl-stat span::before { content: ''; display: inline-block; width: 9px; border-top: 2px solid var(--stat-color); vertical-align: .22em; margin-right: 4px; }
.rl-place-stat { --stat-color: var(--placement-curve); }
.rl-place-stat span::before { border-top-style: dashed; }
.rl-full-stat { --stat-color: var(--curve); }
.rl-stat strong { color: var(--stat-color); font-size: 17px; font-variant-numeric: tabular-nums; }
.rl-stat small { font-size: 10px; font-variant-numeric: tabular-nums; }
.rl-curve-line.rl-place-series { stroke: var(--placement-curve); stroke-dasharray: 4 3; }
.rl-curve-dot.rl-place-series { fill: var(--placement-curve); }
.rl-milestone-grid { grid-template-columns: repeat(auto-fit, minmax(min(100%, 250px), 1fr)); }
.rl-layer-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 5px 7px; margin: 6px 0 3px; }
.rl-stage-stat { border-left: 2px solid var(--mark, var(--curve)); padding-left: 5px; min-width: 0; font-variant-numeric: tabular-nums; }
.rl-stage-stat span, .rl-stage-stat small { display: block; font-size: 10px; color: #455069; }
.rl-stage-stat strong { font-size: 13px; color: var(--mark, var(--curve)); }
.rl-mark-reach { --mark: #526079; }
.rl-mark-secure { --mark: #086d92; }
.rl-mark-above { --mark: #21796f; }
.rl-mark-aligned { --mark: #8a5a19; }
.rl-mark-stable { --mark: #a54975; }
.rl-layer-card .rl-curve-line { stroke: var(--mark, var(--curve)); stroke-width: 1.4; }
.rl-layer-card .rl-curve-dot { fill: var(--mark, var(--curve)); }
.rl-curve-caption, .rl-curve-empty { color: #59647c; font-size: 10px; margin: 1px 0 0; }
.rl-curve-caption { text-align: right; }
.rl-curve-empty { padding: 4px 0 2px; }
@media (max-width: 760px) {
  #rl .panel-heading { padding: 12px 11px 9px; }
  .rl-curves-grid { gap: 5px; padding: 0 10px 10px; }
  .rl-curve figcaption h3 { font-size: 12px; }
  .rl-curve figcaption strong { font-size: 14px; }
}
.rl-equal-grid {
  display: block;
  container-type: inline-size;
}
.rl-curve-section {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 5px 8px;
}
.rl-curve-section + .rl-curve-section { margin-top: 9px; }
.rl-curve-section-title {
  grid-column: 1 / -1;
  font-size: 12px;
  font-weight: 700;
  color: #455069;
  margin: 0;
}
@container (min-width: 806px) {
  .rl-curve-section.rl-base { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .rl-curve-section.rl-stacked { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
