dialog.import-pages-modal {
  box-sizing: border-box;
  inset: 0;
  margin: auto;
  width: min(600px, calc(100% - 24px));
  max-height: calc(100% - 32px);
  padding: 28px;
}

#dialog-body .space-import-header h2 { margin: 0 32px 6px 0; }
.space-import-header p, .space-import-note {
  margin: 0;
  color: #58677d;
  font-size: 13px;
  line-height: 1.6;
}

.space-import-files { display: grid; gap: 8px; margin: 20px 0 10px; }
.space-import-files button {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 58px;
  width: 100%;
  padding: 10px 14px;
  text-align: left;
  color: #25354d;
  background: #fff;
  border: 1px solid #dce4ef;
  border-radius: 8px;
}
.space-import-files button:first-child { background: #f3f7ff; border-color: #c8d7f3; }
.space-import-files button:hover:enabled { background: #eaf1ff; border-color: #94afe9; }
.space-import-files button:disabled { opacity: .6; cursor: default; }
.space-import-files button:focus-visible, #import-log:focus-visible {
  outline: 2px solid #315fce;
  outline-offset: 2px;
}
.space-import-files strong, .space-import-files small { display: block; }
.space-import-files small { margin-top: 3px; font-size: 12px; color: #58677d; }
.space-import-file-icon {
  display: grid;
  place-items: center;
  flex: 0 0 34px;
  height: 34px;
  border-radius: 8px;
  color: #315fce;
  background: #e6eefc;
}

.space-import-log {
  margin-top: 20px;
  padding: 12px 14px;
  border: 1px solid #dce4ef;
  border-radius: 8px;
  background: #f7f9fc;
}
.space-import-log h3 { margin: 0 0 6px; color: #25354d; font-size: 14px; }
#import-progress { margin: 0; color: #58677d; font-size: 13px; overflow-wrap: anywhere; }
#import-log {
  max-height: min(240px, 32vh);
  overflow: auto;
  margin: 10px 0 0;
  padding: 8px 8px 4px 26px;
  border-top: 1px solid #dce4ef;
  color: #435269;
  font-size: 12px;
  line-height: 1.55;
  overflow-wrap: anywhere;
}
#import-log:empty { display: none; }
#import-log li + li { margin-top: 4px; }
#import-log li[data-level="warn"] { color: #795008; }
#import-log li[data-level="error"] { color: #a0252c; }

@media (max-width: 480px) {
  dialog.import-pages-modal { padding: 20px 16px; }
}
