#phase8c-underwriting-host {
  width: 100%;
  min-width: 0;
}

.phase8c-underwriting {
  margin: 0 0 18px;
  border: 1px solid #d9e0dc;
  border-radius: 18px;
  background: #fbfaf6;
  box-shadow: 0 8px 24px rgba(18, 59, 79, .055);
  overflow: hidden;
  color: #132944;
}

.phase8c-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 22px;
  padding: 22px 24px 18px;
  border-bottom: 1px solid #e2e7e4;
  background: #fff;
}

.phase8c-eyebrow {
  margin: 0 0 5px;
  color: #0d6658;
  font-size: 12px;
  line-height: 1.2;
  font-weight: 800;
  letter-spacing: .085em;
  text-transform: uppercase;
}

.phase8c-header h2 {
  margin: 0;
  color: #132944;
  font-size: 24px;
  line-height: 1.15;
}

.phase8c-description {
  max-width: 680px;
  margin: 7px 0 0;
  color: #62717b;
  font-size: 14px;
  line-height: 1.55;
}

.phase8c-header-actions {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 11px;
  flex: 0 0 auto;
}

.phase8c-state,
.phase8c-buttons {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 7px;
}

.phase8c-chip {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-size: 12px;
  line-height: 1;
  font-weight: 800;
  white-space: nowrap;
}

.phase8c-chip-saved {
  color: #30435b;
  background: #f3f5f5;
  border-color: #dce1e2;
}

.phase8c-chip-matched {
  color: #0d6658;
  background: #eef7f3;
  border-color: #cfe4db;
}

.phase8c-chip-working {
  color: #7f5a18;
  background: #faf4e7;
  border-color: #e8d5ac;
}

.phase8c-chip-pending {
  color: #30435b;
  background: #eef2f6;
  border-color: #d7dfe7;
}

.phase8c-secondary {
  min-height: 34px;
  padding: 7px 12px;
  border: 1px solid #0d6658;
  border-radius: 10px;
  background: #fff;
  color: #0d6658;
  font: inherit;
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
}

.phase8c-secondary:hover:not(:disabled) {
  background: #f1f7f4;
}

.phase8c-secondary:disabled {
  opacity: .42;
  cursor: default;
}

.phase8c-context {
  display: grid;
  grid-template-columns: max-content max-content 1fr;
  align-items: center;
  gap: 12px 24px;
  padding: 14px 24px;
  background: #f6f3eb;
  border-bottom: 1px solid #e3dfd4;
}

.phase8c-context > div {
  display: grid;
  gap: 2px;
}

.phase8c-context span {
  color: #73808a;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .04em;
}

.phase8c-context strong {
  color: #132944;
  font-size: 13px;
}

.phase8c-context p {
  margin: 0;
  justify-self: end;
  color: #66747d;
  font-size: 12px;
  line-height: 1.45;
  text-align: right;
}

.phase8c-grid {
  display: grid;
  grid-template-columns:
    repeat(2, minmax(0, 1fr));
  gap: 14px;
  padding: 18px;
}

.phase8c-section {
  min-width: 0;
  border: 1px solid #dfe5e2;
  border-radius: 14px;
  background: #fff;
  overflow: hidden;
}

.phase8c-section-toggle {
  width: 100%;
  min-height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 13px 15px;
  border: 0;
  background: #fff;
  color: #132944;
  text-align: left;
  font: inherit;
  cursor: pointer;
}

.phase8c-section-toggle:hover {
  background: #fafbf9;
}

.phase8c-section-toggle > span {
  display: grid;
  gap: 3px;
}

.phase8c-section-toggle strong {
  font-size: 15px;
}

.phase8c-section-toggle small {
  color: #73808a;
  font-size: 11px;
  line-height: 1.35;
  font-weight: 500;
}

.phase8c-section-toggle > b {
  color: #0d6658;
  font-size: 19px;
  line-height: 1;
}

.phase8c-fields {
  display: grid;
  grid-template-columns:
    repeat(2, minmax(0, 1fr));
  gap: 12px;
  padding: 0 15px 15px;
}

.phase8c-field {
  min-width: 0;
  display: grid;
  gap: 6px;
  padding: 11px;
  border: 1px solid #e3e7e5;
  border-radius: 11px;
  background: #fcfcfa;
}

.phase8c-field-changed {
  border-color: #d7bd82;
  background: #fffaf0;
}

.phase8c-field-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  color: #27394a;
  font-size: 12px;
  font-weight: 800;
}

.phase8c-field-title b {
  color: #8a641f;
  font-size: 9px;
  text-transform: uppercase;
  letter-spacing: .045em;
}

.phase8c-field input,
.phase8c-field select {
  width: 100%;
  min-width: 0;
  min-height: 38px;
  box-sizing: border-box;
  border: 1px solid #cbd5d1;
  border-radius: 9px;
  background: #fff;
  color: #132944;
  font: inherit;
  font-size: 14px;
  font-weight: 700;
  outline: none;
}

.phase8c-field input {
  padding: 8px 10px;
}

.phase8c-field select {
  padding: 8px 9px;
}

.phase8c-field input:focus,
.phase8c-field select:focus {
  border-color: #0d6658;
  box-shadow: 0 0 0 3px rgba(13, 102, 88, .10);
}

.phase8c-input-wrap {
  position: relative;
  display: flex;
  align-items: center;
}

.phase8c-input-wrap i {
  position: absolute;
  color: #687780;
  font-size: 12px;
  font-style: normal;
  pointer-events: none;
}

.phase8c-input-wrap i:first-child {
  left: 10px;
}

.phase8c-input-wrap i:last-child {
  right: 10px;
}

.phase8c-input-wrap i:first-child + input {
  padding-left: 22px;
}

.phase8c-input-wrap input + i {
  right: 10px;
}

.phase8c-field small {
  color: #7b858c;
  font-size: 10px;
  line-height: 1.35;
}

.phase8c-field small strong {
  color: #52616b;
  font-weight: 800;
}

.phase8c-section-note {
  display: flex;
  align-items: center;
  min-height: 92px;
  padding: 16px;
  background: #f7f8f7;
}

.phase8c-section-note strong {
  color: #132944;
}

.phase8c-section-note p {
  margin: 4px 0 0;
  color: #718089;
  font-size: 12px;
  line-height: 1.45;
}

@media (max-width: 1050px) {
  .phase8c-header {
    flex-direction: column;
  }

  .phase8c-header-actions {
    align-items: flex-start;
  }

  .phase8c-state,
  .phase8c-buttons {
    justify-content: flex-start;
  }

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

  .phase8c-context p {
    grid-column: 1 / -1;
    justify-self: start;
    text-align: left;
  }

  .phase8c-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 700px) {
  .phase8c-header {
    padding: 18px;
  }

  .phase8c-context {
    grid-template-columns: 1fr;
    padding: 12px 18px;
  }

  .phase8c-context p {
    grid-column: auto;
  }

  .phase8c-grid {
    padding: 12px;
  }

  .phase8c-fields {
    grid-template-columns: 1fr;
  }
}
