
.ncc-editor-dialog {
  box-sizing: border-box;
  width: min(1050px, calc(100% - 32px));
  max-width: none;
  max-height: calc(100% - 32px);
  max-height: calc(100dvh - 32px);
  padding: 0;
  overflow: auto;
  overscroll-behavior: contain;
  border: 1px solid #dce1ea;
  border-radius: 16px;
  background: #fff;
  color: #172033;
  box-shadow: 0 24px 80px #10182845;
}
.ncc-editor-dialog::backdrop { background: #11182788; }
html:has(.ncc-editor-dialog[open]) { overflow: hidden; }
.ncc-editor-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  padding: 18px 22px;
  background: #fff;
  border-bottom: 1px solid #e4e8ef;
}
.ncc-editor-header h2 { margin: 0; font-size: 1.25rem; }
.ncc-editor-header p { margin: 5px 0 0; color: #475569; }
.ncc-editor-dialog .ncc-editor-form { padding: 16px 22px 0; }
.ncc-editor-dialog .ncc-editor-form > fieldset { border: 0; padding: 0; }
.ncc-editor-dialog .ncc-editor-form > fieldset > legend { padding: 0; margin-bottom: 8px; }
.ncc-editor-dialog .ncc-editor-fields {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: start;
  gap: 14px;
}
.ncc-editor-point {
  min-width: 0;
  display: grid;
  gap: 10px;
  padding: 14px;
  border: 1px solid #e4e8ef;
  border-radius: 12px;
  background: #f8fafc;
  overflow-wrap: anywhere;
}
.ncc-editor-state {
  justify-self: start;
  padding: 4px 8px;
  border-radius: 6px;
  background: #e8eef6;
  color: #334155;
  font-weight: 600;
}
.ncc-editor-state[data-review="true"] { background: #fff0cf; color: #744700; }
.ncc-editor-dialog .ncc-editor-footer {
  position: sticky;
  bottom: 0;
  z-index: 1100;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-inline: -22px;
  padding: 12px 22px;
  background: #fff;
  border-top: 1px solid #e4e8ef;
}
.ncc-editor-error { flex-basis: 100%; margin: 0 0 8px; }
@media (max-width: 680px) {
  .ncc-editor-dialog { width: calc(100% - 16px); max-height: calc(100dvh - 16px); }
  .ncc-editor-header { padding: 14px; }
  .ncc-editor-dialog .ncc-editor-form { padding-inline: 14px; }
  .ncc-editor-dialog .ncc-editor-fields { grid-template-columns: minmax(0, 1fr); }
  .ncc-editor-dialog .ncc-editor-footer { margin-inline: -14px; padding: 10px 14px; }
}

.ncc-editor-dialog {
  width: min(1180px, calc(100% - 32px));
  margin: auto;
  background: #f5f7fb;
  scrollbar-gutter: stable;
}
.ncc-editor-header {
  position: sticky;
  top: 0;
  z-index: 1200;
  align-items: center;
  padding: 16px 24px;
}
.ncc-editor-dialog .ncc-editor-form { padding: 18px 24px 0; }
.ncc-editor-dialog .ncc-editor-form > fieldset { min-inline-size: 0; margin: 0; }
.ncc-editor-dialog .ncc-editor-form > fieldset > legend { margin-bottom: 12px; }
.ncc-editor-dialog .ncc-editor-fields { gap: 16px; }
.ncc-editor-point {
  align-content: start;
  grid-template-columns: minmax(0, 1fr);
  gap: 12px;
  padding: 16px;
  background: #fff;
}
.ncc-editor-point > * { min-width: 0; }
.ncc-editor-point :is(input, select, textarea) {
  box-sizing: border-box;
  max-width: 100%;
}
.ncc-editor-point :is(input:not([type]), input[type="text"], input[type="search"], textarea) {
  width: 100%;
}
.ncc-editor-point label { overflow-wrap: anywhere; }
.ncc-editor-point .leaflet-container { width: 100%; max-width: 100%; border-radius: 8px; }
.ncc-editor-dialog .ncc-editor-footer {
  justify-content: flex-end;
  margin: 16px -24px 0;
  padding: 12px 24px;
}
@media (max-width: 760px) {
  .ncc-editor-dialog .ncc-editor-fields { grid-template-columns: minmax(0, 1fr); }
  .ncc-editor-header { padding: 12px 14px; }
  .ncc-editor-dialog .ncc-editor-form { padding: 12px 14px 0; }
  .ncc-editor-dialog .ncc-editor-footer { margin-inline: -14px; padding-inline: 14px; }
  .ncc-editor-point { padding: 12px; }
}
@media (max-width: 440px) {
  .ncc-editor-dialog .ncc-editor-footer > button { flex: 1 1 100%; }
}
