    /* ---------- Split Lay Results ---------- */

.split-results-card {
  overflow: hidden;
}

.split-results-card[hidden] {
  display: none;
}

.split-results-header {
  background:
    linear-gradient(180deg, rgba(255,255,255,0.045), transparent 42%),
    linear-gradient(135deg, #172033 0%, #0b1220 62%, #080e1a 100%);
  color: white;
  padding: 24px;
  border-bottom: 3px solid var(--accent);
  box-shadow: var(--panel-glow);
  position: relative;
  overflow: hidden;
}

.split-results-header::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 86% 18%, rgba(249,115,22,0.22), transparent 34%),
    linear-gradient(90deg, rgba(255,255,255,0.035) 1px, transparent 1px);
  background-size: auto, 34px 100%;
  pointer-events: none;
}

.split-results-header p {
  margin: 0 0 8px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 12px;
  font-weight: 800;
  opacity: 0.82;
  color: #94a3b8;
  position: relative;
  z-index: 1;
}

.split-results-header strong {
  display: block;
  font-size: clamp(48px, 10vw, 72px);
  line-height: 0.95;
  letter-spacing: 0;
  color: #f8fafc;
  position: relative;
  z-index: 1;
}

.split-results-grid {
  display: grid;
  gap: 14px;
  padding: 18px;
}

.split-result-section {
  border: 1px solid var(--border);
  border-radius: 10px;
  overflow: hidden;
  background:
    linear-gradient(180deg, rgba(255,255,255,0.96), rgba(248,250,252,0.88));
  position: relative;
}

.split-result-title {
  display: flex;
  justify-content: space-between;
  
  border-left: 6px solid transparent;
  padding: 14px 18px;
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border-bottom: 1px solid var(--border);
  background: rgba(255,255,255,0.03);
  color: var(--ink);
}
    .pressure-path-tag {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-left: 10px;
  padding: 4px 8px;
  border-radius: 999px;
  background: rgba(148, 163, 184, 0.16);
  color: var(--ink);
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.06em;
  white-space: nowrap;
}
    .pressure-path-tag.driver {
  background: #f97316;
  color: white;
}

.pressure-path-tag.recalculated {
  background: #2563eb;
  color: white;
}

.pressure-path-tag.balanced {
  background: #16a34a;
  color: white;
}
    .split-section-divider {
  padding: 8px 12px 4px;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.08em;
  opacity: 0.72;
}
  .supply-1-title {
  border-left-color: #3b82f6;
}

.supply-2-title {
  border-left-color: #06b6d4;
}

.attack-1-title {
  border-left-color: #f97316;
}

.attack-2-title {
  border-left-color: #ef4444;
}

.split-result-details {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
}

.split-result-item {
  padding: 12px;
  border-right: 1px solid rgba(255,255,255,0.06);

  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 92px;
}

.split-result-item:last-child {
  border-right: none;
}

.split-result-item p {
  margin: 0 0 5px;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #94a3b8;
}

.split-result-item strong {
  display: block;
  font-size: 26px;
  line-height: 1.15;
  letter-spacing: 0;
  white-space: pre-line;
  overflow-wrap: anywhere;
  font-weight: 850;
}
    .split-result-item strong.overpressure {
  color: #fb923c;
}
    .split-result-item strong.flow-increase {
  color: #b45309;
}

.split-result-item strong.normal-pressure {
  color: inherit;
}

@media (max-width: 720px) {

  .split-result-details {
    grid-template-columns: 1fr;
  }

  .split-result-item {
    border-right: none;
    border-bottom: 1px solid var(--border);
  }

  .split-result-item:last-child {
    border-bottom: none;
  }

}
    /* ---------- Results ---------- */
    .result-top {
  background:
    linear-gradient(180deg, rgba(255,255,255,0.045), transparent 42%),
    linear-gradient(135deg, #172033 0%, #0b1220 62%, #080e1a 100%);
  color: white;
  padding: 30px 30px 26px;
  position: relative;
  overflow: hidden;
  border-bottom: 3px solid var(--accent);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.08),
    inset 0 -1px 0 rgba(251, 146, 60, 0.55),
    var(--panel-glow);
}
.result-top::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 86% 18%, rgba(249,115,22,0.24), transparent 34%),
    linear-gradient(90deg, rgba(255,255,255,0.035) 1px, transparent 1px);
  background-size: auto, 34px 100%;
  opacity: 0.85;
  pointer-events: none;
}

    .result-label {
      color: #94a3b8;
      text-transform: uppercase;
      letter-spacing: 0.08em;
      font-size: 12px;
      font-weight: 800;
      margin: 0 0 8px;
      position: relative;
      z-index: 1;
    }

    .result-number {
      display: flex;
      align-items: flex-end;
      gap: 10px;
      position: relative;
      z-index: 1;
    }

    .result-number strong {
  font-size: clamp(58px, 13vw, 92px);
  line-height: 0.95;
  letter-spacing: 0;
  font-weight: 850;
  text-shadow: 0 0 18px rgba(249, 115, 22, 0.16);
}

    .result-number span {
      font-size: 24px;
      color: #cbd5e1;
      padding-bottom: 8px;
      font-weight: 700;
    }

    .result-empty-message {
      display: none;
      position: relative;
      z-index: 1;
      margin: 16px 0 0;
      color: #cbd5e1;
      font-size: 16px;
      font-weight: 700;
      line-height: 1.45;
      max-width: 440px;
    }

    .result-empty .result-number {
      opacity: 0.48;
    }

    .result-empty .result-empty-message {
      display: block;
    }

    .result-empty .result-details {
      display: none;
    }

   .result-details {
  display: flex;
  flex-wrap: wrap;
  border-top: 1px solid var(--border);
  background: var(--surface);
}

    .detail {
  flex: 1 1 33.333%;
  min-width: 180px;
  position: relative;
  padding: 20px;
  border-right: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background:
    linear-gradient(180deg, rgba(255,255,255,0.94), rgba(248,250,252,0.9));
}

    .detail::before {
      content: "";
      position: absolute;
      top: 0;
      left: 0;
      right: 0;
      height: 2px;
      background: linear-gradient(90deg, rgba(55,84,111,0.34), transparent);
    }

    .detail:last-child { border-right: none; }

    .detail p {
  margin: 0 0 8px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-size: 11px;
  font-weight: 900;
}

    .detail strong {
  font-size: 27px;
  line-height: 1.15;
  letter-spacing: 0;
  display: block;
  white-space: pre-line;
}
