.open-work-resolve-dialog {
  width: min(720px, calc(100vw - 24px));
  max-width: 720px;
  max-height: calc(100dvh - 24px);
  padding: 0;
  overflow-x: hidden;
}

.open-work-resolve-dialog .settings-panel {
  width: 100%;
  max-width: 100%;
  max-height: calc(100dvh - 24px);
  box-sizing: border-box;
  overflow-x: hidden;
  overflow-y: auto;
}

.open-work-resolve-dialog .settings-panel *,
.open-work-resolve-dialog .settings-panel *::before,
.open-work-resolve-dialog .settings-panel *::after {
  box-sizing: border-box;
  min-width: 0;
}

.open-work-resolve-dialog input,
.open-work-resolve-dialog select,
.open-work-resolve-dialog textarea {
  width: 100%;
  max-width: 100%;
}

.open-work-summary {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin: 14px 0;
}

.open-work-summary > div {
  display: grid;
  grid-template-columns: 110px minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  padding: 12px;
  border: 1px solid #d5dfd9;
  border-radius: 12px;
  background: #f1f6f3;
}

.open-work-summary .wide,
.open-work-fields .wide {
  grid-column: 1 / -1;
}

.open-work-summary dt {
  color: #587068;
}

.open-work-summary dd {
  margin: 0;
  font-weight: 700;
  overflow-wrap: anywhere;
}

.open-work-impact {
  margin: 0 0 14px;
  padding: 12px 14px;
  border-left: 4px solid #c58a16;
  border-radius: 10px;
  background: #fff4d9;
  color: #66460c;
  line-height: 1.6;
  overflow-wrap: anywhere;
}

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

.open-work-fields textarea {
  resize: vertical;
  min-height: 82px;
}

@media (max-width: 620px) {
  .open-work-resolve-dialog {
    width: calc(100vw - 16px);
    max-height: calc(100dvh - 16px);
  }

  .open-work-resolve-dialog .settings-panel {
    max-height: calc(100dvh - 16px);
    padding: 14px;
  }

  .open-work-summary,
  .open-work-fields {
    grid-template-columns: 1fr;
  }

  .open-work-summary .wide,
  .open-work-fields .wide {
    grid-column: auto;
  }

  .open-work-summary > div {
    grid-template-columns: 92px minmax(0, 1fr);
  }
}
