#json-import-dialog {
  width: min(760px, calc(100vw - 32px));
  max-height: calc(100vh - 32px);
  overflow: auto;
  box-sizing: border-box;
  padding: 20px;
  color: #f7f7f7;
  background: #252b34;
  border: 1px solid #778899;
  border-radius: 12px;
}

#json-import-dialog::backdrop { background: rgb(0 0 0 / 65%); }
#json-import-dialog h2 { margin: 0 0 10px; }
#json-import-dialog h3 { margin: 8px 0; }
#json-import-dialog p { margin: 8px 0; }
#json-import-error { color: #ffb2a8; white-space: pre-wrap; }
.json-import-lists { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.json-import-lists section { min-width: 0; max-height: 45vh; overflow: auto; }
.json-import-lists label { display: flex; align-items: flex-start; gap: 8px; padding: 5px 0; cursor: pointer; }
.json-import-lists input { appearance: auto; width: 16px; height: 16px; flex: none; margin-top: 3px; accent-color: #68c7f0; }
.json-import-actions { display: flex; justify-content: flex-end; gap: 8px; margin-top: 16px; }
.json-import-actions button { padding: 8px 14px; cursor: pointer; }
.json-import-actions button:disabled { cursor: not-allowed; opacity: .5; }
@media (max-width: 580px) { .json-import-lists { grid-template-columns: 1fr; } }
