.calculation-flow-card,
.calculation-results-card { padding: 12px 14px; border: 1px solid #dbe2ec; border-radius: 8px; background: #fff; }
.calculation-section-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; margin-bottom: 10px; }
.calculation-section-heading > div { min-width: 0; flex: 1; }
.calculation-section-heading h3,
.calculation-section-heading p { margin: 0; }
.calculation-section-heading h3 { color: #202635; font-size: 13px; font-weight: 700; line-height: 1.3; }
.calculation-section-heading p { margin-top: 3px; color: #7c8798; font-size: 9px; line-height: 1.45; }
.calculation-section-heading > span { color: #75839a; font-size: 8px; font-weight: 800; white-space: nowrap; }

.calculation-flow { display: grid; gap: 6px; }
.calculation-flow > i { width: 1px; height: 8px; margin-left: 16px; border-left: 1px dashed #9caec0; }
.calculation-flow-step { display: grid; grid-template-columns: 32px minmax(0, 1fr); align-items: center; gap: 9px; padding: 8px 9px; border: 1px solid #e0e6ef; border-radius: 6px; background: #f9fbfd; }
.calculation-flow-step > span { display: grid; width: 28px; height: 28px; place-items: center; border-radius: 50%; background: #e8eef5; color: #5f7288; font-size: 9px; font-weight: 800; }
.calculation-flow-step > div { display: grid; min-width: 0; gap: 2px; }
.calculation-flow-step strong { font-size: 10px; }
.calculation-flow-step small { overflow: hidden; color: #77859a; font-size: 8px; text-overflow: ellipsis; white-space: nowrap; }
.calculation-flow-step.is-input > span { background: #fde5f2; color: #b50f68; }
.calculation-flow-step.is-rule > span { background: #e7edfb; color: #536fa7; }
.calculation-flow-step.is-result > span { background: #dff5eb; color: #218361; }
.calculation-model-summary { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1px; overflow: hidden; margin-top: 10px; border: 1px solid #e0e6ef; border-radius: 6px; background: #e0e6ef; }
.calculation-model-summary div { display: grid; gap: 2px; padding: 8px 9px; background: #fff; text-align: center; }
.calculation-model-summary span { color: #78869a; font-size: 7px; }
.calculation-model-summary strong { color: #263a51; font-size: 11px; }

.calculation-result-list { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 7px; }
.calculation-result-list > p { margin: 0; color: #7b889b; font-size: 9px; }
.calculation-result-item { display: grid; grid-template-columns: 52px minmax(0, 1fr); align-items: center; gap: 8px; min-width: 0; padding: 8px 9px; border: 1px solid #e1e7ef; border-radius: 6px; background: #f9fbfd; color: #18263a; text-align: left; }
.calculation-result-item:hover,
.calculation-result-item:focus-visible { border-color: #ec168c; background: #fff4fa; outline: 0; }
.calculation-result-item__location { display: grid; min-height: 28px; place-items: center; padding: 3px; border-radius: 5px; background: #eaf0f7; color: #50657d; font-size: 8px; font-weight: 800; }
.calculation-result-item > span:last-child { display: grid; min-width: 0; gap: 3px; }
.calculation-result-item code,
.calculation-result-item strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.calculation-result-item code { color: #b20e67; font-size: 8px; }
.calculation-result-item strong { font-size: 10px; }

@media (max-width: 620px) {
    .calculation-model-summary { grid-template-columns: 1fr; }
}
