#phase7c-stress-host {
  width: 100%;
  min-width: 0;
  margin: 20px 0 28px;
}

.analytics-workspace > #phase7c-stress-host {
  grid-column: 1 / -1;
}

.phase7c-shell {
  border: 1px solid #d9dfdc;
  border-radius: 18px;
  background:
    linear-gradient(145deg, #ffffff 0%, #fbfcfa 58%, #f5f9f7 100%);
  box-shadow: 0 10px 28px rgba(24, 45, 55, .055);
  padding: 22px;
  container-type: inline-size;
}

.phase7c-heading {
  display: flex;
  justify-content: space-between;
  gap: 22px;
  align-items: flex-start;
  padding-bottom: 18px;
  border-bottom: 1px solid #e7ebe8;
}

.phase7c-eyebrow {
  display: block;
  margin-bottom: 5px;
  color: #0d715f;
  font-size: .68rem;
  font-weight: 900;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.phase7c-heading h2 {
  margin: 0;
  color: #122f4b;
  font-size: 1.35rem;
  letter-spacing: -.025em;
}

.phase7c-heading p {
  max-width: 720px;
  margin: 7px 0 0;
  color: #627481;
  font-size: .82rem;
  line-height: 1.5;
}

.phase7c-strategy-chip {
  flex-shrink: 0;
  padding: 6px 10px;
  border: 1px solid #d3e2dd;
  border-radius: 999px;
  background: #f1f8f5;
  color: #0d6658;
  font-size: .7rem;
  font-weight: 850;
}

.phase7c-mode-switch {
  display: inline-flex;
  gap: 4px;
  margin-top: 18px;
  padding: 4px;
  border: 1px solid #d7dedb;
  border-radius: 11px;
  background: #f5f6f3;
}

.phase7c-mode-switch button {
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: #526575;
  font: inherit;
  font-size: .78rem;
  font-weight: 800;
  padding: 8px 13px;
  cursor: pointer;
}

.phase7c-mode-switch button.selected {
  background: #0d6658;
  color: #fff;
  box-shadow: 0 3px 10px rgba(13, 102, 88, .16);
}

.phase7c-question {
  display: grid;
  grid-template-columns:
    minmax(160px, 1.15fr)
    28px
    minmax(190px, 1.3fr)
    minmax(130px, .78fr)
    auto;
  gap: 12px;
  align-items: end;
  margin-top: 18px;
}

.phase7c-question label,
.phase7c-range label {
  min-width: 0;
}

.phase7c-question label > span,
.phase7c-range label > span {
  display: block;
  margin-bottom: 6px;
  color: #405565;
  font-size: .72rem;
  font-weight: 850;
}

.phase7c-question select,
.phase7c-question input,
.phase7c-range input {
  width: 100%;
  box-sizing: border-box;
  border: 1px solid #cbd5d2;
  border-radius: 9px;
  background: #fff;
  color: #17334a;
  font: inherit;
  font-size: .84rem;
  padding: 10px 11px;
}

.phase7c-question select:focus,
.phase7c-question input:focus,
.phase7c-range input:focus {
  outline: 2px solid rgba(13, 102, 88, .18);
  border-color: #0d6658;
}

.phase7c-input-wrap {
  position: relative;
}

.phase7c-input-wrap input {
  padding-right: 32px;
}

.phase7c-input-wrap i {
  position: absolute;
  top: 10px;
  right: 11px;
  color: #77858c;
  font-style: normal;
  font-size: .78rem;
  font-weight: 800;
}

.phase7c-flow-arrow {
  align-self: center;
  padding-top: 20px;
  color: #9aa9ad;
  text-align: center;
  font-size: 1.15rem;
  font-weight: 900;
}

.phase7c-run {
  border: 1px solid #0d6658;
  border-radius: 9px;
  background: #0d6658;
  color: #fff;
  font: inherit;
  font-size: .8rem;
  font-weight: 850;
  padding: 10px 15px;
  cursor: pointer;
  white-space: nowrap;
}

.phase7c-run:hover {
  background: #09594d;
}

.phase7c-run:disabled {
  opacity: .58;
  cursor: wait;
}

.phase7c-range {
  margin-top: 12px;
  border-top: 1px solid #edf0ed;
  padding-top: 10px;
}

.phase7c-range summary {
  width: fit-content;
  color: #637783;
  font-size: .71rem;
  font-weight: 800;
  cursor: pointer;
}

.phase7c-range > div {
  display: grid;
  grid-template-columns: 160px 160px minmax(220px, 1fr);
  gap: 12px;
  align-items: end;
  margin-top: 10px;
}

.phase7c-range p {
  margin: 0 0 2px;
  color: #7a898f;
  font-size: .69rem;
  line-height: 1.4;
}

.phase7c-result {
  margin-top: 18px;
  border: 1px solid #dce3df;
  border-radius: 14px;
  background: #fff;
  padding: 18px;
}

.phase7c-result-grid {
  display: grid;
  grid-template-columns:
    minmax(0, 1fr)
    42px
    minmax(0, 1fr)
    minmax(0, .9fr);
  gap: 14px;
  align-items: stretch;
}

.phase7c-result-grid article {
  border: 1px solid #e2e7e4;
  border-radius: 12px;
  background: #fafbf9;
  padding: 14px;
}

.phase7c-result-grid article.required {
  border-color: #cde0d9;
  background: #f3faf7;
}

.phase7c-result-grid article.gap {
  border-color: #eadfbe;
  background: #fffaf0;
}

.phase7c-result-grid article > span {
  display: block;
  color: #697a84;
  font-size: .68rem;
  font-weight: 850;
  text-transform: uppercase;
  letter-spacing: .045em;
}

.phase7c-result-grid article strong {
  display: block;
  margin-top: 8px;
  color: #13314b;
  font-size: 1.45rem;
  font-variant-numeric: tabular-nums;
  letter-spacing: -.025em;
}

.phase7c-result-grid article.required strong {
  color: #0d715f;
}

.phase7c-result-grid article.gap strong {
  color: #9a6b17;
}

.phase7c-result-grid article small {
  display: block;
  margin-top: 5px;
  color: #77868e;
  font-size: .68rem;
}

.phase7c-arrow {
  display: flex;
  align-items: center;
  justify-content: center;
  color: #7f9297;
  font-size: 1.5rem;
  font-weight: 900;
}

.phase7c-achieved {
  display: flex;
  gap: 9px 12px;
  align-items: center;
  flex-wrap: wrap;
  margin-top: 14px;
  padding: 10px 12px;
  border-radius: 10px;
  background: #f6f8f7;
  color: #61747f;
  font-size: .72rem;
}

.phase7c-achieved b {
  color: #18364d;
}

.phase7c-explanation {
  margin: 14px 0 0;
  color: #344d5e;
  font-size: .8rem;
  line-height: 1.52;
}

.phase7c-transient-note {
  display: block;
  margin-top: 9px;
  color: #879399;
  font-size: .67rem;
}

.phase7c-empty,
.phase7c-result-unavailable,
.phase7c-loading {
  min-height: 92px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.phase7c-empty strong,
.phase7c-result-unavailable strong,
.phase7c-loading strong {
  color: #19364d;
  font-size: .9rem;
}

.phase7c-empty p,
.phase7c-result-unavailable p,
.phase7c-loading p {
  max-width: 720px;
  margin: 5px 0 0;
  color: #70808a;
  font-size: .76rem;
  line-height: 1.45;
}

.phase7c-result-unavailable {
  border-style: dashed;
  background: #fcfbf8;
}

.phase7c-result-unavailable > small {
  margin-top: 8px;
  color: #8a969b;
  font-size: .66rem;
}

.phase7c-loading {
  flex-direction: row;
  align-items: center;
  justify-content: flex-start;
  gap: 11px;
}

.phase7c-loading i {
  width: 13px;
  height: 13px;
  border: 2px solid #b8d2cb;
  border-top-color: #0d6658;
  border-radius: 50%;
  animation: phase7c-spin .7s linear infinite;
}

@keyframes phase7c-spin {
  to {
    transform: rotate(360deg);
  }
}

.analysis-panel.focus-mode #phase7c-stress-host {
  width: 100%;
  max-width: 1320px;
  margin-left: auto;
  margin-right: auto;
}

@container (max-width: 900px) {
  .phase7c-question {
    grid-template-columns:
      minmax(0, 1fr)
      minmax(0, 1fr);
  }

  .phase7c-flow-arrow {
    display: none;
  }

  .phase7c-run {
    width: 100%;
  }

  .phase7c-result-grid {
    grid-template-columns:
      repeat(2, minmax(0, 1fr));
  }

  .phase7c-arrow {
    display: none;
  }
}

@container (max-width: 620px) {
  .phase7c-shell {
    padding: 16px;
  }

  .phase7c-heading {
    display: block;
  }

  .phase7c-strategy-chip {
    display: inline-flex;
    margin-top: 11px;
  }

  .phase7c-question {
    grid-template-columns: 1fr;
  }

  .phase7c-range > div {
    grid-template-columns: 1fr;
  }

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

  .phase7c-mode-switch {
    width: 100%;
    box-sizing: border-box;
  }

  .phase7c-mode-switch button {
    flex: 1;
  }
}
