/* /compound — scoped; load with job.css */
body.compound {
  --cmp-nominal: #0f766e;
  --cmp-real: #2563eb;
  --cmp-contrib: #94a3b8;
}

body.compound .cmp-meters { display: grid; gap: .65rem; margin: 1rem 0 1.5rem; }
body.compound .cmp-meter { display: grid; grid-template-columns: minmax(8rem, 11rem) 1fr 2.5rem; gap: .5rem; align-items: center; font-size: .92rem; }
body.compound .cmp-meter .bar { height: .55rem; background: color-mix(in srgb, var(--accent, #0f766e) 12%, transparent); border-radius: 999px; overflow: hidden; }
body.compound .cmp-meter .bar i { display: block; height: 100%; background: var(--accent, #0f766e); border-radius: inherit; }
body.compound .cmp-meter b { text-align: right; font-variant-numeric: tabular-nums; }

body.compound .cmp-list { margin: 0 0 1.5rem; padding-left: 1.15rem; }
body.compound .cmp-list li { margin: .45rem 0; }
body.compound .cmp-steps { margin: 0 0 1.5rem; padding-left: 1.2rem; }
body.compound .cmp-steps .hint { color: var(--muted, #64748b); font-size: .9rem; }

body.compound .cmp-calc-grid {
  display: grid;
  grid-template-columns: minmax(16rem, 22rem) 1fr;
  gap: 1.5rem;
  align-items: start;
}
@media (max-width: 860px) {
  body.compound .cmp-calc-grid { grid-template-columns: 1fr; }
}

body.compound .cmp-form {
  display: grid;
  gap: .75rem;
  padding: 1rem;
  background: color-mix(in srgb, var(--accent, #0f766e) 6%, transparent);
  border-radius: 12px;
}
body.compound .cmp-form label { display: grid; gap: .3rem; font-size: .9rem; font-weight: 600; }
body.compound .cmp-form input {
  font: inherit;
  padding: .55rem .7rem;
  border: 1px solid color-mix(in srgb, currentColor 18%, transparent);
  border-radius: 8px;
  background: #fff;
}
body.compound .cmp-form button { margin-top: .25rem; justify-self: start; }

body.compound .cmp-chart { width: 100%; height: auto; display: block; background: #fff; border-radius: 12px; }
body.compound .cmp-grid { stroke: #e2e8f0; stroke-width: 1; }
body.compound .cmp-line { stroke-width: 2.5; fill: none; }
body.compound .cmp-line.nominal { stroke: var(--cmp-nominal); }
body.compound .cmp-line.real { stroke: var(--cmp-real); }
body.compound .cmp-line.contrib { stroke: var(--cmp-contrib); stroke-dasharray: 4 3; }
body.compound .cmp-axis { fill: #64748b; font-size: 11px; font-family: inherit; }

body.compound .cmp-kpis {
  list-style: none;
  margin: 1rem 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: .75rem;
}
body.compound .cmp-kpis li {
  padding: .75rem .9rem;
  border-radius: 10px;
  background: color-mix(in srgb, var(--accent, #0f766e) 8%, transparent);
}
body.compound .cmp-kpis span { display: block; font-size: .8rem; color: var(--muted, #64748b); }
body.compound .cmp-kpis strong { font-size: 1.2rem; font-variant-numeric: tabular-nums; }

body.compound .cmp-legend { display: flex; flex-wrap: wrap; gap: .75rem 1.25rem; margin-top: .85rem; font-size: .85rem; }
body.compound .cmp-legend span::before {
  content: '';
  display: inline-block;
  width: .75rem;
  height: .2rem;
  margin-right: .4rem;
  vertical-align: middle;
  border-radius: 2px;
}
body.compound .cmp-legend .nominal::before { background: var(--cmp-nominal); }
body.compound .cmp-legend .real::before { background: var(--cmp-real); }
body.compound .cmp-legend .contrib::before { background: var(--cmp-contrib); }

body.compound .timeline { list-style: none; padding: 0; margin: 0 0 1.5rem; }
body.compound .timeline li { padding: .65rem 0 .65rem 1rem; border-left: 2px solid color-mix(in srgb, var(--accent, #0f766e) 40%, transparent); margin-left: .25rem; }
body.compound .timeline time { display: block; font-size: .8rem; color: var(--muted, #64748b); font-weight: 600; }
