.pw-about .pw-edit-details {
  min-height: 42px;
  flex-shrink: 0;
}

.pw-project-edit-feedback {
  margin: 0;
  color: #255a44;
  font-size: 14px;
  font-weight: 650;
}
.pw-edit-success {
  padding: 9px 13px;
  border-inline: 1px solid #cbdfd4;
  border-bottom: 1px solid #cbdfd4;
  background: #f2faf5;
}

.pw-project-edit-dialog {
  width: min(860px, calc(100% - 24px));
  max-height: calc(100dvh - 24px);
  overflow: auto;
  overscroll-behavior: contain;
}

.pw-project-edit-dialog .dialog-head,
.pw-project-edit-dialog .dialog-footer {
  position: sticky;
  z-index: 3;
  background: var(--paper);
}
.pw-project-edit-dialog .dialog-head { top: 0; }
.pw-project-edit-dialog .dialog-footer { bottom: 0; }
.pw-project-edit-dialog .dialog-head h2 { font-size: clamp(20px, 5vw, 25px); }
.pw-project-edit-dialog .dialog-body { gap: 17px; }
.pw-edit-section { display: grid; min-width: 0; gap: 10px; }
.pw-edit-section + .pw-edit-section { padding-top: 14px; border-top: 1px solid var(--line); }
.pw-edit-section > h3 { margin: 0; color: var(--navy); font-size: 17px; font-weight: 740; scroll-margin-top: 75px; }
.pw-project-edit-dialog .field :is(input, select) { min-height: 44px; max-width: 100%; }
.pw-project-edit-dialog .field textarea {
  width: 100%;
  min-width: 0;
  min-height: 4.5rem;
  resize: vertical;
  padding: 8px 10px;
  border: 1px solid #bac9da;
  background: var(--paper);
  color: var(--ink);
  font-size: 16px;
}
.pw-edit-date-row { align-items: end; }
.pw-project-edit-dialog .field input { scroll-margin-top: 75px; }
.pw-edit-optional { color: var(--muted); font-size: 12px; font-weight: 550; }
.pw-edit-team-picker { min-width: 0; border: 1px solid var(--line); background: #f6f9fd; }
.pw-edit-team-picker summary { min-height: 44px; padding: 10px 12px; color: var(--navy); font-size: 14px; font-weight: 740; cursor: pointer; }
.pw-edit-team-choices {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(165px, 100%), 1fr));
  gap: 3px 8px;
  max-height: 13rem;
  overflow: auto;
  padding: 0 8px 8px;
}
.pw-edit-team-choices:empty { padding: 0; }
.pw-edit-team-choices label {
  display: flex;
  gap: 8px;
  align-items: center;
  min-height: 38px;
  padding: 4px 6px;
  font-size: 14px;
  overflow-wrap: anywhere;
}
.pw-edit-team-choices input { width: 17px; height: 17px; flex: 0 0 auto; margin: 0; accent-color: var(--steel); }
.pw-edit-team-choices small { display: block; color: var(--muted); }
.pw-edit-team-picker .field-note, .pw-edit-team-picker .button { margin: 0 10px 8px; }
.pw-project-edit-dialog .org-canvas-pool { position: static; }
.pw-project-edit-dialog .dialog-footer .button { min-height: 44px; }

.pm-period-editor {
  display: grid;
  gap: 12px;
  padding: 14px;
  background: #f3f7fc;
  border: 1px solid var(--line);
}
.pm-period-editor h3, .pm-milestone-editor-heading { margin: 0; font-size: 17px; }
.pm-period-editor .field input { min-height: 44px; max-width: 100%; }
.pm-period-editor .pm-form-actions .button { min-height: 44px; }
.project-edit-conflicts { margin: 0; padding-left: 20px; color: var(--ink); font-size: 14px; }
.pm-milestone-editor-heading { margin-top: 6px; }

@media (max-width: 480px) {
  .pw-project-edit-dialog .dialog-head, .pw-project-edit-dialog .dialog-body,
  .pw-project-edit-dialog .dialog-footer { padding-inline: 13px; }
  .pw-project-edit-dialog .field :is(input, select) { font-size: 16px; }
  .pw-edit-team-choices label { min-height: 44px; }
  .pw-edit-section:first-child .field-row { grid-template-columns: minmax(0, 1fr); }
  .pm-period-editor { padding: 11px; }
  .pm-period-editor .field-row { grid-template-columns: minmax(0, 1fr); }
  .pm-period-editor .pm-form-actions .button { width: 100%; }
}

@media (max-width: 388px) {
  .pw-project-edit-dialog .pw-edit-date-row { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 350px) {
  .pw-project-edit-dialog .dialog-footer { display: grid; grid-template-columns: minmax(0, 1fr); }
}
